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 + - 65 + - - SUM( DISTINCT - - 40 ) AS col2, 20 * - 66 + 85 * 0 * 70 AS col1
----
-25
-1320

skipif mysql # not compatible
query II rowsort label-0
SELECT + - 65 + - - SUM ( DISTINCT - - 40 ) AS col2, 20 * - 66 + 85 * 0 * 70 AS col1
----
-25
-1320

query I rowsort
SELECT - - 60 * + + 56 col2
----
3360

query I rowsort
SELECT DISTINCT + + 42 * 58
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3
SELECT 89 * + CASE 39 WHEN + - 14 THEN NULL ELSE - + ( - COUNT( * ) ) - - - 28 END * - - CAST( - 86 AS SIGNED ) - - CASE + AVG ( + 89 ) WHEN - CAST( - 27 AS DECIMAL ) THEN - 76 + + CAST( NULL AS SIGNED ) + + - 31 + 22 * - 82 * + + COUNT( - + ( + - ( 29 ) ) ) ELSE - 0 END + 94
----
206752

skipif mysql # not compatible
query I rowsort label-3
SELECT 89 * + CASE 39 WHEN + - 14 THEN NULL ELSE - + ( - COUNT ( * ) ) - - - 28 END * - - CAST ( - 86 AS INTEGER ) - - CASE + AVG ( + 89 ) WHEN - CAST ( - 27 AS REAL ) THEN - 76 + + CAST ( NULL AS INTEGER ) + + - 31 + 22 * - 82 * + + COUNT ( - + ( + - ( 29 ) ) ) ELSE - 0 END + 94
----
206752

query I rowsort
SELECT - 16 - + + 91 * 97 AS col2
----
-8843

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT - 79 DIV 44 + + + 90 col1
----
89

skipif mysql # not compatible
query I rowsort label-5
SELECT - 79 / 44 + + + 90 col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6
SELECT - 3 * 34 * - COALESCE ( - 99, + CAST( + 25 AS SIGNED ) + 88, + - 97 )
----
-10098

skipif mysql # not compatible
query I rowsort label-6
SELECT - 3 * 34 * - COALESCE ( - 99, + CAST ( + 25 AS INTEGER ) + 88, + - 97 )
----
-10098

query I rowsort
SELECT NULLIF ( 98, 74 )
----
98

query I rowsort
SELECT ALL + CASE + 38 WHEN - ( + 8 ) THEN + 6 ELSE + - 63 END
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT 26 * COALESCE ( + 1, + COUNT( * ) + - + ( + 29 ) ) * + 14 + - 64 + - SUM( + 40 ) + 39
----
299

skipif mysql # not compatible
query I rowsort label-9
SELECT 26 * COALESCE ( + 1, + COUNT ( * ) + - + ( + 29 ) ) * + 14 + - 64 + - SUM ( + 40 ) + 39
----
299

query I rowsort
SELECT ALL - COALESCE ( - 50, 12 ) * + 32 * - 52 + ( - + 34 )
----
-83234

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT + SUM( + - ( - 79 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-13
SELECT + SUM ( + - ( - 79 ) ) AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT - 72 DIV + 5
----
-14

skipif mysql # not compatible
query I rowsort label-14
SELECT - 72 / + 5
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-15
SELECT DISTINCT + MAX( DISTINCT - + 68 ) AS col0, - MIN( - 50 ) AS col0
----
-68
50

skipif mysql # not compatible
query II rowsort label-15
SELECT DISTINCT + MAX ( DISTINCT - + 68 ) AS col0, - MIN ( - 50 ) AS col0
----
-68
50

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT ALL + ( 99 ) * + ( ( - 93 ) ) * + 36 * + 82 * + - COUNT( + - 32 ) - + ( + 21 ) + - 96 + - 7 AS col2
----
27178940

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL + ( 99 ) * + ( ( - 93 ) ) * + 36 * + 82 * + - COUNT ( + - 32 ) - + ( + 21 ) + - 96 + - 7 AS col2
----
27178940

query I rowsort
SELECT DISTINCT NULLIF ( + 10, - 87 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT + 14 * - 60 + - COUNT( * ) + + COALESCE ( - 75, + 7, ( + 35 ) )
----
-916

skipif mysql # not compatible
query I rowsort label-18
SELECT + 14 * - 60 + - COUNT ( * ) + + COALESCE ( - 75, + 7, ( + 35 ) )
----
-916

query I rowsort
SELECT - NULLIF ( - - 84, 86 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT - - 71 + + 60 DIV 10
----
77

skipif mysql # not compatible
query I rowsort label-20
SELECT - - 71 + + 60 / 10
----
77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-22
SELECT ALL CASE + - 88 WHEN - COALESCE ( - CAST( - 37 AS SIGNED ), + 62 ) - + COUNT( * ) DIV 56 THEN - 58 WHEN 41 THEN NULL END, 82 DIV 81 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-22
SELECT ALL CASE + - 88 WHEN - COALESCE ( - CAST ( - 37 AS INTEGER ), + 62 ) - + COUNT ( * ) / 56 THEN - 58 WHEN 41 THEN NULL END, 82 / 81 AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT - ( + COUNT( * ) ) + + + 19 - + 0 * - - COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-23
SELECT - ( + COUNT ( * ) ) + + + 19 - + 0 * - - COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-24
SELECT + 45 - COUNT( * ) DIV + 79 * - + 28 * + - 70
----
45

skipif mysql # not compatible
query I rowsort label-24
SELECT + 45 - COUNT ( * ) / + 79 * - + 28 * + - 70
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT + - 32 * MIN( + 64 ) + - 11 + - + 90 AS col2
----
-2149

skipif mysql # not compatible
query I rowsort label-25
SELECT + - 32 * MIN ( + 64 ) + - 11 + - + 90 AS col2
----
-2149

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT - 89 + - COUNT( * ) + - COUNT( * ) + + ( MAX( - 23 ) ) * - 97
----
2140

skipif mysql # not compatible
query I rowsort label-26
SELECT - 89 + - COUNT ( * ) + - COUNT ( * ) + + ( MAX ( - 23 ) ) * - 97
----
2140

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

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

query I rowsort
SELECT DISTINCT + 82 * + - 46 AS col1
----
-3772

query I rowsort
SELECT + 16 * - 64 AS col2
----
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT + - MAX( ALL + 43 ) + 55 * + 0 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-30
SELECT + - MAX ( ALL + 43 ) + 55 * + 0 AS col2
----
-43

query II rowsort
SELECT + + 5 + + 60 AS col0, 22 + 70
----
65
92

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - + SUM( ALL 14 ) / - NULLIF ( + + 54, + 51 * + 84 * 60 * 14 * - COALESCE ( + 47, + 7 ) ) / - + CASE + 81 WHEN - COUNT( * ) + 30 + + + CASE 73 WHEN + NULLIF ( + 65, + 12 ) THEN + CASE + 70 WHEN + ( 2 ) * + 77 THEN 62 / 32 WHEN 87 THEN NULL ELSE - COUNT( * ) END * 52 END THEN 60 - 8 WHEN ( 7 ) * 92 THEN + 93 / + AVG ( 8 ) + 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT - + SUM ( ALL 14 ) / - NULLIF ( + + 54, + 51 * + 84 * 60 * 14 * - COALESCE ( + 47, + 7 ) ) / - + CASE + 81 WHEN - COUNT ( * ) + 30 + + + CASE 73 WHEN + NULLIF ( + 65, + 12 ) THEN + CASE + 70 WHEN + ( 2 ) * + 77 THEN 62 / 32 WHEN 87 THEN NULL ELSE - COUNT ( * ) END * 52 END THEN 60 - 8 WHEN ( 7 ) * 92 THEN + 93 / + AVG ( 8 ) + 78 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT ALL 98 DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL 98 / 62 AS col1
----
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-36
SELECT ALL + 54 DIV + 86 * - - 34 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL + 54 / + 86 * - - 34 + + COUNT ( * )
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-38
SELECT ALL NULLIF ( + + 73, + 85 + 94 + - AVG ( DISTINCT - 43 ) * 89 DIV - ( - - 1 ) + + COUNT( * ) * - COUNT( * ) + - - MAX( + 96 ) + + 57 + + - 26 ) DIV - 42 + - 70 * - 98, 6 * 45 AS col1
----
6859
270

skipif mysql # not compatible
query II rowsort label-38
SELECT ALL NULLIF ( + + 73, + 85 + 94 + - AVG ( DISTINCT - 43 ) * 89 / - ( - - 1 ) + + COUNT ( * ) * - COUNT ( * ) + - - MAX ( + 96 ) + + 57 + + - 26 ) / - 42 + - 70 * - 98, 6 * 45 AS col1
----
6859
270

query I rowsort
SELECT ALL 62 * - 1
----
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-40
SELECT DISTINCT + 21 DIV - 64 + 84 * + 10 - - + 7 AS col0, - CAST( + 29 AS SIGNED ) + - + 66
----
847
-95

skipif mysql # not compatible
query II rowsort label-40
SELECT DISTINCT + 21 / - 64 + 84 * + 10 - - + 7 AS col0, - CAST ( + 29 AS INTEGER ) + - + 66
----
847
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-41
SELECT 58 DIV - 26 - - 13 AS col2, - 87
----
11
-87

skipif mysql # not compatible
query II rowsort label-41
SELECT 58 / - 26 - - 13 AS col2, - 87
----
11
-87

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

skipif mysql # not compatible
query I rowsort label-42
SELECT + COUNT ( DISTINCT + 4 ) * - - 89 AS col2
----
89

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

query I rowsort
SELECT ALL + 11 * 8 * + 63 + + 8 + - 94 * - 24 AS col1
----
7808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-45
SELECT ALL 42 * + 93 / + - CASE - 64 WHEN - 51 * 46 * - 35 * + - 57 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 11 END - + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL 42 * + 93 / + - CASE - 64 WHEN - 51 * 46 * - 35 * + - 57 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 11 END - + 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-46
SELECT - COUNT( * ) - - + 92 * 21 AS col2, + COUNT( ALL 40 ) AS col2
----
1931
1

skipif mysql # not compatible
query II rowsort label-46
SELECT - COUNT ( * ) - - + 92 * 21 AS col2, + COUNT ( ALL 40 ) AS col2
----
1931
1

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT CASE 20 WHEN - MAX( DISTINCT - ( + - 23 ) ) * - 21 * + 28 THEN - - 34 WHEN - - 15 - + + 53 THEN - - 1 + - 6 * 82 * + 2 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT CASE 20 WHEN - MAX ( DISTINCT - ( + - 23 ) ) * - 21 * + 28 THEN - - 34 WHEN - - 15 - + + 53 THEN - - 1 + - 6 * 82 * + 2 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-48
SELECT + CASE - CASE 74 WHEN + 98 THEN - CAST( NULL AS SIGNED ) ELSE NULL END WHEN 76 + - AVG ( + 96 ) THEN NULL WHEN + + 66 THEN + 39 * 23 * 32 WHEN - COUNT( * ) THEN NULL ELSE NULL END * - ( 65 ) + + 86 + + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT + CASE - CASE 74 WHEN + 98 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END WHEN 76 + - AVG ( + 96 ) THEN NULL WHEN + + 66 THEN + 39 * 23 * 32 WHEN - COUNT ( * ) THEN NULL ELSE NULL END * - ( 65 ) + + 86 + + - 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-49
SELECT - 19 DIV 42 DIV - 67 AS col1, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-49
SELECT - 19 / 42 / - 67 AS col1, COUNT ( * )
----
0
1

query I rowsort
SELECT + + 16 * - - 65
----
1040

query I rowsort
SELECT - + 11 * + + 50 AS col0
----
-550

query I rowsort
SELECT ALL - + 55 * + 17 * - 64 + + 62
----
59902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-53
SELECT DISTINCT - 72 * ( + 71 ) + + + 29 - + + 11 DIV + 20 + + + COUNT( * ) AS col0
----
-5082

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT - 72 * ( + 71 ) + + + 29 - + + 11 / + 20 + + + COUNT ( * ) AS col0
----
-5082

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT - 34 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-54
SELECT - 34 / + 94 AS col0
----
0

query I rowsort
SELECT ALL - + 80 * + - 41
----
3280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-56
SELECT SUM( DISTINCT - 39 ) * - 57 + - COUNT( * ) - - - 10 AS col0, COALESCE ( 48, + + 41 ) DIV 48 * - - 62 + - + 94 AS col0
----
2212
-32

skipif mysql # not compatible
query II rowsort label-56
SELECT SUM ( DISTINCT - 39 ) * - 57 + - COUNT ( * ) - - - 10 AS col0, COALESCE ( 48, + + 41 ) / 48 * - - 62 + - + 94 AS col0
----
2212
-32

query I rowsort
SELECT ALL - 45 * + - 71 AS col1
----
3195

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL + + MIN( - ( COALESCE ( - + 29, - ( + - 42 ), - - 93 + - 82 + + ( + 83 ) ) ) ) * + - 26 * + + 58
----
-43732

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL + + MIN ( - ( COALESCE ( - + 29, - ( + - 42 ), - - 93 + - 82 + + ( + 83 ) ) ) ) * + - 26 * + + 58
----
-43732

query I rowsort
SELECT DISTINCT - - 13 * + 81 AS col0
----
1053

onlyif mysql # aggregate syntax: 
query II rowsort label-60
SELECT DISTINCT + - COUNT( - 9 ) * 76, 94 AS col2
----
-76
94

skipif mysql # not compatible
query II rowsort label-60
SELECT DISTINCT + - COUNT ( - 9 ) * 76, 94 AS col2
----
-76
94

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-63
SELECT + 53 * 31 DIV - 52 - + 66 + - + COALESCE ( + 18, - COUNT( * ) ) * - - 27 AS col2
----
-583

skipif mysql # not compatible
query I rowsort label-63
SELECT + 53 * 31 / - 52 - + 66 + - + COALESCE ( + 18, - COUNT ( * ) ) * - - 27 AS col2
----
-583

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

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

query I rowsort
SELECT DISTINCT - 38 * + ( + 90 ) AS col0
----
-3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-66
SELECT DISTINCT - 27 + + - COUNT( * ) * + - 22 AS col2, COUNT( * ) + 9 - - CAST( NULL AS SIGNED )
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-66
SELECT DISTINCT - 27 + + - COUNT ( * ) * + - 22 AS col2, COUNT ( * ) + 9 - - CAST ( NULL AS INTEGER )
----
-5
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL 74 + + COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT COALESCE ( + 36, ( - + 89 ), + + 34 - + COUNT( * ) + + 44 + 47 ) - - - 49 * + 11 AS col1
----
-503

skipif mysql # not compatible
query I rowsort label-70
SELECT COALESCE ( + 36, ( - + 89 ), + + 34 - + COUNT ( * ) + + 44 + 47 ) - - - 49 * + 11 AS col1
----
-503

query I rowsort
SELECT ALL 21 * 99 AS col1
----
2079

query I rowsort
SELECT 13 + - + 8
----
5

query I rowsort
SELECT 49 * - 77
----
-3773

query II rowsort
SELECT + 26 AS col0, - 74 col0
----
26
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-75
SELECT 80 AS col2, + 53 DIV - + 43
----
80
-1

skipif mysql # not compatible
query II rowsort label-75
SELECT 80 AS col2, + 53 / - + 43
----
80
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-76
SELECT - 20 * + 62 + - 53 - 30 * + CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) * - 43 THEN NULL WHEN AVG ( - 54 ) THEN - 89 END col1, 87 * 7 * + 54 - - 9 + 57 * CAST( - 35 AS SIGNED ) * 60 col1, + COUNT( * ) AS col2
----
NULL
-86805
1

skipif mysql # not compatible
query III rowsort label-76
SELECT - 20 * + 62 + - 53 - 30 * + CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * - 43 THEN NULL WHEN AVG ( - 54 ) THEN - 89 END col1, 87 * 7 * + 54 - - 9 + 57 * CAST ( - 35 AS INTEGER ) * 60 col1, + COUNT ( * ) AS col2
----
NULL
-86805
1

onlyif mysql # DIV for integer division: 
query II rowsort label-77
SELECT 88, - 33 DIV + + 9 AS col1
----
88
-3

skipif mysql # not compatible
query II rowsort label-77
SELECT 88, - 33 / + + 9 AS col1
----
88
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT ALL 8 DIV + ( - 81 ) * ( - 44 ) + 91 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL 8 / + ( - 81 ) * ( - 44 ) + 91 AS col1
----
91

query II rowsort
SELECT ALL - 13 AS col2, + 88 * - - 60
----
-13
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ( - + 82 ) + - COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-80
SELECT ( - + 82 ) + - COUNT ( * ) AS col1
----
-83

query I rowsort
SELECT DISTINCT 43 * - - ( + 40 )
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT MIN( 85 ) + + 37 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-82
SELECT MIN ( 85 ) + + 37 AS col2
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT ALL AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) / COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 61 - - 90 * 24 * 69 AS col0
----
149101

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT SUM( 40 ) * 14 * - 64 AS col0
----
-35840

skipif mysql # not compatible
query I rowsort label-85
SELECT SUM ( 40 ) * 14 * - 64 AS col0
----
-35840

onlyif mysql # DIV for integer division: 
query I rowsort label-86
SELECT ALL 72 DIV + 36 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL 72 / + 36 AS col1
----
2

query II rowsort
SELECT + 2, - 75 AS col2
----
2
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT MAX( COALESCE ( 40, - 58 ) ) DIV + + 68 + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-88
SELECT MAX ( COALESCE ( 40, - 58 ) ) / + + 68 + - 69
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT 93 + 94 - 49 DIV - 33 - - 50 * + 47 + + 77 AS col0
----
2615

skipif mysql # not compatible
query I rowsort label-89
SELECT 93 + 94 - 49 / - 33 - - 50 * + 47 + + 77 AS col0
----
2615

query I rowsort
SELECT 64 * 15 * + + 34
----
32640

query II rowsort
SELECT 99 * 92 AS col2, ( + 86 ) AS col1
----
9108
86

query II rowsort
SELECT + 44 + + 38, 11 AS col1
----
82
11

query II rowsort
SELECT + - 36, 66 AS col2
----
-36
66

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT ALL - 23 AS col0, + 30 * - - COUNT( * ) * - + 40 AS col1
----
-23
-1200

skipif mysql # not compatible
query II rowsort label-94
SELECT ALL - 23 AS col0, + 30 * - - COUNT ( * ) * - + 40 AS col1
----
-23
-1200

query II rowsort
SELECT DISTINCT - - 92, + 27 AS col2
----
92
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-96
SELECT ALL 32 * 25 DIV + COUNT( * ) + + 95
----
895

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL 32 * 25 / + COUNT ( * ) + + 95
----
895

onlyif mysql # aggregate syntax: 
query II rowsort label-97
SELECT + COALESCE ( ( 93 ), 51 ) AS col0, SUM( ALL ( + 72 ) )
----
93
72

skipif mysql # not compatible
query II rowsort label-97
SELECT + COALESCE ( ( 93 ), 51 ) AS col0, SUM ( ALL ( + 72 ) )
----
93
72

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT ALL - COALESCE ( - - CASE + 24 WHEN - COUNT( * ) THEN - 36 END, - 43, 87 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL - COALESCE ( - - CASE + 24 WHEN - COUNT ( * ) THEN - 36 END, - 43, 87 ) AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT - CAST( - 62 AS SIGNED ) + 43
----
105

skipif mysql # not compatible
query I rowsort label-99
SELECT - CAST ( - 62 AS INTEGER ) + 43
----
105

query II rowsort
SELECT - 97, 48 AS col1
----
-97
48

onlyif mysql # aggregate syntax: 
query II rowsort label-101
SELECT - 70, 72 + + 68 * - - COUNT( * ) AS col1
----
-70
140

skipif mysql # not compatible
query II rowsort label-101
SELECT - 70, 72 + + 68 * - - COUNT ( * ) AS col1
----
-70
140

query I rowsort
SELECT - 60 + - ( - 43 )
----
-17

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

query I rowsort
SELECT + 74 + - + 37 * - 1
----
111

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

skipif mysql # not compatible
query I rowsort label-105
SELECT + COUNT ( * ) - - ( - 42 ) AS col0
----
-41

query I rowsort
SELECT DISTINCT + 39 + + 80 * - + 49 AS col2
----
-3881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-107
SELECT DISTINCT - + 22 + - CASE + 97 WHEN COUNT( * ) * - + 2 * + + 78 THEN NULL WHEN - CAST( NULL AS SIGNED ) * + + NULLIF ( - MIN( DISTINCT 3 ), - COUNT( DISTINCT - 40 ) ) + CAST( NULL AS SIGNED ) THEN + 16 DIV - + 63 + + 88 * + 27 + + 89 ELSE + 63 * - ( + 14 ) * - - 3 * + 66 + 83 * - 4 END * + - 60 - 41 AS col0
----
-10498143

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT - + 22 + - CASE + 97 WHEN COUNT ( * ) * - + 2 * + + 78 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * + + NULLIF ( - MIN ( DISTINCT 3 ), - COUNT ( DISTINCT - 40 ) ) + CAST ( NULL AS INTEGER ) THEN + 16 / - + 63 + + 88 * + 27 + + 89 ELSE + 63 * - ( + 14 ) * - - 3 * + 66 + 83 * - 4 END * + - 60 - 41 AS col0
----
-10498143

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - COUNT( * ) + + 47 - + 38 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-109
SELECT - COUNT ( * ) + + 47 - + 38 AS col0
----
8

query I rowsort
SELECT DISTINCT + + 43 * 90 + + 38 AS col1
----
3908

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

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

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

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

query I rowsort
SELECT 49 + - 61
----
-12

query I rowsort
SELECT 20 * + 78
----
1560

query I rowsort
SELECT 58 + - 46 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-116
SELECT ALL - 31 + + CASE + COALESCE ( - COUNT( * ), 2 * 86 + 37 + - - 6 - 7 * + 33, + 33 * 72 - 37 * 37 ) WHEN - 13 - - CASE 27 WHEN - AVG ( DISTINCT + 33 ) * + 56 * - ( 23 ) * + 44 + + - COUNT( * ) + + 82 THEN - + CAST( 47 AS SIGNED ) + - ( 97 + + 19 ) * + 17 WHEN + 57 THEN + 87 WHEN 80 THEN - 78 * 46 + + 1 ELSE - ( 60 ) + 95 END THEN COUNT( * ) WHEN COUNT( * ) * 91 + + CAST( NULL AS SIGNED ) * + CASE + 76 * - 56 WHEN COUNT( - 57 ) * - 21 THEN + COUNT( * ) * - SUM( + 56 ) END THEN 40 / COUNT( * ) - + 47 WHEN + 23 * 97 + 14 * - 55 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - 31 + + CASE + COALESCE ( - COUNT ( * ), 2 * 86 + 37 + - - 6 - 7 * + 33, + 33 * 72 - 37 * 37 ) WHEN - 13 - - CASE 27 WHEN - AVG ( DISTINCT + 33 ) * + 56 * - ( 23 ) * + 44 + + - COUNT ( * ) + + 82 THEN - + CAST ( 47 AS INTEGER ) + - ( 97 + + 19 ) * + 17 WHEN + 57 THEN + 87 WHEN 80 THEN - 78 * 46 + + 1 ELSE - ( 60 ) + 95 END THEN COUNT ( * ) WHEN COUNT ( * ) * 91 + + CAST ( NULL AS INTEGER ) * + CASE + 76 * - 56 WHEN COUNT ( - 57 ) * - 21 THEN + COUNT ( * ) * - SUM ( + 56 ) END THEN 40 / COUNT ( * ) - + 47 WHEN + 23 * 97 + 14 * - 55 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 29 * - 6 * - - 23 AS col2
----
-4002

query I rowsort
SELECT ALL 67 * 92 AS col0
----
6164

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT DISTINCT 2 * - 73 * + + MAX( - ( 50 ) ) * 78 AS col0
----
569400

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT 2 * - 73 * + + MAX ( - ( 50 ) ) * 78 AS col0
----
569400

query I rowsort
SELECT ALL 91 * - 48 * - 31 - - - 43 + + - COALESCE ( - - 71, - - 14 ) * - 20 * + 22 * - + 58 AS col2
----
-1676555

query I rowsort
SELECT DISTINCT 20 * + + 81 * + 70
----
113400

query I rowsort
SELECT ALL - 4 * + 78 AS col0
----
-312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-123
SELECT MIN( ALL + - 11 ) col1, CAST( + - 17 AS SIGNED ) AS col2
----
-11
-17

skipif mysql # not compatible
query II rowsort label-123
SELECT MIN ( ALL + - 11 ) col1, CAST ( + - 17 AS INTEGER ) AS col2
----
-11
-17

query I rowsort
SELECT 45 * + 98 * - 38 * + 71
----
-11898180

query I rowsort
SELECT DISTINCT - 86 * - - 79 AS col0
----
-6794

onlyif mysql # aggregate syntax: 
query II rowsort label-126
SELECT + COUNT( ALL + 72 ), - 14 AS col2
----
1
-14

skipif mysql # not compatible
query II rowsort label-126
SELECT + COUNT ( ALL + 72 ), - 14 AS col2
----
1
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-127
SELECT + NULLIF ( + 85, - - CAST( NULL AS SIGNED ) + + 0 )
----
85

skipif mysql # not compatible
query I rowsort label-127
SELECT + NULLIF ( + 85, - - CAST ( NULL AS INTEGER ) + + 0 )
----
85

query I rowsort
SELECT + - 50 * - 91 AS col2
----
4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT DISTINCT CASE - COUNT( - 99 ) WHEN + + 80 + - 37 THEN MIN( DISTINCT + 56 ) + + ( COUNT( * ) ) END * + COUNT( * ) + + + 33 + - - AVG ( DISTINCT - 25 ) + - 30 + MAX( CAST( - ( - 43 ) AS SIGNED ) ) + 10 * + - 95 + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT CASE - COUNT ( - 99 ) WHEN + + 80 + - 37 THEN MIN ( DISTINCT + 56 ) + + ( COUNT ( * ) ) END * + COUNT ( * ) + + + 33 + - - AVG ( DISTINCT - 25 ) + - 30 + MAX ( CAST ( - ( - 43 ) AS INTEGER ) ) + 10 * + - 95 + + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-130
SELECT ALL + + CAST( - 31 AS SIGNED ), + 16 col1
----
-31
16

skipif mysql # not compatible
query II rowsort label-130
SELECT ALL + + CAST ( - 31 AS INTEGER ), + 16 col1
----
-31
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-131
SELECT DISTINCT - 6 * - - COUNT( * ) DIV + SUM( ALL - 58 ) * + - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT - 6 * - - COUNT ( * ) / + SUM ( ALL - 58 ) * + - 97 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-132
SELECT + 91 / - + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) * 1 * - 24
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-132
SELECT + 91 / - + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * 1 * - 24
----
NULL
-24

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

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

query II rowsort
SELECT + - 93 * 77, 51 + 53 AS col2
----
-7161
104

onlyif mysql # aggregate syntax: 
query II rowsort label-135
SELECT + - 65 * + 97 * + ( + 26 ) + - - 72, COUNT( * ) AS col1
----
-163858
1

skipif mysql # not compatible
query II rowsort label-135
SELECT + - 65 * + 97 * + ( + 26 ) + - - 72, COUNT ( * ) AS col1
----
-163858
1

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

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL + COUNT ( * ) + + - 67 AS col1
----
-66

query I rowsort
SELECT - - 1 + - ( - 57 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-138
SELECT DISTINCT 50 * 42 + - CAST( + 4 AS SIGNED )
----
2096

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT 50 * 42 + - CAST ( + 4 AS INTEGER )
----
2096

query I rowsort
SELECT ALL - 46 + - 84 + - 97 * 65 * + + 64 + - + 32 * 37
----
-404834

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT ALL + 88 + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL + 88 + + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT DISTINCT + MAX( + COALESCE ( - NULLIF ( + ( - + 74 ), + + 97 ), 1 + 37, - + 42 ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT + MAX ( + COALESCE ( - NULLIF ( + ( - + 74 ), + + 97 ), 1 + 37, - + 42 ) ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT - 12 + + - 28 + + 61 + COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-142
SELECT - 12 + + - 28 + + 61 + COUNT ( * ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-143
SELECT - COALESCE ( + + COUNT( * ), + COUNT( * ), - - CAST( NULL AS SIGNED ) + - 97 * - COUNT( * ) DIV + + NULLIF ( - 37, - - 2 + 86 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-143
SELECT - COALESCE ( + + COUNT ( * ), + COUNT ( * ), - - CAST ( NULL AS INTEGER ) + - 97 * - COUNT ( * ) / + + NULLIF ( - 37, - - 2 + 86 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT - CASE 4 WHEN 1 * + COUNT( * ) THEN + 42 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-144
SELECT - CASE 4 WHEN 1 * + COUNT ( * ) THEN + 42 END AS col2
----
NULL

query II rowsort
SELECT 19 AS col1, - ( + 59 )
----
19
-59

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

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

query I rowsort
SELECT ALL NULLIF ( 22, - 77 ) AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-148
SELECT + 97 + - - SUM( - - 61 ) DIV - - COALESCE ( - 43, + COUNT( * ), - 36 ) + - 13 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-148
SELECT + 97 + - - SUM ( - - 61 ) / - - COALESCE ( - 43, + COUNT ( * ), - 36 ) + - 13 AS col1
----
83

query I rowsort
SELECT DISTINCT NULLIF ( - 59, 24 / - + AVG ( DISTINCT 98 ) - - 40 * - - 58 )
----
-59

query I rowsort
SELECT ALL + 63 - + 79
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-151
SELECT - CASE + - 84 WHEN 82 * + 24 THEN NULL ELSE COUNT( * ) / SUM( CAST( NULL AS SIGNED ) ) - + 21 END * COUNT( * ) * - 76 * - + ( + 7 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-151
SELECT - CASE + - 84 WHEN 82 * + 24 THEN NULL ELSE COUNT ( * ) / SUM ( CAST ( NULL AS INTEGER ) ) - + 21 END * COUNT ( * ) * - 76 * - + ( + 7 ) col0
----
NULL

query I rowsort
SELECT - 67 - + 27
----
-94

query I rowsort
SELECT DISTINCT - 18 * - 63
----
1134

query I rowsort
SELECT - 14 + + + 2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-155
SELECT 36 DIV + 13 + + 49 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-155
SELECT 36 / + 13 + + 49 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT - 31 * + - MAX( DISTINCT ( + + 55 ) ) col2
----
1705

skipif mysql # not compatible
query I rowsort label-156
SELECT - 31 * + - MAX ( DISTINCT ( + + 55 ) ) col2
----
1705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-157
SELECT - CASE + 98 WHEN COUNT( * ) * - 49 * - - CAST( NULL AS SIGNED ) * + COUNT( * ) * - 60 THEN - - 17 WHEN - CASE + - 4 WHEN - 66 THEN + - ( + 30 ) END + - CAST( + 58 AS DECIMAL ) + + - 79 THEN + + 78 * + ( 78 ) * - + 11 WHEN 38 + - 59 * - 17 * COALESCE ( - 68, + CASE MIN( - - 90 ) WHEN 71 * + 55 + - 32 * + CASE - 2 WHEN 73 * - NULLIF ( - 55 * 44, - 11 ) THEN NULL WHEN COUNT( * ) THEN 92 ELSE + 89 END THEN NULL WHEN - 98 * - COUNT( * ) THEN NULL WHEN - ( 48 ) THEN 97 WHEN COALESCE ( ( COUNT( * ) ), - COUNT( * ) ) THEN 74 ELSE + 83 * 17 END ) * 10 + - 88 * - COALESCE ( 15 + + 83, - 95 ) THEN NULL END / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-157
SELECT - CASE + 98 WHEN COUNT ( * ) * - 49 * - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 60 THEN - - 17 WHEN - CASE + - 4 WHEN - 66 THEN + - ( + 30 ) END + - CAST ( + 58 AS REAL ) + + - 79 THEN + + 78 * + ( 78 ) * - + 11 WHEN 38 + - 59 * - 17 * COALESCE ( - 68, + CASE MIN ( - - 90 ) WHEN 71 * + 55 + - 32 * + CASE - 2 WHEN 73 * - NULLIF ( - 55 * 44, - 11 ) THEN NULL WHEN COUNT ( * ) THEN 92 ELSE + 89 END THEN NULL WHEN - 98 * - COUNT ( * ) THEN NULL WHEN - ( 48 ) THEN 97 WHEN COALESCE ( ( COUNT ( * ) ), - COUNT ( * ) ) THEN 74 ELSE + 83 * 17 END ) * 10 + - 88 * - COALESCE ( 15 + + 83, - 95 ) THEN NULL END / 90
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT - NULLIF ( + 89, 9 ) * - MAX( 71 ) AS col2
----
6319

skipif mysql # not compatible
query I rowsort label-159
SELECT - NULLIF ( + 89, 9 ) * - MAX ( 71 ) AS col2
----
6319

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

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

query I rowsort
SELECT ALL 83 * + 70
----
5810

onlyif mysql # aggregate syntax: 
query II rowsort label-162
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) + - COUNT( * ) + 80 + MIN( ALL 11 ) * - + ( 76 ), 96 * + COUNT( * ) + - COUNT( * ) * 87 AS col2
----
-758
9

skipif mysql # not compatible
query II rowsort label-162
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) + - COUNT ( * ) + 80 + MIN ( ALL 11 ) * - + ( 76 ), 96 * + COUNT ( * ) + - COUNT ( * ) * 87 AS col2
----
-758
9

query II rowsort
SELECT DISTINCT + 93 AS col0, 29
----
93
29

query II rowsort
SELECT ALL + + 72, 61 AS col0
----
72
61

query I rowsort
SELECT DISTINCT + + 18 * + ( 32 ) + - 68
----
508

query I rowsort
SELECT ALL 1 * 59 + + - ( + ( + 12 ) )
----
47

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ALL - 74 * + + 2 * + 25 * COUNT( * ) + + + 86 AS col2
----
-3614

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - 74 * + + 2 * + 25 * COUNT ( * ) + + + 86 AS col2
----
-3614

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + 83 * ( + 25 ) * + 51 + MAX( DISTINCT + - ( 45 ) ) + 68 + 57 * - 97 AS col2
----
100319

skipif mysql # not compatible
query I rowsort label-170
SELECT + 83 * ( + 25 ) * + 51 + MAX ( DISTINCT + - ( 45 ) ) + 68 + 57 * - 97 AS col2
----
100319

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT ALL - 1 * - 51 + + 89 DIV 90 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL - 1 * - 51 + + 89 / 90 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-172
SELECT + + 95 + + 76 * + - COALESCE ( + + 43, - 62, + 45 - - CAST( NULL AS SIGNED ) - 78 + - 42 ) + - - 24 + + 99 * + + 71
----
3880

skipif mysql # not compatible
query I rowsort label-172
SELECT + + 95 + + 76 * + - COALESCE ( + + 43, - 62, + 45 - - CAST ( NULL AS INTEGER ) - 78 + - 42 ) + - - 24 + + 99 * + + 71
----
3880

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-173
SELECT + - 20 + 74 * 97, + CASE + 97 WHEN - + CAST( 46 AS DECIMAL ) * - 32 - 91 + - AVG ( + - ( + - 35 ) ) * + + 23 THEN MAX( ALL + 97 ) END * 48 - 60 AS col2
----
7158
NULL

skipif mysql # not compatible
query II rowsort label-173
SELECT + - 20 + 74 * 97, + CASE + 97 WHEN - + CAST ( 46 AS REAL ) * - 32 - 91 + - AVG ( + - ( + - 35 ) ) * + + 23 THEN MAX ( ALL + 97 ) END * 48 - 60 AS col2
----
7158
NULL

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

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

query I rowsort
SELECT + 58 + - 68
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT SUM( DISTINCT - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-176
SELECT SUM ( DISTINCT - 76 )
----
-76

query I rowsort
SELECT ALL 92 * - 26
----
-2392

query I rowsort
SELECT + 98 + + 95 + - 73
----
120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL ( - - 96 ) * - + 92 * + COUNT( * )
----
-8832

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL ( - - 96 ) * - + 92 * + COUNT ( * )
----
-8832

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

skipif mysql # not compatible
query II rowsort label-181
SELECT DISTINCT ( + - COUNT ( * ) ), - 95 col0
----
-1
-95

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT + 44 + 53 * - MIN( DISTINCT + - 99 ) AS col0, NULLIF ( 19, - + COUNT( * ) + 30 * + - 41 )
----
5291
19

skipif mysql # not compatible
query II rowsort label-183
SELECT + 44 + 53 * - MIN ( DISTINCT + - 99 ) AS col0, NULLIF ( 19, - + COUNT ( * ) + 30 * + - 41 )
----
5291
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-184
SELECT 90 * 14 DIV - - COUNT( * ) AS col0
----
1260

skipif mysql # not compatible
query I rowsort label-184
SELECT 90 * 14 / - - COUNT ( * ) AS col0
----
1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-185
SELECT DISTINCT 43 DIV - + NULLIF ( + 3, + MAX( 84 ) + - 53 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT 43 / - + NULLIF ( + 3, + MAX ( 84 ) + - 53 ) AS col0
----
-14

query I rowsort
SELECT 2 * + + 40 * - 86
----
-6880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT ALL + COUNT( * ) * + - 52 * + COALESCE ( CAST( - - COUNT( * ) AS SIGNED ), + COUNT( * ) - + 60 + + 64 + 29 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL + COUNT ( * ) * + - 52 * + COALESCE ( CAST ( - - COUNT ( * ) AS INTEGER ), + COUNT ( * ) - + 60 + + 64 + 29 ) AS col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT 80 DIV 7
----
11

skipif mysql # not compatible
query I rowsort label-188
SELECT 80 / 7
----
11

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-190
SELECT 92 DIV 64 AS col1, - NULLIF ( + + 83, - 42 * 48 * + + 58 * + + 33 + + - 83 ) AS col2
----
1
-83

skipif mysql # not compatible
query II rowsort label-190
SELECT 92 / 64 AS col1, - NULLIF ( + + 83, - 42 * 48 * + + 58 * + + 33 + + - 83 ) AS col2
----
1
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-191
SELECT ALL 42 + + - 8, 23 * - + 2 DIV - - 63 AS col0
----
34
0

skipif mysql # not compatible
query II rowsort label-191
SELECT ALL 42 + + - 8, 23 * - + 2 / - - 63 AS col0
----
34
0

query I rowsort
SELECT DISTINCT - CASE - - 34 WHEN - 70 * + + 38 THEN + 12 / + + 47 WHEN - - 30 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 53 + - + 96 AS col0
----
-43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-195
SELECT - COUNT( ALL 42 ) AS col0, + 14 AS col0
----
-1
14

skipif mysql # not compatible
query II rowsort label-195
SELECT - COUNT ( ALL 42 ) AS col0, + 14 AS col0
----
-1
14

query I rowsort
SELECT ALL - 62 + 8 + - ( - + 71 ) AS col1
----
17

query I rowsort
SELECT + 4 * - - 60
----
240

query I rowsort
SELECT 90 - + + 9 AS col2
----
81

query I rowsort
SELECT ALL - ( + 41 ) + - 35
----
-76

query I rowsort
SELECT 36 - - + 92 AS col1
----
128

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

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

skipif mysql # not compatible
query I rowsort label-202
SELECT - CAST ( NULL AS INTEGER ) * 2 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-203
SELECT ALL + ( - 81 ) + - COALESCE ( - - 79, CAST( NULL AS SIGNED ) ) + + MIN( DISTINCT - - 6 ) - + 3
----
-157

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + ( - 81 ) + - COALESCE ( - - 79, CAST ( NULL AS INTEGER ) ) + + MIN ( DISTINCT - - 6 ) - + 3
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT 2 * - 55 + + COUNT( 46 )
----
-109

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT 2 * - 55 + + COUNT ( 46 )
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT DISTINCT + 77 * + MAX( DISTINCT + 22 ) AS col2
----
1694

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT + 77 * + MAX ( DISTINCT + 22 ) AS col2
----
1694

query I rowsort
SELECT ALL + 60 * + ( - 93 ) - + 18
----
-5598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-207
SELECT + COUNT( ALL + - ( 6 ) ) - + 26 + 41 DIV 80 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-207
SELECT + COUNT ( ALL + - ( 6 ) ) - + 26 + 41 / 80 AS col2
----
-25

query I rowsort
SELECT DISTINCT - 27 * ( 80 )
----
-2160

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

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

query II rowsort
SELECT ALL 65, 8 AS col1
----
65
8

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

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

query I rowsort
SELECT DISTINCT 79 * 96
----
7584

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT 48 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT 48 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 83 * ( + - 31 )
----
-2573

query I rowsort
SELECT 54 - - 54
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-217
SELECT COUNT( - 17 ) * - ( 8 ) + - - 10 + + COUNT( * ) * + + CASE + + 26 WHEN CAST( 89 AS SIGNED ) THEN - - ( - - 70 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-217
SELECT COUNT ( - 17 ) * - ( 8 ) + - - 10 + + COUNT ( * ) * + + CASE + + 26 WHEN CAST ( 89 AS INTEGER ) THEN - - ( - - 70 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ( - + ( + 49 ) ) * + COUNT( * ) col0
----
-49

skipif mysql # not compatible
query I rowsort label-218
SELECT ( - + ( + 49 ) ) * + COUNT ( * ) col0
----
-49

query I rowsort
SELECT ALL 2 * - + 9 AS col0
----
-18

query I rowsort
SELECT ALL 78 + - ( - 44 )
----
122

query I rowsort
SELECT 73 + 44 * - - 38
----
1745

query I rowsort
SELECT DISTINCT + 82 * 1 AS col1
----
82

query I rowsort
SELECT DISTINCT 8 + + 32 + + 60 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT DISTINCT 90 + + COUNT( * ) + 3 - + 70
----
24

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT 90 + + COUNT ( * ) + 3 - + 70
----
24

query I rowsort
SELECT DISTINCT 1 + + 65 - - 16 + - 31 AS col1
----
51

query I rowsort
SELECT DISTINCT 77 + 6 AS col0
----
83

query I rowsort
SELECT ALL 36 + + 4
----
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT 13 + + + 43 DIV + 49 * + 37 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-229
SELECT 13 + + + 43 / + 49 * + 37 AS col2
----
13

query I rowsort
SELECT ALL 32 + + 60 AS col2
----
92

query I rowsort
SELECT 11 * 34 + 89
----
463

query I rowsort
SELECT 2 * - 80 AS col2
----
-160

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

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

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

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

query I rowsort
SELECT 5 * + 42 AS col2
----
210

query I rowsort
SELECT - 18 * + 37 AS col0
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL - MIN( ALL 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL - MIN ( ALL 49 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-238
SELECT + COUNT( * ) + + 30 + + ( CAST( NULL AS SIGNED ) ) * - - 80 * + COALESCE ( + 75, - 36 * + - 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT + COUNT ( * ) + + 30 + + ( CAST ( NULL AS INTEGER ) ) * - - 80 * + COALESCE ( + 75, - 36 * + - 75 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-239
SELECT 54 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-239
SELECT 54 / 91
----
0

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

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

query I rowsort
SELECT 84 + 75
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT - 38 * + 4 * + + 25 + COALESCE ( 53, 30, 92 ) * + - 72 + - - ( 5 ) * 72 + + ( + 91 ) col0, - COUNT( * ) AS col2
----
-7165
-1

skipif mysql # not compatible
query II rowsort label-242
SELECT - 38 * + 4 * + + 25 + COALESCE ( 53, 30, 92 ) * + - 72 + - - ( 5 ) * 72 + + ( + 91 ) col0, - COUNT ( * ) AS col2
----
-7165
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT ALL - NULLIF ( + 21, - CAST( + - 85 AS SIGNED ) * + 63 )
----
-21

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - NULLIF ( + 21, - CAST ( + - 85 AS INTEGER ) * + 63 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-245
SELECT ALL CASE - SUM( ALL - + 59 ) WHEN CAST( NULL AS SIGNED ) + COUNT( * ) THEN 8 END col1, MIN( + 63 )
----
NULL
63

skipif mysql # not compatible
query II rowsort label-245
SELECT ALL CASE - SUM ( ALL - + 59 ) WHEN CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN 8 END col1, MIN ( + 63 )
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT 38 * MIN( DISTINCT - 8 ) col1
----
-304

skipif mysql # not compatible
query I rowsort label-246
SELECT 38 * MIN ( DISTINCT - 8 ) col1
----
-304

query II rowsort
SELECT 74 + 65 col1, 12
----
139
12

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

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL - 68 * 89 * - COUNT ( * ) AS col0
----
6052

query I rowsort
SELECT DISTINCT - 59 * + + 90
----
-5310

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT - COUNT( * ) + 77 * + 28
----
2155

skipif mysql # not compatible
query I rowsort label-250
SELECT - COUNT ( * ) + 77 * + 28
----
2155

query II rowsort
SELECT 16, + 40 AS col0
----
16
40

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

skipif mysql # not compatible
query I rowsort label-252
SELECT + 97 * - + COUNT ( - - 36 ) AS col1
----
-97

query I rowsort
SELECT ALL - 41 + + 90
----
49

query I rowsort
SELECT - 8 + - 94 AS col2
----
-102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-255
SELECT + COUNT( * ) - + 56 * - - 45 + - 2 + - CAST( NULL AS DECIMAL ) + - 1 * + 9 * - - 4 * + 5 * - + CASE + 86 WHEN 76 THEN - + 75 WHEN NULLIF ( + 18, - - 41 ) THEN + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT + COUNT ( * ) - + 56 * - - 45 + - 2 + - CAST ( NULL AS REAL ) + - 1 * + 9 * - - 4 * + 5 * - + CASE + 86 WHEN 76 THEN - + 75 WHEN NULLIF ( + 18, - - 41 ) THEN + 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT DISTINCT + 96 + - - MAX( DISTINCT - ( + 84 ) )
----
12

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT + 96 + - - MAX ( DISTINCT - ( + 84 ) )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-257
SELECT - 41 col0, - CASE + + 70 WHEN - 34 THEN NULL WHEN + 74 * - 76 THEN - 79 END + 46 / 89 * + - 89 * COUNT( ALL + 17 ) AS col2
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-257
SELECT - 41 col0, - CASE + + 70 WHEN - 34 THEN NULL WHEN + 74 * - 76 THEN - 79 END + 46 / 89 * + - 89 * COUNT ( ALL + 17 ) AS col2
----
-41
NULL

query II rowsort
SELECT 45 AS col0, + 37 - + - 19 col0
----
45
56

query I rowsort
SELECT ALL CASE - - 53 WHEN + 72 + 74 THEN + 13 END
----
NULL

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

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

query I rowsort
SELECT + 31 + - - 32
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-262
SELECT ALL + 6 + + ( 51 ) + + + 57 + - 45 - - 99 - + 52 * + CASE 55 WHEN + + AVG ( ALL 62 ) * - COUNT( * ) - + 18 - - 90 + - CAST( + COUNT( * ) AS DECIMAL ) THEN - + 29 - - + COUNT( * ) + - - 20 DIV + COUNT( * ) WHEN + ( + 27 ) THEN NULL WHEN 13 THEN + + 96 ELSE - 75 END AS col1
----
4068

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL + 6 + + ( 51 ) + + + 57 + - 45 - - 99 - + 52 * + CASE 55 WHEN + + AVG ( ALL 62 ) * - COUNT ( * ) - + 18 - - 90 + - CAST ( + COUNT ( * ) AS REAL ) THEN - + 29 - - + COUNT ( * ) + - - 20 / + COUNT ( * ) WHEN + ( + 27 ) THEN NULL WHEN 13 THEN + + 96 ELSE - 75 END AS col1
----
4068

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT - COUNT( * ) * - + 54 * - MAX( - 80 ) col2
----
4320

skipif mysql # not compatible
query I rowsort label-263
SELECT - COUNT ( * ) * - + 54 * - MAX ( - 80 ) col2
----
4320

onlyif mysql # aggregate syntax: 
query II rowsort label-264
SELECT - 7 AS col1, COALESCE ( - 84, ( + COUNT( * ) ) ) + - + 73 + - 25 * - - SUM( DISTINCT 27 ) AS col1
----
-7
-832

skipif mysql # not compatible
query II rowsort label-264
SELECT - 7 AS col1, COALESCE ( - 84, ( + COUNT ( * ) ) ) + - + 73 + - 25 * - - SUM ( DISTINCT 27 ) AS col1
----
-7
-832

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-265
SELECT DISTINCT 9 AS col2, - 67 * + - CAST( NULL AS SIGNED ) AS col2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-265
SELECT DISTINCT 9 AS col2, - 67 * + - CAST ( NULL AS INTEGER ) AS col2
----
9
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-266
SELECT - - 40 DIV - - MIN( ALL 78 ) + - + 13
----
-13

skipif mysql # not compatible
query I rowsort label-266
SELECT - - 40 / - - MIN ( ALL 78 ) + - + 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT ALL + 54 * - - COALESCE ( + 63, + MIN( DISTINCT + 10 ) ) col0
----
3402

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL + 54 * - - COALESCE ( + 63, + MIN ( DISTINCT + 10 ) ) col0
----
3402

query II rowsort
SELECT ( + - 18 ), + 53 col2
----
-18
53

query II rowsort
SELECT ALL + + 83 col1, 90 AS col1
----
83
90

query II rowsort
SELECT + - 51, - 45 + + 27 col1
----
-51
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-271
SELECT + CAST( NULL AS DECIMAL ) * - + NULLIF ( - 13, - + 20 * - 18 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT + CAST ( NULL AS REAL ) * - + NULLIF ( - 13, - + 20 * - 18 ) col1
----
NULL

query I rowsort
SELECT - + 4 * - 89 + 47
----
403

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL - 90 * + COUNT( * ) - + 99 + - + NULLIF ( - - 43, 69 * 10 * - 27 - - + COUNT( * ) ) AS col1
----
-232

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL - 90 * + COUNT ( * ) - + 99 + - + NULLIF ( - - 43, 69 * 10 * - 27 - - + COUNT ( * ) ) AS col1
----
-232

onlyif mysql # aggregate syntax: 
query III rowsort label-274
SELECT 41 AS col0, + 45 AS col2, - COALESCE ( - - 93, + MAX( - 92 ) ) + + COUNT( * ) * - 28
----
41
45
-121

skipif mysql # not compatible
query III rowsort label-274
SELECT 41 AS col0, + 45 AS col2, - COALESCE ( - - 93, + MAX ( - 92 ) ) + + COUNT ( * ) * - 28
----
41
45
-121

query II rowsort
SELECT 54 AS col0, 17 AS col1
----
54
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT DISTINCT + NULLIF ( 61, - + CAST( - 23 AS SIGNED ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT + NULLIF ( 61, - + CAST ( - 23 AS INTEGER ) ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT + 2 * + SUM( 10 )
----
20

skipif mysql # not compatible
query I rowsort label-277
SELECT + 2 * + SUM ( 10 )
----
20

query II rowsort
SELECT + + 64 - + 73, 91 AS col1
----
-9
91

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

query I rowsort
SELECT + - 89 - - 80
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-281
SELECT + - COUNT( 30 ) * - ( + + 73 ) * - COUNT( * ) + - MIN( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-281
SELECT + - COUNT ( 30 ) * - ( + + 73 ) * - COUNT ( * ) + - MIN ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT + - 45 AS col0, 5 - + - 21 * 11 AS col1
----
-45
236

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT ALL + - 91 AS col2, - 65 * - COUNT( DISTINCT 66 )
----
-91
65

skipif mysql # not compatible
query II rowsort label-283
SELECT ALL + - 91 AS col2, - 65 * - COUNT ( DISTINCT 66 )
----
-91
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-284
SELECT + 39 * 75 col2, 87 * CAST( NULL AS SIGNED )
----
2925
NULL

skipif mysql # not compatible
query II rowsort label-284
SELECT + 39 * 75 col2, 87 * CAST ( NULL AS INTEGER )
----
2925
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT - COALESCE ( + 68, - - COUNT( * ) ) * + + 49 AS col1
----
-3332

skipif mysql # not compatible
query I rowsort label-285
SELECT - COALESCE ( + 68, - - COUNT ( * ) ) * + + 49 AS col1
----
-3332

query I rowsort
SELECT - 3 - - - 35 + 37 * 41 AS col2
----
1479

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-287
SELECT + 15 * 76 AS col1, - SUM( + - CASE + CAST( NULL AS DECIMAL ) WHEN - 95 THEN + + 53 WHEN - 69 THEN NULL END ) * + 36 col2
----
1140
NULL

skipif mysql # not compatible
query II rowsort label-287
SELECT + 15 * 76 AS col1, - SUM ( + - CASE + CAST ( NULL AS REAL ) WHEN - 95 THEN + + 53 WHEN - 69 THEN NULL END ) * + 36 col2
----
1140
NULL

query I rowsort
SELECT + COALESCE ( - 87, 50 * - - 21 ) * 99 + - + 26 * - 61 col0
----
-7027

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

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

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

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

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL - COUNT ( * ) + 56 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - SUM( 15 ) * + + 26
----
-390

skipif mysql # not compatible
query I rowsort label-292
SELECT - SUM ( 15 ) * + + 26
----
-390

query I rowsort
SELECT DISTINCT - 37 + - + 44 * - - 45 AS col1
----
-2017

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-294
SELECT + ( 35 ) + + CAST( NULL AS DECIMAL ) + 67 - + + 71 * + COALESCE ( 58, COALESCE ( 46, 40 + - 81 ) + - 98, COUNT( * ) + + 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT + ( 35 ) + + CAST ( NULL AS REAL ) + 67 - + + 71 * + COALESCE ( 58, COALESCE ( 46, 40 + - 81 ) + - 98, COUNT ( * ) + + 17 ) AS col2
----
NULL

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

query I rowsort
SELECT ALL - 11 + + 95 * + 37 AS col2
----
3504

query I rowsort
SELECT - COALESCE ( + 34, - 0 ) + 94
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-298
SELECT ALL ( - COUNT( * ) ), NULLIF ( - COUNT( * ), 23 * + 56 * 13 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-298
SELECT ALL ( - COUNT ( * ) ), NULLIF ( - COUNT ( * ), 23 * + 56 * 13 )
----
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-299
SELECT - 95 + + - CASE - 45 WHEN COUNT( * ) * + COUNT( * ) THEN NULL WHEN - 93 * - + 47 + + - COUNT( * ) THEN + 94 END + + 31 col0, 85 AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-299
SELECT - 95 + + - CASE - 45 WHEN COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN - 93 * - + 47 + + - COUNT ( * ) THEN + 94 END + + 31 col0, 85 AS col0
----
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT DISTINCT NULLIF ( 11, + SUM( + 68 ) )
----
11

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT NULLIF ( 11, + SUM ( + 68 ) )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-301
SELECT ALL + 83 - + COUNT( * ) AS col1, + 12 + - 43 AS col1
----
82
-31

skipif mysql # not compatible
query II rowsort label-301
SELECT ALL + 83 - + COUNT ( * ) AS col1, + 12 + - 43 AS col1
----
82
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT - SUM( + 49 ) * + 83 * COUNT( DISTINCT - 17 ) - + 46 AS col2
----
-4113

skipif mysql # not compatible
query I rowsort label-302
SELECT - SUM ( + 49 ) * + 83 * COUNT ( DISTINCT - 17 ) - + 46 AS col2
----
-4113

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT DISTINCT + - COUNT( + 70 ) - 50
----
-51

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT + - COUNT ( + 70 ) - 50
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-304
SELECT - 11 * + 63 + - ( - CAST( NULL AS SIGNED ) ) + 86 + 55 * 83 AS col0, + 8 - - COUNT( * )
----
NULL
9

skipif mysql # not compatible
query II rowsort label-304
SELECT - 11 * + 63 + - ( - CAST ( NULL AS INTEGER ) ) + 86 + 55 * 83 AS col0, + 8 - - COUNT ( * )
----
NULL
9

query I rowsort
SELECT - 20 - - 68 + 95
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-306
SELECT - + COUNT( * ) * CAST( 2 AS SIGNED ) DIV - 71 * 87 + + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-306
SELECT - + COUNT ( * ) * CAST ( 2 AS INTEGER ) / - 71 * 87 + + 3 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT DISTINCT + 90 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT + 90 / - 47
----
-1

query I rowsort
SELECT 93 * + NULLIF ( - + ( 21 ), - 47 * + + 28 - 34 ) + 41 * + ( - ( - - 0 ) )
----
-1953

query I rowsort
SELECT ALL 39 * + 18
----
702

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

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

query II rowsort
SELECT + 83 * - ( - + ( + 3 ) ) + + - 53 col2, 47
----
196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT + NULLIF ( + 47, - 21 + - 19 / - CASE 76 WHEN + 10 THEN NULL WHEN + - 45 * - 10 - + - 61 THEN 38 + COUNT( * ) * - 57 * - 25 * - COUNT( * ) + + 45 ELSE NULL END ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-312
SELECT + NULLIF ( + 47, - 21 + - 19 / - CASE 76 WHEN + 10 THEN NULL WHEN + - 45 * - 10 - + - 61 THEN 38 + COUNT ( * ) * - 57 * - 25 * - COUNT ( * ) + + 45 ELSE NULL END ) AS col0
----
47

query I rowsort
SELECT 62 * + 41
----
2542

query II rowsort
SELECT 46 AS col0, 3 + 6 AS col1
----
46
9

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT CASE + - 77 WHEN - 62 + + + COUNT( * ) + ( - - 30 ) * CASE COUNT( ALL - 4 ) WHEN - 46 THEN + COUNT( * ) WHEN - 70 THEN 96 * + 64 + 30 + 40 + + 56 + - 58 + 6 END + - ( - 85 ) THEN 74 WHEN + 6 THEN NULL END * + - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT CASE + - 77 WHEN - 62 + + + COUNT ( * ) + ( - - 30 ) * CASE COUNT ( ALL - 4 ) WHEN - 46 THEN + COUNT ( * ) WHEN - 70 THEN 96 * + 64 + 30 + 40 + + 56 + - 58 + 6 END + - ( - 85 ) THEN 74 WHEN + 6 THEN NULL END * + - 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL 86 + + SUM( DISTINCT 54 ) * + 91
----
5000

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL 86 + + SUM ( DISTINCT 54 ) * + 91
----
5000

query II rowsort
SELECT 54, - 20 col2
----
54
-20

query I rowsort
SELECT 64 + + 79 + - + 38 + + 6
----
111

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

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

query I rowsort
SELECT ALL 91 + 26 AS col1
----
117

query II rowsort
SELECT + 26 AS col0, 39 + - 22
----
26
17

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

query I rowsort
SELECT 18 + - - 64
----
82

query II rowsort
SELECT ALL 93 AS col2, + COALESCE ( + + 33, + 86 )
----
93
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-325
SELECT CAST( ( NULLIF ( 98, 54 ) ) AS SIGNED ) DIV + 37 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-325
SELECT CAST ( ( NULLIF ( 98, 54 ) ) AS INTEGER ) / + 37 AS col2
----
2

query II rowsort
SELECT 78, 22 AS col1
----
78
22

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-328
SELECT ALL 4, - CAST( - 12 AS SIGNED ) col2
----
4
12

skipif mysql # not compatible
query II rowsort label-328
SELECT ALL 4, - CAST ( - 12 AS INTEGER ) col2
----
4
12

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT DISTINCT 56 - 21 + + 60 * - 53 * - 43 * 35 * COUNT( * ) AS col0
----
4785935

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT 56 - 21 + + 60 * - 53 * - 43 * 35 * COUNT ( * ) AS col0
----
4785935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-330
SELECT + COUNT( * ) + 9 + + + COUNT( * ) + - + ( + 16 ) DIV + NULLIF ( + 75, + 46 DIV + 20 )
----
11

skipif mysql # not compatible
query I rowsort label-330
SELECT + COUNT ( * ) + 9 + + + COUNT ( * ) + - + ( + 16 ) / + NULLIF ( + 75, + 46 / + 20 )
----
11

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

skipif mysql # not compatible
query II rowsort label-331
SELECT - COUNT ( * ), - CAST ( - + NULLIF ( + ( 95 ), COUNT ( * ) + - 38 ) AS INTEGER ) col1
----
-1
95

query I rowsort
SELECT ( + 29 ) * - 16
----
-464

query II rowsort
SELECT ALL 8 AS col0, + 26 + - + 26 AS col1
----
8
0

query II rowsort
SELECT - 30 AS col0, + 14 * - ( 49 ) + 63 AS col2
----
-30
-623

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT + COUNT( * ) * + ( - 35 ) * + + 62 AS col1
----
-2170

skipif mysql # not compatible
query I rowsort label-335
SELECT + COUNT ( * ) * + ( - 35 ) * + + 62 AS col1
----
-2170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-336
SELECT - 54 + + + CAST( NULL AS SIGNED ) + + - 37 AS col2, 34 AS col0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-336
SELECT - 54 + + + CAST ( NULL AS INTEGER ) + + - 37 AS col2, 34 AS col0
----
NULL
34

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

query II rowsort
SELECT ALL - 49 AS col1, 11
----
-49
11

onlyif mysql # aggregate syntax: 
query II rowsort label-339
SELECT DISTINCT - 8, COUNT( 40 ) AS col1
----
-8
1

skipif mysql # not compatible
query II rowsort label-339
SELECT DISTINCT - 8, COUNT ( 40 ) AS col1
----
-8
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT ALL - CASE 80 WHEN + 54 * - 90 / - 60 + COALESCE ( 82, ( + 44 ) * - 56 + CAST( + + COUNT( * ) AS SIGNED ) ) THEN + 11 * ( 97 ) WHEN - + 83 THEN NULL END + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL - CASE 80 WHEN + 54 * - 90 / - 60 + COALESCE ( 82, ( + 44 ) * - 56 + CAST ( + + COUNT ( * ) AS INTEGER ) ) THEN + 11 * ( 97 ) WHEN - + 83 THEN NULL END + + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT DISTINCT + + 73 + - + 2 AS col1
----
71

query I rowsort
SELECT + 47 * - 97
----
-4559

query I rowsort
SELECT ALL + + 60 + + - 41 col2
----
19

query I rowsort
SELECT 64 * 16 AS col0
----
1024

query I rowsort
SELECT ALL 80 * - 79 AS col1
----
-6320

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT + COUNT( * ) * - - 81 * - 84 + + 82
----
-6722

skipif mysql # not compatible
query I rowsort label-346
SELECT + COUNT ( * ) * - - 81 * - 84 + + 82
----
-6722

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ALL 32 + - 60 - - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL 32 + - 60 - - COUNT ( * )
----
-27

query I rowsort
SELECT ALL COALESCE ( - - COALESCE ( 93, - 92 + + 37 + ( ( - 8 ) ) ), 88, + 52 ) + - 0 AS col1
----
93

query I rowsort
SELECT - 62 * + 13 - ( - + 37 ) - 99
----
-868

query I rowsort
SELECT CASE + 10 WHEN 65 * 83 + - 99 + + + 38 * 87 THEN NULL WHEN + 73 THEN - + 20 WHEN - ( AVG ( ALL - - 82 ) ) * + - 97 THEN NULL ELSE 74 * + - 76 END * + - 76 AS col1
----
427424

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT DISTINCT ( - 36 ) * + 0 * - + 76 * - 26 * - 1 + + 56 + - 64 + + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT ( - 36 ) * + 0 * - + 76 * - 26 * - 1 + + 56 + - 64 + + COUNT ( * )
----
-7

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

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT 17 * + ( 56 )
----
952

query I rowsort
SELECT ALL 60 * + 45 AS col1
----
2700

query I rowsort
SELECT 24 - - 26 + 95 * 75
----
7175

query I rowsort
SELECT DISTINCT 71 * + - 54
----
-3834

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

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

query I rowsort
SELECT ALL 71 * 24 AS col0
----
1704

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT - + MIN( + + 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-360
SELECT - + MIN ( + + 50 ) AS col2
----
-50

query I rowsort
SELECT 82 + + - 11 + 61 AS col2
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT - 29 DIV - 7 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-362
SELECT - 29 / - 7 AS col2
----
4

query I rowsort
SELECT - 68 + - 98 * - - 81 + + ( - 97 )
----
-8103

onlyif mysql # aggregate syntax: 
query II rowsort label-364
SELECT - 95 + ( + 95 ) - + 83 + + 4 * 47 * 98 * 62 * - CASE + + ( + COUNT( * ) ) WHEN + MIN( ALL - 31 ) + + AVG ( 66 ) THEN + 98 WHEN - 48 * - 70 + 39 THEN NULL WHEN + - COUNT( * ) THEN NULL END AS col0, 49
----
NULL
49

skipif mysql # not compatible
query II rowsort label-364
SELECT - 95 + ( + 95 ) - + 83 + + 4 * 47 * 98 * 62 * - CASE + + ( + COUNT ( * ) ) WHEN + MIN ( ALL - 31 ) + + AVG ( 66 ) THEN + 98 WHEN - 48 * - 70 + 39 THEN NULL WHEN + - COUNT ( * ) THEN NULL END AS col0, 49
----
NULL
49

query I rowsort
SELECT ALL - 90 + - 3 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT ALL + 21 + - SUM( ALL + - 2 )
----
23

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL + 21 + - SUM ( ALL + - 2 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT DISTINCT COUNT( ALL 88 ) + + 26
----
27

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT COUNT ( ALL 88 ) + + 26
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT ALL - + 8 + + 99 * MIN( + 79 )
----
7813

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL - + 8 + + 99 * MIN ( + 79 )
----
7813

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT - 45 + 79 + - COUNT( * ) + - 87 * + 45 + + + 65 AS col0
----
-3817

skipif mysql # not compatible
query I rowsort label-369
SELECT - 45 + 79 + - COUNT ( * ) + - 87 * + 45 + + + 65 AS col0
----
-3817

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-371
SELECT + CAST( NULL AS SIGNED ) * ( 93 ) + COALESCE ( - 45, - 46 ) + 44 + 9 / - 78 + CAST( 69 AS DECIMAL ) * - 34 / CAST( 97 AS SIGNED ) * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-371
SELECT + CAST ( NULL AS INTEGER ) * ( 93 ) + COALESCE ( - 45, - 46 ) + 44 + 9 / - 78 + CAST ( 69 AS REAL ) * - 34 / CAST ( 97 AS INTEGER ) * + 41
----
NULL

query II rowsort
SELECT DISTINCT + 54 AS col2, 3 AS col2
----
54
3

query II rowsort
SELECT DISTINCT + 31, 15 col0
----
31
15

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT NULLIF ( - 87, + 25 * + + 10 + + - 62 + + 47 + MIN( ALL + + 78 ) / + ( - - COUNT( * ) ) * 98 * 98 - + - NULLIF ( 93, 51 ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-374
SELECT NULLIF ( - 87, + 25 * + + 10 + + - 62 + + 47 + MIN ( ALL + + 78 ) / + ( - - COUNT ( * ) ) * 98 * 98 - + - NULLIF ( 93, 51 ) ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT COALESCE ( + NULLIF ( 58, - - 90 * COUNT( * ) + + NULLIF ( + - 67, - 53 ) * + 92 / - 12 + 28 ), 84 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-375
SELECT COALESCE ( + NULLIF ( 58, - - 90 * COUNT ( * ) + + NULLIF ( + - 67, - 53 ) * + 92 / - 12 + 28 ), 84 ) col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-376
SELECT - MAX( + 65 ) / CAST( NULL AS SIGNED ) AS col2, 63
----
NULL
63

skipif mysql # not compatible
query II rowsort label-376
SELECT - MAX ( + 65 ) / CAST ( NULL AS INTEGER ) AS col2, 63
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT + 84 * - - 36 * + 84 * - COUNT( * ) * + 65
----
-16511040

skipif mysql # not compatible
query I rowsort label-377
SELECT + 84 * - - 36 * + 84 * - COUNT ( * ) * + 65
----
-16511040

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

skipif mysql # not compatible
query I rowsort label-378
SELECT - 55 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + CASE - - 40 WHEN + 75 * + 40 THEN CASE + 65 WHEN + 21 * + + COALESCE ( 45, - 47 ) * + 24 THEN NULL ELSE - 65 END + + 81 - - 75 WHEN + 10 THEN NULL ELSE NULL END * + - 5
----
NULL

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

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

query II rowsort
SELECT ALL + 88 AS col1, 90
----
88
90

query I rowsort
SELECT - 25 * 68 AS col2
----
-1700

query I rowsort
SELECT ALL - 89 * + + 82
----
-7298

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT DISTINCT + CASE - COUNT( DISTINCT + + 47 ) WHEN - 41 THEN - 14 ELSE + + 1 * + 16 * + - 76 * + 73 + - 80 - + 77 END
----
-88925

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT + CASE - COUNT ( DISTINCT + + 47 ) WHEN - 41 THEN - 14 ELSE + + 1 * + 16 * + - 76 * + 73 + - 80 - + 77 END
----
-88925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-385
SELECT + 18 + - - 73 + - ( + CAST( + 76 AS SIGNED ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-385
SELECT + 18 + - - 73 + - ( + CAST ( + 76 AS INTEGER ) ) AS col0
----
15

query I rowsort
SELECT + 0 + + 27 + - 86 + + 70 * + 39 + 22 AS col0
----
2693

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT MAX( ALL + 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT MAX ( ALL + 78 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-388
SELECT ALL + CASE SUM( ALL - 68 ) WHEN + 4 THEN NULL WHEN - ( - + MAX( - + 86 ) ) THEN + - 94 * + 3 * - 97 END + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + CASE SUM ( ALL - 68 ) WHEN + 4 THEN NULL WHEN - ( - + MAX ( - + 86 ) ) THEN + - 94 * + 3 * - 97 END + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - 61 * - 73 * - 8
----
-35624

query I rowsort
SELECT - NULLIF ( + + 18, + + 10 - + 8 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-393
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN 17 THEN 61 + 64 ELSE NULL END + ( - 45 ) * 33 * + 33 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN 17 THEN 61 + 64 ELSE NULL END + ( - 45 ) * 33 * + 33 * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT DISTINCT + ( + 98 ) + - COUNT( + 65 )
----
97

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT + ( + 98 ) + - COUNT ( + 65 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-395
SELECT - - 68, COUNT( * ) col1
----
68
1

skipif mysql # not compatible
query II rowsort label-395
SELECT - - 68, COUNT ( * ) col1
----
68
1

query I rowsort
SELECT ALL 85 + 50 + 43 * - 52 AS col0
----
-2101

onlyif mysql # DIV for integer division: 
query II rowsort label-397
SELECT - 38 AS col1, 97 DIV - 61 col0
----
-38
-1

skipif mysql # not compatible
query II rowsort label-397
SELECT - 38 AS col1, 97 / - 61 col0
----
-38
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + + SUM( DISTINCT + + 73 ) * - + 79 AS col2
----
-5767

skipif mysql # not compatible
query I rowsort label-398
SELECT + + SUM ( DISTINCT + + 73 ) * - + 79 AS col2
----
-5767

query I rowsort
SELECT ALL ( - - 41 )
----
41

query I rowsort
SELECT + COALESCE ( - 87, + 31, + 80 ) col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-401
SELECT ALL + 98 + + + CASE - 20 WHEN + - CASE + COUNT( * ) WHEN 37 + - + 69 / - COUNT( * ) - - MAX( DISTINCT 29 ) THEN - ( + CAST( - 75 AS DECIMAL ) ) + COUNT( - 35 ) END THEN NULL WHEN MAX( + ( - 12 ) ) * - 55 + - + COUNT( * ) THEN + 20 + 59 + + + 32 * + CAST( - - COALESCE ( - 53, 48 / + 23 ) AS SIGNED ) ELSE + 52 * - 93 - 21 * - 44 END AS col1
----
-3814

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL + 98 + + + CASE - 20 WHEN + - CASE + COUNT ( * ) WHEN 37 + - + 69 / - COUNT ( * ) - - MAX ( DISTINCT 29 ) THEN - ( + CAST ( - 75 AS REAL ) ) + COUNT ( - 35 ) END THEN NULL WHEN MAX ( + ( - 12 ) ) * - 55 + - + COUNT ( * ) THEN + 20 + 59 + + + 32 * + CAST ( - - COALESCE ( - 53, 48 / + 23 ) AS INTEGER ) ELSE + 52 * - 93 - 21 * - 44 END AS col1
----
-3814

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

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL + 34 / COUNT ( * ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT 30 - - CASE 48 WHEN 27 + + 88 THEN + 30 WHEN - 71 * COUNT( * ) - - + COUNT( * ) + + 60 * ( 46 ) * + 89 * ( - 74 ) THEN 75 * - SUM( ALL + 18 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT 30 - - CASE 48 WHEN 27 + + 88 THEN + 30 WHEN - 71 * COUNT ( * ) - - + COUNT ( * ) + + 60 * ( 46 ) * + 89 * ( - 74 ) THEN 75 * - SUM ( ALL + 18 ) END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-404
SELECT ALL - 18 DIV + - ( + - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL - 18 / + - ( + - 85 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT + 5 * COUNT( * ) - - 59
----
64

skipif mysql # not compatible
query I rowsort label-405
SELECT + 5 * COUNT ( * ) - - 59
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-406
SELECT + 38 * - + 38 AS col2, NULLIF ( - - 67, ( + 59 ) + + 99 + SUM( + 87 ) ) * + + 15 * + + 83 + - - COUNT( * ) + 29
----
-1444
83445

skipif mysql # not compatible
query II rowsort label-406
SELECT + 38 * - + 38 AS col2, NULLIF ( - - 67, ( + 59 ) + + 99 + SUM ( + 87 ) ) * + + 15 * + + 83 + - - COUNT ( * ) + 29
----
-1444
83445

query I rowsort
SELECT + 4 * 93 + - 34
----
338

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

skipif mysql # not compatible
query I rowsort label-408
SELECT - 54 / + 21 + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT + 3 * - SUM( DISTINCT + 97 ) * + MAX( - 35 ) col1
----
10185

skipif mysql # not compatible
query I rowsort label-409
SELECT + 3 * - SUM ( DISTINCT + 97 ) * + MAX ( - 35 ) col1
----
10185

query II rowsort
SELECT + 77, 0 + + 33 * + - 33 AS col0
----
77
-1089

query I rowsort
SELECT ALL + CASE - + 71 WHEN - 92 THEN NULL ELSE - 62 * - 40 END
----
2480

query I rowsort
SELECT + 55 + + 78
----
133

query I rowsort
SELECT ALL 61 * + 28 col0
----
1708

query I rowsort
SELECT - 72 * ( - + COALESCE ( + 70, - 55 ) ) col2
----
5040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-415
SELECT ALL + ( 31 ), 12 * - 22 + - + COALESCE ( + COUNT( * ), + SUM( ALL - + 77 ) DIV COALESCE ( + - 12, + 81 * + COUNT( 71 ) + + - NULLIF ( + + 27, + COUNT( DISTINCT + - 47 ) ) * - + 60 ) + + - 6 DIV + 26 ) DIV + 98 * + 30 + - 19 AS col0
----
31
-283

skipif mysql # not compatible
query II rowsort label-415
SELECT ALL + ( 31 ), 12 * - 22 + - + COALESCE ( + COUNT ( * ), + SUM ( ALL - + 77 ) / COALESCE ( + - 12, + 81 * + COUNT ( 71 ) + + - NULLIF ( + + 27, + COUNT ( DISTINCT + - 47 ) ) * - + 60 ) + + - 6 / + 26 ) / + 98 * + 30 + - 19 AS col0
----
31
-283

query I rowsort
SELECT ( ( - 59 ) ) AS col2
----
-59

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

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

query II rowsort
SELECT DISTINCT + 69, 87 AS col1
----
69
87

onlyif mysql # DIV for integer division: 
query I rowsort label-419
SELECT - 89 DIV - 13
----
6

skipif mysql # not compatible
query I rowsort label-419
SELECT - 89 / - 13
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT - MIN( DISTINCT + + 47 ) DIV - 23 * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-420
SELECT - MIN ( DISTINCT + + 47 ) / - 23 * COUNT ( * )
----
2

query I rowsort
SELECT - + 84 * + 28 AS col0
----
-2352

query I rowsort
SELECT ALL + 91 * 62 + - + 62 AS col2
----
5580

onlyif mysql # DIV for integer division: 
query I rowsort label-423
SELECT ALL + - 41 DIV + + 37
----
-1

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL + - 41 / + + 37
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT - + 34 DIV - MIN( ALL 72 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-424
SELECT - + 34 / - MIN ( ALL 72 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT ALL + 26 * 54 DIV 31 + + 21
----
66

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL + 26 * 54 / 31 + + 21
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT ALL - 65 * + 1 + - + COUNT( * ) + - 18 + - 15 + + 80 + - - COUNT( * ) - 82 * 29 - - 70 / + CAST( NULL AS SIGNED ) / - 61 + - + 15 * - 92 / 26 * - - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL - 65 * + 1 + - + COUNT ( * ) + - 18 + - 15 + + 80 + - - COUNT ( * ) - 82 * 29 - - 70 / + CAST ( NULL AS INTEGER ) / - 61 + - + 15 * - 92 / 26 * - - 86 AS col1
----
NULL

query I rowsort
SELECT ALL - 76 * - 83 * - 59 * - 89 + - 61
----
33123247

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

query I rowsort
SELECT ALL 17 + 8 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-430
SELECT ALL + CASE - 37 WHEN - 7 * + 65 THEN - 40 WHEN + + 9 * + - 86 THEN - + 31 END + 74 + MIN( DISTINCT - 21 ) + COUNT( * ) + 73 * + - 25 + 82 * CAST( NULL AS DECIMAL ) / 46 + - 33 + - 90 + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL + CASE - 37 WHEN - 7 * + 65 THEN - 40 WHEN + + 9 * + - 86 THEN - + 31 END + 74 + MIN ( DISTINCT - 21 ) + COUNT ( * ) + 73 * + - 25 + 82 * CAST ( NULL AS REAL ) / 46 + - 33 + - 90 + - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT - 30 + - - 29 + 19 + + + MAX( DISTINCT + 3 ) * + + 58 + - 10 + + 27
----
209

skipif mysql # not compatible
query I rowsort label-431
SELECT - 30 + - - 29 + 19 + + + MAX ( DISTINCT + 3 ) * + + 58 + - 10 + + 27
----
209

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

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

query I rowsort
SELECT + NULLIF ( + 10, + 51 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT COUNT( * ) + 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-434
SELECT COUNT ( * ) + 9 AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-435
SELECT + CAST( - 19 AS SIGNED ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-435
SELECT + CAST ( - 19 AS INTEGER ) AS col2
----
-19

query I rowsort
SELECT ALL - 27 - - - 9 + + 68 AS col0
----
32

query I rowsort
SELECT DISTINCT NULLIF ( 61, 60 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT + 80 + + ( - ( - 94 ) ) * + - ( + COUNT( * ) ) + - 7 - - + 19 + - COUNT( * ) * - 77 * - - 54
----
4156

skipif mysql # not compatible
query I rowsort label-438
SELECT + 80 + + ( - ( - 94 ) ) * + - ( + COUNT ( * ) ) + - 7 - - + 19 + - COUNT ( * ) * - 77 * - - 54
----
4156

onlyif mysql # aggregate syntax: 
query II rowsort label-439
SELECT - + 37 AS col1, MIN( - 36 ) - - + 79 * 8 * - NULLIF ( + 4, + COUNT( * ) ) * 36 AS col1
----
-37
-91044

skipif mysql # not compatible
query II rowsort label-439
SELECT - + 37 AS col1, MIN ( - 36 ) - - + 79 * 8 * - NULLIF ( + 4, + COUNT ( * ) ) * 36 AS col1
----
-37
-91044

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

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

query II rowsort
SELECT ALL 6 AS col1, 96
----
6
96

query I rowsort
SELECT 83 + + 85
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT COALESCE ( + 76, + - COUNT( * ) * - - 35 + COUNT( * ), + - ( 37 ), - 65 ) + - 14 * - COALESCE ( 38, + COUNT( * ) + + - 83 ) AS col1
----
608

skipif mysql # not compatible
query I rowsort label-443
SELECT COALESCE ( + 76, + - COUNT ( * ) * - - 35 + COUNT ( * ), + - ( 37 ), - 65 ) + - 14 * - COALESCE ( 38, + COUNT ( * ) + + - 83 ) AS col1
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT NULLIF ( + NULLIF ( 18, - 27 * - + 88 * + COUNT( - - 47 ) + - 42 ), - 42 ) * + 69 AS col1
----
1242

skipif mysql # not compatible
query I rowsort label-444
SELECT NULLIF ( + NULLIF ( 18, - 27 * - + 88 * + COUNT ( - - 47 ) + - 42 ), - 42 ) * + 69 AS col1
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT ALL + 61 * 81 * COUNT( * ) AS col0
----
4941

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + 61 * 81 * COUNT ( * ) AS col0
----
4941

query I rowsort
SELECT DISTINCT 20 * - ( 6 ) col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL + SUM( + 89 ) * - + COUNT( * ) + + 56 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL + SUM ( + 89 ) * - + COUNT ( * ) + + 56 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT 98 * + 75 + - - 53 + + COUNT( ALL 43 ) * - 18 AS col2
----
7385

skipif mysql # not compatible
query I rowsort label-448
SELECT 98 * + 75 + - - 53 + + COUNT ( ALL 43 ) * - 18 AS col2
----
7385

query I rowsort
SELECT 8 * - ( + 53 ) AS col1
----
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT NULLIF ( + COALESCE ( + COUNT( * ), - ( 2 ) * - - 42 + + 35 ), ( - SUM( DISTINCT - - 21 ) ) ) * - 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-450
SELECT NULLIF ( + COALESCE ( + COUNT ( * ), - ( 2 ) * - - 42 + + 35 ), ( - SUM ( DISTINCT - - 21 ) ) ) * - 23 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT - 49 * + MIN( DISTINCT + + 59 ) + 64
----
-2827

skipif mysql # not compatible
query I rowsort label-451
SELECT - 49 * + MIN ( DISTINCT + + 59 ) + 64
----
-2827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-452
SELECT 23 + + 63 + + + CAST( - COUNT( * ) AS SIGNED ) * 14 * - + 30 AS col0
----
506

skipif mysql # not compatible
query I rowsort label-452
SELECT 23 + + 63 + + + CAST ( - COUNT ( * ) AS INTEGER ) * 14 * - + 30 AS col0
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT COALESCE ( - 36, + 56 * - + 16 * + 1 ) + - + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-453
SELECT COALESCE ( - 36, + 56 * - + 16 * + 1 ) + - + COUNT ( * )
----
-37

query I rowsort
SELECT DISTINCT + 27 + - + 45 + - 17 + - + 20 * 37 * 49 AS col2
----
-36295

query II rowsort
SELECT DISTINCT - 16 * + 16 AS col2, 19
----
-256
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT DISTINCT 22 + + + 7 - - COUNT( * ) + + 74 + - - COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT 22 + + + 7 - - COUNT ( * ) + + 74 + - - COUNT ( * )
----
105

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-459
SELECT + 71 + 69 DIV + + COALESCE ( - - 88, - ( - 29 ) * - COUNT( * ) * + - 16 * + - 43 * 49 + 66 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-459
SELECT + 71 + 69 / + + COALESCE ( - - 88, - ( - 29 ) * - COUNT ( * ) * + - 16 * + - 43 * 49 + 66 ) AS col1
----
71

query I rowsort
SELECT 49 + + 9 AS col0
----
58

query I rowsort
SELECT 98 * + 50 AS col0
----
4900

query I rowsort
SELECT 41 * ( - - 96 ) AS col0
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT DISTINCT - - 51 - + SUM( ALL 50 ) * 76 AS col0
----
-3749

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT - - 51 - + SUM ( ALL 50 ) * 76 AS col0
----
-3749

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT DISTINCT + - 72 DIV - 73 * + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + - 72 / - 73 * + 82 AS col2
----
0

query I rowsort
SELECT 21 * - 43 col0
----
-903

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

query I rowsort
SELECT + NULLIF ( 91, - - 2 ) * + + 56 AS col0
----
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT ALL MIN( DISTINCT 7 )
----
7

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL MIN ( DISTINCT 7 )
----
7

onlyif mysql # aggregate syntax: 
query III rowsort label-469
SELECT COUNT( * ) * - 5 * - 3 * 7 col0, 28 + + 21 AS col2, - 92
----
105
49
-92

skipif mysql # not compatible
query III rowsort label-469
SELECT COUNT ( * ) * - 5 * - 3 * 7 col0, 28 + + 21 AS col2, - 92
----
105
49
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-470
SELECT DISTINCT + 14 * - + 86 + + COUNT( * ) DIV - 14 + + 13 * 26 * + - COUNT( * ) * + COUNT( * ) AS col1
----
-1542

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT + 14 * - + 86 + + COUNT ( * ) / - 14 + + 13 * 26 * + - COUNT ( * ) * + COUNT ( * ) AS col1
----
-1542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-471
SELECT DISTINCT + NULLIF ( 40, + - COUNT( * ) ) DIV + - 5 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT + NULLIF ( 40, + - COUNT ( * ) ) / + - 5 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - 58 * - COUNT( * ) * + 78 * + - CASE - 35 WHEN + COALESCE ( 47, - 88 ) THEN - 48 / + COUNT( * ) - SUM( ALL + 51 ) + 68 + 11 WHEN + - 31 * + 34 * COALESCE ( + 24, - 10 * ( + 87 ) - + + NULLIF ( - - 12, 83 * - - MIN( ALL - - 61 ) ) / - COUNT( * ) + + 32 - 96 + - 97 * 87 * - 59 * - + 83 - + - 63 ) THEN NULL ELSE NULL END + - 3 - + + ( - - 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-472
SELECT - 58 * - COUNT ( * ) * + 78 * + - CASE - 35 WHEN + COALESCE ( 47, - 88 ) THEN - 48 / + COUNT ( * ) - SUM ( ALL + 51 ) + 68 + 11 WHEN + - 31 * + 34 * COALESCE ( + 24, - 10 * ( + 87 ) - + + NULLIF ( - - 12, 83 * - - MIN ( ALL - - 61 ) ) / - COUNT ( * ) + + 32 - 96 + - 97 * 87 * - 59 * - + 83 - + - 63 ) THEN NULL ELSE NULL END + - 3 - + + ( - - 79 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT COUNT( 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-473
SELECT COUNT ( 47 ) AS col1
----
1

query I rowsort
SELECT ALL - 87 * - ( - 48 ) + + - 6 * - 1 AS col1
----
-4170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-475
SELECT COALESCE ( - - ( - + 19 ), + - SUM( + - 41 ) ) DIV - + ( 89 )
----
0

skipif mysql # not compatible
query I rowsort label-475
SELECT COALESCE ( - - ( - + 19 ), + - SUM ( + - 41 ) ) / - + ( 89 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-476
SELECT DISTINCT CAST( 49 AS SIGNED ) * + COUNT( * ) + - + 54
----
-5

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT CAST ( 49 AS INTEGER ) * + COUNT ( * ) + - + 54
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT DISTINCT ( + + 31 ) DIV + 31 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT ( + + 31 ) / + 31 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-478
SELECT + + CASE + COUNT( * ) WHEN + 74 + - - ( - 55 ) / 29 * + CAST( - 33 AS SIGNED ) THEN NULL WHEN + 54 THEN - 90 END - - 25 * - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT + + CASE + COUNT ( * ) WHEN + 74 + - - ( - 55 ) / 29 * + CAST ( - 33 AS INTEGER ) THEN NULL WHEN + 54 THEN - 90 END - - 25 * - 46 AS col2
----
NULL

query II rowsort
SELECT ALL + + 29 AS col2, + 28 col2
----
29
28

onlyif mysql # aggregate syntax: 
query II rowsort label-480
SELECT + 83, - 76 + - + 67 - COUNT( * ) AS col1
----
83
-144

skipif mysql # not compatible
query II rowsort label-480
SELECT + 83, - 76 + - + 67 - COUNT ( * ) AS col1
----
83
-144

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

query I rowsort
SELECT ALL 52 * + + 73 + + - 93
----
3703

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT + COUNT( * ) - - 79 * + 11 * - - ( + + ( - SUM( DISTINCT - 58 ) ) ) AS col0
----
50403

skipif mysql # not compatible
query I rowsort label-483
SELECT + COUNT ( * ) - - 79 * + 11 * - - ( + + ( - SUM ( DISTINCT - 58 ) ) ) AS col0
----
50403

query II rowsort
SELECT + + 97, 66 * + 91 AS col2
----
97
6006

query I rowsort
SELECT ALL + 11 * - + 35
----
-385

query I rowsort
SELECT + + COALESCE ( 62, + 77 ) * 33
----
2046

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

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

query I rowsort
SELECT - - 25 - + ( + - 6 )
----
31

query II rowsort
SELECT + + 56 + - + 62 * - ( - 42 ) AS col2, - 93 AS col0
----
-2548
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-490
SELECT + 37 + - CASE - 98 WHEN + - 72 / + - 96 + 13 * 5 + + 62 + + 45 * + 41 * - 6 * + CAST( NULL AS SIGNED ) THEN 41 WHEN - + CAST( NULL AS SIGNED ) * - 43 THEN - NULLIF ( - 52, - 17 ) * 66 / + - 78 / + 92 END + + - 41 * - 2 * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT + 37 + - CASE - 98 WHEN + - 72 / + - 96 + 13 * 5 + + 62 + + 45 * + 41 * - 6 * + CAST ( NULL AS INTEGER ) THEN 41 WHEN - + CAST ( NULL AS INTEGER ) * - 43 THEN - NULLIF ( - 52, - 17 ) * 66 / + - 78 / + 92 END + + - 41 * - 2 * + 1
----
NULL

query I rowsort
SELECT + + 6 * 2 AS col0
----
12

query I rowsort
SELECT - 68 * - 58 AS col1
----
3944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-493
SELECT ALL - COUNT( * ) DIV 33 DIV + 26 col2
----
0

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - COUNT ( * ) / 33 / + 26 col2
----
0

query I rowsort
SELECT + 80 + + 67 - ( + 88 ) * - 58 AS col2
----
5251

query I rowsort
SELECT - 56 + + + 5 AS col2
----
-51

query I rowsort
SELECT ALL 38 + - 46 + - + 67 AS col1
----
-75

query I rowsort
SELECT - 8 + + + NULLIF ( 1, + 72 + 73 + + 76 * 89 + - 65 * - 33 * + - 3 ) + - COALESCE ( - 69, - 94 ) AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT ALL + 34 + - 24 + + ( - SUM( ALL - 70 ) ) DIV + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL + 34 + - 24 + + ( - SUM ( ALL - 70 ) ) / + COUNT ( * )
----
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-500
SELECT + CAST( NULL AS SIGNED ) * - 94 AS col1, + 82
----
NULL
82

skipif mysql # not compatible
query II rowsort label-500
SELECT + CAST ( NULL AS INTEGER ) * - 94 AS col1, + 82
----
NULL
82

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

skipif mysql # not compatible
query I rowsort label-501
SELECT + 96 / + - 50 * - + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT - 72 * COUNT( * ) * - COALESCE ( + 76, - + MIN( - + 27 ), - 25 ) AS col0
----
5472

skipif mysql # not compatible
query I rowsort label-502
SELECT - 72 * COUNT ( * ) * - COALESCE ( + 76, - + MIN ( - + 27 ), - 25 ) AS col0
----
5472

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT ALL + 60 DIV - + 59 + + 81 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL + 60 / - + 59 + + 81 AS col0
----
80

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

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

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( + + ( 55 ), 6 * - 98 * 68 - 15 + + 44 + - 7 * + 31 * + + 57 )
----
55

query I rowsort
SELECT ALL 78 * 2 - + 20
----
136

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

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

query I rowsort
SELECT DISTINCT - 34 * + 27
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT - + ( + 47 ) * + - MIN( - - 62 )
----
2914

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT - + ( + 47 ) * + - MIN ( - - 62 )
----
2914

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT + + 69 * - NULLIF ( - 41, + ( + 9 ) * - CASE WHEN NOT 36 IS NOT NULL THEN + - 10 - 37 END ) * 85 + - + 13 - COUNT( * ) * - 2 AS col0
----
240454

skipif mysql # not compatible
query I rowsort label-512
SELECT + + 69 * - NULLIF ( - 41, + ( + 9 ) * - CASE WHEN NOT 36 IS NOT NULL THEN + - 10 - 37 END ) * 85 + - + 13 - COUNT ( * ) * - 2 AS col0
----
240454

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT + - 96 DIV - 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-513
SELECT + - 96 / - 52 AS col0
----
1

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

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

query I rowsort
SELECT + 69 + - + 61 AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT + CAST( + + COUNT( * ) AS SIGNED ) + - ( + 51 )
----
-50

skipif mysql # not compatible
query I rowsort label-516
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) + - ( + 51 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT 30 * - - 71 + COUNT( * ) * - 91 AS col2
----
2039

skipif mysql # not compatible
query I rowsort label-517
SELECT 30 * - - 71 + COUNT ( * ) * - 91 AS col2
----
2039

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-518
SELECT + AVG ( - ( - + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT + AVG ( - ( - + CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT DISTINCT 13 * 35 + + 77 + + 82
----
614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT ALL SUM( + COALESCE ( + 15, CAST( + 33 AS SIGNED ) * - CAST( NULL AS SIGNED ) * 73 ) )
----
15

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL SUM ( + COALESCE ( + 15, CAST ( + 33 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * 73 ) )
----
15

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

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

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

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

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

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

query I rowsort
SELECT ALL 32 * + ( 23 ) AS col2
----
736

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

skipif mysql # not compatible
query I rowsort label-525
SELECT + 73 / - + 1
----
-73

query I rowsort
SELECT - 78 * 84 AS col1
----
-6552

query I rowsort
SELECT ALL 84 + - + 10 col2
----
74

query I rowsort
SELECT + 90 * + - 92
----
-8280

query II rowsort
SELECT 15, + NULLIF ( + + 60, - + 37 + - 11 - - + 85 ) col2
----
15
60

query I rowsort
SELECT + 66 - 77 AS col2
----
-11

query I rowsort
SELECT DISTINCT - 58 + - - 23
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-532
SELECT DISTINCT COUNT( DISTINCT - + 76 ) DIV - 27, + 70 * + 16 AS col1
----
0
1120

skipif mysql # not compatible
query II rowsort label-532
SELECT DISTINCT COUNT ( DISTINCT - + 76 ) / - 27, + 70 * + 16 AS col1
----
0
1120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-533
SELECT ALL - 40 - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL - 40 - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT ALL + 67 * 14 DIV - 34
----
-27

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL + 67 * 14 / - 34
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT NULLIF ( + COUNT( * ), - 23 ) * + + 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-535
SELECT NULLIF ( + COUNT ( * ), - 23 ) * + + 98 AS col1
----
98

query I rowsort
SELECT 71 - 66 * + 45 * - 90
----
267371

onlyif mysql # aggregate syntax: 
query II rowsort label-537
SELECT 48 AS col0, SUM( ALL - 12 ) * + 39 * - + MIN( DISTINCT - + 15 ) * + - 22 + 16 + + - COUNT( * ) * - ( 50 ) * + 90 - 68
----
48
158888

skipif mysql # not compatible
query II rowsort label-537
SELECT 48 AS col0, SUM ( ALL - 12 ) * + 39 * - + MIN ( DISTINCT - + 15 ) * + - 22 + 16 + + - COUNT ( * ) * - ( 50 ) * + 90 - 68
----
48
158888

query I rowsort
SELECT ALL - 4 * + + 88
----
-352

query I rowsort
SELECT ALL + 46 - 15 AS col0
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-540
SELECT + NULLIF ( + + 2, + 11 * + 14 + - - CAST( NULL AS DECIMAL ) / + 16 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-540
SELECT + NULLIF ( + + 2, + 11 * + 14 + - - CAST ( NULL AS REAL ) / + 16 ) AS col1
----
2

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT - CASE + + 90 WHEN - 89 * - 35 THEN ( + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ) ELSE ( - + COUNT( * ) ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-545
SELECT - CASE + + 90 WHEN - 89 * - 35 THEN ( + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) ELSE ( - + COUNT ( * ) ) END AS col1
----
1

query I rowsort
SELECT - 58 + + 69
----
11

query I rowsort
SELECT 6 * - 84 AS col1
----
-504

query I rowsort
SELECT + 67 * + 99
----
6633

query I rowsort
SELECT ALL - + 2 + + 0 AS col0
----
-2

query I rowsort
SELECT + 6 - - - ( ( 96 ) ) AS col1
----
-90

query I rowsort
SELECT - COALESCE ( - 58, + 44 )
----
58

query I rowsort
SELECT + 33 * - - 29 * + + 10
----
9570

query I rowsort
SELECT ALL + + 10 + 86 AS col1
----
96

query I rowsort
SELECT ALL - 9 * + 70 * + - ( - - 91 ) + - 47 + + 60
----
57343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-555
SELECT DISTINCT 7 AS col1, - NULLIF ( - NULLIF ( - 98, - 88 * + 24 + - + 49 + - 86 ), + 69 ) * - 55 + + COUNT( * ) * 97 * + CAST( + 95 AS SIGNED ) + + 36
----
7
14641

skipif mysql # not compatible
query II rowsort label-555
SELECT DISTINCT 7 AS col1, - NULLIF ( - NULLIF ( - 98, - 88 * + 24 + - + 49 + - 86 ), + 69 ) * - 55 + + COUNT ( * ) * 97 * + CAST ( + 95 AS INTEGER ) + + 36
----
7
14641

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT COUNT( * ) - 63 col2
----
-62

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

query I rowsort
SELECT 1 + 0
----
1

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

query I rowsort
SELECT ALL ( + - 4 ) + + + 88
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-560
SELECT - 73 col2, + 0 * + + 78 * - 30 * + SUM( DISTINCT - - 73 )
----
-73
0

skipif mysql # not compatible
query II rowsort label-560
SELECT - 73 col2, + 0 * + + 78 * - 30 * + SUM ( DISTINCT - - 73 )
----
-73
0

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT 27 + - COUNT( * ) * - + 5 * - - 17 - + 24 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-561
SELECT 27 + - COUNT ( * ) * - + 5 * - - 17 - + 24 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL 78 * - - 31 * 4 * COUNT( * ) col2
----
9672

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL 78 * - - 31 * 4 * COUNT ( * ) col2
----
9672

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT DISTINCT 7 * COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT 7 * COUNT ( * ) AS col1
----
7

query I rowsort
SELECT 46 + - 58 + 48 + 78 + 19 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL 31 - SUM( DISTINCT - + 69 )
----
100

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL 31 - SUM ( DISTINCT - + 69 )
----
100

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-567
SELECT CAST( - 52 AS SIGNED ) + 72 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-567
SELECT CAST ( - 52 AS INTEGER ) + 72 AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-568
SELECT CASE - - CAST( + + 99 AS SIGNED ) WHEN + + 89 + 2 THEN NULL WHEN + 10 THEN - 11 - - 67 / - 41 * 63 * - + COUNT( DISTINCT 90 ) END + - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-568
SELECT CASE - - CAST ( + + 99 AS INTEGER ) WHEN + + 89 + 2 THEN NULL WHEN + 10 THEN - 11 - - 67 / - 41 * 63 * - + COUNT ( DISTINCT 90 ) END + - - 76
----
NULL

query I rowsort
SELECT 78 * 76
----
5928

query I rowsort
SELECT 81 + + 84
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT + - SUM( DISTINCT + 36 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-571
SELECT + - SUM ( DISTINCT + 36 ) col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT + ( - COUNT( * ) ) * - + 33 + + 28
----
61

skipif mysql # not compatible
query I rowsort label-572
SELECT + ( - COUNT ( * ) ) * - + 33 + + 28
----
61

query I rowsort
SELECT ALL + + 79 * - 54 AS col0
----
-4266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-574
SELECT - CAST( NULL AS SIGNED ) / 52 / + 63 * - MAX( - + 98 ) / - 80 - - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-574
SELECT - CAST ( NULL AS INTEGER ) / 52 / + 63 * - MAX ( - + 98 ) / - 80 - - - COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + COUNT ( * ) * + 5 * - 66 + - 89 AS col1
----
-419

query II rowsort
SELECT + 47, + 91 AS col0
----
47
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-577
SELECT CASE - 32 WHEN 92 * + NULLIF ( - ( - - 79 ), 79 ) + + - 89 + - - CAST( 93 AS SIGNED ) THEN NULL ELSE + 83 END + - 10 + 17 - 40, + 98 DIV + COALESCE ( 35, CAST( NULL AS SIGNED ), - - 58 ) AS col2
----
50
2

skipif mysql # not compatible
query II rowsort label-577
SELECT CASE - 32 WHEN 92 * + NULLIF ( - ( - - 79 ), 79 ) + + - 89 + - - CAST ( 93 AS INTEGER ) THEN NULL ELSE + 83 END + - 10 + 17 - 40, + 98 / + COALESCE ( 35, CAST ( NULL AS INTEGER ), - - 58 ) AS col2
----
50
2

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT DISTINCT - - 50 * + + COUNT( * ) + 74 - + 66
----
58

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT - - 50 * + + COUNT ( * ) + 74 - + 66
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-579
SELECT + CAST( + 24 AS SIGNED ) DIV + 77 col0
----
0

skipif mysql # not compatible
query I rowsort label-579
SELECT + CAST ( + 24 AS INTEGER ) / + 77 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT 18 DIV + 36 * + 60 + ( + 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-580
SELECT 18 / + 36 * + 60 + ( + 26 ) AS col2
----
26

query II rowsort
SELECT + 48, 54 col2
----
48
54

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT 51 + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-582
SELECT 51 + - COUNT ( * )
----
50

query I rowsort
SELECT ALL + 8 + + 35 * 64
----
2248

query I rowsort
SELECT 98 + - - 94 AS col0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT ALL 87 + - 39 + - 29 DIV - - 89 - 3 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL 87 + - 39 + - 29 / - - 89 - 3 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT ALL - 16 + - 1 + - 26 + + 47 / COALESCE ( + 83, - + 28 * + 63 ) * - - 62 / - 97 * + COUNT( * ) - + 43 + CAST( NULL AS SIGNED ) - - + 13 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - 16 + - 1 + - 26 + + 47 / COALESCE ( + 83, - + 28 * + 63 ) * - - 62 / - 97 * + COUNT ( * ) - + 43 + CAST ( NULL AS INTEGER ) - - + 13 * 29
----
NULL

query II rowsort
SELECT ALL - 46 AS col1, + 65 * + 13
----
-46
845

query II rowsort
SELECT 36, 97 AS col2
----
36
97

query II rowsort
SELECT ALL - - 14, 33 AS col2
----
14
33

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-591
SELECT 8 * COUNT( * ), - COALESCE ( - ( COUNT( * ) ), COUNT( * ) + + 24 * - 7 * - 32 * - COALESCE ( 8, 90, - 2 ) DIV - - 73 ) AS col0
----
8
1

skipif mysql # not compatible
query II rowsort label-591
SELECT 8 * COUNT ( * ), - COALESCE ( - ( COUNT ( * ) ), COUNT ( * ) + + 24 * - 7 * - 32 * - COALESCE ( 8, 90, - 2 ) / - - 73 ) AS col0
----
8
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-592
SELECT 46 + 48 - + 91 + - + NULLIF ( - MAX( + 98 ), 97 * - - 42 * + 21 - - 14 ) DIV 85 * - 23 * - - CAST( + + 69 AS SIGNED )
----
-1584

skipif mysql # not compatible
query I rowsort label-592
SELECT 46 + 48 - + 91 + - + NULLIF ( - MAX ( + 98 ), 97 * - - 42 * + 21 - - 14 ) / 85 * - 23 * - - CAST ( + + 69 AS INTEGER )
----
-1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-593
SELECT ALL + NULLIF ( CASE + - 71 WHEN + COALESCE ( + + 76, - AVG ( ALL ( + + 69 ) ) ) THEN - 67 WHEN 21 THEN + 5 END, + - COUNT( * ) ) - + MIN( ALL - + CAST( - + 15 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + NULLIF ( CASE + - 71 WHEN + COALESCE ( + + 76, - AVG ( ALL ( + + 69 ) ) ) THEN - 67 WHEN 21 THEN + 5 END, + - COUNT ( * ) ) - + MIN ( ALL - + CAST ( - + 15 AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 92, - 45 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT + 85 * SUM( ALL - 16 )
----
-1360

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + 85 * SUM ( ALL - 16 )
----
-1360

query I rowsort
SELECT ALL 31 - - - ( 21 ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-597
SELECT ALL COALESCE ( - 61, AVG ( - 95 ) * - - 70 * + 74 DIV - 3, + 46 * + CAST( NULL AS SIGNED ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL COALESCE ( - 61, AVG ( - 95 ) * - - 70 * + 74 / - 3, + 46 * + CAST ( NULL AS INTEGER ) ) AS col0
----
-61

query I rowsort
SELECT + 13 * - 2
----
-26

query I rowsort
SELECT DISTINCT NULLIF ( - 7, - 0 ) AS col1
----
-7

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

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL + 40 - - - COUNT ( * ) / - 58 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-601
SELECT - COUNT( * ) DIV - NULLIF ( + + MAX( ALL - 79 ), + - 73 + - ( - COUNT( * ) ) + + + 2 ) AS col1, 72
----
0
72

skipif mysql # not compatible
query II rowsort label-601
SELECT - COUNT ( * ) / - NULLIF ( + + MAX ( ALL - 79 ), + - 73 + - ( - COUNT ( * ) ) + + + 2 ) AS col1, 72
----
0
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN SUM( ALL + 65 ) + + - 71 THEN + 88 / - COALESCE ( 4, 47 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN SUM ( ALL + 65 ) + + - 71 THEN + 88 / - COALESCE ( 4, 47 ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-604
SELECT ALL COALESCE ( SUM( - + 14 ), + CAST( NULL AS SIGNED ) * + 58 * + + COUNT( * ) + - 24 * - - 80, + - CASE 66 WHEN 80 THEN + + SUM( 28 ) ELSE NULL END )
----
-14

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL COALESCE ( SUM ( - + 14 ), + CAST ( NULL AS INTEGER ) * + 58 * + + COUNT ( * ) + - 24 * - - 80, + - CASE 66 WHEN 80 THEN + + SUM ( 28 ) ELSE NULL END )
----
-14

query I rowsort
SELECT ALL 7 * + + 53 * + 81
----
30051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT ALL + + 11 * CAST( 20 AS SIGNED ) AS col1
----
220

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL + + 11 * CAST ( 20 AS INTEGER ) AS col1
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT - + MIN( - 38 ) + - + 91 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-607
SELECT - + MIN ( - 38 ) + - + 91 AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-608
SELECT + 44 DIV - NULLIF ( + 18, - SUM( DISTINCT - 47 ) ) + 19 - + - 99 + ( + CASE + 98 WHEN + 77 DIV + 37 * - - 18 * - 25 - MAX( + + 91 ) THEN - ( COUNT( * ) ) WHEN 0 THEN - 59 + - + 34 ELSE - 76 + + COALESCE ( 51, + COUNT( * ) ) * 88 END ) + - 69 DIV + 66 AS col2, + 48 AS col0
----
4527
48

skipif mysql # not compatible
query II rowsort label-608
SELECT + 44 / - NULLIF ( + 18, - SUM ( DISTINCT - 47 ) ) + 19 - + - 99 + ( + CASE + 98 WHEN + 77 / + 37 * - - 18 * - 25 - MAX ( + + 91 ) THEN - ( COUNT ( * ) ) WHEN 0 THEN - 59 + - + 34 ELSE - 76 + + COALESCE ( 51, + COUNT ( * ) ) * 88 END ) + - 69 / + 66 AS col2, + 48 AS col0
----
4527
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-609
SELECT + + 34 * + - CAST( NULL AS SIGNED ), + 29 AS col0
----
NULL
29

skipif mysql # not compatible
query II rowsort label-609
SELECT + + 34 * + - CAST ( NULL AS INTEGER ), + 29 AS col0
----
NULL
29

query I rowsort
SELECT ALL + 99 * + + 81 + - 22 + - 18 AS col0
----
7979

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

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

query I rowsort
SELECT ALL - 83 * - - 70 + + 4 * - + 63 col2
----
-6062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-613
SELECT COALESCE ( + 40, - COALESCE ( MAX( ALL 41 ), + + SUM( DISTINCT + - 58 ) DIV CAST( + 56 AS SIGNED ) * + COALESCE ( - COUNT( * ), + CAST( NULL AS SIGNED ) ) ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-613
SELECT COALESCE ( + 40, - COALESCE ( MAX ( ALL 41 ), + + SUM ( DISTINCT + - 58 ) / CAST ( + 56 AS INTEGER ) * + COALESCE ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
40

query I rowsort
SELECT + 50 * 64 AS col1
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT 7 * - 48 + - 0 + - - COUNT( * ) AS col1
----
-335

skipif mysql # not compatible
query I rowsort label-615
SELECT 7 * - 48 + - 0 + - - COUNT ( * ) AS col1
----
-335

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-616
SELECT ALL + COUNT( * ) * + CASE - - 32 WHEN COALESCE ( - 94, + + 64 ) + + COALESCE ( - + 95, - CAST( - - 9 AS DECIMAL ) ) THEN - 73 * + - 11 * 76 + - 86 * + 77 END - - - 10 AS col1, - 34 AS col1
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-616
SELECT ALL + COUNT ( * ) * + CASE - - 32 WHEN COALESCE ( - 94, + + 64 ) + + COALESCE ( - + 95, - CAST ( - - 9 AS REAL ) ) THEN - 73 * + - 11 * 76 + - 86 * + 77 END - - - 10 AS col1, - 34 AS col1
----
NULL
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL NULLIF ( - - 80, - + 22 * - - COUNT( * ) ) * 50 * - - CASE + 35 WHEN - 0 THEN - 83 ELSE + - 17 END
----
-68000

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL NULLIF ( - - 80, - + 22 * - - COUNT ( * ) ) * 50 * - - CASE + 35 WHEN - 0 THEN - 83 ELSE + - 17 END
----
-68000

query I rowsort
SELECT - 50 * - 74 * 77 + + 95 * ( + 91 ) + + - 2
----
293543

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL SUM( + 14 ) * - + 10 * - 46 - 62 AS col0
----
6378

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL SUM ( + 14 ) * - + 10 * - 46 - 62 AS col0
----
6378

query I rowsort
SELECT DISTINCT + 53 * - - 20 col2
----
1060

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

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

query I rowsort
SELECT - 89 - 79 AS col1
----
-168

query I rowsort
SELECT ALL NULLIF ( - ( + - 42 ), + ( + ( + 18 ) ) * + 13 )
----
42

query I rowsort
SELECT DISTINCT + 54 * + 4
----
216

query I rowsort
SELECT - 54 + - - 89 AS col2
----
35

query I rowsort
SELECT DISTINCT + 54 * 95
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - 30 + + - COUNT( * ) * + + 23
----
-53

skipif mysql # not compatible
query I rowsort label-627
SELECT - 30 + + - COUNT ( * ) * + + 23
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-628
SELECT DISTINCT CASE 67 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + 73 END
----
73

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT CASE 67 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 73 END
----
73

query I rowsort
SELECT DISTINCT - 56 * + 85
----
-4760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-630
SELECT ALL + - NULLIF ( - NULLIF ( + 82, - - 99 ), 72 ) + + + 66 * - ( COUNT( * ) ) AS col1, ( - 19 ) DIV 87
----
16
0

skipif mysql # not compatible
query II rowsort label-630
SELECT ALL + - NULLIF ( - NULLIF ( + 82, - - 99 ), 72 ) + + + 66 * - ( COUNT ( * ) ) AS col1, ( - 19 ) / 87
----
16
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-631
SELECT DISTINCT 23 + - ( 88 ) + + + MIN( DISTINCT 53 ) + 39 DIV + + 43 - + ( + 71 ) - 85 + + MAX( + 75 ) * - ( - 45 ) * + 46 + + + COUNT( * ) * - 26 DIV 49 * - COUNT( * )
----
155082

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT 23 + - ( 88 ) + + + MIN ( DISTINCT 53 ) + 39 / + + 43 - + ( + 71 ) - 85 + + MAX ( + 75 ) * - ( - 45 ) * + 46 + + + COUNT ( * ) * - 26 / 49 * - COUNT ( * )
----
155082

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

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

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

skipif mysql # not compatible
query I rowsort label-633
SELECT - COUNT ( * ) / 98 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT + 6 DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-634
SELECT + 6 / + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT + 10 + - MAX( CASE 53 WHEN 55 / 81 THEN NULL WHEN + 64 THEN 95 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT + 10 + - MAX ( CASE 53 WHEN 55 / 81 THEN NULL WHEN + 64 THEN 95 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-636
SELECT ALL + + 8 + + 35 - COALESCE ( 37, - 93 * - COUNT( * ) DIV + 62 + + CASE 28 WHEN + 64 * - 14 * - COUNT( * ) DIV + 89 + 63 + - 0 THEN + COUNT( * ) DIV + 43 * + MIN( 85 ) ELSE - - 95 + + 11 END DIV 74 + - - 12 + + 40, - 0 ) + 19 * - - 47
----
899

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL + + 8 + + 35 - COALESCE ( 37, - 93 * - COUNT ( * ) / + 62 + + CASE 28 WHEN + 64 * - 14 * - COUNT ( * ) / + 89 + 63 + - 0 THEN + COUNT ( * ) / + 43 * + MIN ( 85 ) ELSE - - 95 + + 11 END / 74 + - - 12 + + 40, - 0 ) + 19 * - - 47
----
899

query I rowsort
SELECT + 24 + 78 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT - MIN( - + 14 ) * + 56 * + COUNT( * ) AS col0
----
784

skipif mysql # not compatible
query I rowsort label-638
SELECT - MIN ( - + 14 ) * + 56 * + COUNT ( * ) AS col0
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT - + ( - - 41 ) + 61 * - 56 * + COUNT( * ) AS col1
----
-3457

skipif mysql # not compatible
query I rowsort label-639
SELECT - + ( - - 41 ) + 61 * - 56 * + COUNT ( * ) AS col1
----
-3457

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-640
SELECT ALL + ( + MIN( ALL - + 6 ) ) AS col0, 21 * + CAST( NULL AS DECIMAL )
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-640
SELECT ALL + ( + MIN ( ALL - + 6 ) ) AS col0, 21 * + CAST ( NULL AS REAL )
----
-6
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-641
SELECT ALL + + 69 AS col2, 33 * COUNT( * ) + - + 10 + + - 37
----
69
-14

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL + + 69 AS col2, 33 * COUNT ( * ) + - + 10 + + - 37
----
69
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT DISTINCT + - 28 DIV + - 6 + 17
----
21

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT + - 28 / + - 6 + 17
----
21

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

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

query I rowsort
SELECT + 35 + 33 AS col1
----
68

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-647
SELECT DISTINCT 84 DIV + + 34
----
2

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT 84 / + + 34
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT 55 * + MIN( ALL + + 68 )
----
3740

skipif mysql # not compatible
query I rowsort label-648
SELECT 55 * + MIN ( ALL + + 68 )
----
3740

query II rowsort
SELECT 62 + 59 AS col0, - 35 col2
----
121
-35

query I rowsort
SELECT ALL 19 * 14
----
266

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT 45 DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-651
SELECT 45 / + + 99
----
0

query I rowsort
SELECT 81 + + 55
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-653
SELECT CAST( 69 AS SIGNED ) * + - 14 AS col2
----
-966

skipif mysql # not compatible
query I rowsort label-653
SELECT CAST ( 69 AS INTEGER ) * + - 14 AS col2
----
-966

query I rowsort
SELECT ALL + 50 + + + 51 * 65
----
3365

query I rowsort
SELECT DISTINCT 77 + + + 96 col1
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT DISTINCT 53 + NULLIF ( 2, - - COUNT( + 80 ) ) col0
----
55

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT 53 + NULLIF ( 2, - - COUNT ( + 80 ) ) col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT DISTINCT - + 35 + - - 5, - 77 - + 72 + ( - COUNT( * ) ) AS col1
----
-30
-150

skipif mysql # not compatible
query II rowsort label-657
SELECT DISTINCT - + 35 + - - 5, - 77 - + 72 + ( - COUNT ( * ) ) AS col1
----
-30
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT - 11 + - CAST( NULL AS SIGNED ) + + 78 * - 0 * - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT - 11 + - CAST ( NULL AS INTEGER ) + + 78 * - 0 * - 92 AS col0
----
NULL

query I rowsort
SELECT - 25 * + + 60
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT - SUM( DISTINCT + 74 ) * + 80 + 97
----
-5823

skipif mysql # not compatible
query I rowsort label-660
SELECT - SUM ( DISTINCT + 74 ) * + 80 + 97
----
-5823

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT SUM( COALESCE ( 89, + 93 + 91 - - 56, - - 32 ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-662
SELECT SUM ( COALESCE ( 89, + 93 + 91 - - 56, - - 32 ) ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT - + COUNT( * ) + + - 97 - 17 * + 42
----
-812

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT - + COUNT ( * ) + + - 97 - 17 * + 42
----
-812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-664
SELECT 27 - + + CAST( 91 AS SIGNED ) + + + CASE 16 WHEN - + 3 THEN + 73 WHEN + 54 THEN + 34 * ( - - 81 ) * + 42 ELSE 47 END * + + 37 + - + COALESCE ( - MAX( DISTINCT + 80 ), 43 ) DIV - 42 + + 32 col0
----
1706

skipif mysql # not compatible
query I rowsort label-664
SELECT 27 - + + CAST ( 91 AS INTEGER ) + + + CASE 16 WHEN - + 3 THEN + 73 WHEN + 54 THEN + 34 * ( - - 81 ) * + 42 ELSE 47 END * + + 37 + - + COALESCE ( - MAX ( DISTINCT + 80 ), 43 ) / - 42 + + 32 col0
----
1706

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL - - 93 + - COUNT( * ) * + 30
----
63

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL - - 93 + - COUNT ( * ) * + 30
----
63

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-667
SELECT DISTINCT - 84 + - - 96 * 30 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT - 84 + - - 96 * 30 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

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

query I rowsort
SELECT + - 90 * + 28 + 24 AS col1
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - 11 - - COUNT( * ) * 58
----
47

skipif mysql # not compatible
query I rowsort label-671
SELECT - 11 - - COUNT ( * ) * 58
----
47

query I rowsort
SELECT - 24 - - 30 AS col0
----
6

query I rowsort
SELECT 75 * + - 91 AS col1
----
-6825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-674
SELECT ALL - 68 DIV + 19 + - COUNT( * ) * - 47 * - 28 * - 21
----
27633

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL - 68 / + 19 + - COUNT ( * ) * - 47 * - 28 * - 21
----
27633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-675
SELECT DISTINCT - 35 * - 61 * 7 * - + COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT - 35 * - 61 * 7 * - + COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT 30 + - 56 + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-676
SELECT 30 + - 56 + COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT ALL - CASE + 53 WHEN - - 96 - COUNT( * ) + + ( - 39 ) THEN NULL WHEN - + 83 / 27 * - - COUNT( * ) * - ( + SUM( DISTINCT + 48 ) ) THEN + + COUNT( 15 ) ELSE 85 END AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL - CASE + 53 WHEN - - 96 - COUNT ( * ) + + ( - 39 ) THEN NULL WHEN - + 83 / 27 * - - COUNT ( * ) * - ( + SUM ( DISTINCT + 48 ) ) THEN + + COUNT ( 15 ) ELSE 85 END AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL 14 * + ( + CASE MAX( + 55 ) WHEN 7 THEN - COALESCE ( ( + 89 ), - COUNT( DISTINCT 82 ) ) - 92 + - 96 + - 91 + 48 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL 14 * + ( + CASE MAX ( + 55 ) WHEN 7 THEN - COALESCE ( ( + 89 ), - COUNT ( DISTINCT 82 ) ) - 92 + - 96 + - 91 + 48 END ) AS col2
----
NULL

query I rowsort
SELECT 46 * 18 AS col2
----
828

onlyif mysql # aggregate syntax: 
query II rowsort label-680
SELECT DISTINCT - CASE COUNT( * ) WHEN + - ( 74 ) * - 97 THEN NULL WHEN - 25 THEN 66 WHEN - 88 - - 49 THEN 48 END AS col2, + 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-680
SELECT DISTINCT - CASE COUNT ( * ) WHEN + - ( 74 ) * - 97 THEN NULL WHEN - 25 THEN 66 WHEN - 88 - - 49 THEN 48 END AS col2, + 92
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT - SUM( ALL - 70 ) * - 26 * + 21
----
-38220

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT - SUM ( ALL - 70 ) * - 26 * + 21
----
-38220

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT - 42 DIV + + 10 + 75 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-682
SELECT - 42 / + + 10 + 75 AS col2
----
71

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

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

query II rowsort
SELECT 80 col0, 20
----
80
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-685
SELECT SUM( 32 ) - + 12 DIV NULLIF ( - + COUNT( * ), - + 72 )
----
44

skipif mysql # not compatible
query I rowsort label-685
SELECT SUM ( 32 ) - + 12 / NULLIF ( - + COUNT ( * ), - + 72 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT ALL - SUM( - - CAST( NULL AS SIGNED ) ) * 61 + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL - SUM ( - - CAST ( NULL AS INTEGER ) ) * 61 + - 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-687
SELECT COUNT( ALL + + 54 ) * - ( 85 ) DIV COUNT( DISTINCT - 17 ) + - 21 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-687
SELECT COUNT ( ALL + + 54 ) * - ( 85 ) / COUNT ( DISTINCT - 17 ) + - 21 AS col2
----
-106

onlyif mysql # DIV for integer division: 
query II rowsort label-688
SELECT ALL 1 * + 91 * + 68 AS col0, 27 DIV + 95 AS col2
----
6188
0

skipif mysql # not compatible
query II rowsort label-688
SELECT ALL 1 * + 91 * + 68 AS col0, 27 / + 95 AS col2
----
6188
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-689
SELECT ALL 12 + + CASE + 80 WHEN + 60 * 72 * - AVG ( DISTINCT + CASE - 64 WHEN + 21 THEN - 78 * + CAST( NULL AS SIGNED ) WHEN 22 * 89 THEN NULL ELSE NULL END ) + + 32 - + 81 * - 15 THEN NULL WHEN + 82 / + - 80 THEN NULL ELSE COUNT( + 37 ) + - 87 END AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL 12 + + CASE + 80 WHEN + 60 * 72 * - AVG ( DISTINCT + CASE - 64 WHEN + 21 THEN - 78 * + CAST ( NULL AS INTEGER ) WHEN 22 * 89 THEN NULL ELSE NULL END ) + + 32 - + 81 * - 15 THEN NULL WHEN + 82 / + - 80 THEN NULL ELSE COUNT ( + 37 ) + - 87 END AS col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-690
SELECT DISTINCT 71 + 25 + 27 + + CAST( NULL AS SIGNED ) + + 34 + + - 7 * + + 17 / - 84 * - 13 * - + 70 * 4 - + 85 * + 28 + 58 + + + 50 * + 81 * - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT 71 + 25 + 27 + + CAST ( NULL AS INTEGER ) + + 34 + + - 7 * + + 17 / - 84 * - 13 * - + 70 * 4 - + 85 * + 28 + 58 + + + 50 * + 81 * - 93 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT ALL 30 DIV 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL 30 / 88 col0
----
0

query I rowsort
SELECT + 40 * - 45 + + ( 58 ) AS col1
----
-1742

query I rowsort
SELECT ALL 65 * - - 62 col1
----
4030

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

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

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

skipif mysql # not compatible
query I rowsort label-695
SELECT ( CAST ( NULL AS INTEGER ) ) + 88 + 29 / - 94
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT DISTINCT 58 * - ( - - 4 ) + - + ( 27 ) col2, - COUNT( * ) col2
----
-259
-1

skipif mysql # not compatible
query II rowsort label-697
SELECT DISTINCT 58 * - ( - - 4 ) + - + ( 27 ) col2, - COUNT ( * ) col2
----
-259
-1

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

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

query I rowsort
SELECT + ( 23 ) + + - 55 - - 40 AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-700
SELECT 41 + - 29 + - COUNT( * ) DIV 99
----
12

skipif mysql # not compatible
query I rowsort label-700
SELECT 41 + - 29 + - COUNT ( * ) / 99
----
12

query I rowsort
SELECT - ( + 76 ) + + - NULLIF ( 87, - - ( + ( 22 ) ) ) * 99 + + 17 * + 34
----
-8111

query I rowsort
SELECT ALL 28 - 9
----
19

query II rowsort
SELECT DISTINCT - 90, + 40 * - 62 - + 3 AS col1
----
-90
-2483

query I rowsort
SELECT - 72 + - - 23 * ( 47 )
----
1009

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT - + MAX( - + 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-705
SELECT - + MAX ( - + 67 ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-706
SELECT NULLIF ( + + CASE 5 WHEN 90 THEN + 24 WHEN + + 52 * AVG ( ALL + - CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + 45 + + + 98 THEN NULL ELSE - - 24 * + 15 + + SUM( + 68 ) * + 37 - - - 29 END, + + SUM( ALL 76 ) * - 53 * + - 8 + + - 19 ) AS col2
----
2847

skipif mysql # not compatible
query I rowsort label-706
SELECT NULLIF ( + + CASE 5 WHEN 90 THEN + 24 WHEN + + 52 * AVG ( ALL + - CAST ( NULL AS REAL ) ) THEN NULL WHEN + 45 + + + 98 THEN NULL ELSE - - 24 * + 15 + + SUM ( + 68 ) * + 37 - - - 29 END, + + SUM ( ALL 76 ) * - 53 * + - 8 + + - 19 ) AS col2
----
2847

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + COUNT( * ) + + 62 + 49
----
112

skipif mysql # not compatible
query I rowsort label-707
SELECT + COUNT ( * ) + + 62 + 49
----
112

query I rowsort
SELECT + 22 + + - 89 * - 12 AS col0
----
1090

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT - 31 * 3 * + - MAX( + ( + 57 ) ) + + 16 * - 91
----
3845

skipif mysql # not compatible
query I rowsort label-709
SELECT - 31 * 3 * + - MAX ( + ( + 57 ) ) + + 16 * - 91
----
3845

query I rowsort
SELECT 21 + - COALESCE ( - 48, 49 )
----
69

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

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

query I rowsort
SELECT - 21 * - 77 * - + 26
----
-42042

query I rowsort
SELECT CASE + 16 WHEN + 28 + - 20 THEN NULL ELSE - - 98 END AS col2
----
98

query I rowsort
SELECT - 14 + + 31
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-715
SELECT - 85 DIV + - COALESCE ( + 77, + 27 + + COUNT( * ), - + COUNT( - + 71 ), - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-715
SELECT - 85 / + - COALESCE ( + 77, + 27 + + COUNT ( * ), - + COUNT ( - + 71 ), - + COUNT ( * ) )
----
1

query I rowsort
SELECT - 61 * 84 AS col0
----
-5124

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT ALL COUNT( * ) * - + 44 + + - 14 * + 26 + + ( + COUNT( * ) ) * + 96 AS col2
----
-312

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL COUNT ( * ) * - + 44 + + - 14 * + 26 + + ( + COUNT ( * ) ) * + 96 AS col2
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT COUNT( * ) / + MAX( - 90 ) + 65 + COUNT( * ) * - CASE + 84 WHEN 27 THEN ( COUNT( * ) ) WHEN - - 48 THEN NULL END + + CASE - 28 WHEN + 32 THEN - + 47 - 25 / + - 18 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT COUNT ( * ) / + MAX ( - 90 ) + 65 + COUNT ( * ) * - CASE + 84 WHEN 27 THEN ( COUNT ( * ) ) WHEN - - 48 THEN NULL END + + CASE - 28 WHEN + 32 THEN - + 47 - 25 / + - 18 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-719
SELECT ALL 25 * + ( + CASE + - COALESCE ( - + 12, - 14 ) WHEN + CASE + + COUNT( * ) WHEN 26 THEN NULL WHEN + ( + 16 ) THEN - 28 * 84 * - 46 * 76 - 77 WHEN COALESCE ( 77, + - CAST( - - 23 AS DECIMAL ) * 96 ) * + 93 * COALESCE ( + + 95, + MIN( - - CAST( NULL AS DECIMAL ) ) * 28 + - - 81, COUNT( - 31 ) + 21 ) * - - 19 THEN NULL END + 97 THEN NULL ELSE 80 + - 14 END ) AS col0
----
1650

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL 25 * + ( + CASE + - COALESCE ( - + 12, - 14 ) WHEN + CASE + + COUNT ( * ) WHEN 26 THEN NULL WHEN + ( + 16 ) THEN - 28 * 84 * - 46 * 76 - 77 WHEN COALESCE ( 77, + - CAST ( - - 23 AS REAL ) * 96 ) * + 93 * COALESCE ( + + 95, + MIN ( - - CAST ( NULL AS REAL ) ) * 28 + - - 81, COUNT ( - 31 ) + 21 ) * - - 19 THEN NULL END + 97 THEN NULL ELSE 80 + - 14 END ) AS col0
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT - 31 * - - MIN( ALL + ( + 49 ) )
----
-1519

skipif mysql # not compatible
query I rowsort label-720
SELECT - 31 * - - MIN ( ALL + ( + 49 ) )
----
-1519

query I rowsort
SELECT ALL 43 * - - 46 * + + 50 * + 21 + 7 AS col2
----
2076907

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT DISTINCT 93 * + 45 + COUNT( * )
----
4186

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT 93 * + 45 + COUNT ( * )
----
4186

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-724
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0, CAST( + 4 AS SIGNED ) DIV + NULLIF ( MIN( + 68 ), + + ( - - 74 ) ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-724
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, CAST ( + 4 AS INTEGER ) / + NULLIF ( MIN ( + 68 ), + + ( - - 74 ) ) AS col0
----
NULL
0

query I rowsort
SELECT ALL - 23 * + - 48 AS col1
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT + COUNT( * ) + - - CASE 92 WHEN + - COUNT( * ) / - - 8 THEN - + NULLIF ( - COUNT( * ), + 63 * + 79 ) END + - - 93 * 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT + COUNT ( * ) + - - CASE 92 WHEN + - COUNT ( * ) / - - 8 THEN - + NULLIF ( - COUNT ( * ), + 63 * + 79 ) END + - - 93 * 15 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT ALL MIN( DISTINCT 65 ) + - 29 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL MIN ( DISTINCT 65 ) + - 29 AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-728
SELECT COUNT( * ) AS col1, + 23 * + - ( - + MAX( DISTINCT 79 ) )
----
1
1817

skipif mysql # not compatible
query II rowsort label-728
SELECT COUNT ( * ) AS col1, + 23 * + - ( - + MAX ( DISTINCT 79 ) )
----
1
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL 46 + - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL 46 + - - COUNT ( * )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-730
SELECT - 16 * + NULLIF ( - 47, CASE 53 WHEN - - COUNT( + + 98 ) THEN - + 43 ELSE - NULLIF ( - 38, COALESCE ( - + 37, + - 10 * - 59 ) + NULLIF ( 77, COUNT( - 18 ) ) * - CAST( NULL AS SIGNED ) + 61 * + + 85 ) + - 27 END )
----
752

skipif mysql # not compatible
query I rowsort label-730
SELECT - 16 * + NULLIF ( - 47, CASE 53 WHEN - - COUNT ( + + 98 ) THEN - + 43 ELSE - NULLIF ( - 38, COALESCE ( - + 37, + - 10 * - 59 ) + NULLIF ( 77, COUNT ( - 18 ) ) * - CAST ( NULL AS INTEGER ) + 61 * + + 85 ) + - 27 END )
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT + 86 * - 37 * + + COUNT( * ) * CASE - 61 WHEN - 21 * 14 THEN NULL ELSE + + COUNT( * ) + 83 END + 33 col0
----
-267255

skipif mysql # not compatible
query I rowsort label-731
SELECT + 86 * - 37 * + + COUNT ( * ) * CASE - 61 WHEN - 21 * 14 THEN NULL ELSE + + COUNT ( * ) + 83 END + 33 col0
----
-267255

query II rowsort
SELECT ALL ( 33 ), + 2 col1
----
33
2

query II rowsort
SELECT ALL - 97 AS col0, 30 * 0 * + 86
----
-97
0

query I rowsort
SELECT ALL + 84 - + - 86 + - - 79 AS col2
----
249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-735
SELECT ALL 23 AS col2, 80 * + MIN( ALL - + NULLIF ( + CAST( + 98 AS SIGNED ), + CAST( NULL AS DECIMAL ) ) ) AS col0
----
23
-7840

skipif mysql # not compatible
query II rowsort label-735
SELECT ALL 23 AS col2, 80 * + MIN ( ALL - + NULLIF ( + CAST ( + 98 AS INTEGER ), + CAST ( NULL AS REAL ) ) ) AS col0
----
23
-7840

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT + + ( + 98 ) DIV 22 * - - 44
----
176

skipif mysql # not compatible
query I rowsort label-736
SELECT + + ( + 98 ) / 22 * - - 44
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT + NULLIF ( + - COUNT( * ), + 78 + - 7 ) * 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-737
SELECT + NULLIF ( + - COUNT ( * ), + 78 + - 7 ) * 52 AS col0
----
-52

query I rowsort
SELECT + - 54 + + + 80 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT ALL - NULLIF ( + + 78, + 20 ) - + - 40 * + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL - NULLIF ( + + 78, + 20 ) - + - 40 * + COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL 15 * - + CASE - 44 WHEN - 66 THEN - - 19 + + 60 + - + 49 * + 63 + + + COUNT( * ) + ( + 2 ) ELSE + 26 END
----
-390

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL 15 * - + CASE - 44 WHEN - 66 THEN - - 19 + + 60 + - + 49 * + 63 + + + COUNT ( * ) + ( + 2 ) ELSE + 26 END
----
-390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-741
SELECT + - NULLIF ( - 10, + 62 ) * - CAST( + 84 AS SIGNED ) col1
----
-840

skipif mysql # not compatible
query I rowsort label-741
SELECT + - NULLIF ( - 10, + 62 ) * - CAST ( + 84 AS INTEGER ) col1
----
-840

query I rowsort
SELECT DISTINCT - 41 * + + 93
----
-3813

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT DISTINCT 47 * 22 - COUNT( * )
----
1033

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT 47 * 22 - COUNT ( * )
----
1033

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

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

query I rowsort
SELECT + 9 * 4
----
36

query I rowsort
SELECT 62 * - - 84 + 91 AS col0
----
5299

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-748
SELECT + ( - COUNT( * ) ) AS col2, - 6 AS col2, + ( - 38 ) AS col0
----
-1
-6
-38

skipif mysql # not compatible
query III rowsort label-748
SELECT + ( - COUNT ( * ) ) AS col2, - 6 AS col2, + ( - 38 ) AS col0
----
-1
-6
-38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-750
SELECT ALL 70 / AVG ( DISTINCT - 43 ) * - 37 - 8 - - - 53 * + - 26 * + - COUNT( * ) * + ( - - 45 ) * 72 * - CAST( NULL AS SIGNED ) + + + 54 + + 58 * - 11 * + COUNT( * ) + - + 72 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL 70 / AVG ( DISTINCT - 43 ) * - 37 - 8 - - - 53 * + - 26 * + - COUNT ( * ) * + ( - - 45 ) * 72 * - CAST ( NULL AS INTEGER ) + + + 54 + + 58 * - 11 * + COUNT ( * ) + - + 72 col2
----
NULL

query I rowsort
SELECT DISTINCT 54 * - 14 AS col2
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT ALL - 99 * + - CAST( 65 AS SIGNED ) * 82 + - + ( 71 ) + ( + - 56 ) - + 91 + + + 80 + - + 34 * - + COUNT( * ) - 7 AS col2
----
527559

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL - 99 * + - CAST ( 65 AS INTEGER ) * 82 + - + ( 71 ) + ( + - 56 ) - + 91 + + + 80 + - + 34 * - + COUNT ( * ) - 7 AS col2
----
527559

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT ALL + COALESCE ( + 42, - 29 DIV - 28 + 78 + + 17 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL + COALESCE ( + 42, - 29 / - 28 + 78 + + 17 ) AS col1
----
42

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

skipif mysql # not compatible
query I rowsort label-754
SELECT - CAST ( NULL AS INTEGER ) / + 52 col2
----
NULL

query I rowsort
SELECT + 71 + + 15 + + 90 AS col2
----
176

query I rowsort
SELECT - 77 * - + 3
----
231

query I rowsort
SELECT ALL 26 * 33 + + 25
----
883

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-759
SELECT DISTINCT + COALESCE ( - - 6, + + 65 ) / CASE - 20 WHEN NULLIF ( + - CASE + COUNT( * ) WHEN + - 37 THEN + - ( 32 ) * + AVG ( DISTINCT - - 39 ) WHEN + COUNT( * ) THEN NULL ELSE NULL END, - CAST( NULL AS SIGNED ) ) THEN + 34 WHEN + CASE - 32 WHEN + + 31 + 77 THEN NULL ELSE 62 END * COUNT( * ) + COUNT( * ) THEN NULL ELSE NULL END - - + SUM( ALL 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT + COALESCE ( - - 6, + + 65 ) / CASE - 20 WHEN NULLIF ( + - CASE + COUNT ( * ) WHEN + - 37 THEN + - ( 32 ) * + AVG ( DISTINCT - - 39 ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END, - CAST ( NULL AS INTEGER ) ) THEN + 34 WHEN + CASE - 32 WHEN + + 31 + 77 THEN NULL ELSE 62 END * COUNT ( * ) + COUNT ( * ) THEN NULL ELSE NULL END - - + SUM ( ALL 17 )
----
NULL

query I rowsort
SELECT ALL - + 86 * 47 * - ( + 21 ) col0
----
84882

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - - COUNT( * ) + 16 * - + 50 AS col2
----
-799

skipif mysql # not compatible
query I rowsort label-761
SELECT - - COUNT ( * ) + 16 * - + 50 AS col2
----
-799

query I rowsort
SELECT - 50 - + 71 AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT - - 58 + MAX( - + 83 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-763
SELECT - - 58 + MAX ( - + 83 ) AS col1
----
-25

query I rowsort
SELECT + 63 + + 10 + + 54 * - 81 + 90 - - 63 + - + 25
----
-4173

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT - + ( - ( - 12 ) ) * 17 * + - NULLIF ( 16, - + 12 * COUNT( * ) ) + + 52 - + - 59 / + 34 + - CASE ( - 43 ) WHEN + 67 THEN NULL WHEN - CASE COUNT( * ) WHEN + 42 THEN NULL ELSE - - 82 END * + - 24 + 21 + + 26 + 80 THEN - 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT - + ( - ( - 12 ) ) * 17 * + - NULLIF ( 16, - + 12 * COUNT ( * ) ) + + 52 - + - 59 / + 34 + - CASE ( - 43 ) WHEN + 67 THEN NULL WHEN - CASE COUNT ( * ) WHEN + 42 THEN NULL ELSE - - 82 END * + - 24 + 21 + + 26 + 80 THEN - 77 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT - CAST( NULL AS SIGNED ) * 82 / + CAST( + COUNT( DISTINCT CAST( + 77 AS SIGNED ) ) AS SIGNED ) + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT - CAST ( NULL AS INTEGER ) * 82 / + CAST ( + COUNT ( DISTINCT CAST ( + 77 AS INTEGER ) ) AS INTEGER ) + - 33 AS col2
----
NULL

query II rowsort
SELECT + - 61 * + + 91 AS col0, - 46
----
-5551
-46

query I rowsort
SELECT + 90 + - - 1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-769
SELECT - 30 + - 48 + - - 43 * - 79 / 81 * - + 16 * + 19 + CAST( NULL AS SIGNED ) * + CASE + 67 WHEN 60 - - CASE + + CAST( + 63 AS SIGNED ) WHEN NULLIF ( + 44, 90 ) THEN + + 40 * - 55 + - + 64 WHEN + 63 * - 10 / - - 36 + 40 + + 36 * - + CAST( - 75 AS DECIMAL ) THEN + 19 + - 54 / - COUNT( * ) WHEN - - 26 THEN NULL ELSE NULL END * - 22 - + - 35 THEN NULL ELSE + 82 END - + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT - 30 + - 48 + - - 43 * - 79 / 81 * - + 16 * + 19 + CAST ( NULL AS INTEGER ) * + CASE + 67 WHEN 60 - - CASE + + CAST ( + 63 AS INTEGER ) WHEN NULLIF ( + 44, 90 ) THEN + + 40 * - 55 + - + 64 WHEN + 63 * - 10 / - - 36 + 40 + + 36 * - + CAST ( - 75 AS REAL ) THEN + 19 + - 54 / - COUNT ( * ) WHEN - - 26 THEN NULL ELSE NULL END * - 22 - + - 35 THEN NULL ELSE + 82 END - + 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-770
SELECT ALL + COALESCE ( + - 73, 76 * COUNT( - 83 ), - MAX( DISTINCT + COALESCE ( - 38, 23 * + 25 ) ) ) AS col2, 35 * - 64 AS col2
----
-73
-2240

skipif mysql # not compatible
query II rowsort label-770
SELECT ALL + COALESCE ( + - 73, 76 * COUNT ( - 83 ), - MAX ( DISTINCT + COALESCE ( - 38, 23 * + 25 ) ) ) AS col2, 35 * - 64 AS col2
----
-73
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT + 52 * 97 + 74 + COUNT( * ) + + 70
----
5189

skipif mysql # not compatible
query I rowsort label-771
SELECT + 52 * 97 + 74 + COUNT ( * ) + + 70
----
5189

query I rowsort
SELECT ALL - 56 * 50
----
-2800

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT ALL 49 DIV 88 - - 52 * 50 + 40 - + 65
----
2575

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL 49 / 88 - - 52 * 50 + 40 - + 65
----
2575

onlyif mysql # aggregate syntax: 
query II rowsort label-774
SELECT - COUNT( * ) + 17 AS col2, 41 AS col1
----
16
41

skipif mysql # not compatible
query II rowsort label-774
SELECT - COUNT ( * ) + 17 AS col2, 41 AS col1
----
16
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-775
SELECT DISTINCT CASE COUNT( * ) WHEN + 79 THEN 99 * 39 - 31 - - 89 * + 35 * + CASE + 2 WHEN CAST( NULL AS DECIMAL ) + + NULLIF ( + 56, + - COALESCE ( + - 11, CAST( 28 AS SIGNED ) ) ) * - - 43 THEN - - NULLIF ( - COALESCE ( - 84, + 73 ), + 35 + + 95 + - + 67 - - 88 ) * + COUNT( * ) + 49 + 16 * 62 ELSE + + 36 + - 67 END ELSE NULL END + - 7 AS col2, + 97 AS col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-775
SELECT DISTINCT CASE COUNT ( * ) WHEN + 79 THEN 99 * 39 - 31 - - 89 * + 35 * + CASE + 2 WHEN CAST ( NULL AS REAL ) + + NULLIF ( + 56, + - COALESCE ( + - 11, CAST ( 28 AS INTEGER ) ) ) * - - 43 THEN - - NULLIF ( - COALESCE ( - 84, + 73 ), + 35 + + 95 + - + 67 - - 88 ) * + COUNT ( * ) + 49 + 16 * 62 ELSE + + 36 + - 67 END ELSE NULL END + - 7 AS col2, + 97 AS col1
----
NULL
97

query I rowsort
SELECT DISTINCT 97 + 61 AS col0
----
158

query I rowsort
SELECT ALL 56 + - 41 AS col1
----
15

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

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT - 4 + - + COUNT ( * ) AS col0
----
-5

query I rowsort
SELECT DISTINCT 8 + - 46
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT 65 * 20 * - - COUNT( * ) col1
----
1300

skipif mysql # not compatible
query I rowsort label-780
SELECT 65 * 20 * - - COUNT ( * ) col1
----
1300

query I rowsort
SELECT ALL 20 * + 88 AS col2
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT DISTINCT 43 + NULLIF ( 62, - 41 * - 33 * + COALESCE ( - - 89, + 13 + + MAX( 10 ) + - COUNT( * ) * + 21 - - 3, + 89 ) - + - 14 ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT 43 + NULLIF ( 62, - 41 * - 33 * + COALESCE ( - - 89, + 13 + + MAX ( 10 ) + - COUNT ( * ) * + 21 - - 3, + 89 ) - + - 14 ) AS col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-783
SELECT DISTINCT - 13 AS col0, 87 * COUNT( * ) DIV COUNT( ALL - 73 )
----
-13
87

skipif mysql # not compatible
query II rowsort label-783
SELECT DISTINCT - 13 AS col0, 87 * COUNT ( * ) / COUNT ( ALL - 73 )
----
-13
87

query II rowsort
SELECT 90, 53 - + - 78 AS col2
----
90
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-785
SELECT DISTINCT 7 + 75 + 68 AS col0, CAST( NULL AS SIGNED ) + NULLIF ( + 4, + 24 )
----
150
NULL

skipif mysql # not compatible
query II rowsort label-785
SELECT DISTINCT 7 + 75 + 68 AS col0, CAST ( NULL AS INTEGER ) + NULLIF ( + 4, + 24 )
----
150
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-786
SELECT 77, CAST( - 23 AS SIGNED ) AS col2
----
77
-23

skipif mysql # not compatible
query II rowsort label-786
SELECT 77, CAST ( - 23 AS INTEGER ) AS col2
----
77
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-787
SELECT CAST( - 93 AS SIGNED ) * + 87, - 99 * + + 44 * + 1 AS col0
----
-8091
-4356

skipif mysql # not compatible
query II rowsort label-787
SELECT CAST ( - 93 AS INTEGER ) * + 87, - 99 * + + 44 * + 1 AS col0
----
-8091
-4356

query I rowsort
SELECT ALL + 60 * + + 13 AS col1
----
780

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-790
SELECT ALL COUNT( * ) - - - 11 DIV - 5 + 60
----
63

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL COUNT ( * ) - - - 11 / - 5 + 60
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT DISTINCT - COUNT( + + COALESCE ( - 35, - ( 3 ), + 43, - + 66 ) ) * - 3
----
3

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT - COUNT ( + + COALESCE ( - 35, - ( 3 ), + 43, - + 66 ) ) * - 3
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-792
SELECT ALL + + 22 - SUM( ALL - COALESCE ( + 14, CAST( + 53 AS SIGNED ) ) ) + - 95 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + + 22 - SUM ( ALL - COALESCE ( + 14, CAST ( + 53 AS INTEGER ) ) ) + - 95 AS col0
----
-59

query I rowsort
SELECT ALL 95 * - 76 AS col1
----
-7220

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-794
SELECT 56 * - 16 / - 33 + - CAST( NULL AS DECIMAL ) / - - MAX( ALL 20 ), 4 AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-794
SELECT 56 * - 16 / - 33 + - CAST ( NULL AS REAL ) / - - MAX ( ALL 20 ), 4 AS col2
----
NULL
4

query II rowsort
SELECT ALL - - COALESCE ( - + 7, 99 ) AS col1, 79 col2
----
-7
79

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - 92 * + SUM( + + 10 ) + - - 81 AS col0
----
-839

skipif mysql # not compatible
query I rowsort label-796
SELECT - 92 * + SUM ( + + 10 ) + - - 81 AS col0
----
-839

query I rowsort
SELECT - 61 + ( + - 82 )
----
-143

query II rowsort
SELECT 71 AS col0, - 45 AS col0
----
71
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-799
SELECT ALL - ( - 53 ) DIV - + 61 AS col0, 95
----
0
95

skipif mysql # not compatible
query II rowsort label-799
SELECT ALL - ( - 53 ) / - + 61 AS col0, 95
----
0
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-800
SELECT ALL + CAST( NULL AS SIGNED ) / - - 3 * 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 3 * 36 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT ALL + ( COALESCE ( - COUNT( * ), + - CAST( + 90 AS SIGNED ) ) ) * - - 77 * + 94
----
-7238

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL + ( COALESCE ( - COUNT ( * ), + - CAST ( + 90 AS INTEGER ) ) ) * - - 77 * + 94
----
-7238

query I rowsort
SELECT ALL - + 75 + + 14 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-803
SELECT - - 65 AS col2, 20 * + + COUNT( * )
----
65
20

skipif mysql # not compatible
query II rowsort label-803
SELECT - - 65 AS col2, 20 * + + COUNT ( * )
----
65
20

query I rowsort
SELECT ALL + 16 + - 28 + + 73 AS col0
----
61

query I rowsort
SELECT - 8 + - 9 - - 91 + CASE 64 WHEN - 28 THEN 47 ELSE NULL END col2
----
NULL

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

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

query I rowsort
SELECT ALL - - 75 + - 12 AS col1
----
63

query I rowsort
SELECT ALL + 54 + 45
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-809
SELECT DISTINCT + CAST( 74 AS SIGNED ) + + 62 * - - COALESCE ( - - 44, - MAX( ALL + 50 ) ) * - COUNT( * ) + 48 + - CASE - CASE - 12 WHEN - 10 THEN NULL WHEN MIN( - + 3 ) THEN - ( + - ( 66 ) ) + - 60 + COUNT( * ) / + 68 * - - SUM( DISTINCT ( - 42 ) ) / - 50 ELSE + 36 + ( + + COUNT( * ) ) END WHEN + + 84 * + - 75 * 92 + - - ( - 34 ) + + 4 * + + 44 * - 71 + - - 35 - - NULLIF ( + 26, + COUNT( * ) ) THEN 85 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT + CAST ( 74 AS INTEGER ) + + 62 * - - COALESCE ( - - 44, - MAX ( ALL + 50 ) ) * - COUNT ( * ) + 48 + - CASE - CASE - 12 WHEN - 10 THEN NULL WHEN MIN ( - + 3 ) THEN - ( + - ( 66 ) ) + - 60 + COUNT ( * ) / + 68 * - - SUM ( DISTINCT ( - 42 ) ) / - 50 ELSE + 36 + ( + + COUNT ( * ) ) END WHEN + + 84 * + - 75 * 92 + - - ( - 34 ) + + 4 * + + 44 * - 71 + - - 35 - - NULLIF ( + 26, + COUNT ( * ) ) THEN 85 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT 62 DIV + COALESCE ( + 68, + + 58, + - 48 + - + 53 * - 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-810
SELECT 62 / + COALESCE ( + 68, + + 58, + - 48 + - + 53 * - 88 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - ( + 56 ) + + + 72 * 64 AS col0
----
4552

query II rowsort
SELECT DISTINCT 67 + + 99 col2, + 36 AS col1
----
166
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-813
SELECT 74 + + 37 + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * + COALESCE ( + + 96, - 67 * + 80 + + 21, - CAST( + 62 AS SIGNED ) + + - 38 * + CAST( NULL AS SIGNED ) * COUNT( * ) ) - + NULLIF ( - 41, + 84 * + 92 * - + 93 ) / - - 30 * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT 74 + + 37 + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + COALESCE ( + + 96, - 67 * + 80 + + 21, - CAST ( + 62 AS INTEGER ) + + - 38 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) ) - + NULLIF ( - 41, + 84 * + 92 * - + 93 ) / - - 30 * + 9
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT ALL 2 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL 2 / - - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT DISTINCT + 36 + + - MIN( - 30 )
----
66

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT + 36 + + - MIN ( - 30 )
----
66

query I rowsort
SELECT 55 + - 78 AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT DISTINCT - 73 DIV MAX( + + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT - 73 / MAX ( + + 85 )
----
0

query II rowsort
SELECT DISTINCT 75 * - + 39 - + ( - - 89 ), - 19 * 99 AS col2
----
-3014
-1881

query I rowsort
SELECT ALL 66 * - + 23
----
-1518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT 71 * - 53 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-820
SELECT 71 * - 53 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT MAX( 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-821
SELECT MAX ( 52 ) AS col2
----
52

query I rowsort
SELECT ALL 49 * + 61 - + - 49 AS col0
----
3038

query I rowsort
SELECT DISTINCT 1 * - 85
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-824
SELECT DISTINCT 12 * 59 - + - MAX( 70 ) AS col1, - 2
----
778
-2

skipif mysql # not compatible
query II rowsort label-824
SELECT DISTINCT 12 * 59 - + - MAX ( 70 ) AS col1, - 2
----
778
-2

query II rowsort
SELECT ALL - 55 * + 44, - 1 col0
----
-2420
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT DISTINCT 65 * 34 * 71 DIV + NULLIF ( 43, - 74 + + 98 - + - 52 ) AS col1
----
3649

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT 65 * 34 * 71 / + NULLIF ( 43, - 74 + + 98 - + - 52 ) AS col1
----
3649

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

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

query I rowsort
SELECT 41 + + 64
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT + 85 + COUNT( * ) col1, 44 + + 90 + + 61 * - 31 - 72 + - - 50 AS col2
----
86
-1779

skipif mysql # not compatible
query II rowsort label-829
SELECT + 85 + COUNT ( * ) col1, 44 + + 90 + + 61 * - 31 - 72 + - - 50 AS col2
----
86
-1779

query I rowsort
SELECT 34 * + 72 AS col0
----
2448

query I rowsort
SELECT ALL - 56 + 74
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT + NULLIF ( - 55, + + 76 DIV - + 17 * + 1 ) * + NULLIF ( - 36, + + 37 ) - + 77 DIV + 45 + 27 AS col2
----
2006

skipif mysql # not compatible
query I rowsort label-832
SELECT + NULLIF ( - 55, + + 76 / - + 17 * + 1 ) * + NULLIF ( - 36, + + 37 ) - + 77 / + 45 + 27 AS col2
----
2006

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT - 19 * - 41 + - MIN( DISTINCT + 11 ) * + SUM( ALL + COALESCE ( - 33, + + 38 ) ) * + 80
----
29819

skipif mysql # not compatible
query I rowsort label-833
SELECT - 19 * - 41 + - MIN ( DISTINCT + 11 ) * + SUM ( ALL + COALESCE ( - 33, + + 38 ) ) * + 80
----
29819

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-834
SELECT DISTINCT - ( COALESCE ( ( - ( + ( COALESCE ( - COUNT( 7 ), + + COUNT( * ), 72 * + - ( 8 ) DIV - ( + - COUNT( * ) ) * + 19 - - - 57 - + - 34 DIV - 40 * - NULLIF ( + 92, + 7 + ( + 34 ) ) + CASE + + COUNT( * ) WHEN + COUNT( * ) THEN + 76 ELSE NULL END - - - COUNT( * ) + 95 * - 32 ) ) ) ), + 29 * 78 - + - 47, + 24 ) ) DIV + NULLIF ( + - COUNT( * ), + ( CAST( NULL AS DECIMAL ) ) + 9 + - 12 * + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT - ( COALESCE ( ( - ( + ( COALESCE ( - COUNT ( 7 ), + + COUNT ( * ), 72 * + - ( 8 ) / - ( + - COUNT ( * ) ) * + 19 - - - 57 - + - 34 / - 40 * - NULLIF ( + 92, + 7 + ( + 34 ) ) + CASE + + COUNT ( * ) WHEN + COUNT ( * ) THEN + 76 ELSE NULL END - - - COUNT ( * ) + 95 * - 32 ) ) ) ), + 29 * 78 - + - 47, + 24 ) ) / + NULLIF ( + - COUNT ( * ), + ( CAST ( NULL AS REAL ) ) + 9 + - 12 * + 50 )
----
1

query I rowsort
SELECT ALL - - ( + 57 ) + - 80 col0
----
-23

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

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

query I rowsort
SELECT - - 9 + - 74 AS col0
----
-65

query I rowsort
SELECT - - 60 + - - 31
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-839
SELECT ( COALESCE ( 16, - NULLIF ( ( + + 72 ), + NULLIF ( - 77, MAX( + 78 ) * + CAST( NULLIF ( 26, + 80 * + 43 ) AS DECIMAL ) ) * 6 ) + + - 78, + + ( - 31 ) ) ), + 84 * + - 11 * + 84 + - 30 + - 86 AS col1
----
16
-77732

skipif mysql # not compatible
query II rowsort label-839
SELECT ( COALESCE ( 16, - NULLIF ( ( + + 72 ), + NULLIF ( - 77, MAX ( + 78 ) * + CAST ( NULLIF ( 26, + 80 * + 43 ) AS REAL ) ) * 6 ) + + - 78, + + ( - 31 ) ) ), + 84 * + - 11 * + 84 + - 30 + - 86 AS col1
----
16
-77732

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT + - 74 + + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-840
SELECT + - 74 + + COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL NULLIF ( - SUM( DISTINCT - 20 ), - ( - + 70 ) ) col0
----
20

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL NULLIF ( - SUM ( DISTINCT - 20 ), - ( - + 70 ) ) col0
----
20

query I rowsort
SELECT - 14 + - 87 + - - ( + - NULLIF ( 19, + 29 / + 59 * 83 ) )
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-843
SELECT ALL NULLIF ( + + 33, - 47 ) AS col2, COUNT( * ) - - 38 DIV - + 94
----
33
1

skipif mysql # not compatible
query II rowsort label-843
SELECT ALL NULLIF ( + + 33, - 47 ) AS col2, COUNT ( * ) - - 38 / - + 94
----
33
1

query I rowsort
SELECT ALL + 32 - - 23 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT - COALESCE ( 34, - 6 ) * - COUNT( DISTINCT 52 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-845
SELECT - COALESCE ( 34, - 6 ) * - COUNT ( DISTINCT 52 ) AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-846
SELECT ALL + 59 DIV + - 7
----
-8

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + 59 / + - 7
----
-8

query I rowsort
SELECT + 78 * - + 68 col2
----
-5304

query I rowsort
SELECT - 84 * 46 col1
----
-3864

query I rowsort
SELECT DISTINCT - 87 - 61
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT - 37 + - ( MIN( DISTINCT + 52 ) ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-850
SELECT - 37 + - ( MIN ( DISTINCT + 52 ) ) col0
----
-89

query I rowsort
SELECT - 48 * + 30
----
-1440

query I rowsort
SELECT + 54 * - - 59 col1
----
3186

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

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

query I rowsort
SELECT - 66 + - - 12
----
-54

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

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

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

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

query I rowsort
SELECT ALL - 69 * - 30 AS col0
----
2070

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ( + - AVG ( DISTINCT - 16 ) ) / + CASE - 49 WHEN + COUNT( DISTINCT - 28 ) THEN COUNT( * ) * + + 25 WHEN - + 8 * + 52 / - - ( + AVG ( DISTINCT - - ( + 61 ) ) ) THEN - 27 ELSE NULL END / 59 - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT ( + - AVG ( DISTINCT - 16 ) ) / + CASE - 49 WHEN + COUNT ( DISTINCT - 28 ) THEN COUNT ( * ) * + + 25 WHEN - + 8 * + 52 / - - ( + AVG ( DISTINCT - - ( + 61 ) ) ) THEN - 27 ELSE NULL END / 59 - 63 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-861
SELECT + 71 DIV + + CASE + - 9 WHEN - + 35 THEN NULL ELSE 37 + + - 93 END
----
-1

skipif mysql # not compatible
query I rowsort label-861
SELECT + 71 / + + CASE + - 9 WHEN - + 35 THEN NULL ELSE 37 + + - 93 END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT + 88 + 8 * + MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT + 88 + 8 * + MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT ALL - ( 55 ) / ( CAST( NULL AS SIGNED ) + + 4 * 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL - ( 55 ) / ( CAST ( NULL AS INTEGER ) + + 4 * 7 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 15 * 95
----
1425

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

query I rowsort
SELECT - 52 * - 83 col1
----
4316

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + CASE ( + 2 ) WHEN 99 THEN NULL WHEN + 24 THEN CASE 11 WHEN 83 + - 56 * COUNT( * ) THEN + 98 WHEN - SUM( ALL COALESCE ( + 5, 81 * + 14, + 70 + - 33 ) ) THEN NULL ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT + CASE ( + 2 ) WHEN 99 THEN NULL WHEN + 24 THEN CASE 11 WHEN 83 + - 56 * COUNT ( * ) THEN + 98 WHEN - SUM ( ALL COALESCE ( + 5, 81 * + 14, + 70 + - 33 ) ) THEN NULL ELSE NULL END END AS col2
----
NULL

query I rowsort
SELECT CASE 57 WHEN 74 + - ( + ( + 29 ) ) * 81 THEN - 70 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL + 71 * CASE 94 WHEN + ( - 16 ) THEN NULL WHEN 21 THEN 43 * - COUNT( * ) WHEN - 56 / + 37 THEN 91 * 80 + - 40 END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + 71 * CASE 94 WHEN + ( - 16 ) THEN NULL WHEN 21 THEN 43 * - COUNT ( * ) WHEN - 56 / + 37 THEN 91 * 80 + - 40 END + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT - 92 * + CASE 51 * - 30 WHEN - 89 * NULLIF ( - 91, + 95 ) + CAST( NULL AS SIGNED ) THEN + 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-871
SELECT - 92 * + CASE 51 * - 30 WHEN - 89 * NULLIF ( - 91, + 95 ) + CAST ( NULL AS INTEGER ) THEN + 27 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + MAX( ALL 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-872
SELECT + MAX ( ALL 42 ) col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL CASE WHEN NOT NULL NOT IN ( COUNT( * ) ) THEN - 81 ELSE 20 END * + 74 + 14
----
1494

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL CASE WHEN NOT NULL NOT IN ( COUNT ( * ) ) THEN - 81 ELSE 20 END * + 74 + 14
----
1494

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT + NULLIF ( + CASE 31 WHEN + 66 THEN - ( + 65 ) ELSE NULL END, 16 + - CASE - 60 + - COUNT( * ) WHEN - 61 + + 56 * 51 THEN - COUNT( 26 ) + 39 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT + NULLIF ( + CASE 31 WHEN + 66 THEN - ( + 65 ) ELSE NULL END, 16 + - CASE - 60 + - COUNT ( * ) WHEN - 61 + + 56 * 51 THEN - COUNT ( 26 ) + 39 END ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 11 * + 8 + - 60
----
28

query I rowsort
SELECT DISTINCT 86 * 75 - - 36 * - 55 AS col1
----
4470

query I rowsort
SELECT ALL 26 * + 65
----
1690

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-880
SELECT ALL COUNT( * ) * + 16 - 28 DIV 42
----
16

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL COUNT ( * ) * + 16 - 28 / 42
----
16

query I rowsort
SELECT DISTINCT CASE - 96 WHEN + 47 * + 37 THEN 19 END AS col1
----
NULL

query I rowsort
SELECT ALL 73 * + 22 AS col2
----
1606

query I rowsort
SELECT ALL 90 * + 31 AS col1
----
2790

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT + 55 + COUNT( * ) * - 36 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-885
SELECT + 55 + COUNT ( * ) * - 36 AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT DISTINCT NULLIF ( + 27, CASE + ( ( - 43 ) ) WHEN - 90 / 67 + 54 THEN NULL WHEN - 44 THEN COALESCE ( + 82, 26, - 72 + - 66 ) END * - NULLIF ( + 51, CAST( NULL AS SIGNED ) ) )
----
27

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT NULLIF ( + 27, CASE + ( ( - 43 ) ) WHEN - 90 / 67 + 54 THEN NULL WHEN - 44 THEN COALESCE ( + 82, 26, - 72 + - 66 ) END * - NULLIF ( + 51, CAST ( NULL AS INTEGER ) ) )
----
27

query I rowsort
SELECT - 54 * - 98 AS col1
----
5292

query I rowsort
SELECT + 25 - 26
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT - CAST( NULL AS SIGNED ) + 16 * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-889
SELECT - CAST ( NULL AS INTEGER ) + 16 * + 13
----
NULL

query I rowsort
SELECT - 19 * + 64
----
-1216

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

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL COUNT ( * ) / 43
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT ALL CASE - 93 WHEN 28 THEN NULL WHEN - 22 * + COUNT( * ) THEN NULL WHEN 61 * COALESCE ( - 84, 54 + COALESCE ( 88, + 53, 98 ) ) + + 71 THEN ( 62 ) + 39 ELSE COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL CASE - 93 WHEN 28 THEN NULL WHEN - 22 * + COUNT ( * ) THEN NULL WHEN 61 * COALESCE ( - 84, 54 + COALESCE ( 88, + 53, 98 ) ) + + 71 THEN ( 62 ) + 39 ELSE COUNT ( * ) END AS col2
----
1

query I rowsort
SELECT - 47 - 18 * 32
----
-623

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

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

query I rowsort
SELECT ALL - + 35 + + 66 * 98 AS col1
----
6433

query I rowsort
SELECT DISTINCT + + 73 + 58
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT DISTINCT - COUNT( ALL - CASE 34 WHEN + ( + 53 ) * 23 + - 36 THEN NULL WHEN + 32 / 48 THEN + CAST( NULLIF ( + 91, 59 ) AS SIGNED ) + + 62 END ) + + 66
----
66

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT - COUNT ( ALL - CASE 34 WHEN + ( + 53 ) * 23 + - 36 THEN NULL WHEN + 32 / 48 THEN + CAST ( NULLIF ( + 91, 59 ) AS INTEGER ) + + 62 END ) + + 66
----
66

query I rowsort
SELECT ALL + 23 + 41
----
64

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

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

query I rowsort
SELECT DISTINCT + + 98 + 7
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT - COUNT( * ) * + 46 + 64 * - COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-903
SELECT - COUNT ( * ) * + 46 + 64 * - COUNT ( * )
----
-110

query I rowsort
SELECT + - 32 * 47 - - 9 col2
----
-1495

query I rowsort
SELECT + + CASE - 17 WHEN - 15 THEN 1 END AS col1
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT 19 + + 58 AS col1
----
77

query I rowsort
SELECT ALL + - 55 + - 58 AS col0
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT COUNT( - CAST( NULL AS SIGNED ) ) + 17 col1
----
17

skipif mysql # not compatible
query I rowsort label-911
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) + 17 col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-912
SELECT + CAST( + 11 AS SIGNED ) * 48 AS col1
----
528

skipif mysql # not compatible
query I rowsort label-912
SELECT + CAST ( + 11 AS INTEGER ) * 48 AS col1
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-913
SELECT ALL - COUNT( * ) * CAST( - 15 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - COUNT ( * ) * CAST ( - 15 AS INTEGER ) AS col1
----
15

query I rowsort
SELECT + 72 * - 58 + - 74 AS col1
----
-4250

query I rowsort
SELECT + 19 * 90
----
1710

query I rowsort
SELECT DISTINCT + 35 * NULLIF ( - 99, 87 ) AS col2
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL - SUM( + 45 ) * + 11
----
-495

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL - SUM ( + 45 ) * + 11
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT 9 + + CASE 16 WHEN 26 * 52 + COALESCE ( 83, 85 * - 73 ) THEN - 98 - COUNT( * ) WHEN 3 THEN - 37 ELSE 10 * MAX( DISTINCT 35 ) - + CASE 18 WHEN - 53 THEN - 72 - ( + 79 ) WHEN 27 * - 44 THEN NULL END * 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT 9 + + CASE 16 WHEN 26 * 52 + COALESCE ( 83, 85 * - 73 ) THEN - 98 - COUNT ( * ) WHEN 3 THEN - 37 ELSE 10 * MAX ( DISTINCT 35 ) - + CASE 18 WHEN - 53 THEN - 72 - ( + 79 ) WHEN 27 * - 44 THEN NULL END * 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL COUNT( * ) * + 24 * + 41
----
984

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL COUNT ( * ) * + 24 * + 41
----
984

query I rowsort
SELECT CASE + 39 WHEN + 38 THEN + 12 WHEN + 85 * - 70 + 78 THEN NULL END * + 65 col1
----
NULL

query I rowsort
SELECT DISTINCT CASE 84 WHEN - 18 THEN 46 WHEN - 57 THEN NULL END * - 4 col2
----
NULL

query I rowsort
SELECT ( + + 44 ) * 11
----
484

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL MIN( DISTINCT + 68 ) * 94
----
6392

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL MIN ( DISTINCT + 68 ) * 94
----
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT CASE + + 61 WHEN 74 THEN + 0 + COUNT( * ) WHEN + NULLIF ( ( 67 ), + 76 ) THEN + 24 WHEN 50 THEN 63 - + COUNT( * ) END + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-924
SELECT CASE + + 61 WHEN 74 THEN + 0 + COUNT ( * ) WHEN + NULLIF ( ( 67 ), + 76 ) THEN + 24 WHEN 50 THEN 63 - + COUNT ( * ) END + 14 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-925
SELECT DISTINCT NULLIF ( CAST( NULL AS SIGNED ), + 40 ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), + 40 ) + + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-926
SELECT DISTINCT COUNT( * ) + + + COUNT( DISTINCT COALESCE ( - 67, - 29 * 9, + CAST( 99 AS SIGNED ) + + 39 ) ) * + ( - ( - 76 ) * + COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT COUNT ( * ) + + + COUNT ( DISTINCT COALESCE ( - 67, - 29 * 9, + CAST ( 99 AS INTEGER ) + + 39 ) ) * + ( - ( - 76 ) * + COUNT ( * ) )
----
77

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

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

query I rowsort
SELECT 85 * + - 48 AS col0
----
-4080

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

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL - + ( - COUNT ( * ) ) / + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ( + MAX( ALL NULLIF ( - 38, 2 * + COALESCE ( + 40, 64 ) ) ) ) + - 62 col1
----
-100

skipif mysql # not compatible
query I rowsort label-930
SELECT ( + MAX ( ALL NULLIF ( - 38, 2 * + COALESCE ( + 40, 64 ) ) ) ) + - 62 col1
----
-100

query I rowsort
SELECT ALL + 57 + - 81 + 73 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT ALL + 77 + + 25 + - COUNT( * ) * + 33 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL + 77 + + 25 + - COUNT ( * ) * + 33 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT 96 DIV + 47
----
2

skipif mysql # not compatible
query I rowsort label-933
SELECT 96 / + 47
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-934
SELECT - 1 + - - CAST( + 43 AS SIGNED ) + 54 DIV 46 DIV + 89
----
42

skipif mysql # not compatible
query I rowsort label-934
SELECT - 1 + - - CAST ( + 43 AS INTEGER ) + 54 / 46 / + 89
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT 85 + 50 + - MAX( DISTINCT 41 )
----
94

skipif mysql # not compatible
query I rowsort label-936
SELECT 85 + 50 + - MAX ( DISTINCT 41 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT DISTINCT + COALESCE ( 90, 29 ) * COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT + COALESCE ( 90, 29 ) * COUNT ( * )
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT + 83 * + CASE + COUNT( * ) WHEN - 34 THEN NULL ELSE 51 + - 77 END + 17 AS col1
----
-2141

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT + 83 * + CASE + COUNT ( * ) WHEN - 34 THEN NULL ELSE 51 + - 77 END + 17 AS col1
----
-2141

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT ALL + MAX( DISTINCT + - 80 ) * 8
----
-640

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL + MAX ( DISTINCT + - 80 ) * 8
----
-640

query I rowsort
SELECT ( 85 ) * 78 col2
----
6630

query I rowsort
SELECT DISTINCT 59 * 98 AS col1
----
5782

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

query I rowsort
SELECT + NULLIF ( + 74, 84 ) AS col0
----
74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT 71 / - ( - - 89 ) * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT 71 / - ( - - 89 ) * - CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

query I rowsort
SELECT + 71 * - + 21 - - - 54 AS col1
----
-1545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-949
SELECT ALL 37 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL 37 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 64 AS col2, 94 + + + 21 AS col2
----
64
115

onlyif mysql # aggregate syntax: 
query II rowsort label-951
SELECT 39 AS col0, + COALESCE ( + 84, - COUNT( * ) + - 34 ) AS col0
----
39
84

skipif mysql # not compatible
query II rowsort label-951
SELECT 39 AS col0, + COALESCE ( + 84, - COUNT ( * ) + - 34 ) AS col0
----
39
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-953
SELECT 9 * - CAST( - - 62 AS SIGNED ) AS col1
----
-558

skipif mysql # not compatible
query I rowsort label-953
SELECT 9 * - CAST ( - - 62 AS INTEGER ) AS col1
----
-558

query I rowsort
SELECT DISTINCT + 56 * + 81 AS col0
----
4536

query I rowsort
SELECT 89 + + 1 AS col2
----
90

query I rowsort
SELECT COALESCE ( 35, 3 * 2 ) - + 37 * - 28
----
1071

query I rowsort
SELECT DISTINCT - 83 + - 41 - + 28
----
-152

query I rowsort
SELECT 99 + + 87
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT ALL 71 + - CASE + CASE + 41 WHEN ( 34 ) THEN 85 END WHEN COUNT( * ) * 47 THEN NULL WHEN + COALESCE ( - 78, 61 ) * CAST( NULL AS SIGNED ) THEN CASE + ( + 36 ) WHEN - ( + 93 ) THEN NULL WHEN - 19 THEN 53 END / 30 END + 13 * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL 71 + - CASE + CASE + 41 WHEN ( 34 ) THEN 85 END WHEN COUNT ( * ) * 47 THEN NULL WHEN + COALESCE ( - 78, 61 ) * CAST ( NULL AS INTEGER ) THEN CASE + ( + 36 ) WHEN - ( + 93 ) THEN NULL WHEN - 19 THEN 53 END / 30 END + 13 * + 52 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 38 col0, 55 * - + 98
----
38
-5390

query I rowsort
SELECT DISTINCT - 84 + - 42 * + 56
----
-2436

query I rowsort
SELECT + 12 + + 44
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT ALL + - 89 + - 50 + COALESCE ( - 20, - 57 DIV - 18 )
----
-159

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL + - 89 + - 50 + COALESCE ( - 20, - 57 / - 18 )
----
-159

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

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

query I rowsort
SELECT + 90 * + 30 * 32 col0
----
86400

query I rowsort
SELECT ALL ( - 33 ) * - 12
----
396

query II rowsort
SELECT DISTINCT 6 AS col0, 95 AS col2
----
6
95

query I rowsort
SELECT + CASE COALESCE ( - 84, 1 ) WHEN + 40 THEN 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL + ( - CASE 86 WHEN 65 * + 53 THEN COUNT( * ) - + 61 * 89 ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL + ( - CASE 86 WHEN 65 * + 53 THEN COUNT ( * ) - + 61 * 89 ELSE NULL END ) col2
----
NULL

query I rowsort
SELECT ALL - 1 * - 30 + - ( - 75 )
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT 90 DIV + 44 + + - 19 - 67 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-971
SELECT 90 / + 44 + + - 19 - 67 AS col1
----
-84

query II rowsort
SELECT - 84 AS col2, - 45 + - + ( + 83 )
----
-84
-128

onlyif mysql # aggregate syntax: 
query II rowsort label-973
SELECT ALL + 38 AS col2, COUNT( * ) AS col1
----
38
1

skipif mysql # not compatible
query II rowsort label-973
SELECT ALL + 38 AS col2, COUNT ( * ) AS col1
----
38
1

query I rowsort
SELECT + 92 * + 86 * - - 21
----
166152

query I rowsort
SELECT ALL - - 88 * - 56 AS col0
----
-4928

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

skipif mysql # not compatible
query I rowsort label-976
SELECT + + 24 - - 6 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-977
SELECT DISTINCT + 19 DIV - ( 2 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-977
SELECT DISTINCT + 19 / - ( 2 ) AS col2
----
-9

query I rowsort
SELECT + 92 * - 23 - + - 76 + 93 AS col1
----
-1947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT - 19 / - + 70 + CAST( NULL AS SIGNED ) * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-979
SELECT - 19 / - + 70 + CAST ( NULL AS INTEGER ) * 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL COUNT( - + 45 ) * - 82 + - 74 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL COUNT ( - + 45 ) * - 82 + - 74 AS col0
----
-156

query I rowsort
SELECT + + 80 + 21 AS col0
----
101

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-985
SELECT COALESCE ( - 62, - + 93 DIV + 73 + - CASE - 54 WHEN 18 THEN - 83 WHEN + 57 THEN NULL END * - 71 )
----
-62

skipif mysql # not compatible
query I rowsort label-985
SELECT COALESCE ( - 62, - + 93 / + 73 + - CASE - 54 WHEN 18 THEN - 83 WHEN + 57 THEN NULL END * - 71 )
----
-62

query I rowsort
SELECT ALL + 41 * - 61 AS col0
----
-2501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-987
SELECT + CAST( - + MIN( ALL - 32 ) AS SIGNED ) + 50 DIV 39
----
33

skipif mysql # not compatible
query I rowsort label-987
SELECT + CAST ( - + MIN ( ALL - 32 ) AS INTEGER ) + 50 / 39
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-988
SELECT DISTINCT - COUNT( * ) * + CAST( 42 AS SIGNED ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT - COUNT ( * ) * + CAST ( 42 AS INTEGER ) AS col1
----
-42

query I rowsort
SELECT DISTINCT 73 * - - 28 * - 32 * - 49 AS col2
----
3204992

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT - 2 + - MAX( ALL - 2 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-990
SELECT - 2 + - MAX ( ALL - 2 ) AS col2
----
0

query I rowsort
SELECT ALL 23 * - 82 + 62
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL + 15 * + 30 + + 65 - + COUNT( * ) + + 90 * 44
----
4474

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL + 15 * + 30 + + 65 - + COUNT ( * ) + + 90 * 44
----
4474

query I rowsort
SELECT ALL + 54 * 87 + - 40 AS col2
----
4658

query II rowsort
SELECT - 72 + + + 65 AS col1, + 36 AS col0
----
-7
36

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT - 4 * - 18 + + COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT - 4 * - 18 + + COUNT ( * ) AS col2
----
73

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT ALL - 79 + - 95 + + 65 + + ( - 65 ) DIV COALESCE ( 62, + 55 + - 49 ) col0
----
-110

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL - 79 + - 95 + + 65 + + ( - 65 ) / COALESCE ( 62, + 55 + - 49 ) col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT ALL - MAX( 50 ) * + + 9 AS col1
----
-450

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL - MAX ( 50 ) * + + 9 AS col1
----
-450

query I rowsort
SELECT ALL + 7 * 42 AS col2
----
294

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1002
SELECT DISTINCT CASE + - MIN( ALL + CAST( NULL AS SIGNED ) ) WHEN + 23 * 50 + - CAST( - 24 AS SIGNED ) THEN CAST( 41 AS SIGNED ) * 79 WHEN - 0 + + 92 * COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT CASE + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) WHEN + 23 * 50 + - CAST ( - 24 AS INTEGER ) THEN CAST ( 41 AS INTEGER ) * 79 WHEN - 0 + + 92 * COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1003
SELECT DISTINCT 17 + + COUNT( * ) AS col2, COUNT( * ) AS col1
----
18
1

skipif mysql # not compatible
query II rowsort label-1003
SELECT DISTINCT 17 + + COUNT ( * ) AS col2, COUNT ( * ) AS col1
----
18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL 91 - + NULLIF ( + 98, 17 ) + COUNT( ALL + 22 + 17 ) * - 6
----
-13

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL 91 - + NULLIF ( + 98, 17 ) + COUNT ( ALL + 22 + 17 ) * - 6
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1005
SELECT - 4 DIV - ( + 41 ) + + 43 * 70
----
3010

skipif mysql # not compatible
query I rowsort label-1005
SELECT - 4 / - ( + 41 ) + + 43 * 70
----
3010

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

skipif mysql # not compatible
query I rowsort label-1006
SELECT + - ( - + 74 ) / + 86 / - COUNT ( * )
----
0

query II rowsort
SELECT - + 85 * 48, 32 + 53 * + 65 AS col2
----
-4080
3477

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + ( - COALESCE ( + 65, - 78 + MAX( 19 ) ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1008
SELECT + ( - COALESCE ( + 65, - 78 + MAX ( 19 ) ) )
----
-65

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

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

query I rowsort
SELECT ALL ( - - 44 )
----
44

query I rowsort
SELECT ALL - 41 - - 72 * - - 37
----
2623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT - 54 - + 68 + 69 DIV COUNT( * ) * + 26
----
1672

skipif mysql # not compatible
query I rowsort label-1012
SELECT - 54 - + 68 + 69 / COUNT ( * ) * + 26
----
1672

query II rowsort
SELECT ALL 93 * + + 49 AS col0, - 94
----
4557
-94

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1015
SELECT ALL + CASE 71 WHEN + 27 THEN NULL WHEN 19 - + 21 THEN COALESCE ( - ( + CAST( NULL AS DECIMAL ) ), + 96 ) END * - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL + CASE 71 WHEN + 27 THEN NULL WHEN 19 - + 21 THEN COALESCE ( - ( + CAST ( NULL AS REAL ) ), + 96 ) END * - 12 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + - ( + 97 ), 51 col0
----
-97
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1017
SELECT ALL + 87 DIV - - COUNT( * ) + + 14
----
101

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + 87 / - - COUNT ( * ) + + 14
----
101

query I rowsort
SELECT + NULLIF ( + + 59, + - 59 ) * - + 10 AS col2
----
-590

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1020
SELECT DISTINCT 88 DIV + 87 + 87
----
88

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT 88 / + 87 + 87
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL + 71 * - + MIN( + - ( - ( - + 25 ) ) ) + - 17
----
1758

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL + 71 * - + MIN ( + - ( - ( - + 25 ) ) ) + - 17
----
1758

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL + COALESCE ( 78, 94 * + 29 * + 71 ) * + CASE 51 WHEN 70 + + 32 THEN NULL ELSE - 58 END + + MIN( DISTINCT - 96 ) AS col2
----
-4620

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + COALESCE ( 78, 94 * + 29 * + 71 ) * + CASE 51 WHEN 70 + + 32 THEN NULL ELSE - 58 END + + MIN ( DISTINCT - 96 ) AS col2
----
-4620

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT + CASE - 94 WHEN + + 34 THEN 3 ELSE 20 END DIV COALESCE ( 84, + 34 + + 52 * 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT + CASE - 94 WHEN + + 34 THEN 3 ELSE 20 END / COALESCE ( 84, + 34 + + 52 * 86 ) AS col1
----
0

query I rowsort
SELECT + 72 * 12
----
864

query I rowsort
SELECT ( + ( + CASE WHEN NOT ( NULL ) < - 13 THEN + 80 * - 10 - + 30 ELSE NULL END ) ) AS col1
----
NULL

query I rowsort
SELECT 99 * 76 * - - 2
----
15048

query I rowsort
SELECT ALL 54 + + 44 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1029
SELECT - 25 * - 19 / + - 12 - + - 65 * + + 91 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1029
SELECT - 25 * - 19 / + - 12 - + - 65 * + + 91 * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - 84 + 49
----
-35

query I rowsort
SELECT ALL 18 * + 53 AS col0
----
954

query II rowsort
SELECT 7 AS col2, 78 - - 92
----
7
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT COUNT( * ) + + COUNT( * ) * - 51
----
-50

skipif mysql # not compatible
query I rowsort label-1033
SELECT COUNT ( * ) + + COUNT ( * ) * - 51
----
-50

query I rowsort
SELECT 50 * - 63 col0
----
-3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1035
SELECT CAST( NULL AS SIGNED ) + 7 * + 61 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1035
SELECT CAST ( NULL AS INTEGER ) + 7 * + 61 * + 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT NULLIF ( + COUNT( * ), - + 7 + - + 93 * - + 9 * 61 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1036
SELECT NULLIF ( + COUNT ( * ), - + 7 + - + 93 * - + 9 * 61 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1037
SELECT 91 + - - ( CASE + 59 WHEN 66 / - COUNT( * ) THEN CAST( + 21 AS SIGNED ) - 33 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT 91 + - - ( CASE + 59 WHEN 66 / - COUNT ( * ) THEN CAST ( + 21 AS INTEGER ) - 33 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT 94 * 77
----
7238

query I rowsort
SELECT - 81 * 65 AS col2
----
-5265

query I rowsort
SELECT DISTINCT + 12 * + - 4 * - 54 - 56 + - 1 * - 19 AS col1
----
2555

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1041
SELECT ALL + - 30 DIV - 63 * + + 41, - COUNT( * ) + ( 11 ) * 44 AS col2
----
0
483

skipif mysql # not compatible
query II rowsort label-1041
SELECT ALL + - 30 / - 63 * + + 41, - COUNT ( * ) + ( 11 ) * 44 AS col2
----
0
483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT DISTINCT + 52 * - - NULLIF ( + + 51, - + NULLIF ( + ( + MAX( DISTINCT + 91 ) ), CAST( NULL AS SIGNED ) * - 69 ) + + 44 * - COUNT( * ) )
----
2652

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT + 52 * - - NULLIF ( + + 51, - + NULLIF ( + ( + MAX ( DISTINCT + 91 ) ), CAST ( NULL AS INTEGER ) * - 69 ) + + 44 * - COUNT ( * ) )
----
2652

query I rowsort
SELECT ALL + NULLIF ( - ( - - 68 ), - + 44 * + 77 ) AS col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT - 13 * - CAST( NULL AS SIGNED ) / - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT - 13 * - CAST ( NULL AS INTEGER ) / - 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT 42 * SUM( DISTINCT - NULLIF ( + 84, - 62 / 88 ) ) * + 12
----
-42336

skipif mysql # not compatible
query I rowsort label-1045
SELECT 42 * SUM ( DISTINCT - NULLIF ( + 84, - 62 / 88 ) ) * + 12
----
-42336

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1046
SELECT - + 86 AS col2, - 83 DIV - COUNT( * ) AS col2
----
-86
83

skipif mysql # not compatible
query II rowsort label-1046
SELECT - + 86 AS col2, - 83 / - COUNT ( * ) AS col2
----
-86
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT + 21 * + - 30 - - - COUNT( + 25 ) + - - ( 48 ) + 28 * 92
----
1993

skipif mysql # not compatible
query I rowsort label-1047
SELECT + 21 * + - 30 - - - COUNT ( + 25 ) + - - ( 48 ) + 28 * 92
----
1993

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1048
SELECT MAX( + 91 ) DIV + + 88 - - + 15 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1048
SELECT MAX ( + 91 ) / + + 88 - - + 15 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL ( 83 ) + + MAX( ALL + 92 ) + COUNT( * )
----
176

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL ( 83 ) + + MAX ( ALL + 92 ) + COUNT ( * )
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT COUNT( * ) - + 18 * - 26
----
469

skipif mysql # not compatible
query I rowsort label-1050
SELECT COUNT ( * ) - + 18 * - 26
----
469

onlyif mysql # DIV for integer division: 
query II rowsort label-1051
SELECT ( + 69 ) DIV 9 + + 68 AS col2, 36 + + 52 AS col2
----
75
88

skipif mysql # not compatible
query II rowsort label-1051
SELECT ( + 69 ) / 9 + + 68 AS col2, 36 + + 52 AS col2
----
75
88

query I rowsort
SELECT 79 * 18 - - 64 + ( - 67 ) AS col1
----
1419

query II rowsort
SELECT ALL - 60 AS col2, + 74
----
-60
74

query I rowsort
SELECT 99 + - 58
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT - 21 DIV 88 - + 78
----
-78

skipif mysql # not compatible
query I rowsort label-1055
SELECT - 21 / 88 - + 78
----
-78

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1057
SELECT DISTINCT + COUNT( - - 77 ) + 13 DIV - ( - MAX( DISTINCT NULLIF ( 6, - ( 68 ) + 96 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT + COUNT ( - - 77 ) + 13 / - ( - MAX ( DISTINCT NULLIF ( 6, - ( 68 ) + 96 ) ) )
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1059
SELECT DISTINCT 59 DIV + 4 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT 59 / + 4 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1060
SELECT COUNT( * ) DIV - ( COALESCE ( + + 11, + + 25, - 43 - + 53, COUNT( * ) * + CASE - 36 * - 98 WHEN - 62 THEN NULL WHEN - 63 - NULLIF ( 47 + 87 * 75, - 18 ) THEN NULL WHEN - 43 * - COUNT( + 70 ) THEN + 65 * - 46 + + COUNT( * ) ELSE NULL END + 16 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1060
SELECT COUNT ( * ) / - ( COALESCE ( + + 11, + + 25, - 43 - + 53, COUNT ( * ) * + CASE - 36 * - 98 WHEN - 62 THEN NULL WHEN - 63 - NULLIF ( 47 + 87 * 75, - 18 ) THEN NULL WHEN - 43 * - COUNT ( + 70 ) THEN + 65 * - 46 + + COUNT ( * ) ELSE NULL END + 16 ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1061
SELECT COALESCE ( CASE + 93 WHEN - 98 THEN NULL WHEN - COALESCE ( 4, 25 * + 90 ) THEN - 14 + + 38 WHEN CAST( CAST( + 64 AS SIGNED ) AS SIGNED ) THEN ( 35 ) * 20 + 20 END, - COUNT( * ), + COUNT( * ) ) + 66 col1
----
65

skipif mysql # not compatible
query I rowsort label-1061
SELECT COALESCE ( CASE + 93 WHEN - 98 THEN NULL WHEN - COALESCE ( 4, 25 * + 90 ) THEN - 14 + + 38 WHEN CAST ( CAST ( + 64 AS INTEGER ) AS INTEGER ) THEN ( 35 ) * 20 + 20 END, - COUNT ( * ), + COUNT ( * ) ) + 66 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT MIN( - ( 4 ) ) + - 23 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-1062
SELECT MIN ( - ( 4 ) ) + - 23 AS col2
----
-27

query II rowsort
SELECT ALL 40 col0, 3 + - 87
----
40
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT + 20 * + + COUNT( * ) + - - MAX( + - 27 ) + + 74
----
67

skipif mysql # not compatible
query I rowsort label-1064
SELECT + 20 * + + COUNT ( * ) + - - MAX ( + - 27 ) + + 74
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL 41 - + COUNT( DISTINCT 36 )
----
40

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL 41 - + COUNT ( DISTINCT 36 )
----
40

query I rowsort
SELECT 6 * + 41 * - - 92 AS col2
----
22632

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT COUNT( * ) * 75 - - ( + - 87 ) - + ( 1 ) * - 2 * 72 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-1067
SELECT COUNT ( * ) * 75 - - ( + - 87 ) - + ( 1 ) * - 2 * 72 AS col0
----
132

query I rowsort
SELECT 39 + - - 26
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT 96 * - 66 - - + 71 * COALESCE ( - + 52, COUNT( + 24 ) )
----
-10028

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT 96 * - 66 - - + 71 * COALESCE ( - + 52, COUNT ( + 24 ) )
----
-10028

query I rowsort
SELECT + ( + - 89 ) col1
----
-89

query I rowsort
SELECT ALL 14 * 70 + 4
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT 65 + - COUNT( ALL 4 ) * + - 43 - - COUNT( * ) + - 74 - 88 * - COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-1072
SELECT 65 + - COUNT ( ALL 4 ) * + - 43 - - COUNT ( * ) + - 74 - 88 * - COUNT ( * )
----
123

query II rowsort
SELECT - 92 AS col0, + 74
----
-92
74

query II rowsort
SELECT - 3, + 56 AS col1
----
-3
56

query I rowsort
SELECT - 11 * + ( + 46 ) * - + 47 + + 78 + 82
----
23942

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT 54 + 12 * - 29 + - + COALESCE ( + - 21, - 42 * 83 + 36 * + 97, - 3 * NULLIF ( - SUM( - 33 ) * 42, 31 * 78 + 42 ) + - 52 ) * 68 AS col2
----
1134

skipif mysql # not compatible
query I rowsort label-1076
SELECT 54 + 12 * - 29 + - + COALESCE ( + - 21, - 42 * 83 + 36 * + 97, - 3 * NULLIF ( - SUM ( - 33 ) * 42, 31 * 78 + 42 ) + - 52 ) * 68 AS col2
----
1134

query II rowsort
SELECT - 53 AS col0, + 21 + 41 AS col1
----
-53
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT DISTINCT + - 52 DIV + 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + - 52 / + 52 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1079
SELECT 88 + - 64 - + 15 DIV + COALESCE ( - 89, - 29 + 41 ) * - 48
----
24

skipif mysql # not compatible
query I rowsort label-1079
SELECT 88 + - 64 - + 15 / + COALESCE ( - 89, - 29 + 41 ) * - 48
----
24

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

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL + ( + 61 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1081
SELECT NULLIF ( MIN( - 19 ), - CAST( + COUNT( * ) AS DECIMAL ) ) + + - 91
----
-110

skipif mysql # not compatible
query I rowsort label-1081
SELECT NULLIF ( MIN ( - 19 ), - CAST ( + COUNT ( * ) AS REAL ) ) + + - 91
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT + MIN( 41 ) - + 73 + 14
----
-18

skipif mysql # not compatible
query I rowsort label-1082
SELECT + MIN ( 41 ) - + 73 + 14
----
-18

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT ALL - 15 + + CAST( NULL AS SIGNED ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - 15 + + CAST ( NULL AS INTEGER ) * 77
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1086
SELECT ALL ( COUNT( ALL 44 ) ) * 91 + - CAST( + COUNT( * ) AS SIGNED ) + - 3 DIV - 68
----
90

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL ( COUNT ( ALL 44 ) ) * 91 + - CAST ( + COUNT ( * ) AS INTEGER ) + - 3 / - 68
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1087
SELECT - 36 DIV + + 82 + + 47 + 46 + - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1087
SELECT - 36 / + + 82 + + 47 + 46 + - COUNT ( * ) AS col0
----
92

query I rowsort
SELECT NULLIF ( + - ( 76 ), + 70 + + - 71 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT 89 * + - COUNT( * ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-1089
SELECT 89 * + - COUNT ( * ) col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL + 55 * 90 * COUNT( * ) + + - 31 col2
----
4919

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + 55 * 90 * COUNT ( * ) + + - 31 col2
----
4919

query I rowsort
SELECT 83 * COALESCE ( - 56, - 73 * + - 93, 10 ) + - - 98
----
-4550

onlyif mysql # aggregate syntax: 
query II rowsort label-1092
SELECT - 61 * - COUNT( * ), 78 * + - ( COUNT( * ) ) * 90 col1
----
61
-7020

skipif mysql # not compatible
query II rowsort label-1092
SELECT - 61 * - COUNT ( * ), 78 * + - ( COUNT ( * ) ) * 90 col1
----
61
-7020

query I rowsort
SELECT - 54 * + 2 + + 66 AS col1
----
-42

query I rowsort
SELECT - 37 * - 3 * 0 * + 16 * 90 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT DISTINCT + 23 * - 11 * 44 / SUM( ALL + 72 ) - - - 82 + + 19 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT + 23 * - 11 * 44 / SUM ( ALL + 72 ) - - - 82 + + 19 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + CASE WHEN + ( - 27 ) IN ( + 47 * - - 37 ) THEN - 26 * 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL 16 * + COALESCE ( - COUNT( * ), 7 - + - 25 * + 94 + 87 - - ( + COALESCE ( 38, - 80 * 44, 88 + - 85 ) ) ) - + 67 * 71 col0
----
-4773

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL 16 * + COALESCE ( - COUNT ( * ), 7 - + - 25 * + 94 + 87 - - ( + COALESCE ( 38, - 80 * 44, 88 + - 85 ) ) ) - + 67 * 71 col0
----
-4773

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1098
SELECT DISTINCT 18 * + COUNT( * ) * + CAST( NULL AS DECIMAL ) * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT 18 * + COUNT ( * ) * + CAST ( NULL AS REAL ) * 47 AS col1
----
NULL

query I rowsort
SELECT - 77 - 39 AS col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT - 53 - + 23 + - + NULLIF ( - MAX( DISTINCT + 98 ), 46 - + 60 + - COUNT( * ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1100
SELECT - 53 - + 23 + - + NULLIF ( - MAX ( DISTINCT + 98 ), 46 - + 60 + - COUNT ( * ) ) AS col0
----
22

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

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

query I rowsort
SELECT - 71 * + 16 * - 32
----
36352

query I rowsort
SELECT DISTINCT 0 * ( - 83 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1104
SELECT DISTINCT + SUM( - COALESCE ( - + 85, - 85 + + + 10 * - + CASE - 11 WHEN + 77 THEN NULL WHEN + 10 THEN NULL ELSE - 52 DIV + ( + ( ( 31 ) ) ) END ) ) col1
----
85

skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT + SUM ( - COALESCE ( - + 85, - 85 + + + 10 * - + CASE - 11 WHEN + 77 THEN NULL WHEN + 10 THEN NULL ELSE - 52 / + ( + ( ( 31 ) ) ) END ) ) col1
----
85

query I rowsort
SELECT ALL + 18 * 91 - + 53
----
1585

query I rowsort
SELECT + + 48 - - - 25 + + - 23
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1107
SELECT + - 74 * - 45 AS col2, - CAST( - 27 AS SIGNED ) col0
----
3330
27

skipif mysql # not compatible
query II rowsort label-1107
SELECT + - 74 * - 45 AS col2, - CAST ( - 27 AS INTEGER ) col0
----
3330
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT ALL 59 DIV + NULLIF ( + 21, - 39 )
----
2

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL 59 / + NULLIF ( + 21, - 39 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT + 29 DIV - 26 + - + 44
----
-45

skipif mysql # not compatible
query I rowsort label-1109
SELECT + 29 / - 26 + - + 44
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL COALESCE ( + + 94, 21 ) + + 52 * - - COUNT( - CASE + 89 WHEN 10 THEN - 32 * - 44 ELSE - 96 END ) AS col1
----
146

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL COALESCE ( + + 94, 21 ) + + 52 * - - COUNT ( - CASE + 89 WHEN 10 THEN - 32 * - 44 ELSE - 96 END ) AS col1
----
146

query I rowsort
SELECT - 73 + + 98 * 4 + 61 AS col1
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT + 86 + + - NULLIF ( COUNT( * ), + + 40 ) + - - ( - 17 ) + + 60
----
128

skipif mysql # not compatible
query I rowsort label-1112
SELECT + 86 + + - NULLIF ( COUNT ( * ), + + 40 ) + - - ( - 17 ) + + 60
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT ALL + 2 DIV + 64 + ( + 22 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL + 2 / + 64 + ( + 22 ) col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1114
SELECT + + CAST( - 58 AS SIGNED ) DIV CASE + 60 WHEN + COALESCE ( - - COALESCE ( CAST( NULL AS DECIMAL ), 61 * 53, 32 * + COUNT( * ) ), + 80 - 93 ) + 50 THEN NULL ELSE + COUNT( * ) END * - 60 AS col2
----
3480

skipif mysql # not compatible
query I rowsort label-1114
SELECT + + CAST ( - 58 AS INTEGER ) / CASE + 60 WHEN + COALESCE ( - - COALESCE ( CAST ( NULL AS REAL ), 61 * 53, 32 * + COUNT ( * ) ), + 80 - 93 ) + 50 THEN NULL ELSE + COUNT ( * ) END * - 60 AS col2
----
3480

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT + 70 - ( - COALESCE ( - - 24, - ( - 18 ), + 33 DIV 2 ) )
----
94

skipif mysql # not compatible
query I rowsort label-1115
SELECT + 70 - ( - COALESCE ( - - 24, - ( - 18 ), + 33 / 2 ) )
----
94

query I rowsort
SELECT ALL + 11 + - 41
----
-30

query I rowsort
SELECT + - 72 + + 40 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1118
SELECT ALL CAST( NULL AS SIGNED ) + + 77 + + - CASE + + 52 WHEN + 1 * + MAX( - + 69 ) + 4 THEN 13 + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL CAST ( NULL AS INTEGER ) + + 77 + + - CASE + + 52 WHEN + 1 * + MAX ( - + 69 ) + 4 THEN 13 + 60 END
----
NULL

query II rowsort
SELECT DISTINCT ( + 90 ) AS col0, - 33 AS col1
----
90
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1120
SELECT + - CAST( COUNT( * ) AS SIGNED ) + 47 * - - 94 * 64
----
282751

skipif mysql # not compatible
query I rowsort label-1120
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) + 47 * - - 94 * 64
----
282751

query II rowsort
SELECT 80, + 39 AS col0
----
80
39

query I rowsort
SELECT + 61 - - - 17
----
44

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

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

query I rowsort
SELECT 15 * - 14 - + + 83 AS col2
----
-293

query I rowsort
SELECT ALL + CASE + - ( + 58 ) WHEN - 98 THEN NULL ELSE - - 60 END AS col2
----
60

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

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

query I rowsort
SELECT - 7 * + 13 * - 44 * + 66 col2
----
264264

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - COUNT( ALL 61 ) * 34 / - + ( 24 ) + + ( + - 84 ) * + 73 * - 17 + - CASE + 25 WHEN 10 THEN NULL WHEN - COUNT( * ) + 81 THEN + 71 END + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT - COUNT ( ALL 61 ) * 34 / - + ( 24 ) + + ( + - 84 ) * + 73 * - 17 + - CASE + 25 WHEN 10 THEN NULL WHEN - COUNT ( * ) + 81 THEN + 71 END + - 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1129
SELECT + 54 + - 80 * 0 AS col0, COUNT( * ) / - 7 * + 8 + + - 7 + + - ( - CASE 55 WHEN - 78 THEN - 57 WHEN 93 / + 53 - 45 THEN NULL END ) AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-1129
SELECT + 54 + - 80 * 0 AS col0, COUNT ( * ) / - 7 * + 8 + + - 7 + + - ( - CASE 55 WHEN - 78 THEN - 57 WHEN 93 / + 53 - 45 THEN NULL END ) AS col0
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT SUM( DISTINCT 18 ) * + + 42 - 14 AS col1
----
742

skipif mysql # not compatible
query I rowsort label-1130
SELECT SUM ( DISTINCT 18 ) * + + 42 - 14 AS col1
----
742

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT - 71 DIV + - 5
----
14

skipif mysql # not compatible
query I rowsort label-1131
SELECT - 71 / + - 5
----
14

query I rowsort
SELECT - 30 + + 70 AS col0
----
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT ALL - 90 DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - 90 / + 46
----
-1

query I rowsort
SELECT 53 * ( - 1 ) * + 65 + + 13
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1136
SELECT - 0 * + MAX( ALL + 71 ) * - 70 AS col1, - 39 DIV + 44
----
0
0

skipif mysql # not compatible
query II rowsort label-1136
SELECT - 0 * + MAX ( ALL + 71 ) * - 70 AS col1, - 39 / + 44
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1137
SELECT ALL + 16 * + 27 + + 98 + - 58 - + + 11 + + - CAST( + 68 AS SIGNED ) + + 5 + 21 col1
----
419

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + 16 * + 27 + + 98 + - 58 - + + 11 + + - CAST ( + 68 AS INTEGER ) + + 5 + 21 col1
----
419

query I rowsort
SELECT DISTINCT 48 * 29 AS col0
----
1392

query I rowsort
SELECT - 18 + - + 64
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT ALL - + 10 * - 41 + 78 * - 42 + - 7 DIV + 76 + + 91
----
-2775

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL - + 10 * - 41 + 78 * - 42 + - 7 / + 76 + + 91
----
-2775

query II rowsort
SELECT - + 0 + - 58 - + 35, 94 + 50 + + + 0 * 69 AS col2
----
-93
144

query I rowsort
SELECT + - 37 + + 41
----
4

query I rowsort
SELECT DISTINCT - 73 * + + 39
----
-2847

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT - + CASE - 20 WHEN + 52 * - + CASE - 84 WHEN - 81 / - 96 * - + 20 * - COUNT( * ) THEN + 88 + 52 * COUNT( * ) ELSE NULL END + ( 29 - + 29 ) THEN ( 60 ) END * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1144
SELECT - + CASE - 20 WHEN + 52 * - + CASE - 84 WHEN - 81 / - 96 * - + 20 * - COUNT ( * ) THEN + 88 + 52 * COUNT ( * ) ELSE NULL END + ( 29 - + 29 ) THEN ( 60 ) END * 59 AS col1
----
NULL

query I rowsort
SELECT + 29 + - + 45
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1146
SELECT ALL - ( 30 ) + - - CAST( NULL AS SIGNED ) * COUNT( - + 56 ) + - + COUNT( DISTINCT 13 ) + + + 44 * + 5 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - ( 30 ) + - - CAST ( NULL AS INTEGER ) * COUNT ( - + 56 ) + - + COUNT ( DISTINCT 13 ) + + + 44 * + 5 * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL + + 56 + COUNT( ALL 3 ) * - - 2
----
58

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + + 56 + COUNT ( ALL 3 ) * - - 2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT - + MAX( ALL - 81 ) + + + 32 * + 17 AS col1
----
625

skipif mysql # not compatible
query I rowsort label-1148
SELECT - + MAX ( ALL - 81 ) + + + 32 * + 17 AS col1
----
625

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT + 56 * 32 + - + 81 * + COUNT( - 19 ) AS col1
----
1711

skipif mysql # not compatible
query I rowsort label-1149
SELECT + 56 * 32 + - + 81 * + COUNT ( - 19 ) AS col1
----
1711

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT ALL - 30 DIV 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL - 30 / 44 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT + 65 + - 20 + + 71 + - COUNT( * ) + 31 + + - 77 + - 32 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1152
SELECT + 65 + - 20 + + 71 + - COUNT ( * ) + 31 + + - 77 + - 32 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1153
SELECT - CASE - CAST( + 66 AS SIGNED ) WHEN - ( - 31 ) THEN + COALESCE ( - - 5, 55 ) * - MAX( ALL ( - 89 ) ) WHEN 1 * - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT - CASE - CAST ( + 66 AS INTEGER ) WHEN - ( - 31 ) THEN + COALESCE ( - - 5, 55 ) * - MAX ( ALL ( - 89 ) ) WHEN 1 * - COUNT ( * ) THEN NULL END
----
NULL

query II rowsort
SELECT 86 + 7 + - - 80 * 90, + ( 9 ) AS col1
----
7293
9

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

skipif mysql # not compatible
query I rowsort label-1155
SELECT 9 * - 14 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL COUNT( * ) * 74 * + 26
----
1924

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL COUNT ( * ) * 74 * + 26
----
1924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1157
SELECT COUNT( * ) + CASE - + 53 WHEN + CASE + SUM( DISTINCT 51 ) WHEN - - 39 + CAST( + COALESCE ( 50, + 60 ) AS SIGNED ) THEN - 38 + + 64 ELSE 4 * - 31 END THEN CAST( NULL AS SIGNED ) / + ( - NULLIF ( + MIN( DISTINCT CAST( NULL AS DECIMAL ) ), 27 * 14 ) ) + - 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT COUNT ( * ) + CASE - + 53 WHEN + CASE + SUM ( DISTINCT 51 ) WHEN - - 39 + CAST ( + COALESCE ( 50, + 60 ) AS INTEGER ) THEN - 38 + + 64 ELSE 4 * - 31 END THEN CAST ( NULL AS INTEGER ) / + ( - NULLIF ( + MIN ( DISTINCT CAST ( NULL AS REAL ) ), 27 * 14 ) ) + - 58 END AS col2
----
NULL

query I rowsort
SELECT 18 * - 17 col1
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT 24 + COALESCE ( - COUNT( * ), + - ( + 93 ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1159
SELECT 24 + COALESCE ( - COUNT ( * ), + - ( + 93 ) ) AS col2
----
23

query I rowsort
SELECT DISTINCT 25 * 50 * + - 36 AS col0
----
-45000

query I rowsort
SELECT DISTINCT 54 - - 65 col0
----
119

query I rowsort
SELECT 44 * + 60 * + + 20 AS col1
----
52800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1163
SELECT COUNT( DISTINCT + 96 ) / - - 51 + CASE - CAST( - 43 AS SIGNED ) WHEN - - 14 THEN CAST( NULL AS SIGNED ) * + CAST( - 55 AS SIGNED ) * ( 28 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1163
SELECT COUNT ( DISTINCT + 96 ) / - - 51 + CASE - CAST ( - 43 AS INTEGER ) WHEN - - 14 THEN CAST ( NULL AS INTEGER ) * + CAST ( - 55 AS INTEGER ) * ( 28 ) END AS col1
----
NULL

query I rowsort
SELECT 33 * ( 46 )
----
1518

query I rowsort
SELECT 57 * + 21 + + 95 col2
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT DISTINCT - 3 * - + MAX( DISTINCT 34 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT - 3 * - + MAX ( DISTINCT 34 ) AS col1
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT DISTINCT - NULLIF ( + 4, 39 + 42 + CAST( + - 91 AS SIGNED ) + 61 - COUNT( DISTINCT 2 ) * 17 * - COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT - NULLIF ( + 4, 39 + 42 + CAST ( + - 91 AS INTEGER ) + 61 - COUNT ( DISTINCT 2 ) * 17 * - COUNT ( * ) )
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1168
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 41 / - + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT CAST ( NULL AS REAL ) + 41 / - + 81 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1169
SELECT ALL - 85 * - - 40 * - - 45 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - 85 * - - 40 * - - 45 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 76 + - - ( + 6 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT 41 * 62 * - - COALESCE ( - 76, 19 * - - 13 - - 28 + + 83 - - + COUNT( ALL ( 50 ) ) * - 90 )
----
-193192

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT 41 * 62 * - - COALESCE ( - 76, 19 * - - 13 - - 28 + + 83 - - + COUNT ( ALL ( 50 ) ) * - 90 )
----
-193192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT CASE - - 93 WHEN - CAST( NULL AS SIGNED ) + - - 72 THEN - 96 WHEN + 32 * COUNT( * ) - 35 + + + 42 THEN 22 * - 67 WHEN 44 * - AVG ( + 32 * - 45 ) THEN NULL END / 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT CASE - - 93 WHEN - CAST ( NULL AS INTEGER ) + - - 72 THEN - 96 WHEN + 32 * COUNT ( * ) - 35 + + + 42 THEN 22 * - 67 WHEN 44 * - AVG ( + 32 * - 45 ) THEN NULL END / 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1173
SELECT + 41 - - 35 - + COUNT( ALL + 82 ) + - - COALESCE ( - + 56, + CAST( + - 28 AS SIGNED ) ) * + 18 * 23 - + 43 * ( 93 DIV - COUNT( * ) ) * - ( + 4 ) AS col2
----
-39105

skipif mysql # not compatible
query I rowsort label-1173
SELECT + 41 - - 35 - + COUNT ( ALL + 82 ) + - - COALESCE ( - + 56, + CAST ( + - 28 AS INTEGER ) ) * + 18 * 23 - + 43 * ( 93 / - COUNT ( * ) ) * - ( + 4 ) AS col2
----
-39105

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

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL - 35 * + - 67 + - COUNT ( * ) AS col0
----
2344

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

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

query I rowsort
SELECT DISTINCT - 44 + - 3 AS col1
----
-47

query I rowsort
SELECT ALL + 85 + - 30 * + 70 AS col2
----
-2015

query I rowsort
SELECT ALL - + 30 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT COUNT( * ) + 63 - + ( 28 ) + - 50 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1179
SELECT COUNT ( * ) + 63 - + ( 28 ) + - 50 AS col0
----
-14

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

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

skipif mysql # not compatible
query I rowsort label-1181
SELECT 81 + + CAST ( NULL AS INTEGER ) / - 93
----
NULL

query I rowsort
SELECT + 54 - 4 AS col0
----
50

query I rowsort
SELECT ALL - + 91 * - 42 * + 23 * 14 AS col0
----
1230684

query I rowsort
SELECT 18 * + 40 col0
----
720

query II rowsort
SELECT ALL 46 AS col1, + 77 AS col0
----
46
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL - 52 * + COALESCE ( - + 50, + ( + - 58 ) + - - 45, - - MAX( - 40 ) + - 50 + 52 * 7 * + ( - 59 ) )
----
2600

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - 52 * + COALESCE ( - + 50, + ( + - 58 ) + - - 45, - - MAX ( - 40 ) + - 50 + 52 * 7 * + ( - 59 ) )
----
2600

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1188
SELECT 14 + COALESCE ( 48, - 32 * - + ( 48 ) * + 34 * 68 - + 9 + + 43 * + MAX( ALL 93 DIV 41 ) + - SUM( - 69 ) ) + 60 DIV + 42
----
63

skipif mysql # not compatible
query I rowsort label-1188
SELECT 14 + COALESCE ( 48, - 32 * - + ( 48 ) * + 34 * 68 - + 9 + + 43 * + MAX ( ALL 93 / 41 ) + - SUM ( - 69 ) ) + 60 / + 42
----
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT 24 + - 39 + + 83 DIV + 98
----
-15

skipif mysql # not compatible
query I rowsort label-1190
SELECT 24 + - 39 + + 83 / + 98
----
-15

query II rowsort
SELECT 73 AS col1, - ( + 42 ) AS col1
----
73
-42

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1194
SELECT DISTINCT + COUNT( * ) DIV + COALESCE ( - + MIN( + 24 ), - 81 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT + COUNT ( * ) / + COALESCE ( - + MIN ( + 24 ), - 81 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT 90 * + + 30 + - COUNT( * ) * - COUNT( * ) * + NULLIF ( - 46, - 28 ) * + - 52 AS col0
----
5092

skipif mysql # not compatible
query I rowsort label-1195
SELECT 90 * + + 30 + - COUNT ( * ) * - COUNT ( * ) * + NULLIF ( - 46, - 28 ) * + - 52 AS col0
----
5092

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT + 66 DIV + 82 + - - 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1197
SELECT + 66 / + 82 + - - 36 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT ALL 71 * + - CASE - SUM( ALL + + 32 ) WHEN + 9 - CASE + 89 WHEN 40 THEN - - ( 59 ) + - COUNT( * ) WHEN 48 / 97 THEN - 27 ELSE - CAST( NULL AS SIGNED ) + ( 16 ) END - 79 * + 68 * 59 THEN CASE + 41 WHEN + 51 * 9 + + 38 THEN NULL WHEN 20 * + 67 THEN - 1 ELSE COUNT( - 58 ) * 81 END * 95 WHEN 91 THEN 0 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL 71 * + - CASE - SUM ( ALL + + 32 ) WHEN + 9 - CASE + 89 WHEN 40 THEN - - ( 59 ) + - COUNT ( * ) WHEN 48 / 97 THEN - 27 ELSE - CAST ( NULL AS INTEGER ) + ( 16 ) END - 79 * + 68 * 59 THEN CASE + 41 WHEN + 51 * 9 + + 38 THEN NULL WHEN 20 * + 67 THEN - 1 ELSE COUNT ( - 58 ) * 81 END * 95 WHEN 91 THEN 0 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1199
SELECT 68 + + 19 * - 69 AS col2, + COUNT( * ) + + + 17 AS col0
----
-1243
18

skipif mysql # not compatible
query II rowsort label-1199
SELECT 68 + + 19 * - 69 AS col2, + COUNT ( * ) + + + 17 AS col0
----
-1243
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT MAX( DISTINCT 82 )
----
82

skipif mysql # not compatible
query I rowsort label-1200
SELECT MAX ( DISTINCT 82 )
----
82

query I rowsort
SELECT DISTINCT 0 * 17
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT - 3 DIV - ( + 36 ) + - 5 + + 64 + - 92 + - 4 - - 3 * 34 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1202
SELECT - 3 / - ( + 36 ) + - 5 + + 64 + - 92 + - 4 - - 3 * 34 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT + ( + 87 ) * CASE + 47 WHEN - - COUNT( * ) + 36 + + - COUNT( - 82 ) * + + ( - 64 ) + - 55 THEN 15 END - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT + ( + 87 ) * CASE + 47 WHEN - - COUNT ( * ) + 36 + + - COUNT ( - 82 ) * + + ( - 64 ) + - 55 THEN 15 END - + 30
----
NULL

query I rowsort
SELECT - 39 + - 64 + 28 + 16
----
-59

query I rowsort
SELECT 95 * + + 72 * - 61 - + + 17 AS col1
----
-417257

query I rowsort
SELECT - CASE 76 WHEN 13 + + ( 85 ) THEN ( 91 ) WHEN - 86 THEN NULL ELSE + + 17 END col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT + + 50 * + COUNT( * ) + 26 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1207
SELECT + + 50 * + COUNT ( * ) + 26 AS col1
----
76

query I rowsort
SELECT ALL + + 43 * 51 * - - 56 AS col0
----
122808

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT 59 * - - NULLIF ( + COUNT( * ), + 31 ) + - 2
----
57

skipif mysql # not compatible
query I rowsort label-1209
SELECT 59 * - - NULLIF ( + COUNT ( * ), + 31 ) + - 2
----
57

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

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

query II rowsort
SELECT + 33 AS col1, + 61
----
33
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT ALL SUM( ALL - 76 ) * + 42 * + + 26 AS col2
----
-82992

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL SUM ( ALL - 76 ) * + 42 * + + 26 AS col2
----
-82992

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT - CASE + 42 WHEN + COUNT( * ) * + + 73 / + MIN( + 49 ) THEN + + AVG ( - + 5 ) * - 92 * - SUM( DISTINCT - 68 ) - 63 / - 44 END * + 57 + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT - CASE + 42 WHEN + COUNT ( * ) * + + 73 / + MIN ( + 49 ) THEN + + AVG ( - + 5 ) * - 92 * - SUM ( DISTINCT - 68 ) - 63 / - 44 END * + 57 + 97
----
NULL

query I rowsort
SELECT DISTINCT - - 38 * - 76 AS col2
----
-2888

query I rowsort
SELECT + 78 * 32
----
2496

query I rowsort
SELECT - - 2 * + + 73
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT - 52 + + 22 * + SUM( + 79 )
----
1686

skipif mysql # not compatible
query I rowsort label-1217
SELECT - 52 + + 22 * + SUM ( + 79 )
----
1686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1218
SELECT ALL - 38 - - + 60 DIV + 4 + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - 38 - - + 60 / + 4 + - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT + + 33 * - + MIN( + + 28 ) AS col1
----
-924

skipif mysql # not compatible
query I rowsort label-1219
SELECT + + 33 * - + MIN ( + + 28 ) AS col1
----
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1220
SELECT ALL + COALESCE ( - CAST( NULL AS SIGNED ), - 44 * + 18 ) * + 99 + 30
----
-78378

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), - 44 * + 18 ) * + 99 + 30
----
-78378

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1221
SELECT DISTINCT CAST( + 79 AS SIGNED ) * + 98 * ( 17 ) col0, 78 AS col0
----
131614
78

skipif mysql # not compatible
query II rowsort label-1221
SELECT DISTINCT CAST ( + 79 AS INTEGER ) * + 98 * ( 17 ) col0, 78 AS col0
----
131614
78

query II rowsort
SELECT ALL 43 col2, 24 + - 43
----
43
-19

query I rowsort
SELECT DISTINCT NULLIF ( + 34, - 99 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1224
SELECT 91 AS col1, - 34 * + CAST( + 13 AS SIGNED )
----
91
-442

skipif mysql # not compatible
query II rowsort label-1224
SELECT 91 AS col1, - 34 * + CAST ( + 13 AS INTEGER )
----
91
-442

query II rowsort
SELECT 26, 72 + + - 74 AS col2
----
26
-2

query I rowsort
SELECT + 37 - + 24
----
13

query I rowsort
SELECT - 54 * - - 86
----
-4644

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1229
SELECT DISTINCT + ( + 46 ) * + 8 + - 35 - CASE + 92 WHEN COALESCE ( 79, + - ( - - 76 ) / 59 * 83, 44 ) THEN + SUM( + CAST( + ( 6 ) AS SIGNED ) ) + 53 WHEN + 39 / 24 THEN NULL END * 31 * 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT + ( + 46 ) * + 8 + - 35 - CASE + 92 WHEN COALESCE ( 79, + - ( - - 76 ) / 59 * 83, 44 ) THEN + SUM ( + CAST ( + ( 6 ) AS INTEGER ) ) + 53 WHEN + 39 / 24 THEN NULL END * 31 * 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT - 36 + - 11 + 75 * MAX( DISTINCT - 24 ) AS col0
----
-1847

skipif mysql # not compatible
query I rowsort label-1230
SELECT - 36 + - 11 + 75 * MAX ( DISTINCT - 24 ) AS col0
----
-1847

query I rowsort
SELECT DISTINCT NULLIF ( - ( - - 27 ), - 11 )
----
-27

query I rowsort
SELECT DISTINCT - ( - - 85 ) + - - 57
----
-28

query II rowsort
SELECT - 20 AS col1, 33 AS col2
----
-20
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1234
SELECT DISTINCT 53 + - - 21 * + 92 * COALESCE ( - 75, 43 * - COUNT( - - 51 ) + 67 + 36 + + - 4 * CAST( NULL AS SIGNED ) * NULLIF ( 92, + COALESCE ( + 32, 28 ) ) ) * - CAST( + ( 32 ) AS SIGNED ) col1
----
4636853

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT 53 + - - 21 * + 92 * COALESCE ( - 75, 43 * - COUNT ( - - 51 ) + 67 + 36 + + - 4 * CAST ( NULL AS INTEGER ) * NULLIF ( 92, + COALESCE ( + 32, 28 ) ) ) * - CAST ( + ( 32 ) AS INTEGER ) col1
----
4636853

query I rowsort
SELECT ALL + ( - 58 ) * - - 74 + 39
----
-4253

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT ALL MIN( + 82 ) + ( - 88 ) + ( - COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL MIN ( + 82 ) + ( - 88 ) + ( - COUNT ( * ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT DISTINCT CASE + 68 WHEN 15 THEN NULL WHEN + - MIN( DISTINCT - - 23 ) / ( 34 ) + - + 42 THEN + COUNT( * ) - - 19 - COUNT( DISTINCT ( ( 85 ) ) ) * - 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT CASE + 68 WHEN 15 THEN NULL WHEN + - MIN ( DISTINCT - - 23 ) / ( 34 ) + - + 42 THEN + COUNT ( * ) - - 19 - COUNT ( DISTINCT ( ( 85 ) ) ) * - 88 ELSE NULL END
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL COUNT ( - - 39 ) * + COUNT ( * ) + + 47 + - - ( - 22 ) * - + CAST ( NULL AS INTEGER ) * + 61 - + 87
----
NULL

query I rowsort
SELECT - ( - 8 ) * - 33 AS col2
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1241
SELECT + COUNT( * ) AS col0, + 93 DIV 21 AS col1
----
1
4

skipif mysql # not compatible
query II rowsort label-1241
SELECT + COUNT ( * ) AS col0, + 93 / 21 AS col1
----
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT 49 * + 39 + - - ( - - ( COUNT( * ) ) ) AS col2
----
1912

skipif mysql # not compatible
query I rowsort label-1242
SELECT 49 * + 39 + - - ( - - ( COUNT ( * ) ) ) AS col2
----
1912

query I rowsort
SELECT - 51 * - + 0 + + + 6 * - 33 AS col2
----
-198

onlyif mysql # DIV for integer division: 
query II rowsort label-1244
SELECT ALL + + 37 DIV + 98 col2, - 8
----
0
-8

skipif mysql # not compatible
query II rowsort label-1244
SELECT ALL + + 37 / + 98 col2, - 8
----
0
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL COUNT( * ) * 87 - - 37 + - MIN( ALL 48 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL COUNT ( * ) * 87 - - 37 + - MIN ( ALL 48 ) col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1246
SELECT + + 38 AS col2, CASE - COUNT( * ) WHEN + NULLIF ( - 19, 87 * - 22 ) THEN NULL WHEN + 80 THEN - COUNT( * ) + COUNT( * ) END AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-1246
SELECT + + 38 AS col2, CASE - COUNT ( * ) WHEN + NULLIF ( - 19, 87 * - 22 ) THEN NULL WHEN + 80 THEN - COUNT ( * ) + COUNT ( * ) END AS col0
----
38
NULL

query I rowsort
SELECT - 26 - - - 98 AS col1
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-1248
SELECT ALL + 13 AS col1, + 17 + - + 20 + + + 8 + 10 + - - COUNT( * ) + + + 66 AS col2
----
13
82

skipif mysql # not compatible
query II rowsort label-1248
SELECT ALL + 13 AS col1, + 17 + - + 20 + + + 8 + 10 + - - COUNT ( * ) + + + 66 AS col2
----
13
82

query I rowsort
SELECT ALL 70 * - 81
----
-5670

query I rowsort
SELECT - ( ( + + 40 ) ) + 69
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT 53 * + 58 + + + 13 + SUM( DISTINCT + 4 ) AS col2
----
3091

skipif mysql # not compatible
query I rowsort label-1252
SELECT 53 * + 58 + + + 13 + SUM ( DISTINCT + 4 ) AS col2
----
3091

onlyif mysql # aggregate syntax: 
query II rowsort label-1253
SELECT + + COUNT( * ) + + + 86 AS col0, + 13 + - 53 AS col0
----
87
-40

skipif mysql # not compatible
query II rowsort label-1253
SELECT + + COUNT ( * ) + + + 86 AS col0, + 13 + - 53 AS col0
----
87
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT DISTINCT + - MIN( 9 ) AS col1, 48 AS col2
----
-9
48

skipif mysql # not compatible
query II rowsort label-1254
SELECT DISTINCT + - MIN ( 9 ) AS col1, 48 AS col2
----
-9
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT + 37 + + 38 + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-1256
SELECT + 37 + + 38 + + COUNT ( * )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-1257
SELECT + 55 DIV + 82 AS col0, - 59
----
0
-59

skipif mysql # not compatible
query II rowsort label-1257
SELECT + 55 / + 82 AS col0, - 59
----
0
-59

query I rowsort
SELECT - 61 * 23
----
-1403

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT DISTINCT 66 + 88 DIV + 21
----
70

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT 66 + 88 / + 21
----
70

query I rowsort
SELECT ALL NULLIF ( - - 59, - 5 ) * - - 19 + - ( + 90 ) AS col0
----
1031

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL - COUNT( * ) + - SUM( DISTINCT - - 20 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL - COUNT ( * ) + - SUM ( DISTINCT - - 20 ) AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - - 90 THEN + + 39 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - - 90 THEN + + 39 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT + SUM( DISTINCT - 15 ) + - + ( + 84 )
----
-99

skipif mysql # not compatible
query I rowsort label-1264
SELECT + SUM ( DISTINCT - 15 ) + - + ( + 84 )
----
-99

query I rowsort
SELECT - ( - + 63 ) * + COALESCE ( + 41, - ( - 94 ), 29 + - 33 )
----
2583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1266
SELECT + 41 + 27 + + 64 * + SUM( ALL 43 ) * 22 + + 60 * + + 2 + CAST( + MAX( - + 35 ) AS SIGNED ) AS col0
----
60697

skipif mysql # not compatible
query I rowsort label-1266
SELECT + 41 + 27 + + 64 * + SUM ( ALL 43 ) * 22 + + 60 * + + 2 + CAST ( + MAX ( - + 35 ) AS INTEGER ) AS col0
----
60697

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT ALL - 27 - - 63 * + + 93 * ( + COUNT( * ) )
----
5832

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL - 27 - - 63 * + + 93 * ( + COUNT ( * ) )
----
5832

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1269
SELECT - ( 92 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT - ( 92 ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( 75 ) + - ( - 85 ) col1
----
10

query II rowsort
SELECT DISTINCT + - 34 * 4 AS col2, 92
----
-136
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1272
SELECT - 57 + 49 AS col1, ( 42 ) DIV + - 19 - + 43 + 75 DIV SUM( DISTINCT 34 ) AS col2
----
-8
-43

skipif mysql # not compatible
query II rowsort label-1272
SELECT - 57 + 49 AS col1, ( 42 ) / + - 19 - + 43 + 75 / SUM ( DISTINCT 34 ) AS col2
----
-8
-43

query I rowsort
SELECT - 84 * - + 24 * + 77 * + + 3 AS col2
----
465696

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT 57 DIV 30 + + 47 + 37 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1274
SELECT 57 / 30 + + 47 + 37 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1275
SELECT CASE + 50 WHEN COUNT( * ) * + NULLIF ( + 83, - NULLIF ( - 64, + CAST( + ( - - 43 ) AS SIGNED ) ) ) THEN NULL WHEN 35 THEN 22 - ( COUNT( * ) ) / - 68 END + + ( - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1275
SELECT CASE + 50 WHEN COUNT ( * ) * + NULLIF ( + 83, - NULLIF ( - 64, + CAST ( + ( - - 43 ) AS INTEGER ) ) ) THEN NULL WHEN 35 THEN 22 - ( COUNT ( * ) ) / - 68 END + + ( - 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT - 5 * COUNT( - 59 ) + - - CASE + - 36 WHEN + 76 / + 65 THEN 2 + - COUNT( ALL + 96 ) ELSE NULL END / + NULLIF ( + + 93, - 33 ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT - 5 * COUNT ( - 59 ) + - - CASE + - 36 WHEN + 76 / + 65 THEN 2 + - COUNT ( ALL + 96 ) ELSE NULL END / + NULLIF ( + + 93, - 33 ) + 28
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1278
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - 58, - MAX( ALL + 11 ) col0
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-1278
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - 58, - MAX ( ALL + 11 ) col0
----
NULL
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT ALL CASE WHEN NULL <= 16 THEN CASE - 12 WHEN + 38 THEN NULL WHEN - - 2 THEN - COUNT( * ) ELSE + 91 + + 51 END END * - 18 + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL CASE WHEN NULL <= 16 THEN CASE - 12 WHEN + 38 THEN NULL WHEN - - 2 THEN - COUNT ( * ) ELSE + 91 + + 51 END END * - 18 + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1280
SELECT DISTINCT - 69 DIV + 50 + - - 84 + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT - 69 / + 50 + - - 84 + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT 56 + 6 * - 62 + - 14 + - COUNT( * ) * - 47
----
-283

skipif mysql # not compatible
query I rowsort label-1281
SELECT 56 + 6 * - 62 + - 14 + - COUNT ( * ) * - 47
----
-283

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT CASE - 77 WHEN COUNT( * ) THEN - 75 * - 8 * + + 16 + - 41 * + 95 / + MIN( DISTINCT + 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT CASE - 77 WHEN COUNT ( * ) THEN - 75 * - 8 * + + 16 + - 41 * + 95 / + MIN ( DISTINCT + 20 ) END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1284
SELECT + 74 * - - CAST( + + CAST( + ( 52 ) AS SIGNED ) AS SIGNED ) + 51 - - COALESCE ( 22, - 14 DIV + MAX( DISTINCT - 29 ) ) + - + 81 AS col1
----
3840

skipif mysql # not compatible
query I rowsort label-1284
SELECT + 74 * - - CAST ( + + CAST ( + ( 52 ) AS INTEGER ) AS INTEGER ) + 51 - - COALESCE ( 22, - 14 / + MAX ( DISTINCT - 29 ) ) + - + 81 AS col1
----
3840

onlyif mysql # DIV for integer division: 
query II rowsort label-1285
SELECT ALL 97 AS col2, 35 DIV + 55
----
97
0

skipif mysql # not compatible
query II rowsort label-1285
SELECT ALL 97 AS col2, 35 / + 55
----
97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1286
SELECT 51 AS col2, - 64 * - MAX( - 87 ) AS col2
----
51
-5568

skipif mysql # not compatible
query II rowsort label-1286
SELECT 51 AS col2, - 64 * - MAX ( - 87 ) AS col2
----
51
-5568

onlyif mysql # DIV for integer division: 
query I rowsort label-1287
SELECT ALL + ( - 0 ) + 21 DIV - - 39
----
0

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL + ( - 0 ) + 21 / - - 39
----
0

query I rowsort
SELECT ALL 19 + - 38
----
-19

query II rowsort
SELECT DISTINCT + 58 + - 10 * - 92 + - + 44 * + + 63 - 92 AS col2, + 22 AS col2
----
-1886
22

query II rowsort
SELECT ALL 8 AS col0, + 37 AS col1
----
8
37

query I rowsort
SELECT 59 + 74
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-1292
SELECT DISTINCT 13 + - + COUNT( * ) * + - COUNT( * ) AS col2, 30
----
14
30

skipif mysql # not compatible
query II rowsort label-1292
SELECT DISTINCT 13 + - + COUNT ( * ) * + - COUNT ( * ) AS col2, 30
----
14
30

query II rowsort
SELECT 51 AS col2, 33
----
51
33

query I rowsort
SELECT DISTINCT 18 + 9
----
27

query I rowsort
SELECT 94 + 88 AS col2
----
182

query I rowsort
SELECT 97 * - ( - 70 )
----
6790

query I rowsort
SELECT ALL 12 * 21 AS col2
----
252

query I rowsort
SELECT DISTINCT 82 - + 21 + + ( - 84 )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1299
SELECT DISTINCT 41 * - + 0 DIV 50 * + - COUNT( * ) AS col1, + 78 * + + COALESCE ( - COUNT( * ), - - 30 ) + 94 AS col1
----
0
16

skipif mysql # not compatible
query II rowsort label-1299
SELECT DISTINCT 41 * - + 0 / 50 * + - COUNT ( * ) AS col1, + 78 * + + COALESCE ( - COUNT ( * ), - - 30 ) + 94 AS col1
----
0
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1300
SELECT SUM( ALL - 65 ) DIV - NULLIF ( COUNT( 68 ), - COUNT( * ) * 11 )
----
65

skipif mysql # not compatible
query I rowsort label-1300
SELECT SUM ( ALL - 65 ) / - NULLIF ( COUNT ( 68 ), - COUNT ( * ) * 11 )
----
65

query II rowsort
SELECT ALL - 32 col0, 65 AS col2
----
-32
65

query II rowsort
SELECT ALL + 19, + NULLIF ( 96, 27 * AVG ( DISTINCT 33 ) ) AS col1
----
19
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1303
SELECT + 40 col1, 43 * 34 * MIN( + 85 ) * - 72 + 32
----
40
-8947408

skipif mysql # not compatible
query II rowsort label-1303
SELECT + 40 col1, 43 * 34 * MIN ( + 85 ) * - 72 + 32
----
40
-8947408

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

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

query II rowsort
SELECT 59 AS col2, 59
----
59
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1306
SELECT 53 + + COUNT( * ) * - 67 * NULLIF ( - - COUNT( * ), - 91 ) * ( 50 ) - CAST( COUNT( * ) AS SIGNED ) * 47 - - 67 + + + 93 * - 26 AS col1
----
-5695

skipif mysql # not compatible
query I rowsort label-1306
SELECT 53 + + COUNT ( * ) * - 67 * NULLIF ( - - COUNT ( * ), - 91 ) * ( 50 ) - CAST ( COUNT ( * ) AS INTEGER ) * 47 - - 67 + + + 93 * - 26 AS col1
----
-5695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1307
SELECT + 65 * + - 60 * COUNT( * ) * + CAST( - 62 AS SIGNED ) + - - 49 AS col2
----
241849

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 65 * + - 60 * COUNT ( * ) * + CAST ( - 62 AS INTEGER ) + - - 49 AS col2
----
241849

query I rowsort
SELECT - ( + NULLIF ( 87, - ( + 68 ) ) ) * - - 61 * - + ( + NULLIF ( ( - 32 ), - + ( + 46 ) * 15 ) ) AS col2
----
-169824

query II rowsort
SELECT DISTINCT - + ( - - 89 ) * 82 col1, + 3 AS col2
----
-7298
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL - - CASE + 50 WHEN 95 * + + NULLIF ( 76, - NULLIF ( + 83, + + 52 / ( - COUNT( ALL 69 ) ) ) ) - - COUNT( * ) THEN - 0 END + COALESCE ( - 33, + 67 * - COUNT( * ), ( + ( + 12 ) ) ) * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - - CASE + 50 WHEN 95 * + + NULLIF ( 76, - NULLIF ( + 83, + + 52 / ( - COUNT ( ALL 69 ) ) ) ) - - COUNT ( * ) THEN - 0 END + COALESCE ( - 33, + 67 * - COUNT ( * ), ( + ( + 12 ) ) ) * 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ( + - CASE - COUNT( * ) WHEN 47 THEN - SUM( - 26 ) + + 60 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT ( + - CASE - COUNT ( * ) WHEN 47 THEN - SUM ( - 26 ) + + 60 END ) AS col0
----
NULL

query I rowsort
SELECT ALL + 40 * - - 13 * + 25 * ( + 47 ) AS col1
----
611000

query II rowsort
SELECT DISTINCT - - 32 AS col1, + 83
----
32
83

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

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

query I rowsort
SELECT DISTINCT + + 52 + + + 2 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT ALL - - CASE - 56 WHEN - 97 THEN + 63 END + - ( - 92 ) * COUNT( * ) + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL - - CASE - 56 WHEN - 97 THEN + 63 END + - ( - 92 ) * COUNT ( * ) + + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT COUNT( * ) + - 88 col1
----
-87

skipif mysql # not compatible
query I rowsort label-1317
SELECT COUNT ( * ) + - 88 col1
----
-87

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

query III rowsort
SELECT ALL - 91 col0, - 19 * - - NULLIF ( 77, - 46 + - - 16 ) AS col1, + ( + - 97 ) AS col1
----
-91
-1463
-97

query I rowsort
SELECT COALESCE ( - 67, - 48 )
----
-67

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1323
SELECT DISTINCT - SUM( DISTINCT + 26 ) + ( - 0 ) - 26 AS col0, + COALESCE ( 41, - COUNT( * ) )
----
-52
41

skipif mysql # not compatible
query II rowsort label-1323
SELECT DISTINCT - SUM ( DISTINCT + 26 ) + ( - 0 ) - 26 AS col0, + COALESCE ( 41, - COUNT ( * ) )
----
-52
41

query I rowsort
SELECT ALL - ( - 4 ) col2
----
4

query I rowsort
SELECT ALL 78 + + ( - - 71 )
----
149

query I rowsort
SELECT 53 - 50
----
3

query I rowsort
SELECT 62 + 54 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL 72 * + + 13 * + ( - COUNT( * ) ) AS col2
----
-936

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL 72 * + + 13 * + ( - COUNT ( * ) ) AS col2
----
-936

query I rowsort
SELECT ALL + 44 - - 27 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT 43 + + + COUNT( DISTINCT + 18 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1330
SELECT 43 + + + COUNT ( DISTINCT + 18 ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT 52 + - - COUNT( * ) - - + ( - CASE - 6 WHEN 16 + + 72 * COALESCE ( + + CAST( NULL AS SIGNED ), 41 + - 36 ) + 58 THEN + COUNT( * ) END ) + + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT 52 + - - COUNT ( * ) - - + ( - CASE - 6 WHEN 16 + + 72 * COALESCE ( + + CAST ( NULL AS INTEGER ), 41 + - 36 ) + 58 THEN + COUNT ( * ) END ) + + 85 AS col1
----
NULL

query I rowsort
SELECT 88 * 34 AS col1
----
2992

onlyif mysql # aggregate syntax: 
query II rowsort label-1333
SELECT ALL 36 * - COUNT( * ) AS col2, 23 + + + 27
----
-36
50

skipif mysql # not compatible
query II rowsort label-1333
SELECT ALL 36 * - COUNT ( * ) AS col2, 23 + + + 27
----
-36
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT CASE 34 WHEN CASE + + COUNT( * ) WHEN + + 65 THEN 22 / + 5 END * - + 1 THEN 71 ELSE COUNT( * ) * - + COUNT( * ) END - - 54 + - - 99 + + + 59
----
211

skipif mysql # not compatible
query I rowsort label-1334
SELECT CASE 34 WHEN CASE + + COUNT ( * ) WHEN + + 65 THEN 22 / + 5 END * - + 1 THEN 71 ELSE COUNT ( * ) * - + COUNT ( * ) END - - 54 + - - 99 + + + 59
----
211

query I rowsort
SELECT DISTINCT - 82 * + 72 * - 37 AS col2
----
218448

query I rowsort
SELECT ALL - 73 * 58 * + + 21
----
-88914

query I rowsort
SELECT DISTINCT NULLIF ( - 99, - 62 )
----
-99

query I rowsort
SELECT ALL 58 * 14
----
812

query I rowsort
SELECT + 64 * + 16 AS col0
----
1024

query I rowsort
SELECT + 48 - 0 AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1341
SELECT + + 52 DIV - - COUNT( * ) AS col2, - 37 * + 75 col0
----
52
-2775

skipif mysql # not compatible
query II rowsort label-1341
SELECT + + 52 / - - COUNT ( * ) AS col2, - 37 * + 75 col0
----
52
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT + 6 + + 32 + - + ( + 7 ) + + ( - + 57 ) + + COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1342
SELECT + 6 + + 32 + - + ( + 7 ) + + ( - + 57 ) + + COUNT ( * ) AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1343
SELECT + 76 * COUNT( * ) AS col2, 28 * + ( - CAST( - - 20 AS SIGNED ) )
----
76
-560

skipif mysql # not compatible
query II rowsort label-1343
SELECT + 76 * COUNT ( * ) AS col2, 28 * + ( - CAST ( - - 20 AS INTEGER ) )
----
76
-560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1344
SELECT + COUNT( * ) + + 19 + + 50 * ( CAST( NULL AS SIGNED ) ) * - 43 * + - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT + COUNT ( * ) + + 19 + + 50 * ( CAST ( NULL AS INTEGER ) ) * - 43 * + - 62 AS col1
----
NULL

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

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

query I rowsort
SELECT + + 49 + + 91
----
140

query I rowsort
SELECT ALL 3 * + - 22
----
-66

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

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

query I rowsort
SELECT DISTINCT - 75 * - 75 * 43 + - - 69 - + + 17
----
241927

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT - 58 * + 5 * - 18 + - 2 + COUNT( * )
----
5219

skipif mysql # not compatible
query I rowsort label-1350
SELECT - 58 * + 5 * - 18 + - 2 + COUNT ( * )
----
5219

query I rowsort
SELECT + 8 * + 96 AS col0
----
768

query I rowsort
SELECT + 22 * - ( - 74 ) + + + 71 AS col0
----
1699

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1353
SELECT + - COUNT( * ) DIV - 18 DIV + + COUNT( * ) + + 23 + + - MIN( DISTINCT ( - 67 ) )
----
90

skipif mysql # not compatible
query I rowsort label-1353
SELECT + - COUNT ( * ) / - 18 / + + COUNT ( * ) + + 23 + + - MIN ( DISTINCT ( - 67 ) )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1354
SELECT + CASE + 13 WHEN - + 85 THEN 42 END AS col1, + COUNT( * ) * + COUNT( * ) + + 13 DIV + - 62
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1354
SELECT + CASE + 13 WHEN - + 85 THEN 42 END AS col1, + COUNT ( * ) * + COUNT ( * ) + + 13 / + - 62
----
NULL
1

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

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

query II rowsort
SELECT DISTINCT COALESCE ( + 31, + 50, + - 51 ) * - ( + 99 ) AS col2, NULLIF ( - 20, + + 79 * + 58 + - 65 ) * + 73 * 94 col2
----
-3069
-137240

onlyif mysql # aggregate syntax: 
query II rowsort label-1357
SELECT DISTINCT + 36, SUM( ALL - ( + 7 ) ) AS col1
----
36
-7

skipif mysql # not compatible
query II rowsort label-1357
SELECT DISTINCT + 36, SUM ( ALL - ( + 7 ) ) AS col1
----
36
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL 90 * 91 * + 9 * + + 36 - + + MAX( ALL - 3 )
----
2653563

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL 90 * 91 * + 9 * + + 36 - + + MAX ( ALL - 3 )
----
2653563

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT 13 * + COUNT( * ) + + - COALESCE ( ( 56 ), + 44 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-1359
SELECT 13 * + COUNT ( * ) + + - COALESCE ( ( 56 ), + 44 ) AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1360
SELECT ALL + COUNT( * ) DIV - 50 col1
----
0

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL + COUNT ( * ) / - 50 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT - CASE + + COUNT( * ) WHEN + - 48 THEN - - 3 WHEN 79 THEN NULL ELSE NULL END / + + COUNT( * ) / - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT - CASE + + COUNT ( * ) WHEN + - 48 THEN - - 3 WHEN 79 THEN NULL ELSE NULL END / + + COUNT ( * ) / - 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT DISTINCT NULLIF ( - 97, 90 + ( 90 ) + - 34 / - COUNT( * ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT NULLIF ( - 97, 90 + ( 90 ) + - 34 / - COUNT ( * ) ) AS col1
----
-97

query I rowsort
SELECT DISTINCT + 95 * 22
----
2090

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1364
SELECT ALL NULLIF ( - - COUNT( * ), + 45 + + ( + CAST( NULL AS DECIMAL ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL NULLIF ( - - COUNT ( * ), + 45 + + ( + CAST ( NULL AS REAL ) ) ) AS col0
----
1

query I rowsort
SELECT - ( - 28 ) * 25 AS col1
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT DISTINCT + MIN( DISTINCT + 1 ) * - + MAX( - 91 ) + - + 28 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT + MIN ( DISTINCT + 1 ) * - + MAX ( - 91 ) + - + 28 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1367
SELECT + - COUNT( * ) + - CAST( + + 38 AS SIGNED ) * - 55 * + 56 * ( 7 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT + - COUNT ( * ) + - CAST ( + + 38 AS INTEGER ) * - 55 * + 56 * ( 7 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 40 + - + 36
----
-76

query I rowsort
SELECT - - 95 * 88
----
8360

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL - 84 + + SUM( DISTINCT - 31 ) AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL - 84 + + SUM ( DISTINCT - 31 ) AS col0
----
-115

query I rowsort
SELECT DISTINCT + 73 * - - 32 col0
----
2336

query I rowsort
SELECT DISTINCT + - NULLIF ( - 98, - - 69 * + 80 * 49 ) + 51 AS col0
----
149

query II rowsort
SELECT DISTINCT 9, - CASE + - 86 WHEN 89 THEN + 15 * - + 99 ELSE NULL END + 91 AS col1
----
9
NULL

query I rowsort
SELECT ALL - 34 + + - 36
----
-70

query II rowsort
SELECT 31, 65 * - 68 AS col2
----
31
-4420

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1376
SELECT + + ( - 10 ) * - - 3 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT + + ( - 10 ) * - - 3 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT DISTINCT + - 3 DIV - ( - 37 ) + 81 * 81 + - 49 - - 35 + 83 + + 97
----
6727

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT + - 3 / - ( - 37 ) + 81 * 81 + - 49 - - 35 + 83 + + 97
----
6727

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT - - 27 / - 48 - 78 + - CASE ( - 8 ) WHEN + + 47 - + 66 + - 92 + - + 64 THEN - - 51 + + COUNT( * ) * + 46 END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT - - 27 / - 48 - 78 + - CASE ( - 8 ) WHEN + + 47 - + 66 + - 92 + - + 64 THEN - - 51 + + COUNT ( * ) * + 46 END + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - 96 * 47
----
-4512

onlyif mysql # aggregate syntax: 
query II rowsort label-1380
SELECT ALL + 24 AS col2, + MAX( ALL + - 13 )
----
24
-13

skipif mysql # not compatible
query II rowsort label-1380
SELECT ALL + 24 AS col2, + MAX ( ALL + - 13 )
----
24
-13

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1383
SELECT ALL + 6 DIV 51 - 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + 6 / 51 - 60 AS col2
----
-60

query I rowsort
SELECT + 49 + + 4
----
53

query I rowsort
SELECT 81 * 56 * + - 2 * + - 62 + + 3
----
562467

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ( + COALESCE ( - 16, - 2 + - COUNT( * ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-1386
SELECT ( + COALESCE ( - 16, - 2 + - COUNT ( * ) ) )
----
-16

query I rowsort
SELECT COALESCE ( + 8, - 58 ) * + 34 + - - 5
----
277

onlyif mysql # DIV for integer division: 
query II rowsort label-1388
SELECT DISTINCT + 30 col2, ( - 46 ) * - 88 * - 72 + + 82 + + 97 DIV - + 1 col2
----
30
-291471

skipif mysql # not compatible
query II rowsort label-1388
SELECT DISTINCT + 30 col2, ( - 46 ) * - 88 * - 72 + + 82 + + 97 / - + 1 col2
----
30
-291471

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

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

query I rowsort
SELECT + ( + - 98 ) + + 71 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT 94 * + COUNT( * ) * 2 AS col0
----
188

skipif mysql # not compatible
query I rowsort label-1391
SELECT 94 * + COUNT ( * ) * 2 AS col0
----
188

query I rowsort
SELECT ALL 94 * - 18 * 11
----
-18612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT CAST( + - 54 AS SIGNED ) * + 23 * + 16
----
-19872

skipif mysql # not compatible
query I rowsort label-1393
SELECT CAST ( + - 54 AS INTEGER ) * + 23 * + 16
----
-19872

query I rowsort
SELECT 19 * - - 79
----
1501

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1396
SELECT ALL + COUNT( * ) + 80 - + COALESCE ( + 39, 20 + - - CAST( 13 AS SIGNED ) DIV - ( - ( + 81 ) ) DIV 74 ) + 39 - + 62 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + COUNT ( * ) + 80 - + COALESCE ( + 39, 20 + - - CAST ( 13 AS INTEGER ) / - ( - ( + 81 ) ) / 74 ) + 39 - + 62 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT 38 - COUNT( DISTINCT + + 61 )
----
37

skipif mysql # not compatible
query I rowsort label-1397
SELECT 38 - COUNT ( DISTINCT + + 61 )
----
37

query I rowsort
SELECT DISTINCT + 85 + + 87
----
172

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT ALL - + MIN( + 18 ) * 87 AS col0
----
-1566

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL - + MIN ( + 18 ) * 87 AS col0
----
-1566

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT 30 DIV 39 + + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-1401
SELECT 30 / 39 + + - 42
----
-42

query I rowsort
SELECT ALL - ( - 35 ) + 74 AS col0
----
109

query I rowsort
SELECT ALL - 3 * - 33 AS col1
----
99

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

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

query I rowsort
SELECT ALL + - 70 - 2 - - - 22
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT 86 * + NULLIF ( + - ( + 50 ), + 21 + - COUNT( * ) ) * 81 * - 58 AS col1
----
20201400

skipif mysql # not compatible
query I rowsort label-1406
SELECT 86 * + NULLIF ( + - ( + 50 ), + 21 + - COUNT ( * ) ) * 81 * - 58 AS col1
----
20201400

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

query I rowsort
SELECT - 27 + + 60 - + 16 * - + 92
----
1505

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

query I rowsort
SELECT ALL + 51 - 70
----
-19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT 25 + + + COUNT( * ) + 9 DIV SUM( ALL - 53 ) * 73
----
26

skipif mysql # not compatible
query I rowsort label-1412
SELECT 25 + + + COUNT ( * ) + 9 / SUM ( ALL - 53 ) * 73
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT + COUNT( * ) * + COALESCE ( + 15, - ( SUM( + 42 ) ), - 49 ) + - 83 * - - 37 + + 97
----
-2959

skipif mysql # not compatible
query I rowsort label-1414
SELECT + COUNT ( * ) * + COALESCE ( + 15, - ( SUM ( + 42 ) ), - 49 ) + - 83 * - - 37 + + 97
----
-2959

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1415
SELECT ( NULLIF ( - CAST( NULL AS DECIMAL ), - 54 * - ( - 4 ) - - SUM( 20 ) * - - 32 ) ) * + 14 - + 52 + - + 30 * - ( - 21 ) * + 50 AS col1, 56 - 69 DIV - 32
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1415
SELECT ( NULLIF ( - CAST ( NULL AS REAL ), - 54 * - ( - 4 ) - - SUM ( 20 ) * - - 32 ) ) * + 14 - + 52 + - + 30 * - ( - 21 ) * + 50 AS col1, 56 - 69 / - 32
----
NULL
58

onlyif mysql # DIV for integer division: 
query II rowsort label-1416
SELECT ALL 61 DIV + 63 AS col2, 98
----
0
98

skipif mysql # not compatible
query II rowsort label-1416
SELECT ALL 61 / + 63 AS col2, 98
----
0
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1417
SELECT 13 * + - AVG ( + + CAST( NULL AS SIGNED ) ) + 13 + + CAST( 77 AS SIGNED ) + 27 * - - ( + 33 ) * - SUM( DISTINCT + - 4 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT 13 * + - AVG ( + + CAST ( NULL AS INTEGER ) ) + 13 + + CAST ( 77 AS INTEGER ) + 27 * - - ( + 33 ) * - SUM ( DISTINCT + - 4 ) col0
----
NULL

query I rowsort
SELECT ALL 13 * 12 AS col1
----
156

onlyif mysql # DIV for integer division: 
query II rowsort label-1419
SELECT ALL - 40 DIV + 6, 11 AS col1
----
-6
11

skipif mysql # not compatible
query II rowsort label-1419
SELECT ALL - 40 / + 6, 11 AS col1
----
-6
11

query I rowsort
SELECT ALL - COALESCE ( - + 80, + - 2 )
----
80

query I rowsort
SELECT DISTINCT - 23 * - - 17
----
-391

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1422
SELECT ALL 77 * - CAST( NULL AS SIGNED ), + 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1422
SELECT ALL 77 * - CAST ( NULL AS INTEGER ), + 65 AS col1
----
NULL
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1423
SELECT 94 * - + NULLIF ( + 72, - NULLIF ( - 54, CAST( NULL AS SIGNED ) ) ) col1
----
-6768

skipif mysql # not compatible
query I rowsort label-1423
SELECT 94 * - + NULLIF ( + 72, - NULLIF ( - 54, CAST ( NULL AS INTEGER ) ) ) col1
----
-6768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1424
SELECT ( + - 94 ) * + + 1 + CAST( + 68 AS SIGNED ), COUNT( * ) AS col2
----
-26
1

skipif mysql # not compatible
query II rowsort label-1424
SELECT ( + - 94 ) * + + 1 + CAST ( + 68 AS INTEGER ), COUNT ( * ) AS col2
----
-26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT ALL 71 + + + 84 + - COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL 71 + + + 84 + - COUNT ( * )
----
154

onlyif mysql # DIV for integer division: 
query II rowsort label-1426
SELECT ALL 47 DIV + ( + 68 ) AS col1, 75 + - ( + + 53 ) + + 85 + + 68 + 45 AS col2
----
0
220

skipif mysql # not compatible
query II rowsort label-1426
SELECT ALL 47 / + ( + 68 ) AS col1, 75 + - ( + + 53 ) + + 85 + + 68 + 45 AS col2
----
0
220

query I rowsort
SELECT 84 + - + 3 + - 8
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1428
SELECT CASE + COALESCE ( + 80, - 86 * + CAST( NULL AS SIGNED ) + 28 / - CAST( NULL AS SIGNED ) * ( - ( - 67 ) ), 32 + 36 * + 65 + MAX( DISTINCT + 54 ) - 79 + 78 + - 63 / + 56 ) WHEN - 46 / + CAST( NULL AS SIGNED ) THEN + SUM( + ( + 61 ) ) * COUNT( * ) END * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT CASE + COALESCE ( + 80, - 86 * + CAST ( NULL AS INTEGER ) + 28 / - CAST ( NULL AS INTEGER ) * ( - ( - 67 ) ), 32 + 36 * + 65 + MAX ( DISTINCT + 54 ) - 79 + 78 + - 63 / + 56 ) WHEN - 46 / + CAST ( NULL AS INTEGER ) THEN + SUM ( + ( + 61 ) ) * COUNT ( * ) END * - 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1429
SELECT DISTINCT NULLIF ( - 64, 39 ) + - CAST( - + 48 AS SIGNED ) DIV + - COUNT( * ) col1
----
-112

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT NULLIF ( - 64, 39 ) + - CAST ( - + 48 AS INTEGER ) / + - COUNT ( * ) col1
----
-112

query I rowsort
SELECT ALL 11 + - NULLIF ( - 86, 66 + - 89 ) col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT DISTINCT MAX( ALL + - 69 ) + - - 95 + - 19 * + 30 + 18
----
-526

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT MAX ( ALL + - 69 ) + - - 95 + - 19 * + 30 + 18
----
-526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT ALL + - 23 * - 2 * 64 * + 34 * - CAST( + 6 AS SIGNED )
----
-600576

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL + - 23 * - 2 * 64 * + 34 * - CAST ( + 6 AS INTEGER )
----
-600576

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1434
SELECT 32 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT 32 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT MAX( ALL - 40 ) + + COUNT( * ) + COUNT( * ) * ( - - 9 ) * - - 35 * 76 + - 41
----
23860

skipif mysql # not compatible
query I rowsort label-1435
SELECT MAX ( ALL - 40 ) + + COUNT ( * ) + COUNT ( * ) * ( - - 9 ) * - - 35 * 76 + - 41
----
23860

query I rowsort
SELECT + 49 * + - 76
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL - 41 - + + COUNT( * ) - - 71 + + - 41
----
-12

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - 41 - + + COUNT ( * ) - - 71 + + - 41
----
-12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT - 13 - COUNT( * ) DIV + COUNT( * ) + - 71 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - 13 - COUNT ( * ) / + COUNT ( * ) + - 71 AS col0
----
-85

query I rowsort
SELECT - 15 * + 65 + + ( - + 60 ) AS col2
----
-1035

query I rowsort
SELECT ALL - 91 * + + 65 - 55
----
-5970

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

skipif mysql # not compatible
query I rowsort label-1442
SELECT + MIN ( - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT - CASE + 28 WHEN 84 * 18 THEN NULL WHEN 51 THEN NULL ELSE - NULLIF ( - - 45, + - 35 ) + + 41 END * - ( + - 67 ) * - - COUNT( * ) * - + COUNT( * ) * 66 * 57 + - COUNT( * )
----
-1008217

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - CASE + 28 WHEN 84 * 18 THEN NULL WHEN 51 THEN NULL ELSE - NULLIF ( - - 45, + - 35 ) + + 41 END * - ( + - 67 ) * - - COUNT ( * ) * - + COUNT ( * ) * 66 * 57 + - COUNT ( * )
----
-1008217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1444
SELECT - CASE - AVG ( + 6 ) WHEN 53 THEN + 93 * + 71 + - - 4 + - - 73 + CAST( - - COUNT( * ) AS SIGNED ) + 63 + - 91 * - 60 * - - 31 * + 28 * + COUNT( * ) + 59 END * + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT - CASE - AVG ( + 6 ) WHEN 53 THEN + 93 * + 71 + - - 4 + - - 73 + CAST ( - - COUNT ( * ) AS INTEGER ) + 63 + - 91 * - 60 * - - 31 * + 28 * + COUNT ( * ) + 59 END * + 8 AS col1
----
NULL

query II rowsort
SELECT + 91 - + 56 AS col2, - 23 AS col0
----
35
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL + 54 * - MIN( 38 ) * - 33 col2
----
67716

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL + 54 * - MIN ( 38 ) * - 33 col2
----
67716

query I rowsort
SELECT DISTINCT - 99 * 12 * 36 * - 27
----
1154736

query I rowsort
SELECT 59 * 3
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL + 3 * + - 95 + 28 * - + 36 * COUNT( * ) + + 69 AS col2
----
-1224

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL + 3 * + - 95 + 28 * - + 36 * COUNT ( * ) + + 69 AS col2
----
-1224

query I rowsort
SELECT - 48 * + + 22 col1
----
-1056

query I rowsort
SELECT ALL 71 * - 63 * 62 + - - COALESCE ( + 5, 40 - + + 36, - 8, 12 + CASE + + 94 WHEN + 35 * 79 THEN 37 + + 7 + + + 11 + - 18 + + - 12 * + 67 WHEN 77 * - 36 THEN NULL ELSE NULL END * 6 ) AS col0
----
-277321

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT - NULLIF ( + + 77, + 55 ) + - + 14 - - 5 DIV - + 8 * 70 - + 45 AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-1452
SELECT - NULLIF ( + + 77, + 55 ) + - + 14 - - 5 / - + 8 * 70 - + 45 AS col2
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL - ( 81 ) * - + 21 + 29 + ( COUNT( * ) ) * - - 32 + 11 * + + 72 AS col2
----
2554

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - ( 81 ) * - + 21 + 29 + ( COUNT ( * ) ) * - - 32 + 11 * + + 72 AS col2
----
2554

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT + 18 - - - ( COALESCE ( 27, + - COUNT( * ) ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1454
SELECT + 18 - - - ( COALESCE ( 27, + - COUNT ( * ) ) ) AS col2
----
-9

query I rowsort
SELECT + 35 + 73 AS col0
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT ALL - 60 * - MIN( ALL - 3 ) + + 45, - 18 AS col0
----
-135
-18

skipif mysql # not compatible
query II rowsort label-1456
SELECT ALL - 60 * - MIN ( ALL - 3 ) + + 45, - 18 AS col0
----
-135
-18

query I rowsort
SELECT DISTINCT 58 * + 10 AS col1
----
580

query I rowsort
SELECT DISTINCT 82 * 48 + + 25 + + 72 AS col2
----
4033

onlyif mysql # aggregate syntax: 
query II rowsort label-1459
SELECT DISTINCT - + MAX( 63 ) + - 9, 67 + - 86 + - ( - - MAX( - 12 ) ) AS col2
----
-72
-7

skipif mysql # not compatible
query II rowsort label-1459
SELECT DISTINCT - + MAX ( 63 ) + - 9, 67 + - 86 + - ( - - MAX ( - 12 ) ) AS col2
----
-72
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT DISTINCT - + COUNT( * ) * - CASE + 68 WHEN + - 76 THEN NULL ELSE + 70 * MAX( ALL 57 ) + - ( COALESCE ( 69, + - 6, 44 * + + 8 + - COUNT( * ) ) ) - + CAST( - 94 AS SIGNED ) END AS col1
----
4015

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT - + COUNT ( * ) * - CASE + 68 WHEN + - 76 THEN NULL ELSE + 70 * MAX ( ALL 57 ) + - ( COALESCE ( 69, + - 6, 44 * + + 8 + - COUNT ( * ) ) ) - + CAST ( - 94 AS INTEGER ) END AS col1
----
4015

onlyif mysql # aggregate syntax: 
query II rowsort label-1461
SELECT DISTINCT 32 + - MIN( + - 10 ) AS col2, + 50 * - 24 * + 61 AS col0
----
42
-73200

skipif mysql # not compatible
query II rowsort label-1461
SELECT DISTINCT 32 + - MIN ( + - 10 ) AS col2, + 50 * - 24 * + 61 AS col0
----
42
-73200

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1463
SELECT - + NULLIF ( + 79, NULLIF ( 40, CASE + 64 WHEN - 23 + - + 71 - + ( + COALESCE ( - 63, + 81 ) ) + - + 46 * + 41 * + 30 THEN + + 88 + COUNT( * ) - 36 WHEN - CAST( NULL AS SIGNED ) THEN 9 WHEN 48 + - ( - 47 ) / MIN( DISTINCT 99 ) THEN NULL END ) - COUNT( * ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-1463
SELECT - + NULLIF ( + 79, NULLIF ( 40, CASE + 64 WHEN - 23 + - + 71 - + ( + COALESCE ( - 63, + 81 ) ) + - + 46 * + 41 * + 30 THEN + + 88 + COUNT ( * ) - 36 WHEN - CAST ( NULL AS INTEGER ) THEN 9 WHEN 48 + - ( - 47 ) / MIN ( DISTINCT 99 ) THEN NULL END ) - COUNT ( * ) ) AS col2
----
-79

query I rowsort
SELECT + + ( + + 60 ) - + 65
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1465
SELECT DISTINCT - MIN( ALL - 29 ) * 96 AS col1, 9
----
2784
9

skipif mysql # not compatible
query II rowsort label-1465
SELECT DISTINCT - MIN ( ALL - 29 ) * 96 AS col1, 9
----
2784
9

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

query I rowsort
SELECT - COALESCE ( - 65, + 97, + 6 )
----
65

query I rowsort
SELECT - 45 - + - 41 col0
----
-4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1470
SELECT + SUM( - + 63 ) + - + 62 * + + 45 + 84 + 38 DIV - + 39 AS col2
----
-2769

skipif mysql # not compatible
query I rowsort label-1470
SELECT + SUM ( - + 63 ) + - + 62 * + + 45 + 84 + 38 / - + 39 AS col2
----
-2769

query I rowsort
SELECT DISTINCT NULLIF ( 69, - 75 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1472
SELECT + MIN( 34 ) DIV 22
----
1

skipif mysql # not compatible
query I rowsort label-1472
SELECT + MIN ( 34 ) / 22
----
1

query I rowsort
SELECT ALL 84 + + + ( + 12 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT + MIN( ALL 94 ) + + - 72 * + 61
----
-4298

skipif mysql # not compatible
query I rowsort label-1474
SELECT + MIN ( ALL 94 ) + + - 72 * + 61
----
-4298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT ALL + 59 / + 72 * + + 91 + - CAST( NULL AS SIGNED ) + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + 59 / + 72 * + + 91 + - CAST ( NULL AS INTEGER ) + + 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1476
SELECT ( 77 ) / - CASE - 95 WHEN + 62 + - 38 + - 45 THEN - + 87 ELSE - CAST( NULL AS SIGNED ) * COUNT( * ) END + + 19 * + - 18 + NULLIF ( - 99, - SUM( - 98 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT ( 77 ) / - CASE - 95 WHEN + 62 + - 38 + - 45 THEN - + 87 ELSE - CAST ( NULL AS INTEGER ) * COUNT ( * ) END + + 19 * + - 18 + NULLIF ( - 99, - SUM ( - 98 ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1477
SELECT ALL 98 DIV - 30 + + 16
----
13

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL 98 / - 30 + + 16
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1478
SELECT DISTINCT ( - - 54 ) DIV - - CASE - COUNT( ALL - - 13 ) WHEN + 15 THEN NULL ELSE - 97 + + NULLIF ( 30, + - 44 - - 54 * - COALESCE ( + + 63, + COUNT( * ), - + 90, ( - COUNT( * ) ) * + + 88 ) * 50 * 41 + + COUNT( ( 79 ) ) ) END + - 14 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT ( - - 54 ) / - - CASE - COUNT ( ALL - - 13 ) WHEN + 15 THEN NULL ELSE - 97 + + NULLIF ( 30, + - 44 - - 54 * - COALESCE ( + + 63, + COUNT ( * ), - + 90, ( - COUNT ( * ) ) * + + 88 ) * 50 * 41 + + COUNT ( ( 79 ) ) ) END + - 14 AS col1
----
-14

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

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

query I rowsort
SELECT ALL + 51 * 84 * + + 13
----
55692

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT + MAX( - + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-1481
SELECT + MAX ( - + 17 )
----
-17

query II rowsort
SELECT - 94 + 58, 65 + 82 AS col1
----
-36
147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1483
SELECT ALL COALESCE ( COALESCE ( + + CAST( NULL AS DECIMAL ), - - 74 ), - - 6 ) * 7 + + 33 * 37 * CASE + 90 WHEN 31 THEN - 92 WHEN - 23 + 45 + + 31 - + + 35 THEN NULL END + + CASE - - 61 WHEN + COUNT( * ) THEN NULL ELSE 48 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL COALESCE ( COALESCE ( + + CAST ( NULL AS REAL ), - - 74 ), - - 6 ) * 7 + + 33 * 37 * CASE + 90 WHEN 31 THEN - 92 WHEN - 23 + 45 + + 31 - + + 35 THEN NULL END + + CASE - - 61 WHEN + COUNT ( * ) THEN NULL ELSE 48 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL + COALESCE ( 23, - + 59, COUNT( ALL 98 ), 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + COALESCE ( 23, - + 59, COUNT ( ALL 98 ), 23 ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1485
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) * + - 12 + + 40 + COUNT( * ) AS col0, 11 AS col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-1485
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + - 12 + + 40 + COUNT ( * ) AS col0, 11 AS col2
----
NULL
11

query I rowsort
SELECT - 58 * + 62 AS col1
----
-3596

query II rowsort
SELECT DISTINCT + ( - 92 ) AS col0, 24 * + + 56 + + 86
----
-92
1430

query I rowsort
SELECT COALESCE ( + + 18, 19 ) col1
----
18

query II rowsort
SELECT - 30 + 55, + 2 * + 81 AS col1
----
25
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT + + 79 + MIN( - 8 )
----
71

skipif mysql # not compatible
query I rowsort label-1490
SELECT + + 79 + MIN ( - 8 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT + + COUNT( * ) * - 66 * 74 + + ( - COUNT( * ) ) - 32
----
-4917

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT + + COUNT ( * ) * - 66 * 74 + + ( - COUNT ( * ) ) - 32
----
-4917

query I rowsort
SELECT ALL - 24 * + + 23
----
-552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT DISTINCT - 53 * COUNT( * ) * + + 33 - COALESCE ( 70, - 47 )
----
-1819

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT - 53 * COUNT ( * ) * + + 33 - COALESCE ( 70, - 47 )
----
-1819

query I rowsort
SELECT ALL + - CASE + 46 WHEN - 57 * - 3 + + + 63 THEN - - 46 END * - 20 * + - 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1496
SELECT DISTINCT - COUNT( * ) * - 20 + - - 62 * + COUNT( * ), 1 DIV + + 23 AS col1
----
82
0

skipif mysql # not compatible
query II rowsort label-1496
SELECT DISTINCT - COUNT ( * ) * - 20 + - - 62 * + COUNT ( * ), 1 / + + 23 AS col1
----
82
0

query I rowsort
SELECT ALL + ( + + 71 ) * - - 17 AS col0
----
1207

onlyif mysql # aggregate syntax: 
query II rowsort label-1498
SELECT + - 78 + - - 24, ( + - COUNT( - 54 ) ) * + 52 * - 83 AS col1
----
-54
4316

skipif mysql # not compatible
query II rowsort label-1498
SELECT + - 78 + - - 24, ( + - COUNT ( - 54 ) ) * + 52 * - 83 AS col1
----
-54
4316

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT + 33 DIV 33 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1499
SELECT + 33 / 33 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT ALL + 97 DIV + - 79
----
-1

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL + 97 / + - 79
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1501
SELECT + + NULLIF ( ( - CAST( NULL AS SIGNED ) ), - 26 ) * - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT + + NULLIF ( ( - CAST ( NULL AS INTEGER ) ), - 26 ) * - - 4
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1502
SELECT 68 col0, + COUNT( * ) + 38 AS col0
----
68
39

skipif mysql # not compatible
query II rowsort label-1502
SELECT 68 col0, + COUNT ( * ) + 38 AS col0
----
68
39

query I rowsort
SELECT ALL 84 * - - 73 * + - 82 AS col1
----
-502824

query I rowsort
SELECT DISTINCT 95 + + 29 AS col0
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1505
SELECT ALL MIN( - 79 ) + 49 DIV - 58
----
-79

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL MIN ( - 79 ) + 49 / - 58
----
-79

query I rowsort
SELECT 68 - + 63 AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1507
SELECT MAX( ALL 12 ) - + 14 + + 45 * + 37, COUNT( * ) * + 84 AS col1
----
1663
84

skipif mysql # not compatible
query II rowsort label-1507
SELECT MAX ( ALL 12 ) - + 14 + + 45 * + 37, COUNT ( * ) * + 84 AS col1
----
1663
84

query I rowsort
SELECT ALL 48 * + - 8
----
-384

query I rowsort
SELECT ALL 94 + + 47 * 52
----
2538

query II rowsort
SELECT DISTINCT 53 + - 34 - 92 AS col2, - ( - 27 ) + 30 AS col0
----
-73
57

query I rowsort
SELECT ALL - ( - + 12 ) + 37 * 18
----
678

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT ALL + ( - 44 ) * - 66 + + MIN( ALL + 10 ) + - + COUNT( * ) + + + 55 * + 73 + + - 19 * + - 67 * + COUNT( * )
----
8201

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL + ( - 44 ) * - 66 + + MIN ( ALL + 10 ) + - + COUNT ( * ) + + + 55 * + 73 + + - 19 * + - 67 * + COUNT ( * )
----
8201

query I rowsort
SELECT ALL 41 - - 98
----
139

query I rowsort
SELECT ALL + 29 * 16 AS col1
----
464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT CAST( NULL AS SIGNED ) + - - AVG ( + - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT CAST ( NULL AS INTEGER ) + - - AVG ( + - 91 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1516
SELECT - 88 DIV 69 * - + 55
----
55

skipif mysql # not compatible
query I rowsort label-1516
SELECT - 88 / 69 * - + 55
----
55

query I rowsort
SELECT ALL + 19 * + 98
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT + COUNT( * ) * + 23 * - 93 AS col0
----
-2139

skipif mysql # not compatible
query I rowsort label-1518
SELECT + COUNT ( * ) * + 23 * - 93 AS col0
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT + 53 * COUNT( * ) + - 68 * + ( + + 90 ) + + 50 - + + 69 col1
----
-6086

skipif mysql # not compatible
query I rowsort label-1519
SELECT + 53 * COUNT ( * ) + - 68 * + ( + + 90 ) + + 50 - + + 69 col1
----
-6086

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT DISTINCT - 28 * SUM( DISTINCT - - 84 ) AS col2
----
-2352

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT - 28 * SUM ( DISTINCT - - 84 ) AS col2
----
-2352

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT COUNT( + - 9 ) + + 36 * - 6 * 79 + - 68 col0
----
-17131

skipif mysql # not compatible
query I rowsort label-1525
SELECT COUNT ( + - 9 ) + + 36 * - 6 * 79 + - 68 col0
----
-17131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1526
SELECT DISTINCT - COALESCE ( - + COUNT( * ), - 9 * + + 25 * + CASE + + CAST( NULL AS DECIMAL ) WHEN - + COUNT( * ) THEN - + 47 + - 89 DIV + 22 DIV + 83 ELSE - - 53 * - + 18 END * + - 39 - - 77 + + - CAST( - - 50 AS SIGNED ) * - ( + - COUNT( * ) ) + - + CAST( 92 AS SIGNED ) DIV - 83 + - 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT - COALESCE ( - + COUNT ( * ), - 9 * + + 25 * + CASE + + CAST ( NULL AS REAL ) WHEN - + COUNT ( * ) THEN - + 47 + - 89 / + 22 / + 83 ELSE - - 53 * - + 18 END * + - 39 - - 77 + + - CAST ( - - 50 AS INTEGER ) * - ( + - COUNT ( * ) ) + - + CAST ( 92 AS INTEGER ) / - 83 + - 12 ) AS col1
----
1

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

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

query I rowsort
SELECT - 4 * 30
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + SUM( 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1529
SELECT + SUM ( 51 ) AS col1
----
51

query I rowsort
SELECT DISTINCT - ( 31 ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1531
SELECT 38 + - + CAST( COUNT( * ) AS SIGNED )
----
37

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

query I rowsort
SELECT ALL + 68 * + 7
----
476

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

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

query I rowsort
SELECT ALL + + 52 + + 25 AS col2
----
77

query I rowsort
SELECT ALL + - 44 + - + 87 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT 55 - + - COUNT( * ) * + - 21 * - - 78
----
-1583

skipif mysql # not compatible
query I rowsort label-1536
SELECT 55 - + - COUNT ( * ) * + - 21 * - - 78
----
-1583

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL 24 + + - 96 + 67 * + COUNT( ALL - 95 ) + + SUM( ALL - - 16 ) * + 60 + + + COUNT( * ) * - 32 * - 71 * + 61
----
139547

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL 24 + + - 96 + 67 * + COUNT ( ALL - 95 ) + + SUM ( ALL - - 16 ) * + 60 + + + COUNT ( * ) * - 32 * - 71 * + 61
----
139547

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL - MIN( DISTINCT - 85 ) + ( - COUNT( * ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - MIN ( DISTINCT - 85 ) + ( - COUNT ( * ) ) AS col2
----
84

query I rowsort
SELECT ALL + + 77 * - 77
----
-5929

query I rowsort
SELECT ALL - 23 + - 51 col0
----
-74

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

skipif mysql # not compatible
query I rowsort label-1541
SELECT 68 + + + 1 * - + COUNT ( + 93 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT MAX( + + 82 ) + + 24
----
106

skipif mysql # not compatible
query I rowsort label-1542
SELECT MAX ( + + 82 ) + + 24
----
106

query I rowsort
SELECT ( - + 85 ) - - 68
----
-17

query I rowsort
SELECT 87 + + 60 + + 4 - + 28
----
123

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL 83 / - COUNT ( * ) AS col1
----
-83

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

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

query II rowsort
SELECT ALL 64 AS col0, 9 * + + 6 + + 69
----
64
123

onlyif mysql # DIV for integer division: 
query I rowsort label-1548
SELECT 60 DIV + 70 + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-1548
SELECT 60 / + 70 + - 1
----
-1

query I rowsort
SELECT ( + 41 ) + + - 52 + 71 AS col2
----
60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT 34 * 53 * + 79 + + 68 + - + COALESCE ( + 34, 79, - 10 DIV + + 8 * - 3 ) col2
----
142392

skipif mysql # not compatible
query I rowsort label-1551
SELECT 34 * 53 * + 79 + + 68 + - + COALESCE ( + 34, 79, - 10 / + + 8 * - 3 ) col2
----
142392

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT + 68 * - 49 * - - 23 - + COUNT( * ) AS col2
----
-76637

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT + 68 * - 49 * - - 23 - + COUNT ( * ) AS col2
----
-76637

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT + 82 DIV - 7 + 62 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1555
SELECT + 82 / - 7 + 62 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT - COALESCE ( ( - - 92 ), 85 - 93 + + COALESCE ( 96, 52 ) + COUNT( + - 40 ) * COUNT( * ) + 72 * - + COALESCE ( 18, 54, - - 37 ) - - 79, - ( MAX( 1 ) ) * - 61 * + 22 + COUNT( * ) ) * 12 AS col1
----
-1104

skipif mysql # not compatible
query I rowsort label-1556
SELECT - COALESCE ( ( - - 92 ), 85 - 93 + + COALESCE ( 96, 52 ) + COUNT ( + - 40 ) * COUNT ( * ) + 72 * - + COALESCE ( 18, 54, - - 37 ) - - 79, - ( MAX ( 1 ) ) * - 61 * + 22 + COUNT ( * ) ) * 12 AS col1
----
-1104

query I rowsort
SELECT - 95 * + 95
----
-9025

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

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

query II rowsort
SELECT + + 91 AS col2, - 69 + - 76 AS col1
----
91
-145

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1561
SELECT DISTINCT - ( - COUNT( * ) ) col1, 17
----
1
17

skipif mysql # not compatible
query II rowsort label-1561
SELECT DISTINCT - ( - COUNT ( * ) ) col1, 17
----
1
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1562
SELECT ALL - + 45, + 7 * - 5 * - - SUM( - 35 ) + + 66 AS col2
----
-45
1291

skipif mysql # not compatible
query II rowsort label-1562
SELECT ALL - + 45, + 7 * - 5 * - - SUM ( - 35 ) + + 66 AS col2
----
-45
1291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1563
SELECT ALL 49 DIV - 56 - COUNT( * ) + - COUNT( ALL + 40 ) + - 65 - - 86 * - + 57 + + - 76 + - ( + 85 ) + 27 * + 83 AS col1
----
-2889

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL 49 / - 56 - COUNT ( * ) + - COUNT ( ALL + 40 ) + - 65 - - 86 * - + 57 + + - 76 + - ( + 85 ) + 27 * + 83 AS col1
----
-2889

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT + SUM( - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1564
SELECT + SUM ( - 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1565
SELECT COALESCE ( 53, - 41 ) DIV 83 * - - COUNT( * ) DIV - 16 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1565
SELECT COALESCE ( 53, - 41 ) / 83 * - - COUNT ( * ) / - 16 + + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1566
SELECT - 41 * - + CAST( NULL AS DECIMAL ) col2, + 99 col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-1566
SELECT - 41 * - + CAST ( NULL AS REAL ) col2, + 99 col2
----
NULL
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT 93 DIV + 57 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1567
SELECT 93 / + 57 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1568
SELECT ALL - CAST( 24 AS SIGNED ) + + + 10
----
-14

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL - CAST ( 24 AS INTEGER ) + + + 10
----
-14

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

query I rowsort
SELECT DISTINCT - 78 + - - 87
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1572
SELECT ALL + 91 + 34 / + 62 * 24 * + ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + 91 + 34 / + 62 * 24 * + ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT + ( - ( 22 ) ) * + SUM( + 3 ) - + 88 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-1573
SELECT + ( - ( 22 ) ) * + SUM ( + 3 ) - + 88 AS col1
----
-154

query I rowsort
SELECT - COALESCE ( - 45, 96 * + ( + 0 ) ) col2
----
45

query I rowsort
SELECT - 43 + - - 11
----
-32

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

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

query I rowsort
SELECT DISTINCT - 46 * + ( 13 ) * - 74 AS col1
----
44252

query I rowsort
SELECT ALL + 92 - - 21 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT DISTINCT - COUNT( * ) * - COALESCE ( + 30, + 77 ) * + 60
----
1800

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT - COUNT ( * ) * - COALESCE ( + 30, + 77 ) * + 60
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT - 65 * 85 * + COUNT( + 91 ) AS col1
----
-5525

skipif mysql # not compatible
query I rowsort label-1580
SELECT - 65 * 85 * + COUNT ( + 91 ) AS col1
----
-5525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1581
SELECT - 83 DIV - SUM( DISTINCT 19 )
----
4

skipif mysql # not compatible
query I rowsort label-1581
SELECT - 83 / - SUM ( DISTINCT 19 )
----
4

query II rowsort
SELECT DISTINCT 95 * 46, 10 AS col1
----
4370
10

query I rowsort
SELECT DISTINCT - 47 * + 95
----
-4465

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT ALL + SUM( + - ( 26 ) ) - - ( 26 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL + SUM ( + - ( 26 ) ) - - ( 26 ) col1
----
0

query I rowsort
SELECT - 29 * + ( - 41 ) AS col1
----
1189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL - 29 * + + 16 * - CAST( - - 90 AS SIGNED ) AS col0
----
41760

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - 29 * + + 16 * - CAST ( - - 90 AS INTEGER ) AS col0
----
41760

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT - 47 - + 40 DIV - + 54 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1587
SELECT - 47 - + 40 / - + 54 AS col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1588
SELECT + 53 DIV + 4
----
13

skipif mysql # not compatible
query I rowsort label-1588
SELECT + 53 / + 4
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT DISTINCT COALESCE ( + 89, - CAST( + ( - 69 ) AS SIGNED ) )
----
89

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT COALESCE ( + 89, - CAST ( + ( - 69 ) AS INTEGER ) )
----
89

query I rowsort
SELECT - 23 - NULLIF ( - 73, + 55 + - 73 ) - + + 85
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT + COUNT( * ) * - 57 * - 21 AS col1
----
1197

skipif mysql # not compatible
query I rowsort label-1591
SELECT + COUNT ( * ) * - 57 * - 21 AS col1
----
1197

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1592
SELECT ALL ( + + 15 ), 91 + - CAST( + 94 AS SIGNED ) AS col1
----
15
-3

skipif mysql # not compatible
query II rowsort label-1592
SELECT ALL ( + + 15 ), 91 + - CAST ( + 94 AS INTEGER ) AS col1
----
15
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1593
SELECT - 99 * + + 76, - 97 * + CAST( NULL AS DECIMAL ) AS col0
----
-7524
NULL

skipif mysql # not compatible
query II rowsort label-1593
SELECT - 99 * + + 76, - 97 * + CAST ( NULL AS REAL ) AS col0
----
-7524
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT - 17 DIV - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT - 17 / - 46 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT COUNT ( * ) / + + 81 * - 15 AS col2
----
0

query I rowsort
SELECT + 37 - - - 62 * 71
----
-4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( - ( + CASE + - 35 WHEN - - 36 THEN - 37 * + 20 WHEN + 3 THEN 72 ELSE NULL END ) ) * - 49 * - 41 + 68 + 53 + 52 + + SUM( + - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( - ( + CASE + - 35 WHEN - - 36 THEN - 37 * + 20 WHEN + 3 THEN 72 ELSE NULL END ) ) * - 49 * - 41 + 68 + 53 + 52 + + SUM ( + - 82 )
----
NULL

query I rowsort
SELECT + 26 * + - 38
----
-988

query I rowsort
SELECT ( + + 66 ) * + 81 + - - 47 AS col2
----
5393

query I rowsort
SELECT ALL + 47 * - 28 * - 56 - 45 * 14 + + - 7 AS col1
----
73059

query I rowsort
SELECT DISTINCT - 97 * + 33 + - + 69 AS col2
----
-3270

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT + SUM( - 87 ) + + ( 55 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1602
SELECT + SUM ( - 87 ) + + ( 55 ) AS col2
----
-32

query I rowsort
SELECT + 28 + - 42 + - 49 * + 48 * - 78 - - - 51 AS col0
----
183391

onlyif mysql # aggregate syntax: 
query II rowsort label-1604
SELECT - SUM( - - 74 ) AS col0, 16 col2
----
-74
16

skipif mysql # not compatible
query II rowsort label-1604
SELECT - SUM ( - - 74 ) AS col0, 16 col2
----
-74
16

query I rowsort
SELECT + 20 * - 76 / + CASE + 51 WHEN - 68 THEN - 44 WHEN - 86 THEN 6 END + - 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT + COUNT( * ) + - 94 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1606
SELECT + COUNT ( * ) + - 94 AS col2
----
-93

query I rowsort
SELECT ALL - 89 * + + 85 - + 67 + - + 8
----
-7640

query I rowsort
SELECT ALL + 60 * - - 48 AS col0
----
2880

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

skipif mysql # not compatible
query I rowsort label-1609
SELECT + 7 - + + COUNT ( * ) AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT + 66 * - CASE + + 55 WHEN + 59 THEN - 46 / + 21 * + 76 + + 52 WHEN - 25 THEN - 63 ELSE 10 / + 84 + + 98 END * - + CAST( NULL AS SIGNED ) * - 22 * 33 * + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT + 66 * - CASE + + 55 WHEN + 59 THEN - 46 / + 21 * + 76 + + 52 WHEN - 25 THEN - 63 ELSE 10 / + 84 + + 98 END * - + CAST ( NULL AS INTEGER ) * - 22 * 33 * + 24 AS col1
----
NULL

query I rowsort
SELECT ALL 72 * - 38
----
-2736

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT SUM( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT SUM ( - 46 )
----
-46

query I rowsort
SELECT + 47 + + 7 AS col1
----
54

query II rowsort
SELECT DISTINCT CASE + 56 WHEN 83 THEN + 32 * 27 + AVG ( + 59 ) * 88 END col1, - 49 AS col2
----
NULL
-49

query I rowsort
SELECT ALL COALESCE ( + 33, 44 * + 9, 81 ) AS col2
----
33

query I rowsort
SELECT - 29 - - + 26 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL ( NULLIF ( + 66, + COUNT( DISTINCT - 5 ) ) )
----
66

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL ( NULLIF ( + 66, + COUNT ( DISTINCT - 5 ) ) )
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT - COUNT( * ) - - - 2 * + 25 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1621
SELECT - COUNT ( * ) - - - 2 * + 25 AS col2
----
-51

query II rowsort
SELECT 8 AS col0, 23 AS col0
----
8
23

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

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

query I rowsort
SELECT DISTINCT - 89 * - - 68
----
-6052

query I rowsort
SELECT - - 2 + + 65 AS col2
----
67

query I rowsort
SELECT ALL - 96 * - 52
----
4992

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT - 43 DIV - - 10
----
-4

skipif mysql # not compatible
query I rowsort label-1627
SELECT - 43 / - - 10
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT + 58 * 4 + - COUNT( * ) col1
----
231

skipif mysql # not compatible
query I rowsort label-1628
SELECT + 58 * 4 + - COUNT ( * ) col1
----
231

query I rowsort
SELECT - 1 * 39 AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1630
SELECT + - 50 DIV + 62 + + COUNT( * ) + - + 72 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1630
SELECT + - 50 / + 62 + + COUNT ( * ) + - + 72 AS col1
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-1631
SELECT ALL + 74 AS col2, 10 + 70 + 41 DIV 45 AS col2
----
74
80

skipif mysql # not compatible
query II rowsort label-1631
SELECT ALL + 74 AS col2, 10 + 70 + 41 / 45 AS col2
----
74
80

query I rowsort
SELECT ALL + 81 + + 84 * 88 col0
----
7473

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1633
SELECT + COALESCE ( - + COUNT( * ), - 10, + + 84 ) * - CASE + COUNT( * ) WHEN - + 12 + 71 THEN NULL ELSE 72 DIV 89 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1633
SELECT + COALESCE ( - + COUNT ( * ), - 10, + + 84 ) * - CASE + COUNT ( * ) WHEN - + 12 + 71 THEN NULL ELSE 72 / 89 END AS col0
----
0

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

query I rowsort
SELECT ALL - 89 * - 29 col0
----
2581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT MIN( DISTINCT 30 ) * + - COALESCE ( - CAST( 38 AS SIGNED ), - 60, 15, + 90 ) + 32 AS col2
----
1172

skipif mysql # not compatible
query I rowsort label-1636
SELECT MIN ( DISTINCT 30 ) * + - COALESCE ( - CAST ( 38 AS INTEGER ), - 60, 15, + 90 ) + 32 AS col2
----
1172

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL + - 70 + + + COUNT( * ) - - - 58 - + 8 * + + 6 / CASE + - 62 WHEN + 6 THEN NULL WHEN + + 24 + 46 - - ( + 84 ) + - 66 + - 0 THEN COUNT( * ) * - + ( - - ( 52 ) ) END - + NULLIF ( - 25, + 87 ) * + COALESCE ( - 11, 38 * SUM( DISTINCT - 78 ) ) / - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL + - 70 + + + COUNT ( * ) - - - 58 - + 8 * + + 6 / CASE + - 62 WHEN + 6 THEN NULL WHEN + + 24 + 46 - - ( + 84 ) + - 66 + - 0 THEN COUNT ( * ) * - + ( - - ( 52 ) ) END - + NULLIF ( - 25, + 87 ) * + COALESCE ( - 11, 38 * SUM ( DISTINCT - 78 ) ) / - 26 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1638
SELECT DISTINCT - + 38 AS col0, + 18 DIV - CAST( 9 AS SIGNED )
----
-38
-2

skipif mysql # not compatible
query II rowsort label-1638
SELECT DISTINCT - + 38 AS col0, + 18 / - CAST ( 9 AS INTEGER )
----
-38
-2

query II rowsort
SELECT DISTINCT - 5 col1, 22 AS col0
----
-5
22

query I rowsort
SELECT + 87 * + - 14 * 3 - + + 26 AS col0
----
-3680

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT DISTINCT 74 * - 26 * - + 99 + 61 AS col0, - COUNT( * )
----
190537
-1

skipif mysql # not compatible
query II rowsort label-1641
SELECT DISTINCT 74 * - 26 * - + 99 + 61 AS col0, - COUNT ( * )
----
190537
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL COALESCE ( + 16, - 87 + - - 70 ) - - 94 * SUM( + + 39 ) * - SUM( + + 38 ) AS col2
----
-139292

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL COALESCE ( + 16, - 87 + - - 70 ) - - 94 * SUM ( + + 39 ) * - SUM ( + + 38 ) AS col2
----
-139292

query I rowsort
SELECT 97 * - + 45 AS col1
----
-4365

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL - SUM( DISTINCT 49 ) * - + 81
----
3969

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL - SUM ( DISTINCT 49 ) * - + 81
----
3969

query I rowsort
SELECT 92 * - 70 + - 72 AS col0
----
-6512

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL CASE - 76 WHEN + ( - - 74 ) THEN COUNT( * ) ELSE NULL END - + 55 + + - MIN( ALL + ( - 83 ) ) + - + MIN( 39 ) + + ( + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL CASE - 76 WHEN + ( - - 74 ) THEN COUNT ( * ) ELSE NULL END - + 55 + + - MIN ( ALL + ( - 83 ) ) + - + MIN ( 39 ) + + ( + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL CASE - 88 WHEN 6 THEN 5 * - ( + 6 ) WHEN + - NULLIF ( - MIN( ALL + 73 ), + - 99 ) THEN NULL WHEN + + 83 * + 6 THEN NULL END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL CASE - 88 WHEN 6 THEN 5 * - ( + 6 ) WHEN + - NULLIF ( - MIN ( ALL + 73 ), + - 99 ) THEN NULL WHEN + + 83 * + 6 THEN NULL END / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT COUNT( * ) + 57 * - 61 * 32
----
-111263

skipif mysql # not compatible
query I rowsort label-1648
SELECT COUNT ( * ) + 57 * - 61 * 32
----
-111263

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT NULLIF ( + - ( + - ( NULLIF ( + 84, - 47 ) ) ), + 85 / + SUM( + + 50 ) * COUNT( * ) + 92 + - - 73 * 13 + ( + + COUNT( * ) ) - + 94 + + - COALESCE ( + COALESCE ( COUNT( * ), - - 21 ), 86 ) ) * - - COUNT( * ) - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1650
SELECT NULLIF ( + - ( + - ( NULLIF ( + 84, - 47 ) ) ), + 85 / + SUM ( + + 50 ) * COUNT ( * ) + 92 + - - 73 * 13 + ( + + COUNT ( * ) ) - + 94 + + - COALESCE ( + COALESCE ( COUNT ( * ), - - 21 ), 86 ) ) * - - COUNT ( * ) - COUNT ( * ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT ALL NULLIF ( + + 24, ( + 73 ) ) DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL NULLIF ( + + 24, ( + 73 ) ) / + 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ( - - ( + + 27 ) ) + - 31 - + COUNT( * ) * 80 + - ( + + COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-1652
SELECT ( - - ( + + 27 ) ) + - 31 - + COUNT ( * ) * 80 + - ( + + COUNT ( * ) )
----
-85

query I rowsort
SELECT 51 * + - 66 AS col0
----
-3366

query I rowsort
SELECT DISTINCT ( 34 ) * - 71
----
-2414

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL ( 17 ) * + 34 * - 98 * COUNT( * ) AS col1
----
-56644

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL ( 17 ) * + 34 * - 98 * COUNT ( * ) AS col1
----
-56644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1656
SELECT ALL CASE 95 WHEN - CAST( - 30 AS SIGNED ) THEN NULL WHEN - - CAST( + 55 AS SIGNED ) THEN - 98 * 11 + - 55 END + SUM( DISTINCT + 61 ) + + 61 * - MAX( - - 40 ) / - 36 + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL CASE 95 WHEN - CAST ( - 30 AS INTEGER ) THEN NULL WHEN - - CAST ( + 55 AS INTEGER ) THEN - 98 * 11 + - 55 END + SUM ( DISTINCT + 61 ) + + 61 * - MAX ( - - 40 ) / - 36 + + 22
----
NULL

query II rowsort
SELECT DISTINCT - 11 * + 97, + 24 + - + 19 AS col2
----
-1067
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT 41 * + + 20 * + COUNT( * )
----
820

skipif mysql # not compatible
query I rowsort label-1658
SELECT 41 * + + 20 * + COUNT ( * )
----
820

query II rowsort
SELECT ALL 58 + - + 13, 69 col2
----
45
69

query I rowsort
SELECT ALL - 2 + - 74
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL 76 * SUM( + 79 )
----
6004

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL 76 * SUM ( + 79 )
----
6004

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL + 39 + + 99 * - + COALESCE ( COUNT( * ), - 49 )
----
-60

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + 39 + + 99 * - + COALESCE ( COUNT ( * ), - 49 )
----
-60

query I rowsort
SELECT DISTINCT + 67 * 63
----
4221

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT DISTINCT - 9 + COUNT( * ) + - 75 * - 22 AS col2
----
1642

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT - 9 + COUNT ( * ) + - 75 * - 22 AS col2
----
1642

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT - MIN( 31 ) - - 90
----
59

skipif mysql # not compatible
query I rowsort label-1665
SELECT - MIN ( 31 ) - - 90
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT COUNT( * ) - - 26 * 93
----
2419

skipif mysql # not compatible
query I rowsort label-1667
SELECT COUNT ( * ) - - 26 * 93
----
2419

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT - SUM( DISTINCT - - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1668
SELECT - SUM ( DISTINCT - - 75 ) AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT 68 + - 32 DIV + + 70 * - - ( 82 )
----
68

skipif mysql # not compatible
query I rowsort label-1669
SELECT 68 + - 32 / + + 70 * - - ( 82 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT COUNT( * ) * + 81, COUNT( * ) + + 42 AS col2
----
81
43

skipif mysql # not compatible
query II rowsort label-1670
SELECT COUNT ( * ) * + 81, COUNT ( * ) + + 42 AS col2
----
81
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1671
SELECT ALL - + COUNT( * ) + + + 56 AS col2, + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-1671
SELECT ALL - + COUNT ( * ) + + + 56 AS col2, + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL )
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT + CASE + COUNT( * ) WHEN - + 91 THEN 48 * - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT + CASE + COUNT ( * ) WHEN - + 91 THEN 48 * - 25 END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - - 5, - 37 * ( - 22 ) ) + + 83
----
88

query I rowsort
SELECT DISTINCT + 52 * - 46 col0
----
-2392

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1675
SELECT ALL + - 35 + 59 col2, ( 89 ) - + COUNT( * ) + - + 21 DIV + - 42 * 54 col1
----
24
88

skipif mysql # not compatible
query II rowsort label-1675
SELECT ALL + - 35 + 59 col2, ( 89 ) - + COUNT ( * ) + - + 21 / + - 42 * 54 col1
----
24
88

query I rowsort
SELECT 55 * 15 * 48 - 97
----
39503

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

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL - 49 - - CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 71 * - 53 - - 70 col1
----
-3693

query I rowsort
SELECT ALL + 58 * + 57 * + 55 AS col0
----
181830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT 94 * - COUNT( * ) + + ( + - COUNT( * ) ) + - + 40 * - NULLIF ( 30, - 99 + CAST( - ( + 28 ) AS SIGNED ) ) + - 12 + 32 * + - 58 + - 78 AS col1
----
-841

skipif mysql # not compatible
query I rowsort label-1680
SELECT 94 * - COUNT ( * ) + + ( + - COUNT ( * ) ) + - + 40 * - NULLIF ( 30, - 99 + CAST ( - ( + 28 ) AS INTEGER ) ) + - 12 + 32 * + - 58 + - 78 AS col1
----
-841

onlyif mysql # aggregate syntax: 
query II rowsort label-1681
SELECT 7 - + 12 - - 78 - + ( CASE 65 WHEN - COUNT( * ) THEN NULL WHEN + 39 THEN + CASE - 88 WHEN - 86 - - AVG ( - 31 ) THEN NULL WHEN - 95 - COUNT( * ) THEN + ( + 91 ) + + 34 + + - 66 WHEN - 4 + 33 THEN NULL END ELSE - + 46 END ) AS col0, + 61 * 96 AS col0
----
119
5856

skipif mysql # not compatible
query II rowsort label-1681
SELECT 7 - + 12 - - 78 - + ( CASE 65 WHEN - COUNT ( * ) THEN NULL WHEN + 39 THEN + CASE - 88 WHEN - 86 - - AVG ( - 31 ) THEN NULL WHEN - 95 - COUNT ( * ) THEN + ( + 91 ) + + 34 + + - 66 WHEN - 4 + 33 THEN NULL END ELSE - + 46 END ) AS col0, + 61 * 96 AS col0
----
119
5856

query I rowsort
SELECT + 37 * + 42
----
1554

query I rowsort
SELECT 6 * - 69
----
-414

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1685
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - COALESCE ( + - 39, + 25 + - + COUNT( * ) * 52 - - - 91 - + 78 ) * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT CAST ( NULL AS REAL ) * - COALESCE ( + - 39, + 25 + - + COUNT ( * ) * 52 - - - 91 - + 78 ) * 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT COUNT( * ) + - 39 + + 67 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1686
SELECT COUNT ( * ) + - 39 + + 67 AS col2
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-1687
SELECT ALL + 6 DIV + ( 57 ) AS col2, 29 AS col2
----
0
29

skipif mysql # not compatible
query II rowsort label-1687
SELECT ALL + 6 / + ( 57 ) AS col2, 29 AS col2
----
0
29

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1690
SELECT 12 + + + ( - - CASE + 46 WHEN - AVG ( ALL 95 ) THEN NULL WHEN 77 * CAST( NULL AS SIGNED ) * - 49 THEN COALESCE ( 72, CAST( NULL AS SIGNED ) ) WHEN - + 38 + 48 THEN NULL END ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT 12 + + + ( - - CASE + 46 WHEN - AVG ( ALL 95 ) THEN NULL WHEN 77 * CAST ( NULL AS INTEGER ) * - 49 THEN COALESCE ( 72, CAST ( NULL AS INTEGER ) ) WHEN - + 38 + 48 THEN NULL END ) + + 26
----
NULL

query I rowsort
SELECT 22 + - 47
----
-25

query I rowsort
SELECT ALL ( + 82 ) * - - 99 + - ( 12 ) + - 86 AS col2
----
8020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1693
SELECT DISTINCT ( 72 ) + - COUNT( * ), CAST( NULL AS SIGNED ) * - - ( + 20 ) + + 14 col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-1693
SELECT DISTINCT ( 72 ) + - COUNT ( * ), CAST ( NULL AS INTEGER ) * - - ( + 20 ) + + 14 col0
----
71
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT 37 - + 25 DIV + 8
----
34

skipif mysql # not compatible
query I rowsort label-1694
SELECT 37 - + 25 / + 8
----
34

query I rowsort
SELECT ALL 64 + - - 38
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT 27 + - MAX( DISTINCT 58 ) * 49 AS col1
----
-2815

skipif mysql # not compatible
query I rowsort label-1696
SELECT 27 + - MAX ( DISTINCT 58 ) * 49 AS col1
----
-2815

query II rowsort
SELECT DISTINCT 29 AS col2, 84
----
29
84

query I rowsort
SELECT ( - + 19 ) * + - NULLIF ( - 94, 52 ) * + - 36 AS col2
----
64296

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

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

query I rowsort
SELECT + 53 + - 32
----
21

query I rowsort
SELECT + 92 * - 87 AS col1
----
-8004

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT - - COUNT( ALL + ( + 46 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1702
SELECT - - COUNT ( ALL + ( + 46 ) ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1703
SELECT ALL - COALESCE ( 19, - - 63 * + 92 + 38 + - CASE - 28 WHEN - 79 * - 19 THEN - 59 DIV + 52 - COALESCE ( - - 81, - 3, - 28 ) * COUNT( * ) + 17 END + - 27, 18 )
----
-19

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - COALESCE ( 19, - - 63 * + 92 + 38 + - CASE - 28 WHEN - 79 * - 19 THEN - 59 / + 52 - COALESCE ( - - 81, - 3, - 28 ) * COUNT ( * ) + 17 END + - 27, 18 )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1704
SELECT ALL - 16, CAST( NULL AS SIGNED ) * - + 9 * 21 * 80 AS col0
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-1704
SELECT ALL - 16, CAST ( NULL AS INTEGER ) * - + 9 * 21 * 80 AS col0
----
-16
NULL

query I rowsort
SELECT ALL 89 * + 70 AS col0
----
6230

query I rowsort
SELECT DISTINCT 93 * - - 76 AS col2
----
7068

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT + 33 + + COUNT ( * ) / - ( - 62 )
----
33

query I rowsort
SELECT + - ( - 59 ) * - 48 AS col1
----
-2832

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT + CASE - 22 WHEN COUNT( DISTINCT + 36 ) + + 6 + - - 88 / - 11 + + ( COUNT( * ) ) / - 50 + + 85 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT + CASE - 22 WHEN COUNT ( DISTINCT + 36 ) + + 6 + - - 88 / - 11 + + ( COUNT ( * ) ) / - 50 + + 85 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT - COUNT( * ) * - 62 - - - ( - 93 ) * + COUNT( * ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT - COUNT ( * ) * - 62 - - - ( - 93 ) * + COUNT ( * ) AS col0
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1711
SELECT + 8 * - COUNT( * ) DIV - + 52 AS col1, COUNT( * ) + COUNT( * ) - + 90 - + ( + ( + + 52 ) )
----
0
-140

skipif mysql # not compatible
query II rowsort label-1711
SELECT + 8 * - COUNT ( * ) / - + 52 AS col1, COUNT ( * ) + COUNT ( * ) - + 90 - + ( + ( + + 52 ) )
----
0
-140

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

skipif mysql # not compatible
query I rowsort label-1712
SELECT - 35 * - 6 - + 66 / - COUNT ( * ) AS col0
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1713
SELECT DISTINCT + CAST( - 46 AS SIGNED ) * 97 + 23, - 26 DIV + SUM( ALL - + 74 ) AS col1
----
-4439
0

skipif mysql # not compatible
query II rowsort label-1713
SELECT DISTINCT + CAST ( - 46 AS INTEGER ) * 97 + 23, - 26 / + SUM ( ALL - + 74 ) AS col1
----
-4439
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1714
SELECT COALESCE ( - 77, 27 + - 78 * - - 39 - + - COUNT( * ), + 0 - - - 98 * - 10 DIV + 33 * - 15 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1714
SELECT COALESCE ( - 77, 27 + - 78 * - - 39 - + - COUNT ( * ), + 0 - - - 98 * - 10 / + 33 * - 15 ) AS col0
----
-77

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

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

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

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

query II rowsort
SELECT DISTINCT + NULLIF ( - - 35, + 1 ) * + - 9 + + 92 + - - 54 AS col1, + 23 + + 99 AS col2
----
-169
122

query I rowsort
SELECT 47 * + + 19 - 55 AS col2
----
838

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1719
SELECT ALL + 86 col2, CASE AVG ( - 54 ) WHEN 60 THEN + CAST( NULL AS DECIMAL ) WHEN - 7 * - - 56 THEN NULL WHEN 98 THEN - COUNT( * ) END
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1719
SELECT ALL + 86 col2, CASE AVG ( - 54 ) WHEN 60 THEN + CAST ( NULL AS REAL ) WHEN - 7 * - - 56 THEN NULL WHEN 98 THEN - COUNT ( * ) END
----
86
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1720
SELECT - 1 DIV 42 AS col0, ( - 9 ) - - 73 + - 33 - + 62 DIV MAX( + 64 )
----
0
31

skipif mysql # not compatible
query II rowsort label-1720
SELECT - 1 / 42 AS col0, ( - 9 ) - - 73 + - 33 - + 62 / MAX ( + 64 )
----
0
31

query I rowsort
SELECT - 6 + 68
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT ALL 38 * - CAST( + + AVG ( + 52 ) AS SIGNED ) + - + NULLIF ( - ( + 12 ), 47 * - - 97 ) + COUNT( * )
----
-1963

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL 38 * - CAST ( + + AVG ( + 52 ) AS INTEGER ) + - + NULLIF ( - ( + 12 ), 47 * - - 97 ) + COUNT ( * )
----
-1963

query I rowsort
SELECT ALL 44 * - 27 + + + 39
----
-1149

query I rowsort
SELECT - 70 + - ( + + 76 ) AS col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL - ( - 15 ) + 71 - + MAX( 30 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL - ( - 15 ) + 71 - + MAX ( 30 ) AS col0
----
56

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1729
SELECT 56 col0, + CAST( - 0 AS SIGNED )
----
56
0

skipif mysql # not compatible
query II rowsort label-1729
SELECT 56 col0, + CAST ( - 0 AS INTEGER )
----
56
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT ALL - COUNT( DISTINCT 3 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL - COUNT ( DISTINCT 3 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - MAX( ALL COALESCE ( + 47, + 66 ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1732
SELECT - MAX ( ALL COALESCE ( + 47, + 66 ) ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query III rowsort label-1733
SELECT + 0 col1, 59 * - 43 + 32 AS col0, 60 * - 30 * 31 + + COUNT( * ) * - + 70
----
0
-2505
-55870

skipif mysql # not compatible
query III rowsort label-1733
SELECT + 0 col1, 59 * - 43 + 32 AS col0, 60 * - 30 * 31 + + COUNT ( * ) * - + 70
----
0
-2505
-55870

onlyif mysql # DIV for integer division: 
query I rowsort label-1734
SELECT ALL 20 - - 54 + - + 10 + 82 DIV - 8
----
54

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL 20 - - 54 + - + 10 + 82 / - 8
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT - 90 * - - CASE - ( - 22 ) WHEN + + CASE CAST( - - CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) WHEN + 47 + + 89 * - 50 THEN + 27 END + 87 THEN - 71 WHEN - 57 THEN NULL ELSE NULL END * + COUNT( * ) + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT - 90 * - - CASE - ( - 22 ) WHEN + + CASE CAST ( - - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) WHEN + 47 + + 89 * - 50 THEN + 27 END + 87 THEN - 71 WHEN - 57 THEN NULL ELSE NULL END * + COUNT ( * ) + - 49
----
NULL

query I rowsort
SELECT ALL + 57 * - 93
----
-5301

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT DISTINCT 12 AS col2, - 60 + 24 * + COUNT( ALL + - 1 ) * + - 75 + + - COUNT( * ) + 78 * - 65 AS col1
----
12
-6931

skipif mysql # not compatible
query II rowsort label-1737
SELECT DISTINCT 12 AS col2, - 60 + 24 * + COUNT ( ALL + - 1 ) * + - 75 + + - COUNT ( * ) + 78 * - 65 AS col1
----
12
-6931

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

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

query I rowsort
SELECT - - 27 - - 59 + + - 77 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT + + CASE + 2 WHEN + 95 THEN NULL WHEN - 65 THEN - ( - 93 ) END + + + CAST( + + 5 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT + + CASE + 2 WHEN + 95 THEN NULL WHEN - 65 THEN - ( - 93 ) END + + + CAST ( + + 5 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 10 col1, + 34
----
10
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1742
SELECT + CAST( - + CASE WHEN NOT 4 NOT BETWEEN COUNT( * ) AND NULL THEN + 22 END AS DECIMAL ) * 73 * - 59 / - MAX( DISTINCT - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT + CAST ( - + CASE WHEN NOT 4 NOT BETWEEN COUNT ( * ) AND NULL THEN + 22 END AS REAL ) * 73 * - 59 / - MAX ( DISTINCT - 71 )
----
NULL

query I rowsort
SELECT + 97 + + 13 * - 21 * 28
----
-7547

query I rowsort
SELECT DISTINCT + 50 * - 9 + - - 11
----
-439

query I rowsort
SELECT ALL 50 * + 68 AS col0
----
3400

onlyif mysql # DIV for integer division: 
query II rowsort label-1746
SELECT 47 AS col2, 25 DIV - 25 AS col1
----
47
-1

skipif mysql # not compatible
query II rowsort label-1746
SELECT 47 AS col2, 25 / - 25 AS col1
----
47
-1

query I rowsort
SELECT ALL - 81 * + - 26 AS col0
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT + - 11 - NULLIF ( COUNT( * ), + 41 + + 89 )
----
-12

skipif mysql # not compatible
query I rowsort label-1748
SELECT + - 11 - NULLIF ( COUNT ( * ), + 41 + + 89 )
----
-12

query I rowsort
SELECT ALL + 6 * + - 20 * + 24 AS col1
----
-2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1750
SELECT DISTINCT + COUNT( * ) DIV + ( - - 32 ) + - - 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT + COUNT ( * ) / + ( - - 32 ) + - - 18 AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT ALL - 36 DIV + 85 + - 67
----
-67

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL - 36 / + 85 + - 67
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT + 7 + + + 70 DIV + 55 col2
----
8

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 7 + + + 70 / + 55 col2
----
8

query I rowsort
SELECT + 25 * - - 43 AS col0
----
1075

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT 15 * - + 22 + + - ( - COUNT( * ) )
----
-329

skipif mysql # not compatible
query I rowsort label-1754
SELECT 15 * - + 22 + + - ( - COUNT ( * ) )
----
-329

query II rowsort
SELECT ( + 58 ), 39 + + + 94 AS col0
----
58
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL + 76 * - COUNT( * ) + - + 94 AS col1
----
-170

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL + 76 * - COUNT ( * ) + - + 94 AS col1
----
-170

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

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

query I rowsort
SELECT - 29 + - - ( + 92 ) col0
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-1759
SELECT ALL 35 DIV + 15, + 34 DIV 59 AS col1
----
2
0

skipif mysql # not compatible
query II rowsort label-1759
SELECT ALL 35 / + 15, + 34 / 59 AS col1
----
2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL - 43 * - - MIN( DISTINCT + 84 )
----
-3612

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL - 43 * - - MIN ( DISTINCT + 84 )
----
-3612

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT - 47 DIV 74 * - 7
----
0

skipif mysql # not compatible
query I rowsort label-1761
SELECT - 47 / 74 * - 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT + 59 + - MAX( ALL ( + - 1 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1762
SELECT + 59 + - MAX ( ALL ( + - 1 ) ) AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT + CAST( - - 37 AS SIGNED ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1763
SELECT + CAST ( - - 37 AS INTEGER ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1764
SELECT COALESCE ( 37, - CAST( + CASE + SUM( + 97 ) WHEN + 28 * - MIN( DISTINCT + - 24 ) + + 20 + + CASE + + NULLIF ( + 28, - + NULLIF ( - ( - MIN( 11 ) ), - 49 ) ) WHEN + 26 * + 39 * + - 24 + - 64 THEN + ( - + 73 ) * + 81 * - - ( + 9 ) * + CASE - 1 WHEN - COUNT( * ) THEN NULL WHEN 98 + 50 * - 5 THEN + ( + 31 ) ELSE 22 END + 73 ELSE NULL END + - 43 * 97 THEN NULL WHEN 47 * 1 THEN NULL WHEN 10 THEN CAST( NULL AS SIGNED ) * 66 ELSE - 94 + - 4 END AS SIGNED ), CAST( 4 AS SIGNED ), - 5 DIV 65 - NULLIF ( 68, - 88 ) )
----
37

skipif mysql # not compatible
query I rowsort label-1764
SELECT COALESCE ( 37, - CAST ( + CASE + SUM ( + 97 ) WHEN + 28 * - MIN ( DISTINCT + - 24 ) + + 20 + + CASE + + NULLIF ( + 28, - + NULLIF ( - ( - MIN ( 11 ) ), - 49 ) ) WHEN + 26 * + 39 * + - 24 + - 64 THEN + ( - + 73 ) * + 81 * - - ( + 9 ) * + CASE - 1 WHEN - COUNT ( * ) THEN NULL WHEN 98 + 50 * - 5 THEN + ( + 31 ) ELSE 22 END + 73 ELSE NULL END + - 43 * 97 THEN NULL WHEN 47 * 1 THEN NULL WHEN 10 THEN CAST ( NULL AS INTEGER ) * 66 ELSE - 94 + - 4 END AS INTEGER ), CAST ( 4 AS INTEGER ), - 5 / 65 - NULLIF ( 68, - 88 ) )
----
37

query I rowsort
SELECT + 11 + - 89 AS col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT - 17 DIV - - 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1766
SELECT - 17 / - - 34 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1767
SELECT ALL ( - 41 ) AS col1, 78 + + MAX( - 93 ) + - + ( - CAST( NULL AS SIGNED ) ) AS col0
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-1767
SELECT ALL ( - 41 ) AS col1, 78 + + MAX ( - 93 ) + - + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
-41
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1769
SELECT ALL - - 3 / + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * 42 * - + CAST( - - 35 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - - 3 / + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 42 * - + CAST ( - - 35 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT ALL NULLIF ( + + 0, + MIN( + - 94 ) + + 41 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL NULLIF ( + + 0, + MIN ( + - 94 ) + + 41 ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1771
SELECT ALL - + COUNT( * ) DIV 59 AS col1, 9 * 7 + + + 3
----
0
66

skipif mysql # not compatible
query II rowsort label-1771
SELECT ALL - + COUNT ( * ) / 59 AS col1, 9 * 7 + + + 3
----
0
66

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1773
SELECT ALL - ( - ( + - 87 ) ) DIV + + 81
----
-1

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - ( - ( + - 87 ) ) / + + 81
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT - 40 + + + COUNT( * ) + - + 96 + ( + + COUNT( + 56 ) ) col0
----
-134

skipif mysql # not compatible
query I rowsort label-1774
SELECT - 40 + + + COUNT ( * ) + - + 96 + ( + + COUNT ( + 56 ) ) col0
----
-134

query I rowsort
SELECT 46 * + 68 * 53
----
165784

query I rowsort
SELECT - 24 * - - 84 AS col2
----
-2016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1777
SELECT 66 + ( + + NULLIF ( - + 13, - 9 ) ), + CAST( NULL AS SIGNED ) * + 5 AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-1777
SELECT 66 + ( + + NULLIF ( - + 13, - 9 ) ), + CAST ( NULL AS INTEGER ) * + 5 AS col1
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL - - 49 * + 31 - COUNT( ALL - 70 )
----
1518

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL - - 49 * + 31 - COUNT ( ALL - 70 )
----
1518

query I rowsort
SELECT + 90 * - 64 * - - 80 + - 63 AS col2
----
-460863

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL + CASE + COUNT( * ) WHEN - 33 THEN - 48 WHEN 32 / MIN( - - 64 ) THEN - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + CASE + COUNT ( * ) WHEN - 33 THEN - 48 WHEN 32 / MIN ( - - 64 ) THEN - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ALL - - COUNT( ALL 12 ) * 66 * COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - - COUNT ( ALL 12 ) * 66 * COUNT ( * ) AS col0
----
66

query I rowsort
SELECT 23 * - 78 AS col0
----
-1794

query I rowsort
SELECT ALL + + 44 + 6
----
50

query I rowsort
SELECT ALL 14 + + 20 * + 4 + + - ( + 98 )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1785
SELECT DISTINCT MIN( - - 25 ) + + COUNT( * ) DIV - 69 * 53 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT MIN ( - - 25 ) + + COUNT ( * ) / - 69 * 53 AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT DISTINCT - CAST( + 4 AS SIGNED ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT - CAST ( + 4 AS INTEGER ) col1
----
-4

query II rowsort
SELECT ALL 89 + - + 57 * + 5 AS col1, - 96
----
-196
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1788
SELECT ALL 48 + - - 85 * - MAX( ALL - 34 ), + 49 AS col1
----
2938
49

skipif mysql # not compatible
query II rowsort label-1788
SELECT ALL 48 + - - 85 * - MAX ( ALL - 34 ), + 49 AS col1
----
2938
49

query I rowsort
SELECT DISTINCT 7 * - 56 AS col2
----
-392

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT + COUNT( * ) * - + COUNT( * ) * - + 95 * 42 + - + 79 * - 57 AS col0
----
8493

skipif mysql # not compatible
query I rowsort label-1791
SELECT + COUNT ( * ) * - + COUNT ( * ) * - + 95 * 42 + - + 79 * - 57 AS col0
----
8493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1792
SELECT ALL CASE NULLIF ( - 75, - + 91 ) WHEN ( + 49 ) * 49 * + + NULLIF ( + + 44, + 43 * + 81 + - + SUM( 29 ) + - 65 ) - - + 46 + - 55 * + MIN( + 84 ) * - 76 + - 73 + - - 43 THEN 88 + + 58 WHEN - + ( - COALESCE ( CASE - ( + 55 ) WHEN COUNT( * ) THEN ( + 86 ) + + CAST( NULL AS SIGNED ) ELSE NULL END, 57, + 3 ) ) THEN NULL END + + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL CASE NULLIF ( - 75, - + 91 ) WHEN ( + 49 ) * 49 * + + NULLIF ( + + 44, + 43 * + 81 + - + SUM ( 29 ) + - 65 ) - - + 46 + - 55 * + MIN ( + 84 ) * - 76 + - 73 + - - 43 THEN 88 + + 58 WHEN - + ( - COALESCE ( CASE - ( + 55 ) WHEN COUNT ( * ) THEN ( + 86 ) + + CAST ( NULL AS INTEGER ) ELSE NULL END, 57, + 3 ) ) THEN NULL END + + 40 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 88 - - - ( - 69 )
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1794
SELECT 82 + - 97 + 12 AS col0, + 87 + CAST( + 15 AS SIGNED ) AS col2
----
-3
102

skipif mysql # not compatible
query II rowsort label-1794
SELECT 82 + - 97 + 12 AS col0, + 87 + CAST ( + 15 AS INTEGER ) AS col2
----
-3
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT 85 * + + 44 * - + ( + - 73 ) * + - MAX( + 63 ) AS col2
----
-17200260

skipif mysql # not compatible
query I rowsort label-1795
SELECT 85 * + + 44 * - + ( + - 73 ) * + - MAX ( + 63 ) AS col2
----
-17200260

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1798
SELECT ALL - COUNT( * ) col1, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-1798
SELECT ALL - COUNT ( * ) col1, - COUNT ( * )
----
-1
-1

query I rowsort
SELECT DISTINCT - 22 - + 98 AS col1
----
-120

query I rowsort
SELECT 75 * + 41 AS col1
----
3075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT DISTINCT CASE - COUNT( * ) WHEN - 56 * + 40 * - ( - 62 ) - COALESCE ( - 58, 54 ) + + 17 THEN 92 + + - 13 + + 2 * + 79 WHEN - 19 + 7 - - 22 THEN + CAST( 60 AS SIGNED ) / - 86 * - 24 WHEN - - 77 - + - 44 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 56 * + 40 * - ( - 62 ) - COALESCE ( - 58, 54 ) + + 17 THEN 92 + + - 13 + + 2 * + 79 WHEN - 19 + 7 - - 22 THEN + CAST ( 60 AS INTEGER ) / - 86 * - 24 WHEN - - 77 - + - 44 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT - 46, 8 col2
----
-46
8

query II rowsort
SELECT ALL 57 AS col2, 97 AS col0
----
57
97

query I rowsort
SELECT DISTINCT + NULLIF ( + + 47, 28 * - 65 + 7 - - 10 + - - 50 ) * 37 + 17
----
1756

query I rowsort
SELECT - 29 * + 91 AS col2
----
-2639

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1806
SELECT - 30 AS col2, MAX( DISTINCT + - 71 ) DIV - 19 + - CASE WHEN NOT + 28 IS NOT NULL THEN NULL WHEN - 62 * 82 DIV - 70 * 38 BETWEEN - + MAX( ALL - + 55 ) AND + 78 THEN NULL ELSE 64 END
----
-30
-61

skipif mysql # not compatible
query II rowsort label-1806
SELECT - 30 AS col2, MAX ( DISTINCT + - 71 ) / - 19 + - CASE WHEN NOT + 28 IS NOT NULL THEN NULL WHEN - 62 * 82 / - 70 * 38 BETWEEN - + MAX ( ALL - + 55 ) AND + 78 THEN NULL ELSE 64 END
----
-30
-61

query I rowsort
SELECT DISTINCT - 74 * - + 1 * + 79 * - + ( - 11 ) + + 36 * - + 94 AS col0
----
60922

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT 65 AS col0, COALESCE ( 20, ( - + SUM( ALL - 41 ) ), - + 2 + + - 59 )
----
65
20

skipif mysql # not compatible
query II rowsort label-1809
SELECT 65 AS col0, COALESCE ( 20, ( - + SUM ( ALL - 41 ) ), - + 2 + + - 59 )
----
65
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT DISTINCT COALESCE ( + 20, + 43 DIV - 68 ) * - + 99
----
-1980

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT COALESCE ( + 20, + 43 / - 68 ) * - + 99
----
-1980

query I rowsort
SELECT DISTINCT 44 * - 99 * - 27 + + 54 AS col2
----
117666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1812
SELECT NULLIF ( - 70, - - 19 * 88 * - 94 + + + 37 - 63 + + + 31 / - - COUNT( * ) * - CAST( NULL AS SIGNED ) )
----
-70

skipif mysql # not compatible
query I rowsort label-1812
SELECT NULLIF ( - 70, - - 19 * 88 * - 94 + + + 37 - 63 + + + 31 / - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT AVG ( DISTINCT - - COALESCE ( 0, - - 15 ) ) / - - 71 + + - CASE - + 45 WHEN - - 25 * + ( + + 21 ) THEN 6 * 10 WHEN - + MIN( ALL - ( - 44 ) ) THEN NULL WHEN - 67 THEN + 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT AVG ( DISTINCT - - COALESCE ( 0, - - 15 ) ) / - - 71 + + - CASE - + 45 WHEN - - 25 * + ( + + 21 ) THEN 6 * 10 WHEN - + MIN ( ALL - ( - 44 ) ) THEN NULL WHEN - 67 THEN + 25 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT + ( + 4 ) DIV 60 DIV + - ( + ( 23 ) ) + - - MIN( DISTINCT 18 )
----
18

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + ( + 4 ) / 60 / + - ( + ( 23 ) ) + - - MIN ( DISTINCT 18 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1815
SELECT COUNT( * ) + 29 + + + 54, - NULLIF ( COALESCE ( + + 45, + COUNT( * ), 91 + + + 73 ), 0 + + + 93 ) AS col1
----
84
-45

skipif mysql # not compatible
query II rowsort label-1815
SELECT COUNT ( * ) + 29 + + + 54, - NULLIF ( COALESCE ( + + 45, + COUNT ( * ), 91 + + + 73 ), 0 + + + 93 ) AS col1
----
84
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1816
SELECT - CASE + COUNT( + 38 ) WHEN - - COUNT( * ) * - 40 - ( + + 25 ) * + CAST( + 24 AS SIGNED ) THEN NULL WHEN + - 96 THEN NULL ELSE - 53 END
----
53

skipif mysql # not compatible
query I rowsort label-1816
SELECT - CASE + COUNT ( + 38 ) WHEN - - COUNT ( * ) * - 40 - ( + + 25 ) * + CAST ( + 24 AS INTEGER ) THEN NULL WHEN + - 96 THEN NULL ELSE - 53 END
----
53

query II rowsort
SELECT 83, - 62 col1
----
83
-62

query I rowsort
SELECT + 81 + - - 10
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT DISTINCT COUNT( ALL + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT COUNT ( ALL + 7 )
----
1

query I rowsort
SELECT 25 + 51 + 47 - - - ( + - 39 ) * 33 * 19 * + 84 AS col0
----
2054175

query I rowsort
SELECT ALL + 99 * 82 + 42 + + 82
----
8242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1822
SELECT ALL - CASE + MAX( - - 15 ) WHEN - COUNT( * ) * - 96 * 35 + 26 + + - NULLIF ( + 39, CAST( NULL AS SIGNED ) ) THEN NULL WHEN + - ( - 49 ) * - 89 THEN NULL ELSE + 22 + - 91 END, + 25 + + COUNT( * ) - + + CASE - 14 WHEN - NULLIF ( + COUNT( * ), - - 32 * - - 49 + COUNT( * ) * 69 + + + 22 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - - SUM( ALL + - 45 ) / + 39 - - 1 * - COUNT( * ) ELSE NULL END / 24 AS col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-1822
SELECT ALL - CASE + MAX ( - - 15 ) WHEN - COUNT ( * ) * - 96 * 35 + 26 + + - NULLIF ( + 39, CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + - ( - 49 ) * - 89 THEN NULL ELSE + 22 + - 91 END, + 25 + + COUNT ( * ) - + + CASE - 14 WHEN - NULLIF ( + COUNT ( * ), - - 32 * - - 49 + COUNT ( * ) * 69 + + + 22 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - - SUM ( ALL + - 45 ) / + 39 - - 1 * - COUNT ( * ) ELSE NULL END / 24 AS col1
----
69
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1823
SELECT ALL 88 * - 34 + CAST( NULL AS DECIMAL ) + COUNT( + + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL 88 * - 34 + CAST ( NULL AS REAL ) + COUNT ( + + 34 )
----
NULL

query I rowsort
SELECT 41 - 1 AS col2
----
40

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

query I rowsort
SELECT + 13 * - - 99 * + 53 * - 86 + + 37 col2
----
-5866109

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT 31 * ( - 50 ) DIV - 63 + + + 76
----
100

skipif mysql # not compatible
query I rowsort label-1827
SELECT 31 * ( - 50 ) / - 63 + + + 76
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1828
SELECT DISTINCT 65 DIV + 83 AS col1, NULLIF ( 10, 10 + 9 * - 67 ) * - + 44 + + SUM( ALL + 28 ) * + 83 * + + COUNT( * ) - + - 79
----
0
1963

skipif mysql # not compatible
query II rowsort label-1828
SELECT DISTINCT 65 / + 83 AS col1, NULLIF ( 10, 10 + 9 * - 67 ) * - + 44 + + SUM ( ALL + 28 ) * + 83 * + + COUNT ( * ) - + - 79
----
0
1963

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT + ( + + 33 ) * - 61 + COUNT( * )
----
-2012

skipif mysql # not compatible
query I rowsort label-1829
SELECT + ( + + 33 ) * - 61 + COUNT ( * )
----
-2012

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT DISTINCT + 35 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + 35 / + 91 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT + COALESCE ( + 32, - 27 - 51 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-1832
SELECT + COALESCE ( + 32, - 27 - 51 ) / 71
----
0

query II rowsort
SELECT ALL + 8 * 31 AS col1, 19 AS col1
----
248
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1834
SELECT - - 89 + CASE AVG ( ALL - + 45 ) WHEN + + 56 * - + 35 * - 52 * + 50 THEN - + 63 * 44 WHEN + 33 * SUM( + CAST( - - ( 87 ) AS SIGNED ) ) THEN - 11 WHEN - 28 THEN SUM( ALL 10 ) END AS col2, 39 * + 54 * - 88 * 40
----
NULL
-7413120

skipif mysql # not compatible
query II rowsort label-1834
SELECT - - 89 + CASE AVG ( ALL - + 45 ) WHEN + + 56 * - + 35 * - 52 * + 50 THEN - + 63 * 44 WHEN + 33 * SUM ( + CAST ( - - ( 87 ) AS INTEGER ) ) THEN - 11 WHEN - 28 THEN SUM ( ALL 10 ) END AS col2, 39 * + 54 * - 88 * 40
----
NULL
-7413120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1835
SELECT DISTINCT - 78 * - 22 + ( - SUM( - 26 ) ) + - + 98 * - COALESCE ( 66, + 59 - 23 + - + 31 DIV + 1 DIV ( - - 48 ) * + 72 ) AS col2, + 70 * + - 77
----
8210
-5390

skipif mysql # not compatible
query II rowsort label-1835
SELECT DISTINCT - 78 * - 22 + ( - SUM ( - 26 ) ) + - + 98 * - COALESCE ( 66, + 59 - 23 + - + 31 / + 1 / ( - - 48 ) * + 72 ) AS col2, + 70 * + - 77
----
8210
-5390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT + + NULLIF ( - NULLIF ( + 2, + 65 ), + 52 ) - COALESCE ( - - 95, - CAST( 15 AS SIGNED ) * + 88 * + ( - COUNT( * ) ) + + 70 )
----
-97

skipif mysql # not compatible
query I rowsort label-1836
SELECT + + NULLIF ( - NULLIF ( + 2, + 65 ), + 52 ) - COALESCE ( - - 95, - CAST ( 15 AS INTEGER ) * + 88 * + ( - COUNT ( * ) ) + + 70 )
----
-97

query I rowsort
SELECT + - 40 + + 21
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL COUNT( * ) + - ( - + COUNT( * ) ) * - 20 * + - 20 AS col0
----
401

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL COUNT ( * ) + - ( - + COUNT ( * ) ) * - 20 * + - 20 AS col0
----
401

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL - + 69 + + + 13 - + SUM( 16 ) * + COUNT( * ) + - + 80
----
-152

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL - + 69 + + + 13 - + SUM ( 16 ) * + COUNT ( * ) + - + 80
----
-152

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1840
SELECT ALL 55 + - - ( - 64 ) * + + ( + - 75 ) AS col1, - 85 + + - CAST( NULL AS DECIMAL ) AS col0
----
4855
NULL

skipif mysql # not compatible
query II rowsort label-1840
SELECT ALL 55 + - - ( - 64 ) * + + ( + - 75 ) AS col1, - 85 + + - CAST ( NULL AS REAL ) AS col0
----
4855
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1841
SELECT DISTINCT - COUNT( * ) * - 45 DIV 11
----
4

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT - COUNT ( * ) * - 45 / 11
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1842
SELECT - ( CASE + 89 WHEN 18 / COUNT( * ) THEN NULL ELSE + 61 + ( ( 57 ) ) END ) AS col2, - NULLIF ( 14, 73 ) AS col1
----
-118
-14

skipif mysql # not compatible
query II rowsort label-1842
SELECT - ( CASE + 89 WHEN 18 / COUNT ( * ) THEN NULL ELSE + 61 + ( ( 57 ) ) END ) AS col2, - NULLIF ( 14, 73 ) AS col1
----
-118
-14

query I rowsort
SELECT ALL + 69 * + 18 col2
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1844
SELECT ALL ( - 93 ) * 33 * ( - 57 ) * - 39 + COUNT( * ) + + - COALESCE ( + 98, 21 ) DIV - + ( - 76 ) + + 22 * + 60 AS col1
----
-6821067

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL ( - 93 ) * 33 * ( - 57 ) * - 39 + COUNT ( * ) + + - COALESCE ( + 98, 21 ) / - + ( - 76 ) + + 22 * + 60 AS col1
----
-6821067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1845
SELECT - COUNT( - ( + + ( + CAST( NULL AS SIGNED ) ) ) ) + 59 DIV - ( + 81 )
----
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT - COUNT ( - ( + + ( + CAST ( NULL AS INTEGER ) ) ) ) + 59 / - ( + 81 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT ALL + 11 DIV - 57 * - - 72 * 81
----
0

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL + 11 / - 57 * - - 72 * 81
----
0

query I rowsort
SELECT ALL NULLIF ( 48, 81 * + 16 + - 89 * 17 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1848
SELECT - ( - COUNT( * ) ) * - - 98 * + 35 DIV - COUNT( * ) AS col0, + 52 * 80 - + + CAST( + 15 AS SIGNED )
----
-3430
4145

skipif mysql # not compatible
query II rowsort label-1848
SELECT - ( - COUNT ( * ) ) * - - 98 * + 35 / - COUNT ( * ) AS col0, + 52 * 80 - + + CAST ( + 15 AS INTEGER )
----
-3430
4145

query I rowsort
SELECT + 94 * - 26 col2
----
-2444

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT + 39 * - COUNT( * ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT + 39 * - COUNT ( * ) col1
----
-39

query I rowsort
SELECT ALL 8 * + 2 - - 11
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL + 22 * NULLIF ( - 41, + CASE + - 96 WHEN 64 THEN 21 WHEN ( + - AVG ( DISTINCT + + 98 ) ) THEN - CASE WHEN NOT + 79 NOT BETWEEN NULL AND + COUNT( DISTINCT + 11 ) + + MAX( + 95 ) THEN NULL WHEN NOT NULL IS NOT NULL THEN ( 13 ) ELSE NULL END * + 90 ELSE + 63 + 37 END )
----
-902

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL + 22 * NULLIF ( - 41, + CASE + - 96 WHEN 64 THEN 21 WHEN ( + - AVG ( DISTINCT + + 98 ) ) THEN - CASE WHEN NOT + 79 NOT BETWEEN NULL AND + COUNT ( DISTINCT + 11 ) + + MAX ( + 95 ) THEN NULL WHEN NOT NULL IS NOT NULL THEN ( 13 ) ELSE NULL END * + 90 ELSE + 63 + 37 END )
----
-902

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

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

query I rowsort
SELECT + 70 * - - 44 + - 18 * - + 24
----
3512

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT + 29 AS col1, + 24 * - COALESCE ( NULLIF ( + - 77, COUNT( * ) ), + COUNT( * ) ) * 68
----
29
125664

skipif mysql # not compatible
query II rowsort label-1856
SELECT + 29 AS col1, + 24 * - COALESCE ( NULLIF ( + - 77, COUNT ( * ) ), + COUNT ( * ) ) * 68
----
29
125664

onlyif mysql # DIV for integer division: 
query II rowsort label-1857
SELECT + 76 + + + 95 * - + 37 AS col0, 90 DIV + 76 + - + 51 AS col0
----
-3439
-50

skipif mysql # not compatible
query II rowsort label-1857
SELECT + 76 + + + 95 * - + 37 AS col0, 90 / + 76 + - + 51 AS col0
----
-3439
-50

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

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

query I rowsort
SELECT - 20 * - 61 * - ( - 82 ) AS col2
----
100040

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT + ( + 40 ) + + - COUNT( * ) - NULLIF ( - + 56, - 51 - - ( + ( - - MAX( ALL - - 58 ) ) ) )
----
95

skipif mysql # not compatible
query I rowsort label-1860
SELECT + ( + 40 ) + + - COUNT ( * ) - NULLIF ( - + 56, - 51 - - ( + ( - - MAX ( ALL - - 58 ) ) ) )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1861
SELECT ALL + 58 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL + 58 / + 68
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1862
SELECT DISTINCT + 3 AS col2, COALESCE ( 22, COUNT( + 37 ) * - 91 ) AS col0
----
3
22

skipif mysql # not compatible
query II rowsort label-1862
SELECT DISTINCT + 3 AS col2, COALESCE ( 22, COUNT ( + 37 ) * - 91 ) AS col0
----
3
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1863
SELECT ALL + + 15 * 14 + 64 * + COUNT( * ) + + - COUNT( ALL + - 72 ) * + + NULLIF ( - + 61, + CAST( NULL AS DECIMAL ) * + 23 * 44 + + COALESCE ( + - COUNT( * ), + + 16 ) * + + 56 ) AS col2, - 63
----
335
-63

skipif mysql # not compatible
query II rowsort label-1863
SELECT ALL + + 15 * 14 + 64 * + COUNT ( * ) + + - COUNT ( ALL + - 72 ) * + + NULLIF ( - + 61, + CAST ( NULL AS REAL ) * + 23 * 44 + + COALESCE ( + - COUNT ( * ), + + 16 ) * + + 56 ) AS col2, - 63
----
335
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT - + 82 * - NULLIF ( 22, - 32 * COUNT( * ) - - + 90 + - AVG ( + + 9 ) ) + - - COUNT( ALL 40 ) + 3 AS col0
----
1808

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT - + 82 * - NULLIF ( 22, - 32 * COUNT ( * ) - - + 90 + - AVG ( + + 9 ) ) + - - COUNT ( ALL 40 ) + 3 AS col0
----
1808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1865
SELECT DISTINCT - COUNT( - + NULLIF ( + 90, + 59 ) ) * + 21 * + COALESCE ( - CASE - 21 WHEN + COALESCE ( 12, + ( - COUNT( * ) ) + + COUNT( * ), - + 56 ) DIV - - 34 + - 50 THEN NULL WHEN + 78 + + CAST( NULL AS SIGNED ) + 72 + - 24 * - - 75 THEN + + 44 ELSE NULL END, MAX( ALL - 61 ) ) DIV - + COUNT( * ) * + COUNT( DISTINCT 24 )
----
-1281

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT - COUNT ( - + NULLIF ( + 90, + 59 ) ) * + 21 * + COALESCE ( - CASE - 21 WHEN + COALESCE ( 12, + ( - COUNT ( * ) ) + + COUNT ( * ), - + 56 ) / - - 34 + - 50 THEN NULL WHEN + 78 + + CAST ( NULL AS INTEGER ) + 72 + - 24 * - - 75 THEN + + 44 ELSE NULL END, MAX ( ALL - 61 ) ) / - + COUNT ( * ) * + COUNT ( DISTINCT 24 )
----
-1281

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL - 77 * ( - + ( 95 ) ) * SUM( 96 ) + - ( - 24 ) + - + ( - 87 )
----
702351

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - 77 * ( - + ( 95 ) ) * SUM ( 96 ) + - ( - 24 ) + - + ( - 87 )
----
702351

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT - COUNT( ALL - 10 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1867
SELECT - COUNT ( ALL - 10 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL + 62 * + COUNT( * ) + 13 + 9 + 97 * + MIN( DISTINCT ( 3 ) ) col0
----
375

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL + 62 * + COUNT ( * ) + 13 + 9 + 97 * + MIN ( DISTINCT ( 3 ) ) col0
----
375

query I rowsort
SELECT - - 42 - - 66
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + MAX( - 14 ) * 72 * - + 79
----
79632

skipif mysql # not compatible
query I rowsort label-1870
SELECT + MAX ( - 14 ) * 72 * - + 79
----
79632

query I rowsort
SELECT ALL - + 98 * + 0 + 87 col0
----
87

query I rowsort
SELECT - ( + 8 ) * 9 col1
----
-72

query II rowsort
SELECT ALL - 80 AS col1, - 92 AS col0
----
-80
-92

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

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

query II rowsort
SELECT ALL - 10 AS col2, 6 * - 55 + 41 col2
----
-10
-289

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

skipif mysql # not compatible
query I rowsort label-1876
SELECT - MIN ( DISTINCT 84 )
----
-84

query I rowsort
SELECT + 72 * + 13
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1878
SELECT ALL CAST( NULL AS SIGNED ) - - + COUNT( ALL - + 91 ) col1
----
NULL

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

query I rowsort
SELECT + 42 * 37 AS col2
----
1554

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1880
SELECT 87 AS col2, - NULLIF ( - 57, - - CAST( NULL AS SIGNED ) ) col1
----
87
57

skipif mysql # not compatible
query II rowsort label-1880
SELECT 87 AS col2, - NULLIF ( - 57, - - CAST ( NULL AS INTEGER ) ) col1
----
87
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1881
SELECT + 19 + + + 38 + + 83 / - ( - 78 ) * + MAX( - 81 ) + - COUNT( + - 60 ) * - - CASE + CAST( NULL AS SIGNED ) WHEN ( + 95 ) + - NULLIF ( - 11, + - 18 ) * + - 0 THEN + SUM( + - 10 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT + 19 + + + 38 + + 83 / - ( - 78 ) * + MAX ( - 81 ) + - COUNT ( + - 60 ) * - - CASE + CAST ( NULL AS INTEGER ) WHEN ( + 95 ) + - NULLIF ( - 11, + - 18 ) * + - 0 THEN + SUM ( + - 10 ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 89 * + 37, - 56 AS col1
----
3293
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + COUNT( ALL ( - 64 ) ) + - COALESCE ( - 90, + 16, + 75 ) * - 95
----
-8549

skipif mysql # not compatible
query I rowsort label-1883
SELECT + COUNT ( ALL ( - 64 ) ) + - COALESCE ( - 90, + 16, + 75 ) * - 95
----
-8549

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1884
SELECT - CAST( NULL AS SIGNED ) * - 0, 46 * + - 34 + - 57 + + - 16 * - 74 + + 65 * 96 DIV + - 57 AS col1
----
NULL
-546

skipif mysql # not compatible
query II rowsort label-1884
SELECT - CAST ( NULL AS INTEGER ) * - 0, 46 * + - 34 + - 57 + + - 16 * - 74 + + 65 * 96 / + - 57 AS col1
----
NULL
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT CAST( NULL AS SIGNED ) * 1 * + 77 * - 52 / + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT CAST ( NULL AS INTEGER ) * 1 * + 77 * - 52 / + 60
----
NULL

query II rowsort
SELECT ALL 52, 21 AS col2
----
52
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1887
SELECT ALL 54 col1, + COUNT( * ) DIV 86 * 65
----
54
0

skipif mysql # not compatible
query II rowsort label-1887
SELECT ALL 54 col1, + COUNT ( * ) / 86 * 65
----
54
0

query II rowsort
SELECT ALL 6, 6
----
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT 66 / + NULLIF ( CASE + 9 WHEN MIN( DISTINCT + + NULLIF ( + 54, + + 10 ) ) * + 50 * 38 + 35 THEN NULL WHEN 22 - - 15 + 73 THEN - 1 WHEN - ( - 22 ) THEN NULL END, + 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT 66 / + NULLIF ( CASE + 9 WHEN MIN ( DISTINCT + + NULLIF ( + 54, + + 10 ) ) * + 50 * 38 + 35 THEN NULL WHEN 22 - - 15 + 73 THEN - 1 WHEN - ( - 22 ) THEN NULL END, + 97 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1890
SELECT 2 AS col2, - 1 DIV + + COUNT( * )
----
2
-1

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

query II rowsort
SELECT 27 * + 25 * 32 + - 61 AS col2, 39
----
21539
39

query II rowsort
SELECT ALL - 20, 65 - - 7 AS col1
----
-20
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT 56 DIV + MIN( ALL + 87 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1893
SELECT 56 / + MIN ( ALL + 87 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1894
SELECT 91 DIV SUM( + - 14 )
----
-6

skipif mysql # not compatible
query I rowsort label-1894
SELECT 91 / SUM ( + - 14 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1895
SELECT 83 AS col2, - COUNT( * ) - + 8 + 68
----
83
59

skipif mysql # not compatible
query II rowsort label-1895
SELECT 83 AS col2, - COUNT ( * ) - + 8 + 68
----
83
59

query I rowsort
SELECT 1 * + 82 * + + 58
----
4756

query I rowsort
SELECT ALL + 18 + + 43 AS col0
----
61

query II rowsort
SELECT + 75 AS col0, 20 + - 57
----
75
-37

query I rowsort
SELECT 75 + - - 9 + - 40 AS col2
----
44

query II rowsort
SELECT + 28, + 18 AS col1
----
28
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1902
SELECT ALL + CAST( NULL AS DECIMAL ) + MIN( DISTINCT - 46 ) AS col2
----
NULL

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

query II rowsort
SELECT + + 89, + 30 - - - 4 + + ( + 82 ) AS col1
----
89
108

query I rowsort
SELECT ALL - + 77 + 16
----
-61

query I rowsort
SELECT - 69 * - 57 - 13 - - + 1 AS col1
----
3921

query I rowsort
SELECT DISTINCT - + 60 + + 65 AS col2
----
5

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

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

query II rowsort
SELECT 96 AS col2, + 53 * + + 87
----
96
4611

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1909
SELECT + + 59 AS col1, 31 DIV 86 DIV SUM( + 92 ) AS col1
----
59
0

skipif mysql # not compatible
query II rowsort label-1909
SELECT + + 59 AS col1, 31 / 86 / SUM ( + 92 ) AS col1
----
59
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1910
SELECT 96 * - - 35 + - - 59 - + CAST( NULL AS SIGNED ), 66 * + 69 * - 15 AS col0
----
NULL
-68310

skipif mysql # not compatible
query II rowsort label-1910
SELECT 96 * - - 35 + - - 59 - + CAST ( NULL AS INTEGER ), 66 * + 69 * - 15 AS col0
----
NULL
-68310

onlyif mysql # aggregate syntax: 
query II rowsort label-1911
SELECT + - 5 AS col1, COUNT( * ) * - 22 * 70
----
-5
-1540

skipif mysql # not compatible
query II rowsort label-1911
SELECT + - 5 AS col1, COUNT ( * ) * - 22 * 70
----
-5
-1540

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT ALL + ( - - 16 ) - + SUM( + 97 ) AS col2, COUNT( 16 )
----
-81
1

skipif mysql # not compatible
query II rowsort label-1912
SELECT ALL + ( - - 16 ) - + SUM ( + 97 ) AS col2, COUNT ( 16 )
----
-81
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1913
SELECT ALL - CAST( - - 66 AS SIGNED ) DIV COUNT( * ) * 19 col0, + 15 * 66 + - + 2 AS col0
----
-1254
988

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL - CAST ( - - 66 AS INTEGER ) / COUNT ( * ) * 19 col0, + 15 * 66 + - + 2 AS col0
----
-1254
988

query I rowsort
SELECT - 48 + 10
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + 31 * + 16 THEN NULL ELSE - COUNT( * ) * + COUNT( * ) END + - 50 * - - 95
----
-4751

skipif mysql # not compatible
query I rowsort label-1915
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + 31 * + 16 THEN NULL ELSE - COUNT ( * ) * + COUNT ( * ) END + - 50 * - - 95
----
-4751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1916
SELECT DISTINCT 96 * MAX( 59 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT 96 * MAX ( 59 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL + MIN( DISTINCT - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + MIN ( DISTINCT - 59 ) AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT + CASE 98 WHEN + - 35 + - 67 THEN - 95 * 75 * 4 WHEN + CAST( - + 63 AS SIGNED ) THEN NULL WHEN 89 * - 30 * - - 0 THEN NULL ELSE NULL END + - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT + CASE 98 WHEN + - 35 + - 67 THEN - 95 * 75 * 4 WHEN + CAST ( - + 63 AS INTEGER ) THEN NULL WHEN 89 * - 30 * - - 0 THEN NULL ELSE NULL END + - 39 AS col1
----
NULL

query I rowsort
SELECT 31 * 79 * - - 79 AS col0
----
193471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1920
SELECT CASE + 25 WHEN + 44 + - CAST( + + COALESCE ( + - CAST( + - 98 AS SIGNED ), - 33 * - + 23 * - 89, - - 49 - 34 ) AS SIGNED ) THEN + - 89 WHEN + 76 THEN - + 85 END * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT CASE + 25 WHEN + 44 + - CAST ( + + COALESCE ( + - CAST ( + - 98 AS INTEGER ), - 33 * - + 23 * - 89, - - 49 - 34 ) AS INTEGER ) THEN + - 89 WHEN + 76 THEN - + 85 END * - + COUNT ( * )
----
NULL

query I rowsort
SELECT 69 + - 86 + 8
----
-9

query I rowsort
SELECT DISTINCT 48 * + 17
----
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT CAST( + 70 AS SIGNED ) + + + 32 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-1923
SELECT CAST ( + 70 AS INTEGER ) + + + 32 AS col2
----
102

query I rowsort
SELECT ALL 41 + - 96 - + + ( + 43 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT 50 * - COUNT( * ) + 98 * COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-1925
SELECT 50 * - COUNT ( * ) + 98 * COUNT ( * ) AS col1
----
48

query I rowsort
SELECT DISTINCT 34 * + ( - ( + 31 ) ) col0
----
-1054

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1927
SELECT ALL 69 * + + CAST( - 79 AS SIGNED )
----
-5451

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL 69 * + + CAST ( - 79 AS INTEGER )
----
-5451

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT MAX( DISTINCT - - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-1928
SELECT MAX ( DISTINCT - - 73 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1929
SELECT ALL + 66 + + - MIN( 58 ) AS col0, 90
----
8
90

skipif mysql # not compatible
query II rowsort label-1929
SELECT ALL + 66 + + - MIN ( 58 ) AS col0, 90
----
8
90

query I rowsort
SELECT DISTINCT 95 + - + 64 AS col2
----
31

query I rowsort
SELECT ALL 22 + + 2 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1932
SELECT - CASE - COUNT( * ) WHEN 4 THEN NULL WHEN - NULLIF ( - - 45, ( + 25 ) ) / + + CAST( - - 55 AS DECIMAL ) + COUNT( * ) * + - ( - 79 ) THEN + + 83 * + 16 + - CAST( NULL AS SIGNED ) - 88 + 4 END * 73 * CASE - 97 WHEN - + 72 THEN NULL WHEN + 33 / + CAST( - COUNT( * ) AS SIGNED ) + + 29 + 48 + - - CAST( 18 AS SIGNED ) - CASE + 91 WHEN - 89 THEN + 2 * 92 - + COUNT( * ) * 99 WHEN 22 * MIN( ALL 0 ) THEN NULL END + COUNT( * ) THEN NULLIF ( + NULLIF ( - 43, 97 ), 45 ) ELSE COALESCE ( - 22, - 89 * + 87 + + MIN( + 88 ) ) + + 45 * ( - 55 ) END / + CAST( COUNT( DISTINCT - 22 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT - CASE - COUNT ( * ) WHEN 4 THEN NULL WHEN - NULLIF ( - - 45, ( + 25 ) ) / + + CAST ( - - 55 AS REAL ) + COUNT ( * ) * + - ( - 79 ) THEN + + 83 * + 16 + - CAST ( NULL AS INTEGER ) - 88 + 4 END * 73 * CASE - 97 WHEN - + 72 THEN NULL WHEN + 33 / + CAST ( - COUNT ( * ) AS INTEGER ) + + 29 + 48 + - - CAST ( 18 AS INTEGER ) - CASE + 91 WHEN - 89 THEN + 2 * 92 - + COUNT ( * ) * 99 WHEN 22 * MIN ( ALL 0 ) THEN NULL END + COUNT ( * ) THEN NULLIF ( + NULLIF ( - 43, 97 ), 45 ) ELSE COALESCE ( - 22, - 89 * + 87 + + MIN ( + 88 ) ) + + 45 * ( - 55 ) END / + CAST ( COUNT ( DISTINCT - 22 ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT - NULLIF ( - - COUNT( - 56 ), - 59 * + + 9 + - COUNT( * ) / + - COUNT( + ( + 76 ) ) ) * - 18 col1
----
18

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT - NULLIF ( - - COUNT ( - 56 ), - 59 * + + 9 + - COUNT ( * ) / + - COUNT ( + ( + 76 ) ) ) * - 18 col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT DISTINCT 6 - + 5 - 20 + + 46 + + + CAST( 84 AS SIGNED ) + - ( + 17 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT 6 - + 5 - 20 + + 46 + + + CAST ( 84 AS INTEGER ) + - ( + 17 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1935
SELECT ALL - - CAST( + 83 AS SIGNED ) * 19
----
1577

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - - CAST ( + 83 AS INTEGER ) * 19
----
1577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1936
SELECT COALESCE ( MAX( 45 ), + 99 - + 12, + + ( + - CAST( NULL AS SIGNED ) ), - COUNT( * ) ), 34 col1
----
45
34

skipif mysql # not compatible
query II rowsort label-1936
SELECT COALESCE ( MAX ( 45 ), + 99 - + 12, + + ( + - CAST ( NULL AS INTEGER ) ), - COUNT ( * ) ), 34 col1
----
45
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL - - 78 * 0 - - MIN( ALL + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL - - 78 * 0 - - MIN ( ALL + 31 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1938
SELECT - 21 - + - 94 + + 84 * - CASE + CAST( + COUNT( * ) AS SIGNED ) WHEN - AVG ( - - 99 ) * - - 67 + - NULLIF ( - 42, + - MAX( ALL - + 5 ) ) THEN - 15 ELSE NULL END + + COUNT( * ) AS col1, - COUNT( * ) + + ( - MAX( + 42 ) )
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-1938
SELECT - 21 - + - 94 + + 84 * - CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN - AVG ( - - 99 ) * - - 67 + - NULLIF ( - 42, + - MAX ( ALL - + 5 ) ) THEN - 15 ELSE NULL END + + COUNT ( * ) AS col1, - COUNT ( * ) + + ( - MAX ( + 42 ) )
----
NULL
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-1939
SELECT + 91 * COUNT( * ) AS col0, - COUNT( ALL + + 28 ) AS col1
----
91
-1

skipif mysql # not compatible
query II rowsort label-1939
SELECT + 91 * COUNT ( * ) AS col0, - COUNT ( ALL + + 28 ) AS col1
----
91
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1940
SELECT 41 AS col2, 60 DIV + COUNT( * ) AS col2
----
41
60

skipif mysql # not compatible
query II rowsort label-1940
SELECT 41 AS col2, 60 / + COUNT ( * ) AS col2
----
41
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT - 72 * + + 46 * - 0 * - 81 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-1941
SELECT - 72 * + + 46 * - 0 * - 81 / 52
----
0

query II rowsort
SELECT 22 AS col2, - 63
----
22
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL COUNT( DISTINCT + + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL COUNT ( DISTINCT + + 41 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT CASE + 98 WHEN + CASE - 75 WHEN + - 24 THEN NULL ELSE COUNT( + 50 ) END THEN NULL WHEN - CASE + + 4 WHEN + 71 THEN NULL ELSE - 93 END THEN - 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT CASE + 98 WHEN + CASE - 75 WHEN + - 24 THEN NULL ELSE COUNT ( + 50 ) END THEN NULL WHEN - CASE + + 4 WHEN + 71 THEN NULL ELSE - 93 END THEN - 76 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1945
SELECT ALL 36 + COALESCE ( 76, - 79 * 81 + - 84, - COALESCE ( - 48, + 93 + COUNT( * ) + - + 35 * CAST( - 4 AS SIGNED ) * + + MIN( - - 9 ) - 13 + - - 88 DIV + COUNT( + + 82 ) ) ) * + + 86
----
6572

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL 36 + COALESCE ( 76, - 79 * 81 + - 84, - COALESCE ( - 48, + 93 + COUNT ( * ) + - + 35 * CAST ( - 4 AS INTEGER ) * + + MIN ( - - 9 ) - 13 + - - 88 / + COUNT ( + + 82 ) ) ) * + + 86
----
6572

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT ALL + 90 DIV - 33 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + 90 / - 33 AS col1
----
-2

query I rowsort
SELECT - 35 * + + 78
----
-2730

query I rowsort
SELECT DISTINCT - 18 + + 96 col0
----
78

query I rowsort
SELECT ALL + 63 + ( - - 17 ) + 18
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT - 82 + + 25 * 61 DIV - 62
----
-106

skipif mysql # not compatible
query I rowsort label-1950
SELECT - 82 + + 25 * 61 / - 62
----
-106

query II rowsort
SELECT ALL 16, + 74 * + 98 col2
----
16
7252

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1952
SELECT 36, 24 * + CAST( + 83 AS SIGNED ) * 28 col1
----
36
55776

skipif mysql # not compatible
query II rowsort label-1952
SELECT 36, 24 * + CAST ( + 83 AS INTEGER ) * 28 col1
----
36
55776

onlyif mysql # aggregate syntax: 
query II rowsort label-1953
SELECT - 71 col2, + CASE - COUNT( + 50 ) WHEN + 87 / + MAX( 2 ) THEN - 28 + 83 END
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-1953
SELECT - 71 col2, + CASE - COUNT ( + 50 ) WHEN + 87 / + MAX ( 2 ) THEN - 28 + 83 END
----
-71
NULL

query I rowsort
SELECT DISTINCT CASE + - 80 WHEN + 90 THEN 52 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT 29 * - 68 + - 79 - COUNT( * ) AS col1
----
-2052

skipif mysql # not compatible
query I rowsort label-1955
SELECT 29 * - 68 + - 79 - COUNT ( * ) AS col1
----
-2052

onlyif mysql # aggregate syntax: 
query II rowsort label-1956
SELECT + - 96 AS col1, + 2 + COUNT( * ) - - 5 + + NULLIF ( + - 74, + 37 ) + + 2
----
-96
-64

skipif mysql # not compatible
query II rowsort label-1956
SELECT + - 96 AS col1, + 2 + COUNT ( * ) - - 5 + + NULLIF ( + - 74, + 37 ) + + 2
----
-96
-64

query I rowsort
SELECT + + 91 * 32 AS col1
----
2912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1958
SELECT ALL + CASE - COUNT( * ) WHEN + - 17 THEN NULL WHEN - - 30 + + 71 * - - 33 + - 56 THEN NULL ELSE 68 END DIV - + 1
----
-68

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + CASE - COUNT ( * ) WHEN + - 17 THEN NULL WHEN - - 30 + + 71 * - - 33 + - 56 THEN NULL ELSE 68 END / - + 1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1959
SELECT + - CASE - + 31 WHEN - 40 + CAST( COUNT( * ) AS SIGNED ) - - COUNT( * ) * - COUNT( * ) / + MIN( ALL CAST( NULL AS SIGNED ) ) + + + 58 / + 73 * - 69 THEN NULL ELSE 32 - + 79 END AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1959
SELECT + - CASE - + 31 WHEN - 40 + CAST ( COUNT ( * ) AS INTEGER ) - - COUNT ( * ) * - COUNT ( * ) / + MIN ( ALL CAST ( NULL AS INTEGER ) ) + + + 58 / + 73 * - 69 THEN NULL ELSE 32 - + 79 END AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL + - CASE + + CASE + + MAX( + 50 ) WHEN + - 13 * + 24 THEN + 33 ELSE - 19 / + COUNT( * ) END WHEN COUNT( * ) + - 12 THEN - COUNT( * ) * + + 60 ELSE + - ( - 18 ) END
----
-18

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + - CASE + + CASE + + MAX ( + 50 ) WHEN + - 13 * + 24 THEN + 33 ELSE - 19 / + COUNT ( * ) END WHEN COUNT ( * ) + - 12 THEN - COUNT ( * ) * + + 60 ELSE + - ( - 18 ) END
----
-18

query I rowsort
SELECT - 10 * 59 * + 58 - + + 74
----
-34294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT - - 35 * - NULLIF ( ( - 99 ), + ( 7 ) - + 42 ) * - 5 - 61 * 73 + - NULLIF ( 77, + CAST( 48 AS SIGNED ) ) col1
----
-21855

skipif mysql # not compatible
query I rowsort label-1962
SELECT - - 35 * - NULLIF ( ( - 99 ), + ( 7 ) - + 42 ) * - 5 - 61 * 73 + - NULLIF ( 77, + CAST ( 48 AS INTEGER ) ) col1
----
-21855

query II rowsort
SELECT 6 AS col1, 7 * + 93 col2
----
6
651

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

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

query I rowsort
SELECT + 96 * + + 92 AS col1
----
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + - MIN( + 71 ) * + 86 + + - 48 + - 85
----
-6239

skipif mysql # not compatible
query I rowsort label-1966
SELECT + - MIN ( + 71 ) * + 86 + + - 48 + - 85
----
-6239

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

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

query I rowsort
SELECT 78 * 72 + + 16 AS col0
----
5632

query I rowsort
SELECT - - 73 - - + 58 AS col2
----
131

query I rowsort
SELECT ALL 66 * + - 2 AS col1
----
-132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1971
SELECT + MAX( DISTINCT + 5 ) + - + 93 + - 91 + - - 35 * + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT + MAX ( DISTINCT + 5 ) + - + 93 + - 91 + - - 35 * + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL ( COUNT( DISTINCT ( + 65 ) ) ) / - 1 + - + CASE 97 WHEN + ( COUNT( * ) ) THEN + + 60 / COALESCE ( + 37, + COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL ( COUNT ( DISTINCT ( + 65 ) ) ) / - 1 + - + CASE 97 WHEN + ( COUNT ( * ) ) THEN + + 60 / COALESCE ( + 37, + COUNT ( * ) ) END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1973
SELECT COUNT ( DISTINCT - + 27 ) AS col1
----
1

query I rowsort
SELECT + 48 + 84 * 3
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1975
SELECT ALL - 94 * + CAST( - - ( 1 ) AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL - 94 * + CAST ( - - ( 1 ) AS INTEGER ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT + 66 + COUNT( * ), + ( - 70 ) + 15 AS col0
----
67
-55

skipif mysql # not compatible
query II rowsort label-1976
SELECT + 66 + COUNT ( * ), + ( - 70 ) + 15 AS col0
----
67
-55

query I rowsort
SELECT ALL + 31 + + 56 + + 9 AS col0
----
96

query I rowsort
SELECT - ( - + 75 ) + - 28
----
47

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

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT 65 + 86 * - COUNT ( * ) AS col0
----
-21

query I rowsort
SELECT - 94 + - + ( - + 55 ) - + + 35 * 19 * - 43 - - - NULLIF ( 95, + + 64 * + - COALESCE ( + 6, - 92 / - 40 ) + - 54 )
----
28461

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT - 70 + + COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-1981
SELECT - 70 + + COUNT ( * ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT - 88 + 77 + - COUNT( * ) / - + 64 / ( - - CASE + 21 WHEN - 0 THEN NULL WHEN - 1 + - 80 THEN NULL WHEN - ( + 96 ) + + 95 THEN + + 6 * - COUNT( ALL + 41 ) + + AVG ( DISTINCT + NULLIF ( ( + 2 ), 15 ) ) + 1 / + 73 + + MAX( ALL - 52 ) ELSE NULL END ) * + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT - 88 + 77 + - COUNT ( * ) / - + 64 / ( - - CASE + 21 WHEN - 0 THEN NULL WHEN - 1 + - 80 THEN NULL WHEN - ( + 96 ) + + 95 THEN + + 6 * - COUNT ( ALL + 41 ) + + AVG ( DISTINCT + NULLIF ( ( + 2 ), 15 ) ) + 1 / + 73 + + MAX ( ALL - 52 ) ELSE NULL END ) * + 50 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 5 + 29
----
34

query I rowsort
SELECT - 52 * - + 70
----
3640

query I rowsort
SELECT ALL - 69 + - - 87 + 1 * - 42 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT DISTINCT + ( 98 ) * + MIN( + + 57 ) - 56
----
5530

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT + ( 98 ) * + MIN ( + + 57 ) - 56
----
5530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT ( CAST( - 59 AS SIGNED ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT ( CAST ( - 59 AS INTEGER ) ) AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1988
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - - 45 )
----
NULL

query I rowsort
SELECT ALL - + 4 - + 80
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1990
SELECT - - COALESCE ( + - 54, 25 * - - CAST( NULL AS SIGNED ) + - 91 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1990
SELECT - - COALESCE ( + - 54, 25 * - - CAST ( NULL AS INTEGER ) + - 91 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT SUM( DISTINCT + ( 54 ) ) * - 28 + + COALESCE ( + - ( + - 95 ), COUNT( * ) ) + - - 90 + + 11 * - - CASE - - COUNT( - + 47 ) WHEN CASE - + 80 WHEN 40 THEN NULL ELSE - - 18 + + 52 END THEN 2 ELSE + 80 END + - 32
----
-479

skipif mysql # not compatible
query I rowsort label-1991
SELECT SUM ( DISTINCT + ( 54 ) ) * - 28 + + COALESCE ( + - ( + - 95 ), COUNT ( * ) ) + - - 90 + + 11 * - - CASE - - COUNT ( - + 47 ) WHEN CASE - + 80 WHEN 40 THEN NULL ELSE - - 18 + + 52 END THEN 2 ELSE + 80 END + - 32
----
-479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1992
SELECT + - 20 DIV + COALESCE ( - 12, + - 96 * + 11, + NULLIF ( + 77, + 69 * 77 ) DIV + 42 + + ( + CASE + 35 WHEN + + 93 THEN - 46 * + 46 * 96 - 94 + - 35 + - - 51 * + NULLIF ( + - 32, + COUNT( ALL - 76 ) ) DIV - ( + - 91 ) * - + 87 + + ( - 54 ) ELSE NULL END ) )
----
1

skipif mysql # not compatible
query I rowsort label-1992
SELECT + - 20 / + COALESCE ( - 12, + - 96 * + 11, + NULLIF ( + 77, + 69 * 77 ) / + 42 + + ( + CASE + 35 WHEN + + 93 THEN - 46 * + 46 * 96 - 94 + - 35 + - - 51 * + NULLIF ( + - 32, + COUNT ( ALL - 76 ) ) / - ( + - 91 ) * - + 87 + + ( - 54 ) ELSE NULL END ) )
----
1

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

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

query I rowsort
SELECT ALL + - 74 * 73 * - 44 AS col2
----
237688

onlyif mysql # DIV for integer division: 
query I rowsort label-1995
SELECT ALL - 9 DIV - 71 - ( 73 ) + - + 63 * - + 79
----
4904

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - 9 / - 71 - ( 73 ) + - + 63 * - + 79
----
4904

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1997
SELECT + - ( 55 ) * - 26 + + 66 * - COUNT( + 72 ) + + CAST( + 44 AS SIGNED ) AS col0
----
1408

skipif mysql # not compatible
query I rowsort label-1997
SELECT + - ( 55 ) * - 26 + + 66 * - COUNT ( + 72 ) + + CAST ( + 44 AS INTEGER ) AS col0
----
1408

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT SUM( - 68 ) * - CAST( 50 AS SIGNED ) * - COUNT( * )
----
-3400

skipif mysql # not compatible
query I rowsort label-1999
SELECT SUM ( - 68 ) * - CAST ( 50 AS INTEGER ) * - COUNT ( * )
----
-3400

query I rowsort
SELECT 90 + + + 46 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT DISTINCT - SUM( DISTINCT + + 41 ) + + 61 + NULLIF ( 99, SUM( - - 32 ) ) + ( - 89 )
----
30

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT - SUM ( DISTINCT + + 41 ) + + 61 + NULLIF ( 99, SUM ( - - 32 ) ) + ( - 89 )
----
30

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

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

query I rowsort
SELECT ALL 30 + - 69 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT DISTINCT MIN( - - 1 ) + ( - 92 ) + - 89 col1
----
-180

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT MIN ( - - 1 ) + ( - 92 ) + - 89 col1
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2005
SELECT NULLIF ( - 70, - 42 + - 99 + 70 * 24 DIV NULLIF ( 57, CAST( - COUNT( ALL + 11 ) AS SIGNED ) * - 15 DIV - 63 + - - CAST( + 97 AS SIGNED ) - - 39 ) * - 43 DIV + - COUNT( * ) + 84 ) DIV 54 AS col2, - 10 * - 59 * + - 34
----
-1
-20060

skipif mysql # not compatible
query II rowsort label-2005
SELECT NULLIF ( - 70, - 42 + - 99 + 70 * 24 / NULLIF ( 57, CAST ( - COUNT ( ALL + 11 ) AS INTEGER ) * - 15 / - 63 + - - CAST ( + 97 AS INTEGER ) - - 39 ) * - 43 / + - COUNT ( * ) + 84 ) / 54 AS col2, - 10 * - 59 * + - 34
----
-1
-20060

query I rowsort
SELECT ALL 24 + 41 * - - 73 * - 88 AS col2
----
-263360

onlyif mysql # aggregate syntax: 
query II rowsort label-2007
SELECT COUNT( + 41 ) * - 35 AS col2, 36
----
-35
36

skipif mysql # not compatible
query II rowsort label-2007
SELECT COUNT ( + 41 ) * - 35 AS col2, 36
----
-35
36

query I rowsort
SELECT 75 - 78 AS col1
----
-3

query I rowsort
SELECT 10 * + 71
----
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2010
SELECT CASE - 60 WHEN 85 THEN 36 WHEN COUNT( * ) / 89 * 87 THEN - + 14 * 28 * MAX( DISTINCT + 31 ) * - CAST( 42 AS SIGNED ) + 57 WHEN + 45 THEN NULL END * + 96, + COALESCE ( + 41, 51 * - 90 ) AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-2010
SELECT CASE - 60 WHEN 85 THEN 36 WHEN COUNT ( * ) / 89 * 87 THEN - + 14 * 28 * MAX ( DISTINCT + 31 ) * - CAST ( 42 AS INTEGER ) + 57 WHEN + 45 THEN NULL END * + 96, + COALESCE ( + 41, 51 * - 90 ) AS col2
----
NULL
41

query I rowsort
SELECT ALL 64 + - - 86
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT DISTINCT 23 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT 23 / + 51
----
0

query I rowsort
SELECT DISTINCT + 46 * - 25 AS col0
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL 10 - - COUNT( * ) col0
----
11

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL 10 - - COUNT ( * ) col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT MIN( - - 11 ) + - - 39 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2015
SELECT MIN ( - - 11 ) + - - 39 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2016
SELECT - 18 * CAST( + 66 AS SIGNED ) col1, + 82 AS col0
----
-1188
82

skipif mysql # not compatible
query II rowsort label-2016
SELECT - 18 * CAST ( + 66 AS INTEGER ) col1, + 82 AS col0
----
-1188
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT 36 + 3 * - 68 DIV COUNT( * ) AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-2017
SELECT 36 + 3 * - 68 / COUNT ( * ) AS col1
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2018
SELECT DISTINCT CAST( - 78 AS SIGNED ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT CAST ( - 78 AS INTEGER ) col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT + + CASE - 84 WHEN 16 / + + MAX( + 51 ) + - 97 THEN NULL ELSE - 76 * + ( 62 ) + + - 38 + - 50 + + 12 + + 57 END
----
-4731

skipif mysql # not compatible
query I rowsort label-2019
SELECT + + CASE - 84 WHEN 16 / + + MAX ( + 51 ) + - 97 THEN NULL ELSE - 76 * + ( 62 ) + + - 38 + - 50 + + 12 + + 57 END
----
-4731

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

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

query I rowsort
SELECT ALL - + 63 * + + 63 + 60 + 14 AS col2
----
-3895

query I rowsort
SELECT 35 * 61 * 29 + 23
----
61938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT COUNT( * ) * - CAST( + 78 AS SIGNED ) + + 76 + + 83 + 26 * + + 27 AS col0
----
783

skipif mysql # not compatible
query I rowsort label-2023
SELECT COUNT ( * ) * - CAST ( + 78 AS INTEGER ) + + 76 + + 83 + 26 * + + 27 AS col0
----
783

query I rowsort
SELECT - + 97 * + 2 * 59 + 83 AS col2
----
-11363

query I rowsort
SELECT ALL - 42 * - 13
----
546

query I rowsort
SELECT - 57 * - 53 AS col0
----
3021

query II rowsort
SELECT + 53 AS col2, - NULLIF ( 40, + 75 ) AS col0
----
53
-40

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

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

query I rowsort
SELECT - 63 * - COALESCE ( - 89, 69 ) - - 57 col2
----
-5550

query I rowsort
SELECT DISTINCT - 49 + + 39
----
-10

query I rowsort
SELECT 85 + + - 25
----
60

query II rowsort
SELECT ALL - 31 + - + 54, 5 * + 91 + - - 59 col0
----
-85
514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2033
SELECT 56 + + 19, - 21 * + 73 + + 37 - + 2 + 45 - + CASE 42 WHEN 4 + - - 36 - + 17 * + + 23 * - COUNT( * ) THEN - + 81 + COUNT( * ) WHEN + 43 * SUM( ALL + 0 ) + COUNT( * ) + - - ( - CAST( + 59 AS SIGNED ) ) THEN - - 87 ELSE NULL END * - + 58 * CASE - 61 WHEN 61 THEN + - ( 83 ) * 3 ELSE NULL END col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2033
SELECT 56 + + 19, - 21 * + 73 + + 37 - + 2 + 45 - + CASE 42 WHEN 4 + - - 36 - + 17 * + + 23 * - COUNT ( * ) THEN - + 81 + COUNT ( * ) WHEN + 43 * SUM ( ALL + 0 ) + COUNT ( * ) + - - ( - CAST ( + 59 AS INTEGER ) ) THEN - - 87 ELSE NULL END * - + 58 * CASE - 61 WHEN 61 THEN + - ( 83 ) * 3 ELSE NULL END col0
----
75
NULL

query I rowsort
SELECT + 28 * - 79 + 3 AS col0
----
-2209

query I rowsort
SELECT ( - 1 ) * + 43 * + 37 * - 35 AS col0
----
55685

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT 75 + NULLIF ( - CAST( + + 50 AS SIGNED ), 7 / 95 + + + 19 + - CAST( - 43 AS SIGNED ) ) * + COUNT( 9 )
----
25

skipif mysql # not compatible
query I rowsort label-2037
SELECT 75 + NULLIF ( - CAST ( + + 50 AS INTEGER ), 7 / 95 + + + 19 + - CAST ( - 43 AS INTEGER ) ) * + COUNT ( 9 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT 31 * - 76 * + CAST( + + 8 AS SIGNED ) - 72 AS col2
----
-18920

skipif mysql # not compatible
query I rowsort label-2038
SELECT 31 * - 76 * + CAST ( + + 8 AS INTEGER ) - 72 AS col2
----
-18920

query I rowsort
SELECT ALL 70 - - 7 + - - 4 + + 28
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT 91 * + + SUM( - 19 ) * + 35
----
-60515

skipif mysql # not compatible
query I rowsort label-2040
SELECT 91 * + + SUM ( - 19 ) * + 35
----
-60515

query I rowsort
SELECT ALL - 41 * - + 90 AS col1
----
3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2042
SELECT DISTINCT 61, COUNT( - CAST( NULL AS SIGNED ) ) * - 44 * + 22 AS col1
----
61
0

skipif mysql # not compatible
query II rowsort label-2042
SELECT DISTINCT 61, COUNT ( - CAST ( NULL AS INTEGER ) ) * - 44 * + 22 AS col1
----
61
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2043
SELECT ALL COUNT( * ) - 57 + 47 + - COUNT( * ) - 63 - + - 28 * 48 * 67 DIV - + 51 AS col0, 45 * - + 47 * NULLIF ( - - 88, - - 57 + + - 16 ) + + 95 * + 97 AS col0
----
-1838
-176905

skipif mysql # not compatible
query II rowsort label-2043
SELECT ALL COUNT ( * ) - 57 + 47 + - COUNT ( * ) - 63 - + - 28 * 48 * 67 / - + 51 AS col0, 45 * - + 47 * NULLIF ( - - 88, - - 57 + + - 16 ) + + 95 * + 97 AS col0
----
-1838
-176905

query II rowsort
SELECT DISTINCT 18 AS col2, 2 * + 2
----
18
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT 0 DIV + - 13 col0
----
0

skipif mysql # not compatible
query I rowsort label-2045
SELECT 0 / + - 13 col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2046
SELECT 35 / - - COUNT ( DISTINCT + - 35 ) col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2047
SELECT ALL 4 DIV + 98 * SUM( ALL - 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL 4 / + 98 * SUM ( ALL - 51 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2048
SELECT - 16 + - 37 - - 75 + + 58 + - 7 * + 87 col2, 62 * 74 DIV + 64 col2
----
-529
71

skipif mysql # not compatible
query II rowsort label-2048
SELECT - 16 + - 37 - - 75 + + 58 + - 7 * + 87 col2, 62 * 74 / + 64 col2
----
-529
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT DISTINCT 68 AS col1, COUNT( * ) * + - 4 AS col2
----
68
-4

skipif mysql # not compatible
query II rowsort label-2049
SELECT DISTINCT 68 AS col1, COUNT ( * ) * + - 4 AS col2
----
68
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT ALL - 87 DIV ( + 8 ) * 51 AS col2
----
-510

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - 87 / ( + 8 ) * 51 AS col2
----
-510

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

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

query II rowsort
SELECT DISTINCT - 2 col0, - 82
----
-2
-82

query I rowsort
SELECT - 5 + + 96 AS col0
----
91

query II rowsort
SELECT + 59 AS col1, + 18
----
59
18

query I rowsort
SELECT ALL 32 * + - 44 + - ( - 13 ) + 86 AS col1
----
-1309

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - + 36 * + - 29 + 5 + + 45 / CASE - + SUM( 73 ) WHEN 48 + - 33 * COUNT( * ) / - SUM( + 36 ) THEN + COUNT( * ) ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT - + 36 * + - 29 + 5 + + 45 / CASE - + SUM ( 73 ) WHEN 48 + - 33 * COUNT ( * ) / - SUM ( + 36 ) THEN + COUNT ( * ) ELSE NULL END * + COUNT ( * )
----
NULL

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

query I rowsort
SELECT + - 91 * - 14
----
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL 19 * + 32 * - 93 + - - SUM( ALL - - 1 )
----
-56543

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL 19 * + 32 * - 93 + - - SUM ( ALL - - 1 )
----
-56543

query I rowsort
SELECT ALL + - 67 * - ( - ( 68 ) ) + + 4
----
-4552

query I rowsort
SELECT - 8 + - + 5 - 16 AS col0
----
-29

query II rowsort
SELECT - 4 AS col1, 93
----
-4
93

query I rowsort
SELECT + 24 * NULLIF ( - 77, - 25 ) + 48
----
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT 63 * + - 82 + - - COALESCE ( 42, + - 27 DIV + 48 - 28 ) + - - 82 * 67
----
370

skipif mysql # not compatible
query I rowsort label-2064
SELECT 63 * + - 82 + - - COALESCE ( 42, + - 27 / + 48 - 28 ) + - - 82 * 67
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL + MIN( 68 ) * + + 70
----
4760

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL + MIN ( 68 ) * + + 70
----
4760

onlyif mysql # aggregate syntax: 
query II rowsort label-2066
SELECT DISTINCT 17 * COALESCE ( - COUNT( ALL - 61 ), 14 + 38, 39 + + 74 + - 23 + + 10 * + 4 ) - + COUNT( * ), 29 AS col1
----
-18
29

skipif mysql # not compatible
query II rowsort label-2066
SELECT DISTINCT 17 * COALESCE ( - COUNT ( ALL - 61 ), 14 + 38, 39 + + 74 + - 23 + + 10 * + 4 ) - + COUNT ( * ), 29 AS col1
----
-18
29

query I rowsort
SELECT - 47 * 50
----
-2350

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT + NULLIF ( - 24, - + COUNT( * ) + 36 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT + NULLIF ( - 24, - + COUNT ( * ) + 36 ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2069
SELECT ALL + 11 * ( + 40 ) * - MIN( DISTINCT + + ( + 19 ) ) * MIN( ALL 2 ) * 94 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + 11 * ( + 40 ) * - MIN ( DISTINCT + + ( + 19 ) ) * MIN ( ALL 2 ) * 94 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT - SUM( CAST( NULL AS SIGNED ) ) * 88 + + - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) * 88 + + - 14 AS col2
----
NULL

query I rowsort
SELECT ALL + 73 * + 81
----
5913

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL 29 * + 94 - - + CASE COALESCE ( + + AVG ( ALL + + 40 ), + COUNT( * ) + + 92 / - - 39 * - 67 * 53 ) WHEN - 74 / + + 69 * MIN( DISTINCT + + ( + + 27 ) ) THEN - 43 * - + 54 * - 39 * + 22 + - 92 WHEN - 77 + - 34 - + - 37 THEN NULL WHEN - 5 * ( - - 20 ) * + - 41 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL 29 * + 94 - - + CASE COALESCE ( + + AVG ( ALL + + 40 ), + COUNT ( * ) + + 92 / - - 39 * - 67 * 53 ) WHEN - 74 / + + 69 * MIN ( DISTINCT + + ( + + 27 ) ) THEN - 43 * - + 54 * - 39 * + 22 + - 92 WHEN - 77 + - 34 - + - 37 THEN NULL WHEN - 5 * ( - - 20 ) * + - 41 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 17 * + ( - - 31 )
----
-527

query I rowsort
SELECT - 93 - + COALESCE ( - 35, + 46 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT - MAX( ALL - 39 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-2075
SELECT - MAX ( ALL - 39 ) col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT DISTINCT CASE - AVG ( ALL - 91 ) WHEN 40 THEN + ( COUNT( - 10 ) ) + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT CASE - AVG ( ALL - 91 ) WHEN 40 THEN + ( COUNT ( - 10 ) ) + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2077
SELECT DISTINCT COALESCE ( + COUNT( * ), + - CAST( NULL AS SIGNED ) - - + COUNT( * ) + 26, + 1 DIV + 66 + - 96, + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT COALESCE ( + COUNT ( * ), + - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) + 26, + 1 / + 66 + - 96, + 94 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2078
SELECT DISTINCT + 69 * - 22 AS col0, - CAST( - 98 AS SIGNED ) + - 40 AS col2
----
-1518
58

skipif mysql # not compatible
query II rowsort label-2078
SELECT DISTINCT + 69 * - 22 AS col0, - CAST ( - 98 AS INTEGER ) + - 40 AS col2
----
-1518
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT + MIN( DISTINCT + 0 ) - - 3 - + 75 * - - 87 * + 79 AS col0
----
-515472

skipif mysql # not compatible
query I rowsort label-2080
SELECT + MIN ( DISTINCT + 0 ) - - 3 - + 75 * - - 87 * + 79 AS col0
----
-515472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT ALL ( CAST( + 31 AS SIGNED ) ) + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL ( CAST ( + 31 AS INTEGER ) ) + + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT + SUM( 74 ) - - - 66
----
8

skipif mysql # not compatible
query I rowsort label-2082
SELECT + SUM ( 74 ) - - - 66
----
8

query II rowsort
SELECT + 94 - + - ( - 65 ), 21 AS col0
----
29
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL + CASE + CASE + 71 WHEN + COUNT( * ) + 78 THEN + + 86 + - 82 * - 45 * MAX( ALL - 29 ) ELSE NULL END WHEN 93 * 68 THEN + 26 * + 29 - + 77 END + - COUNT( * ) - - 62 * + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + CASE + CASE + 71 WHEN + COUNT ( * ) + 78 THEN + + 86 + - 82 * - 45 * MAX ( ALL - 29 ) ELSE NULL END WHEN 93 * 68 THEN + 26 * + 29 - + 77 END + - COUNT ( * ) - - 62 * + 95 AS col1
----
NULL

query I rowsort
SELECT - - 11 + - 64
----
-53

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

skipif mysql # not compatible
query I rowsort label-2086
SELECT + + COUNT ( * ) + 94 AS col2
----
95

query I rowsort
SELECT + + 31 - 79
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2088
SELECT ALL + - 88 + - COUNT( - 20 ) AS col1, - 38
----
-89
-38

skipif mysql # not compatible
query II rowsort label-2088
SELECT ALL + - 88 + - COUNT ( - 20 ) AS col1, - 38
----
-89
-38

query II rowsort
SELECT ALL ( - 47 ) AS col1, 33 AS col0
----
-47
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT + CAST( + 29 AS SIGNED ) * - 34 * - - 3 + + - 43 AS col1
----
-3001

skipif mysql # not compatible
query I rowsort label-2090
SELECT + CAST ( + 29 AS INTEGER ) * - 34 * - - 3 + + - 43 AS col1
----
-3001

query I rowsort
SELECT DISTINCT 98 * + 54 col1
----
5292

onlyif mysql # DIV for integer division: 
query I rowsort label-2092
SELECT + 83 DIV - 85 + ( 67 ) * 98
----
6566

skipif mysql # not compatible
query I rowsort label-2092
SELECT + 83 / - 85 + ( 67 ) * 98
----
6566

query I rowsort
SELECT + 83 + - - 42
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2094
SELECT DISTINCT COUNT( * ) DIV 31 - - + COUNT( * ) AS col2, 63 AS col2
----
1
63

skipif mysql # not compatible
query II rowsort label-2094
SELECT DISTINCT COUNT ( * ) / 31 - - + COUNT ( * ) AS col2, 63 AS col2
----
1
63

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT - 44 * - 96 + + - 85 + - NULLIF ( 17, + 64 ) DIV + NULLIF ( - - 5, + 14 + NULLIF ( + AVG ( DISTINCT - 86 ), + ( + 73 ) ) )
----
4136

skipif mysql # not compatible
query I rowsort label-2097
SELECT - 44 * - 96 + + - 85 + - NULLIF ( 17, + 64 ) / + NULLIF ( - - 5, + 14 + NULLIF ( + AVG ( DISTINCT - 86 ), + ( + 73 ) ) )
----
4136

query I rowsort
SELECT - 6 + - 49
----
-55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2100
SELECT 5 * - 47 + + CAST( - 27 AS SIGNED )
----
-262

skipif mysql # not compatible
query I rowsort label-2100
SELECT 5 * - 47 + + CAST ( - 27 AS INTEGER )
----
-262

query I rowsort
SELECT NULLIF ( - 81, - 90 ) AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT - 58 DIV 72 * + + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2102
SELECT - 58 / 72 * + + 93 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2103
SELECT ALL + ( + 5 ) * + 16 - + - ( + - 33 ) + + 95 * - ( 7 ) * - COUNT( 89 ) + - 64 + - 13 DIV 69 AS col2, + ( + + 85 ) col0
----
648
85

skipif mysql # not compatible
query II rowsort label-2103
SELECT ALL + ( + 5 ) * + 16 - + - ( + - 33 ) + + 95 * - ( 7 ) * - COUNT ( 89 ) + - 64 + - 13 / 69 AS col2, + ( + + 85 ) col0
----
648
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2104
SELECT - 87 DIV 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2104
SELECT - 87 / 70 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT COUNT( + - NULLIF ( - 62, - 22 ) ) * + + 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT COUNT ( + - NULLIF ( - 62, - 22 ) ) * + + 46 AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT - 22 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT - 22 / + 81
----
0

query I rowsort
SELECT DISTINCT - ( 26 ) * + 1 - + + 60 AS col0
----
-86

query II rowsort
SELECT ALL 48 AS col1, ( 21 ) * - 39 AS col1
----
48
-819

query II rowsort
SELECT DISTINCT + 69, 37 * + - 38 col0
----
69
-1406

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL - COUNT( * ) + - - 86 * - 44 * - - 10 * + 32
----
-1210881

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL - COUNT ( * ) + - - 86 * - 44 * - - 10 * + 32
----
-1210881

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT 21 + NULLIF ( + 81, - 16 * + - SUM( - 56 ) * + 64 )
----
102

skipif mysql # not compatible
query I rowsort label-2111
SELECT 21 + NULLIF ( + 81, - 16 * + - SUM ( - 56 ) * + 64 )
----
102

query I rowsort
SELECT ALL - - 48 + 33 AS col2
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-2113
SELECT ALL + - 85 + - ( - 32 ) AS col0, 71 DIV + 80
----
-53
0

skipif mysql # not compatible
query II rowsort label-2113
SELECT ALL + - 85 + - ( - 32 ) AS col0, 71 / + 80
----
-53
0

query II rowsort
SELECT + 93, 77 AS col0
----
93
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT DISTINCT + MAX( DISTINCT + + 87 ) + + 79 AS col1, - 31 + - 75
----
166
-106

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT + MAX ( DISTINCT + + 87 ) + + 79 AS col1, - 31 + - 75
----
166
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT - 94 * - 33 - - SUM( 25 )
----
3127

skipif mysql # not compatible
query I rowsort label-2116
SELECT - 94 * - 33 - - SUM ( 25 )
----
3127

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + MAX( + - 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2117
SELECT + MAX ( + - 43 ) AS col0
----
-43

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2119
SELECT 69 + - 87 + - + 73 AS col2, + COUNT( * ) * + - NULLIF ( + - 14, - COUNT( * ) - + - 0 - - 39 ) AS col1
----
-91
14

skipif mysql # not compatible
query II rowsort label-2119
SELECT 69 + - 87 + - + 73 AS col2, + COUNT ( * ) * + - NULLIF ( + - 14, - COUNT ( * ) - + - 0 - - 39 ) AS col1
----
-91
14

query I rowsort
SELECT + 61 - - + 40 + + 69
----
170

query I rowsort
SELECT 28 * 76 + 52 * 94 AS col2
----
7016

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2123
SELECT ( - + 96 ) + + CAST( - COALESCE ( + 39, + COUNT( * ), 74 * 70 * + 76 + - + COUNT( * ) + MIN( - + NULLIF ( - 9, + + 3 ) ) ) AS SIGNED )
----
-135

skipif mysql # not compatible
query I rowsort label-2123
SELECT ( - + 96 ) + + CAST ( - COALESCE ( + 39, + COUNT ( * ), 74 * 70 * + 76 + - + COUNT ( * ) + MIN ( - + NULLIF ( - 9, + + 3 ) ) ) AS INTEGER )
----
-135

query II rowsort
SELECT DISTINCT - ( - + 69 ) AS col0, 70 * + + 79
----
69
5530

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT SUM( DISTINCT 5 ) * + 66 + - - COUNT( * ) - - 64
----
395

skipif mysql # not compatible
query I rowsort label-2127
SELECT SUM ( DISTINCT 5 ) * + 66 + - - COUNT ( * ) - - 64
----
395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2128
SELECT - COUNT( * ) DIV - 6 + + MIN( + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-2128
SELECT - COUNT ( * ) / - 6 + + MIN ( + 5 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2129
SELECT NULLIF ( - 82, - + COUNT( * ) ) * 43 DIV - MIN( ( + 43 ) ) + + COUNT( * ) + - - COALESCE ( + 93, - - ( - + 98 ) * CASE 36 WHEN - + 77 * 94 + - - 12 THEN - MIN( ALL ( + 84 ) ) ELSE NULL END DIV - 65 * - 53 * + 10 + + 65 )
----
176

skipif mysql # not compatible
query I rowsort label-2129
SELECT NULLIF ( - 82, - + COUNT ( * ) ) * 43 / - MIN ( ( + 43 ) ) + + COUNT ( * ) + - - COALESCE ( + 93, - - ( - + 98 ) * CASE 36 WHEN - + 77 * 94 + - - 12 THEN - MIN ( ALL ( + 84 ) ) ELSE NULL END / - 65 * - 53 * + 10 + + 65 )
----
176

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

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT + CAST ( + 98 AS INTEGER ) + - 79 AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2131
SELECT 44 * CAST( 0 AS SIGNED ) / + + CAST( NULL AS SIGNED ) + + - NULLIF ( - 11, + 88 ) AS col2, + 30
----
NULL
30

skipif mysql # not compatible
query II rowsort label-2131
SELECT 44 * CAST ( 0 AS INTEGER ) / + + CAST ( NULL AS INTEGER ) + + - NULLIF ( - 11, + 88 ) AS col2, + 30
----
NULL
30

query II rowsort
SELECT DISTINCT 28 + 17 AS col2, - 13 * + - 14
----
45
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2133
SELECT + ( - - 51 ) DIV + - 60 * SUM( 12 ) * - - 51 + 25 + - CASE 44 WHEN - - 77 + - + 92 * + COUNT( * ) DIV 85 THEN NULL WHEN - 28 + 55 THEN + 1 + CAST( - COUNT( * ) AS SIGNED ) * + 13 ELSE 12 END + - 43 * + 20 AS col1, 27 - + - COUNT( * ) AS col0
----
-847
28

skipif mysql # not compatible
query II rowsort label-2133
SELECT + ( - - 51 ) / + - 60 * SUM ( 12 ) * - - 51 + 25 + - CASE 44 WHEN - - 77 + - + 92 * + COUNT ( * ) / 85 THEN NULL WHEN - 28 + 55 THEN + 1 + CAST ( - COUNT ( * ) AS INTEGER ) * + 13 ELSE 12 END + - 43 * + 20 AS col1, 27 - + - COUNT ( * ) AS col0
----
-847
28

query I rowsort
SELECT 59 - - 33 + - - 17
----
109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2135
SELECT - - NULLIF ( + 74, - - COALESCE ( - - 19, 78 + 33 + - CAST( + 44 AS DECIMAL ) - 34 + + 80 ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2135
SELECT - - NULLIF ( + 74, - - COALESCE ( - - 19, 78 + 33 + - CAST ( + 44 AS REAL ) - 34 + + 80 ) ) AS col1
----
74

query I rowsort
SELECT 28 - - 49 AS col0
----
77

query I rowsort
SELECT + 92 + - 43 * + COALESCE ( + 4, + 38, 77 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2138
SELECT 7 * - 50 * - + 70 + - CAST( NULL AS SIGNED ), - COALESCE ( - 61, 56, + COUNT( * ) ) col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-2138
SELECT 7 * - 50 * - + 70 + - CAST ( NULL AS INTEGER ), - COALESCE ( - 61, 56, + COUNT ( * ) ) col2
----
NULL
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2139
SELECT ALL + CAST( NULL AS DECIMAL ) * + COUNT( * ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + CAST ( NULL AS REAL ) * + COUNT ( * ) / + 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT - 67 * 16 DIV 89
----
-12

skipif mysql # not compatible
query I rowsort label-2140
SELECT - 67 * 16 / 89
----
-12

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

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

query I rowsort
SELECT ALL + 14 * + + 1 AS col0
----
14

query II rowsort
SELECT DISTINCT - 42 AS col2, - 0
----
-42
0

query I rowsort
SELECT DISTINCT + 96 * 54
----
5184

query I rowsort
SELECT 5 * 23 + + + 36
----
151

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

skipif mysql # not compatible
query I rowsort label-2146
SELECT 94 / + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ( + 25 ) * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2148
SELECT - COUNT( * ) / 47 * - CASE 66 WHEN - 46 THEN NULL ELSE MAX( ALL + CAST( NULL AS SIGNED ) ) * - COUNT( * ) END + - ( + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT - COUNT ( * ) / 47 * - CASE 66 WHEN - 46 THEN NULL ELSE MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) END + - ( + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT COUNT( * ) * + ( + 60 ) * + ( + 59 )
----
3540

skipif mysql # not compatible
query I rowsort label-2149
SELECT COUNT ( * ) * + ( + 60 ) * + ( + 59 )
----
3540

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL SUM( - + 85 ) * ( - - SUM( + 91 ) ) + - 18 + - ( - 76 ) AS col1
----
-7677

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL SUM ( - + 85 ) * ( - - SUM ( + 91 ) ) + - 18 + - ( - 76 ) AS col1
----
-7677

query I rowsort
SELECT 15 * - 98 + - + 45
----
-1515

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL + COALESCE ( COUNT( * ), COUNT( * ) ) * - + 18 + 57 * 77
----
4371

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL + COALESCE ( COUNT ( * ), COUNT ( * ) ) * - + 18 + 57 * 77
----
4371

query II rowsort
SELECT DISTINCT - 61 col1, 86 AS col1
----
-61
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - 91 * - MIN( + + 53 ) + - ( + COUNT( * ) )
----
4822

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 91 * - MIN ( + + 53 ) + - ( + COUNT ( * ) )
----
4822

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT ALL + 10 * + COUNT( * ) * 9 + + 49 + + 5 AS col0, COUNT( * ) * + ( - + 44 ) * - - 51 col2
----
144
-2244

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL + 10 * + COUNT ( * ) * 9 + + 49 + + 5 AS col0, COUNT ( * ) * + ( - + 44 ) * - - 51 col2
----
144
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT SUM( ALL + + ( 74 ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2156
SELECT SUM ( ALL + + ( 74 ) ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT - 89 * + 10 - - 19 * MIN( DISTINCT + 78 ) + - - 22
----
614

skipif mysql # not compatible
query I rowsort label-2157
SELECT - 89 * + 10 - - 19 * MIN ( DISTINCT + 78 ) + - - 22
----
614

query I rowsort
SELECT ALL + NULLIF ( - + 95, + 44 ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT + 13 + - - CAST( NULL AS SIGNED ) - - + 62 * 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 13 + - - CAST ( NULL AS INTEGER ) - - + 62 * 32 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL + - CASE - - 80 WHEN 68 / + - COUNT( * ) * + + 67 * + COUNT( + + ( - 48 ) ) - + COUNT( DISTINCT 87 ) - + 53 THEN AVG ( ( + + 66 ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + - CASE - - 80 WHEN 68 / + - COUNT ( * ) * + + 67 * + COUNT ( + + ( - 48 ) ) - + COUNT ( DISTINCT 87 ) - + 53 THEN AVG ( ( + + 66 ) ) END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2162
SELECT ALL + ( - - CAST( + - 46 AS SIGNED ) ) + 28 + 19 + 55 DIV COALESCE ( + - ( + 82 ), + 41 - NULLIF ( 86, + - 5 ), 31, - CAST( NULL AS SIGNED ) * + + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + ( - - CAST ( + - 46 AS INTEGER ) ) + 28 + 19 + 55 / COALESCE ( + - ( + 82 ), + 41 - NULLIF ( 86, + - 5 ), 31, - CAST ( NULL AS INTEGER ) * + + 95 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2163
SELECT - COALESCE ( - + ( 23 ), - - 15 * - CAST( - 55 AS SIGNED ) + + COUNT( * ) - COUNT( DISTINCT + 23 ) )
----
23

skipif mysql # not compatible
query I rowsort label-2163
SELECT - COALESCE ( - + ( 23 ), - - 15 * - CAST ( - 55 AS INTEGER ) + + COUNT ( * ) - COUNT ( DISTINCT + 23 ) )
----
23

query I rowsort
SELECT + - 83 + - 64 AS col2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT + ( COUNT( - 21 ) ) * - - ( - 32 ) * 89
----
-2848

skipif mysql # not compatible
query I rowsort label-2165
SELECT + ( COUNT ( - 21 ) ) * - - ( - 32 ) * 89
----
-2848

query II rowsort
SELECT DISTINCT - ( NULLIF ( - 68, 75 ) ) - 60, + 44 - 79 AS col1
----
8
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2167
SELECT + + 6 + ( 48 ) DIV 31 * ( + - SUM( - - 8 ) ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-2167
SELECT + + 6 + ( 48 ) / 31 * ( + - SUM ( - - 8 ) ) col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT DISTINCT + ( CASE 62 WHEN - 2 THEN - 21 * - 86 - + + 91 * - CAST( NULL AS SIGNED ) WHEN - 36 * - 79 + - CASE 68 WHEN 56 THEN - + 77 ELSE NULL END + 60 + - 39 * - 79 * - 81 THEN - 79 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT + ( CASE 62 WHEN - 2 THEN - 21 * - 86 - + + 91 * - CAST ( NULL AS INTEGER ) WHEN - 36 * - 79 + - CASE 68 WHEN 56 THEN - + 77 ELSE NULL END + 60 + - 39 * - 79 * - 81 THEN - 79 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2169
SELECT ALL + 42 DIV 68 DIV - + COALESCE ( - 96, + COALESCE ( - - 56, + - 24 * + 23 - + 8, + ( - + 27 ) + 0 ), + - MIN( + 74 ) ) + + 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + 42 / 68 / - + COALESCE ( - 96, + COALESCE ( - - 56, + - 24 * + 23 - + 8, + ( - + 27 ) + 0 ), + - MIN ( + 74 ) ) + + 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + - NULLIF ( + COUNT( * ), 41 ) * 39 * - 7 AS col0
----
273

skipif mysql # not compatible
query I rowsort label-2170
SELECT + - NULLIF ( + COUNT ( * ), 41 ) * 39 * - 7 AS col0
----
273

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT DISTINCT + 86 AS col2, COUNT( * ) * 56 * + - 3 AS col1
----
86
-168

skipif mysql # not compatible
query II rowsort label-2171
SELECT DISTINCT + 86 AS col2, COUNT ( * ) * 56 * + - 3 AS col1
----
86
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT COUNT( * ) * - 16 + + 80
----
64

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT COUNT ( * ) * - 16 + + 80
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL COALESCE ( + 42, 62 * + COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL COALESCE ( + 42, 62 * + COUNT ( * ) )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2174
SELECT DISTINCT COUNT( * ), 1 + 92 + 22 * + + ( - 73 ) AS col2
----
1
-1513

skipif mysql # not compatible
query II rowsort label-2174
SELECT DISTINCT COUNT ( * ), 1 + 92 + 22 * + + ( - 73 ) AS col2
----
1
-1513

onlyif mysql # aggregate syntax: 
query II rowsort label-2175
SELECT + ( - MIN( 3 ) ) * + MAX( - ( + 52 ) ), + 48 AS col0
----
156
48

skipif mysql # not compatible
query II rowsort label-2175
SELECT + ( - MIN ( 3 ) ) * + MAX ( - ( + 52 ) ), + 48 AS col0
----
156
48

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

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

query I rowsort
SELECT - 53 - - 62
----
9

query I rowsort
SELECT ALL CASE + 43 WHEN - - 31 * - 73 * - - NULLIF ( + ( 7 ), + + 7 ) * + 40 THEN + 76 WHEN + - 12 * - + 20 * 60 THEN NULL END col1
----
NULL

query I rowsort
SELECT - 70 * 71
----
-4970

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT ALL 82 DIV COALESCE ( + 61, - 13 ) + + 43 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL 82 / COALESCE ( + 61, - 13 ) + + 43 AS col1
----
44

query II rowsort
SELECT ( + + 16 ) AS col1, 36
----
16
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT DISTINCT + SUM( 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT + SUM ( 17 ) AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2183
SELECT ALL - CAST( NULL AS DECIMAL ) * - + 45 + 33 * + MIN( - + CAST( + 12 AS SIGNED ) ) AS col1, - ( + 41 )
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-2183
SELECT ALL - CAST ( NULL AS REAL ) * - + 45 + 33 * + MIN ( - + CAST ( + 12 AS INTEGER ) ) AS col1, - ( + 41 )
----
NULL
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-2184
SELECT - 40 + + 70, - COUNT( * ) + - 5 * + + 52 + - + 30 - + 47 - + CASE - 84 WHEN - + COUNT( DISTINCT 51 ) + 17 THEN + + 99 * + + 74 ELSE NULL END * + 65 AS col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-2184
SELECT - 40 + + 70, - COUNT ( * ) + - 5 * + + 52 + - + 30 - + 47 - + CASE - 84 WHEN - + COUNT ( DISTINCT 51 ) + 17 THEN + + 99 * + + 74 ELSE NULL END * + 65 AS col1
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT + CASE + + 11 WHEN + 96 + 10 THEN NULL WHEN - 47 * 84 * 39 - - + 97 THEN + NULLIF ( - - ( - 5 ), 59 * - - COUNT( * ) * - 13 * + + 27 * - 61 ) ELSE NULL END * - + 9 + + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + CASE + + 11 WHEN + 96 + 10 THEN NULL WHEN - 47 * 84 * 39 - - + 97 THEN + NULLIF ( - - ( - 5 ), 59 * - - COUNT ( * ) * - 13 * + + 27 * - 61 ) ELSE NULL END * - + 9 + + + 63
----
NULL

query I rowsort
SELECT ALL - 15 * + + 46 + - ( - 7 ) AS col1
----
-683

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL + 66 * ( - 86 ) + - - NULLIF ( + ( - - 5 ), 72 ) + + - MAX( DISTINCT - 31 ) * 5 + 50
----
-5466

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + 66 * ( - 86 ) + - - NULLIF ( + ( - - 5 ), 72 ) + + - MAX ( DISTINCT - 31 ) * 5 + 50
----
-5466

query II rowsort
SELECT ( - 80 ), - 33 col1
----
-80
-33

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT + + COALESCE ( + 71, COUNT( * ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2191
SELECT + + COALESCE ( + 71, COUNT ( * ) ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL + - COUNT( * ) * 63 - - - ( 61 ) - + + CASE + COUNT( - + ( + 47 ) ) WHEN 10 * - COUNT( * ) THEN + 0 WHEN + 41 / + AVG ( - + 90 ) THEN NULL WHEN + + MAX( - + ( - 33 ) ) * 49 THEN - 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + - COUNT ( * ) * 63 - - - ( 61 ) - + + CASE + COUNT ( - + ( + 47 ) ) WHEN 10 * - COUNT ( * ) THEN + 0 WHEN + 41 / + AVG ( - + 90 ) THEN NULL WHEN + + MAX ( - + ( - 33 ) ) * 49 THEN - 74 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2193
SELECT DISTINCT + - 71 AS col1, - 5 + + 22 DIV - 78 * + - 79 * + + ( 72 )
----
-71
-5

skipif mysql # not compatible
query II rowsort label-2193
SELECT DISTINCT + - 71 AS col1, - 5 + + 22 / - 78 * + - 79 * + + ( 72 )
----
-71
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2194
SELECT DISTINCT 46 DIV MAX( 42 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT 46 / MAX ( 42 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL + COUNT( * ) * + 29 - - - 93 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + COUNT ( * ) * + 29 - - - 93 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-2196
SELECT + - 19, + COUNT( * ) * - 36 * - + 28 AS col0
----
-19
1008

skipif mysql # not compatible
query II rowsort label-2196
SELECT + - 19, + COUNT ( * ) * - 36 * - + 28 AS col0
----
-19
1008

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT + 33 DIV + COALESCE ( + - 73, - ( 34 ) ) * - 1 + + COALESCE ( + 57, + 94 + + 63 )
----
57

skipif mysql # not compatible
query I rowsort label-2197
SELECT + 33 / + COALESCE ( + - 73, - ( 34 ) ) * - 1 + + COALESCE ( + 57, + 94 + + 63 )
----
57

query I rowsort
SELECT ALL 73 * - + 90
----
-6570

query II rowsort
SELECT - + 93 * + 45 * 46 + + 24 AS col0, - 13 AS col0
----
-192486
-13

query I rowsort
SELECT ALL - 79 * + - 17 - - + 8
----
1351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT - CAST( - 21 AS SIGNED ) * 8 AS col1
----
168

skipif mysql # not compatible
query I rowsort label-2201
SELECT - CAST ( - 21 AS INTEGER ) * 8 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT - CASE + 13 WHEN + ( + 95 ) THEN NULL ELSE COUNT( ALL + 57 ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2202
SELECT - CASE + 13 WHEN + ( + 95 ) THEN NULL ELSE COUNT ( ALL + 57 ) END AS col2
----
-1

query II rowsort
SELECT + - 57 AS col0, 1 AS col0
----
-57
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2204
SELECT - - 26 - - - 0 + - 56 - + + 93 * + - 19 + + COALESCE ( - 27, - MAX( + - 27 ) - + - 41 ) + + 70 AS col0, - 64 AS col0
----
1780
-64

skipif mysql # not compatible
query II rowsort label-2204
SELECT - - 26 - - - 0 + - 56 - + + 93 * + - 19 + + COALESCE ( - 27, - MAX ( + - 27 ) - + - 41 ) + + 70 AS col0, - 64 AS col0
----
1780
-64

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

skipif mysql # not compatible
query I rowsort label-2205
SELECT - - SUM ( - - 10 ) col0
----
10

query I rowsort
SELECT - + 51 + - - 99
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT + + COUNT( * ) * + + 69 DIV - + 99 * + COUNT( * ) + - 17 + + 59 + + 87 + + + 59 * - + 27 AS col1
----
-1464

skipif mysql # not compatible
query I rowsort label-2207
SELECT + + COUNT ( * ) * + + 69 / - + 99 * + COUNT ( * ) + - 17 + + 59 + + 87 + + + 59 * - + 27 AS col1
----
-1464

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

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

query I rowsort
SELECT + - 35 * - - 28 AS col2
----
-980

query I rowsort
SELECT DISTINCT - ( - 16 ) * - 67
----
-1072

query I rowsort
SELECT DISTINCT - + 24 * - 57 - - + NULLIF ( - 16, - 47 ) * 53 * + 27 AS col1
----
-21528

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2213
SELECT ALL CAST( NULL AS DECIMAL ) col1, + COALESCE ( + + 65, - 12 - + 51 * - + 13 * - 82, + NULLIF ( + - 68, - 3 ) ) AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-2213
SELECT ALL CAST ( NULL AS REAL ) col1, + COALESCE ( + + 65, - 12 - + 51 * - + 13 * - 82, + NULLIF ( + - 68, - 3 ) ) AS col0
----
NULL
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2214
SELECT + 49 * + - CASE CAST( - + MIN( ALL + + 14 ) AS SIGNED ) WHEN + COUNT( * ) THEN - 3 WHEN COUNT( * ) - + COUNT( * ) - + + CAST( NULL AS SIGNED ) + 17 * + 14 THEN 23 WHEN - 48 THEN NULL ELSE + 2 + + 37 END AS col0, 48
----
-1911
48

skipif mysql # not compatible
query II rowsort label-2214
SELECT + 49 * + - CASE CAST ( - + MIN ( ALL + + 14 ) AS INTEGER ) WHEN + COUNT ( * ) THEN - 3 WHEN COUNT ( * ) - + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) + 17 * + 14 THEN 23 WHEN - 48 THEN NULL ELSE + 2 + + 37 END AS col0, 48
----
-1911
48

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

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL 19 * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2216
SELECT ALL COALESCE ( 1, 51 DIV - 92 + - + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL COALESCE ( 1, 51 / - 92 + - + COUNT ( * ) ) col0
----
1

query I rowsort
SELECT + AVG ( ALL - CASE WHEN NOT 1 IS NOT NULL THEN + + 20 * + 35 ELSE NULL END ) - + 9 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2218
SELECT ALL 77 + + + 10 AS col1, COUNT( * ) * 84 AS col1
----
87
84

skipif mysql # not compatible
query II rowsort label-2218
SELECT ALL 77 + + + 10 AS col1, COUNT ( * ) * 84 AS col1
----
87
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL NULLIF ( 38, NULLIF ( 81, - 30 ) ) + + 44 - - COUNT( * ) * - 76 + - - 38
----
44

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL NULLIF ( 38, NULLIF ( 81, - 30 ) ) + + 44 - - COUNT ( * ) * - 76 + - - 38
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2220
SELECT DISTINCT 94 DIV - + COUNT( * ) AS col1, - 66 * - - 2 AS col2
----
-94
-132

skipif mysql # not compatible
query II rowsort label-2220
SELECT DISTINCT 94 / - + COUNT ( * ) AS col1, - 66 * - - 2 AS col2
----
-94
-132

query I rowsort
SELECT ALL - 24 + 21 * + 6 * + COALESCE ( 34, + 58 * - 60 )
----
4260

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT 45 * 1 * 3 DIV 51 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2222
SELECT 45 * 1 * 3 / 51 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2223
SELECT ALL 23 + - 4 + - COALESCE ( - CASE COALESCE ( - 21, - CASE - 19 WHEN 74 THEN - 68 * 4 * 54 + - CASE + 81 WHEN + CAST( COUNT( * ) AS DECIMAL ) * - + ( - 96 ) + + 95 * + ( + COUNT( * ) ) THEN NULL WHEN + ( ( - 1 ) ) + + 99 + - 22 THEN NULL ELSE + 11 END END, + - COUNT( * ) ) WHEN + + 72 + + 21 DIV - - 64 * - - 64 THEN 13 * 80 DIV 39 END, - 14 ) * - 59 AS col0, 64
----
-807
64

skipif mysql # not compatible
query II rowsort label-2223
SELECT ALL 23 + - 4 + - COALESCE ( - CASE COALESCE ( - 21, - CASE - 19 WHEN 74 THEN - 68 * 4 * 54 + - CASE + 81 WHEN + CAST ( COUNT ( * ) AS REAL ) * - + ( - 96 ) + + 95 * + ( + COUNT ( * ) ) THEN NULL WHEN + ( ( - 1 ) ) + + 99 + - 22 THEN NULL ELSE + 11 END END, + - COUNT ( * ) ) WHEN + + 72 + + 21 / - - 64 * - - 64 THEN 13 * 80 / 39 END, - 14 ) * - 59 AS col0, 64
----
-807
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT - 83 * - MIN( ALL - - 6 ) + + - COUNT( * ) + + 2 + + + 95 * - CAST( NULL AS SIGNED ) * - 12 + MAX( + ( - - 21 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT - 83 * - MIN ( ALL - - 6 ) + + - COUNT ( * ) + + 2 + + + 95 * - CAST ( NULL AS INTEGER ) * - 12 + MAX ( + ( - - 21 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT 16 DIV + - COUNT( * ) + + 26 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2225
SELECT 16 / + - COUNT ( * ) + + 26 AS col1
----
10

query I rowsort
SELECT 44 + - - 85
----
129

query I rowsort
SELECT ALL ( + + 96 ) - + 54 AS col2
----
42

query I rowsort
SELECT ALL - 96 - 23 AS col2
----
-119

query I rowsort
SELECT 91 * 15 + + ( 68 )
----
1433

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT - + ( NULLIF ( + + 6, + - 27 * - 92 - 56 ) ) * MAX( 7 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT - + ( NULLIF ( + + 6, + - 27 * - 92 - 56 ) ) * MAX ( 7 ) AS col2
----
-42

query I rowsort
SELECT DISTINCT - ( + COALESCE ( - 19, + 86 ) ) AS col2
----
19

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

query II rowsort
SELECT ALL - 36 * ( - + 45 ) AS col0, + 80
----
1620
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2234
SELECT + 71 * 61 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT + 71 * 61 / CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 45 + - + 37 + - 11 col1, 24
----
-3
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2236
SELECT - COALESCE ( - + COALESCE ( - 23, + + ( - NULLIF ( + 82, + 24 + + - 19 - - 57 * - + 88 * 55 ) ) * - 25 * - - 38 + + COUNT( * ) ), + 61 * + + 84 + COUNT( * ) * - + NULLIF ( - ( - ( ( + 57 ) ) ), - 28 ) DIV - CASE - - 43 WHEN - 36 + 50 THEN NULL WHEN - 93 THEN COUNT( * ) * ( - COALESCE ( + + 27, - MIN( ALL - 56 ) ) ) + 92 * + 89 * + 45 - + 59 + + + 3 - COUNT( * ) + - - 30 ELSE 19 * + 94 END DIV - CASE SUM( ALL 20 ) + 26 WHEN + 60 THEN 58 WHEN - CAST( NULL AS SIGNED ) + + 62 * 30 THEN NULL END + 92 ) * 58 - - 45 * 22 AS col0
----
-344

skipif mysql # not compatible
query I rowsort label-2236
SELECT - COALESCE ( - + COALESCE ( - 23, + + ( - NULLIF ( + 82, + 24 + + - 19 - - 57 * - + 88 * 55 ) ) * - 25 * - - 38 + + COUNT ( * ) ), + 61 * + + 84 + COUNT ( * ) * - + NULLIF ( - ( - ( ( + 57 ) ) ), - 28 ) / - CASE - - 43 WHEN - 36 + 50 THEN NULL WHEN - 93 THEN COUNT ( * ) * ( - COALESCE ( + + 27, - MIN ( ALL - 56 ) ) ) + 92 * + 89 * + 45 - + 59 + + + 3 - COUNT ( * ) + - - 30 ELSE 19 * + 94 END / - CASE SUM ( ALL 20 ) + 26 WHEN + 60 THEN 58 WHEN - CAST ( NULL AS INTEGER ) + + 62 * 30 THEN NULL END + 92 ) * 58 - - 45 * 22 AS col0
----
-344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2237
SELECT + 11 + + 91 AS col2, CAST( - + 5 AS SIGNED ) + - 7 AS col1
----
102
-12

skipif mysql # not compatible
query II rowsort label-2237
SELECT + 11 + + 91 AS col2, CAST ( - + 5 AS INTEGER ) + - 7 AS col1
----
102
-12

query I rowsort
SELECT 51 * - 84 * + + 26 AS col0
----
-111384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2239
SELECT ALL 64 / CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0, 17 + + 59
----
NULL
76

skipif mysql # not compatible
query II rowsort label-2239
SELECT ALL 64 / CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0, 17 + + 59
----
NULL
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2240
SELECT ALL - 51 + - MAX( + + 67 ) * - 96 DIV 95 + - 0 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - 51 + - MAX ( + + 67 ) * - 96 / 95 + - 0 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT DISTINCT + 92 DIV + 87 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT + 92 / + 87 AS col1
----
1

query I rowsort
SELECT + 87 * 31
----
2697

query I rowsort
SELECT 31 * + - 9 * + - 29 * + 63
----
509733

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2244
SELECT + 70 / 27 * 10 + + 53 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT + 70 / 27 * 10 + + 53 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2245
SELECT DISTINCT 75 AS col1, - MIN( DISTINCT + 45 ) DIV + - CAST( 78 AS SIGNED )
----
75
0

skipif mysql # not compatible
query II rowsort label-2245
SELECT DISTINCT 75 AS col1, - MIN ( DISTINCT + 45 ) / + - CAST ( 78 AS INTEGER )
----
75
0

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

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL 89 + + - CAST ( NULL AS INTEGER ) + 34 AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( + + 44, + + 18 ) + 62 * + + 42
----
2648

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT - 79, SUM( - 24 ) AS col0
----
-79
-24

skipif mysql # not compatible
query II rowsort label-2248
SELECT - 79, SUM ( - 24 ) AS col0
----
-79
-24

query I rowsort
SELECT 13 * 15 col0
----
195

query I rowsort
SELECT ALL - 92 + 21 col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2251
SELECT ALL - MIN( DISTINCT 17 ) * 53 * 22 AS col1, CAST( - 16 AS SIGNED )
----
-19822
-16

skipif mysql # not compatible
query II rowsort label-2251
SELECT ALL - MIN ( DISTINCT 17 ) * 53 * 22 AS col1, CAST ( - 16 AS INTEGER )
----
-19822
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT DISTINCT SUM( 21 ) + 44 * + 57 * + - COALESCE ( - + 95, + 33 DIV + 49, - 31 * + 15 ) AS col1
----
238281

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT SUM ( 21 ) + 44 * + 57 * + - COALESCE ( - + 95, + 33 / + 49, - 31 * + 15 ) AS col1
----
238281

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT COUNT( * ) + - - 37 + - 5 - - 96
----
129

skipif mysql # not compatible
query I rowsort label-2253
SELECT COUNT ( * ) + - - 37 + - 5 - - 96
----
129

query I rowsort
SELECT 54 + + + 81 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT CASE - + 53 WHEN + 13 THEN - 20 WHEN + 18 THEN NULL WHEN 81 * 27 * + 43 THEN NULL ELSE 89 END * + SUM( + - 85 )
----
-7565

skipif mysql # not compatible
query I rowsort label-2255
SELECT CASE - + 53 WHEN + 13 THEN - 20 WHEN + 18 THEN NULL WHEN 81 * 27 * + 43 THEN NULL ELSE 89 END * + SUM ( + - 85 )
----
-7565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT DISTINCT 34 - - 67 * - CASE + + CAST( NULL AS SIGNED ) WHEN + - 65 THEN - 35 WHEN - + COUNT( 9 ) THEN + 8 ELSE 82 END
----
-5460

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT 34 - - 67 * - CASE + + CAST ( NULL AS INTEGER ) WHEN + - 65 THEN - 35 WHEN - + COUNT ( 9 ) THEN + 8 ELSE 82 END
----
-5460

query I rowsort
SELECT 38 - + - 86 col2
----
124

query I rowsort
SELECT DISTINCT 10 * - 60
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL 69 - COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL 69 - COUNT ( * ) AS col1
----
68

query I rowsort
SELECT ALL ( + 49 ) * - 1 * - 82 + + 0 + - 84 - 56
----
3878

query II rowsort
SELECT DISTINCT 67 * - ( - 24 ), ( - + ( - 76 ) ) * + 96 + - 94 AS col0
----
1608
7202

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2262
SELECT ALL - COUNT( * ) - COUNT( * ) + + 49 - - 64 * + CASE - 9 WHEN 98 THEN COUNT( * ) ELSE NULL END * - + 74 * + 42 * - NULLIF ( + CAST( NULL AS DECIMAL ), + 59 ) + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - COUNT ( * ) - COUNT ( * ) + + 49 - - 64 * + CASE - 9 WHEN 98 THEN COUNT ( * ) ELSE NULL END * - + 74 * + 42 * - NULLIF ( + CAST ( NULL AS REAL ), + 59 ) + 83
----
NULL

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

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

query I rowsort
SELECT 25 * 48 + 6 + + 88 AS col2
----
1294

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2266
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2, 19 + - - 50 AS col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-2266
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2, 19 + - - 50 AS col2
----
NULL
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2267
SELECT DISTINCT - COUNT( * ), 69 col2
----
-1
69

skipif mysql # not compatible
query II rowsort label-2267
SELECT DISTINCT - COUNT ( * ), 69 col2
----
-1
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2268
SELECT ALL - - COUNT( * ), - COUNT( * ) * MIN( ALL - - 96 ) * 14 AS col2
----
1
-1344

skipif mysql # not compatible
query II rowsort label-2268
SELECT ALL - - COUNT ( * ), - COUNT ( * ) * MIN ( ALL - - 96 ) * 14 AS col2
----
1
-1344

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

query I rowsort
SELECT ALL 79 + - 94 AS col1
----
-15

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

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

query I rowsort
SELECT DISTINCT 97 + - - 5 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + COALESCE ( - 54, + - MIN( + 27 ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2273
SELECT + COALESCE ( - 54, + - MIN ( + 27 ) ) AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2274
SELECT CAST( + 79 AS SIGNED ) * - COUNT( * ) * - 79 * + 54 + + 54 * + ( - 26 ) * + 3
----
332802

skipif mysql # not compatible
query I rowsort label-2274
SELECT CAST ( + 79 AS INTEGER ) * - COUNT ( * ) * - 79 * + 54 + + 54 * + ( - 26 ) * + 3
----
332802

query I rowsort
SELECT ALL - 88 + + 43 + - + 7
----
-52

query II rowsort
SELECT + 53, 81 AS col1
----
53
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2277
SELECT + CAST( 12 AS SIGNED ) * 13
----
156

skipif mysql # not compatible
query I rowsort label-2277
SELECT + CAST ( 12 AS INTEGER ) * 13
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT 76 + 82 + + - 58 + 63 + - COUNT( * ) - COUNT( * ) * + + 91 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2278
SELECT 76 + 82 + + - 58 + 63 + - COUNT ( * ) - COUNT ( * ) * + + 91 AS col1
----
71

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2281
SELECT - COUNT ( * ) * + COUNT ( * ) + - - 29 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL - 97 + - - 32 + + ( NULLIF ( + 90, 5 * - 94 * - COALESCE ( - + COUNT( * ), + 81 ) * 82 * 86 ) ) + + COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL - 97 + - - 32 + + ( NULLIF ( + 90, 5 * - 94 * - COALESCE ( - + COUNT ( * ), + 81 ) * 82 * 86 ) ) + + COUNT ( * ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2283
SELECT DISTINCT SUM( ALL + + 98 ) AS col0, + NULLIF ( - 83, + COUNT( * ) + - 98 * + 64 * - CAST( NULL AS SIGNED ) )
----
98
-83

skipif mysql # not compatible
query II rowsort label-2283
SELECT DISTINCT SUM ( ALL + + 98 ) AS col0, + NULLIF ( - 83, + COUNT ( * ) + - 98 * + 64 * - CAST ( NULL AS INTEGER ) )
----
98
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-2284
SELECT ALL + 24 DIV + 61 * 23 * - - 11 * - 18 DIV + COALESCE ( 13, + 41, - 94 ) AS col0, + 97 AS col0
----
0
97

skipif mysql # not compatible
query II rowsort label-2284
SELECT ALL + 24 / + 61 * 23 * - - 11 * - 18 / + COALESCE ( 13, + 41, - 94 ) AS col0, + 97 AS col0
----
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT DISTINCT + COUNT( * ) * - 27 * - - 53
----
-1431

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT + COUNT ( * ) * - 27 * - - 53
----
-1431

query II rowsort
SELECT ALL COALESCE ( + 79, 52, - + 37 ) AS col0, + 61 * + 13
----
79
793

onlyif mysql # DIV for integer division: 
query II rowsort label-2287
SELECT - 64 DIV - - 61, 44 * + 38 AS col1
----
-1
1672

skipif mysql # not compatible
query II rowsort label-2287
SELECT - 64 / - - 61, 44 * + 38 AS col1
----
-1
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL COALESCE ( - COUNT( * ), 15 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL COALESCE ( - COUNT ( * ), 15 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 34 * - 88 * - - 35 AS col1
----
-104720

query II rowsort
SELECT - 40 + 46 AS col2, 55
----
6
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL SUM( + - 99 ) col2
----
-99

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL SUM ( + - 99 ) col2
----
-99

query I rowsort
SELECT DISTINCT + ( + 13 ) * + 55
----
715

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 54, - 93 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT - - 5 + + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2295
SELECT - - 5 + + COUNT ( * ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL + + CASE + - 78 WHEN - + 9 THEN - 15 * 10 + + 59 + 92 * 58 + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + + CASE + - 78 WHEN - + 9 THEN - 15 * 10 + + 59 + 92 * 58 + COUNT ( * ) END col0
----
NULL

query II rowsort
SELECT + NULLIF ( 9, - 42 ) * + 44 AS col2, 65 AS col0
----
396
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT DISTINCT - 16 * - 56 + - NULLIF ( - 85, - - COUNT( * ) )
----
981

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT - 16 * - 56 + - NULLIF ( - 85, - - COUNT ( * ) )
----
981

onlyif mysql # aggregate syntax: 
query II rowsort label-2299
SELECT ALL - 53 * - COUNT( * ), 81 AS col2
----
53
81

skipif mysql # not compatible
query II rowsort label-2299
SELECT ALL - 53 * - COUNT ( * ), 81 AS col2
----
53
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2300
SELECT DISTINCT - 42 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT - 42 / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT DISTINCT 17 * MIN( + 7 ) + + 68 col1
----
187

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT 17 * MIN ( + 7 ) + + 68 col1
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT DISTINCT - COUNT( * ) * - - MIN( 52 ) * - 20 + + 88
----
1128

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT - COUNT ( * ) * - - MIN ( 52 ) * - 20 + + 88
----
1128

query I rowsort
SELECT ALL - 8 * - 61 + 15 + - ( - 72 ) + - 42 AS col0
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL 85 * + SUM( ALL + + 74 ) * - + 19 AS col1
----
-119510

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL 85 * + SUM ( ALL + + 74 ) * - + 19 AS col1
----
-119510

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

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

query I rowsort
SELECT - 43 + - 47
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2307
SELECT + 82 * - COALESCE ( + COUNT( * ), - 84 + + NULLIF ( 1, 84 ) + + 39 + COALESCE ( 90, - 0, 50 DIV + 21 ) ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-2307
SELECT + 82 * - COALESCE ( + COUNT ( * ), - 84 + + NULLIF ( 1, 84 ) + + 39 + COALESCE ( 90, - 0, 50 / + 21 ) ) col0
----
-82

query I rowsort
SELECT - ( - - 26 ) * + - 48
----
1248

query I rowsort
SELECT + 96 * + + 33
----
3168

onlyif mysql # aggregate syntax: 
query II rowsort label-2310
SELECT DISTINCT + + MIN( DISTINCT + COALESCE ( + 72, + + 12 ) ) AS col1, 67 + COUNT( * ) * + + 72
----
72
139

skipif mysql # not compatible
query II rowsort label-2310
SELECT DISTINCT + + MIN ( DISTINCT + COALESCE ( + 72, + + 12 ) ) AS col1, 67 + COUNT ( * ) * + + 72
----
72
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL - ( + SUM( - 19 ) ) * - + 53 + - ( + 80 ) + + 13
----
-1074

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL - ( + SUM ( - 19 ) ) * - + 53 + - ( + 80 ) + + 13
----
-1074

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

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

query I rowsort
SELECT DISTINCT + 38 * ( + 57 ) - 22 AS col1
----
2144

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT ALL ( 13 ) * 19 - + 52 DIV + 21 AS col2
----
245

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL ( 13 ) * 19 - + 52 / + 21 AS col2
----
245

query I rowsort
SELECT 29 * + 21 + - - 74 AS col1
----
683

query I rowsort
SELECT ALL + 20 * + - 88 AS col1
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL COALESCE ( 74, MAX( ALL 92 ) )
----
74

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL COALESCE ( 74, MAX ( ALL 92 ) )
----
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT DISTINCT - 48 - 70 DIV 18 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT - 48 - 70 / 18 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT SUM( - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT SUM ( - 61 ) AS col2
----
-61

query I rowsort
SELECT ALL 64 * + 51 col0
----
3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT DISTINCT ( - - CAST( + - 15 AS SIGNED ) )
----
-15

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT ( - - CAST ( + - 15 AS INTEGER ) )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2323
SELECT DISTINCT CASE WHEN COALESCE ( + - 69, + 14 ) IS NULL THEN - 74 - - + CASE - ( - 30 ) WHEN MAX( + 48 ) THEN NULL ELSE + COALESCE ( + 46, ( - + 10 ) + 68 * + 2 * 1 ) * + ( + + COUNT( * ) ) END + - COALESCE ( - CASE - 69 WHEN - COALESCE ( + - 19, 74 ) THEN NULL WHEN + 12 THEN - 64 ELSE 84 - - + 9 END, - - 71 - + + 33 + + 24 * + + MIN( - 65 ) * - ( 55 ) + + - 48, - - MIN( ALL - 87 ), COALESCE ( 6, AVG ( ALL + 97 ) * - COALESCE ( 8, - CAST( NULL AS SIGNED ), + 93 ), COALESCE ( + 92, 93 / COUNT( ALL + 91 ) + COUNT( * ) / 5 ), 35 * - ( + CAST( NULL AS DECIMAL ) ) ) + + 91 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT CASE WHEN COALESCE ( + - 69, + 14 ) IS NULL THEN - 74 - - + CASE - ( - 30 ) WHEN MAX ( + 48 ) THEN NULL ELSE + COALESCE ( + 46, ( - + 10 ) + 68 * + 2 * 1 ) * + ( + + COUNT ( * ) ) END + - COALESCE ( - CASE - 69 WHEN - COALESCE ( + - 19, 74 ) THEN NULL WHEN + 12 THEN - 64 ELSE 84 - - + 9 END, - - 71 - + + 33 + + 24 * + + MIN ( - 65 ) * - ( 55 ) + + - 48, - - MIN ( ALL - 87 ), COALESCE ( 6, AVG ( ALL + 97 ) * - COALESCE ( 8, - CAST ( NULL AS INTEGER ), + 93 ), COALESCE ( + 92, 93 / COUNT ( ALL + 91 ) + COUNT ( * ) / 5 ), 35 * - ( + CAST ( NULL AS REAL ) ) ) + + 91 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2324
SELECT ALL - 57 / CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL - 57 / CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT - 28 + CAST( - 26 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-2325
SELECT - 28 + CAST ( - 26 AS INTEGER )
----
-54

query I rowsort
SELECT DISTINCT NULLIF ( - 98, 29 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT - 75 DIV - ( - 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT - 75 / - ( - 95 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2328
SELECT - + 43 * 31 + CAST( - - CASE + + ( + + 2 ) WHEN + - 79 THEN COALESCE ( + + 73, + 28 - + CAST( NULL AS DECIMAL ) ) * - SUM( ALL - 81 ) END AS SIGNED ) + - 7 + - 43, 53 - + 86 - - - COUNT( 81 ) + - 84 * + + 92 * - 35 AS col0
----
NULL
270446

skipif mysql # not compatible
query II rowsort label-2328
SELECT - + 43 * 31 + CAST ( - - CASE + + ( + + 2 ) WHEN + - 79 THEN COALESCE ( + + 73, + 28 - + CAST ( NULL AS REAL ) ) * - SUM ( ALL - 81 ) END AS INTEGER ) + - 7 + - 43, 53 - + 86 - - - COUNT ( 81 ) + - 84 * + + 92 * - 35 AS col0
----
NULL
270446

query I rowsort
SELECT + ( 48 ) * - + 92 - + + 88
----
-4504

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - COUNT( * ) + + 89 + - 2 + - 19 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - COUNT ( * ) + + 89 + - 2 + - 19 AS col0
----
67

query I rowsort
SELECT DISTINCT + - 90 + 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2332
SELECT DISTINCT 2 DIV + + 80 + + COALESCE ( + COUNT( + + 84 ), COUNT( - 22 ) * + SUM( DISTINCT - - COALESCE ( 1, - - 70 * - 38 ) ) DIV + COUNT( * ) * + CAST( - 77 AS SIGNED ) + - 42 DIV - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT 2 / + + 80 + + COALESCE ( + COUNT ( + + 84 ), COUNT ( - 22 ) * + SUM ( DISTINCT - - COALESCE ( 1, - - 70 * - 38 ) ) / + COUNT ( * ) * + CAST ( - 77 AS INTEGER ) + - 42 / - 47 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT - - 66 - SUM( + 51 ) - - + 89 + 71 - NULLIF ( 50, + + 44 * + 25 + 57 * - 74 ) DIV 37 * CASE 47 WHEN - COUNT( * ) + - 61 * - MAX( ALL - ( + - ( + - 31 ) ) ) THEN NULL ELSE COUNT( * ) END
----
174

skipif mysql # not compatible
query I rowsort label-2333
SELECT - - 66 - SUM ( + 51 ) - - + 89 + 71 - NULLIF ( 50, + + 44 * + 25 + 57 * - 74 ) / 37 * CASE 47 WHEN - COUNT ( * ) + - 61 * - MAX ( ALL - ( + - ( + - 31 ) ) ) THEN NULL ELSE COUNT ( * ) END
----
174

query II rowsort
SELECT DISTINCT + - 59 AS col2, 51 col2
----
-59
51

query I rowsort
SELECT DISTINCT + 48 * - 57
----
-2736

query II rowsort
SELECT DISTINCT + 78 - 12 + + 5 AS col1, - 30 AS col0
----
71
-30

query I rowsort
SELECT ALL 30 * 76 AS col0
----
2280

onlyif mysql # aggregate syntax: 
query II rowsort label-2338
SELECT ALL - COUNT( * ) AS col1, 53 * - 18
----
-1
-954

skipif mysql # not compatible
query II rowsort label-2338
SELECT ALL - COUNT ( * ) AS col1, 53 * - 18
----
-1
-954

query I rowsort
SELECT ( - 27 ) * 81 + - 26
----
-2213

onlyif mysql # aggregate syntax: 
query II rowsort label-2340
SELECT ALL ( - COUNT( ALL + 23 ) ) * - COUNT( * ) AS col2, 76 * 73
----
1
5548

skipif mysql # not compatible
query II rowsort label-2340
SELECT ALL ( - COUNT ( ALL + 23 ) ) * - COUNT ( * ) AS col2, 76 * 73
----
1
5548

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT COUNT( + + 76 ) * + + 85
----
85

skipif mysql # not compatible
query I rowsort label-2341
SELECT COUNT ( + + 76 ) * + + 85
----
85

query I rowsort
SELECT ( + 98 ) + + 56 AS col1
----
154

query I rowsort
SELECT 64 * + + 42 * - - 51 * + - 97 AS col1
----
-13297536

query I rowsort
SELECT - 73 * - + 47 + + ( + 99 )
----
3530

query II rowsort
SELECT ALL 97 AS col2, 63 + 34
----
97
97

query II rowsort
SELECT DISTINCT - 89 * - 63 AS col0, + 14 AS col2
----
5607
14

query I rowsort
SELECT 73 + 73 AS col0
----
146

query I rowsort
SELECT ALL 93 * - + 3 AS col2
----
-279

query I rowsort
SELECT 44 * + + 8
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL 10 + - 98 + - 50 * - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL 10 + - 98 + - 50 * - COUNT ( * ) AS col2
----
-38

query II rowsort
SELECT - 64 col1, 27 AS col0
----
-64
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2352
SELECT ALL + 26 + - CAST( NULL AS DECIMAL ) + - - 81 + - 23 + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL + 26 + - CAST ( NULL AS REAL ) + - - 81 + - 23 + + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ( - 59 ) - + 22 + + 62 * + + MIN( - 73 ) * + 86 AS col2
----
-389317

skipif mysql # not compatible
query I rowsort label-2353
SELECT ( - 59 ) - + 22 + + 62 * + + MIN ( - 73 ) * + 86 AS col2
----
-389317

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

skipif mysql # not compatible
query I rowsort label-2354
SELECT + COUNT ( * ) + 81 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT DISTINCT 13 + - ( - 60 ) + - 44 * + + COUNT( - 14 ) * NULLIF ( 68, + 58 )
----
-2919

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT 13 + - ( - 60 ) + - 44 * + + COUNT ( - 14 ) * NULLIF ( 68, + 58 )
----
-2919

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

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

query I rowsort
SELECT ALL - - 92 + - 22
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2358
SELECT ALL 26, + ( 25 ) - COUNT( * ) col1
----
26
24

skipif mysql # not compatible
query II rowsort label-2358
SELECT ALL 26, + ( 25 ) - COUNT ( * ) col1
----
26
24

query II rowsort
SELECT - 49, 16 AS col2
----
-49
16

query I rowsort
SELECT - 89 * - - 10 AS col2
----
-890

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT ALL - + COALESCE ( + 28, 94 * - + 45 + - - 6 * 2 * + 19 ) DIV - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - + COALESCE ( + 28, 94 * - + 45 + - - 6 * 2 * + 19 ) / - 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT + CASE - COUNT( * ) WHEN 46 THEN - - 30 END / - MAX( - 75 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT + CASE - COUNT ( * ) WHEN 46 THEN - - 30 END / - MAX ( - 75 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2363
SELECT ALL - ( + 51 ) + + CASE + - CAST( - 33 AS SIGNED ) WHEN + 27 + - 16 THEN NULL WHEN + 17 * 85 + - 32 * - 78 - - SUM( ALL 34 ) + - + 79 THEN NULL ELSE + - 20 END * 9 * - - NULLIF ( - 33, + + 30 )
----
5889

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - ( + 51 ) + + CASE + - CAST ( - 33 AS INTEGER ) WHEN + 27 + - 16 THEN NULL WHEN + 17 * 85 + - 32 * - 78 - - SUM ( ALL 34 ) + - + 79 THEN NULL ELSE + - 20 END * 9 * - - NULLIF ( - 33, + + 30 )
----
5889

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT + + 14 DIV 7 + + - 68 + COALESCE ( - 49, 11, + 25 )
----
-115

skipif mysql # not compatible
query I rowsort label-2364
SELECT + + 14 / 7 + + - 68 + COALESCE ( - 49, 11, + 25 )
----
-115

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

skipif mysql # not compatible
query II rowsort label-2365
SELECT CAST ( NULL AS INTEGER ), 73 AS col1
----
NULL
73

query I rowsort
SELECT DISTINCT - - ( NULLIF ( - 15, + 59 ) ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT + COUNT( * ) * - + 34 + + ( + + NULLIF ( 58, + - 96 ) ) + - 32
----
-8

skipif mysql # not compatible
query I rowsort label-2367
SELECT + COUNT ( * ) * - + 34 + + ( + + NULLIF ( 58, + - 96 ) ) + - 32
----
-8

query I rowsort
SELECT DISTINCT + 82 - + - 75 + + - 24 AS col1
----
133

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

query I rowsort
SELECT ALL - - ( ( 73 ) ) * - - 53 AS col2
----
3869

query I rowsort
SELECT 9 * + 89
----
801

query II rowsort
SELECT ALL - ( + - 79 ) AS col2, 96 AS col2
----
79
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT 22 * + 42 * + SUM( ALL - 8 )
----
-7392

skipif mysql # not compatible
query I rowsort label-2373
SELECT 22 * + 42 * + SUM ( ALL - 8 )
----
-7392

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2376
SELECT DISTINCT - CAST( - 94 AS SIGNED ) AS col1, SUM( 81 )
----
94
81

skipif mysql # not compatible
query II rowsort label-2376
SELECT DISTINCT - CAST ( - 94 AS INTEGER ) AS col1, SUM ( 81 )
----
94
81

query I rowsort
SELECT DISTINCT 64 * 6 AS col2
----
384

query I rowsort
SELECT DISTINCT 76 + + 55
----
131

query I rowsort
SELECT 37 * - ( + 77 ) * 3
----
-8547

onlyif mysql # DIV for integer division: 
query I rowsort label-2380
SELECT 44 DIV - - 58 * - + 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2380
SELECT 44 / - - 58 * - + 3 AS col2
----
0

query I rowsort
SELECT DISTINCT 11 + - 59 AS col2
----
-48

query I rowsort
SELECT 89 * - 39 * 17 AS col1
----
-59007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2383
SELECT ALL 45 + - - MAX( DISTINCT ( + ( CAST( + 11 AS SIGNED ) ) ) )
----
56

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL 45 + - - MAX ( DISTINCT ( + ( CAST ( + 11 AS INTEGER ) ) ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT DISTINCT 75 + - COUNT( * ) + + + 56 + + 61
----
191

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT 75 + - COUNT ( * ) + + + 56 + + 61
----
191

query II rowsort
SELECT DISTINCT + 40 + - - 61, - 50 AS col2
----
101
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL COUNT( - 48 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL COUNT ( - 48 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT COALESCE ( + 95, + 21 * - - SUM( ALL 12 ) - 36 - 78 * + 84, 15 + - 14 ) + 4 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2388
SELECT COALESCE ( + 95, + 21 * - - SUM ( ALL 12 ) - 36 - 78 * + 84, 15 + - 14 ) + 4 AS col1
----
99

query I rowsort
SELECT - 35 * - 23 + - 4 col0
----
801

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2390
SELECT DISTINCT - - 47 * + 41 DIV - COUNT( * ) + + - 48 * - + 60 AS col2, 97 * - - 54
----
953
5238

skipif mysql # not compatible
query II rowsort label-2390
SELECT DISTINCT - - 47 * + 41 / - COUNT ( * ) + + - 48 * - + 60 AS col2, 97 * - - 54
----
953
5238

query I rowsort
SELECT DISTINCT + 53 * - + 28 AS col2
----
-1484

query I rowsort
SELECT DISTINCT + 87 * - - 73 - + 45 + 16
----
6322

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - 89 * + SUM( DISTINCT + 34 ) * 64 * - 88 AS col0
----
17042432

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 89 * + SUM ( DISTINCT + 34 ) * 64 * - 88 AS col0
----
17042432

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

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT + MIN ( + 6 ) / 1 / + COUNT ( * ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT + MAX( ALL - 76 ) - - MAX( - ( ( 23 ) ) ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2395
SELECT + MAX ( ALL - 76 ) - - MAX ( - ( ( 23 ) ) ) AS col0
----
-99

query I rowsort
SELECT - 95 * - + 67 AS col1
----
6365

query I rowsort
SELECT - 65 - - 48
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2398
SELECT ALL + CAST( - NULLIF ( - 15, - - COUNT( * ) + + + COALESCE ( + 80, - 23 ) ) AS SIGNED ) * - COUNT( * ) - + + 10 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + CAST ( - NULLIF ( - 15, - - COUNT ( * ) + + + COALESCE ( + 80, - 23 ) ) AS INTEGER ) * - COUNT ( * ) - + + 10 AS col2
----
-25

query II rowsort
SELECT DISTINCT + 86 AS col0, 37
----
86
37

query I rowsort
SELECT ALL 59 * + + 71 + + 21
----
4210

query I rowsort
SELECT - 11 - - - 32 AS col1
----
-43

query I rowsort
SELECT - 65 * + 59 + - + 98 AS col2
----
-3933

onlyif mysql # aggregate syntax: 
query II rowsort label-2403
SELECT - ( COUNT( * ) ) - - + 4 + + 0, COUNT( * ) * + 87 - + 61 + 4 AS col1
----
3
30

skipif mysql # not compatible
query II rowsort label-2403
SELECT - ( COUNT ( * ) ) - - + 4 + + 0, COUNT ( * ) * + 87 - + 61 + 4 AS col1
----
3
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT - 58 + + 69 + + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2405
SELECT - 58 + + 69 + + COUNT ( * ) AS col2
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT ALL + 72 + 87 - COUNT( * ) AS col2
----
158

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL + 72 + 87 - COUNT ( * ) AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL - 8 + + ( - NULLIF ( + + 84, + 58 + + 20 + - 92 - COUNT( * ) - + 70 + COUNT( * ) - + 70 * 10 + + - COUNT( + + 87 ) + - 49 ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - 8 + + ( - NULLIF ( + + 84, + 58 + + 20 + - 92 - COUNT ( * ) - + 70 + COUNT ( * ) - + 70 * 10 + + - COUNT ( + + 87 ) + - 49 ) ) AS col2
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-2409
SELECT DISTINCT + 54 DIV - 79 * 49, - 10 col1
----
0
-10

skipif mysql # not compatible
query II rowsort label-2409
SELECT DISTINCT + 54 / - 79 * 49, - 10 col1
----
0
-10

query I rowsort
SELECT + - 31 * NULLIF ( + + 74, - - 74 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2412
SELECT 14, - CASE - 4 WHEN 23 THEN 83 + - COUNT( * ) ELSE 23 * + - 96 + 55 END AS col0
----
14
2153

skipif mysql # not compatible
query II rowsort label-2412
SELECT 14, - CASE - 4 WHEN 23 THEN 83 + - COUNT ( * ) ELSE 23 * + - 96 + 55 END AS col0
----
14
2153

query I rowsort
SELECT ALL 36 * 9 * - - 0
----
0

query I rowsort
SELECT ALL - 76 - + 54
----
-130

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

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

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

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

query II rowsort
SELECT ALL - 22 AS col1, - 46
----
-22
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT DISTINCT 68 DIV 19 col2
----
3

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT 68 / 19 col2
----
3

query II rowsort
SELECT ALL COALESCE ( + 50, 3 ), + 94 AS col1
----
50
94

query I rowsort
SELECT - COALESCE ( 1, + 76 )
----
-1

query I rowsort
SELECT + ( - NULLIF ( - 4, - 39 ) ) - + + 14 AS col0
----
-10

query II rowsort
SELECT 69 AS col1, - 28 + 4 AS col0
----
69
-24

query I rowsort
SELECT + - 44 + - 6 + - 91 + 20 * - 55
----
-1241

query I rowsort
SELECT + 82 - 27
----
55

query I rowsort
SELECT + 26 * + 41 + - 91
----
975

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT COUNT( * ) col1, 73 + - 33
----
1
40

skipif mysql # not compatible
query II rowsort label-2426
SELECT COUNT ( * ) col1, 73 + - 33
----
1
40

query I rowsort
SELECT ALL 66 * + + NULLIF ( - 90, 85 )
----
-5940

query II rowsort
SELECT + + 27, - 36 * - - 25 AS col2
----
27
-900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2429
SELECT 77 / + - 3 / CASE - + 82 WHEN - 89 * - + CASE 3 WHEN - + 56 THEN NULL ELSE 63 * - - 14 + - - 2 + - CAST( 76 AS SIGNED ) * + 54 * - COUNT( * ) * - ( + COUNT( * ) ) * + - CAST( + 54 AS SIGNED ) / - 22 + - 47 + + 70 * + 46 * CASE + - COALESCE ( - - 89, + - ( - - 94 ) * 45 ) WHEN - 35 * 32 THEN 94 WHEN + 0 + MAX( - 62 ) + + - 61 + 32 * 35 / 8 / - 50 THEN 72 END END THEN - CAST( + ( + 35 ) AS SIGNED ) END + ( 16 ) * + 81 * + 49 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT 77 / + - 3 / CASE - + 82 WHEN - 89 * - + CASE 3 WHEN - + 56 THEN NULL ELSE 63 * - - 14 + - - 2 + - CAST ( 76 AS INTEGER ) * + 54 * - COUNT ( * ) * - ( + COUNT ( * ) ) * + - CAST ( + 54 AS INTEGER ) / - 22 + - 47 + + 70 * + 46 * CASE + - COALESCE ( - - 89, + - ( - - 94 ) * 45 ) WHEN - 35 * 32 THEN 94 WHEN + 0 + MAX ( - 62 ) + + - 61 + 32 * 35 / 8 / - 50 THEN 72 END END THEN - CAST ( + ( + 35 ) AS INTEGER ) END + ( 16 ) * + 81 * + 49 + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 36 * - - 68
----
2448

query I rowsort
SELECT DISTINCT ( + 9 ) * - COALESCE ( + - 41, 62, + 73 ) AS col1
----
369

query I rowsort
SELECT DISTINCT + COALESCE ( - 86, + + 40 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2433
SELECT ALL - COALESCE ( + 92, + 82 * 12 + + + 50 + - + 27 * + - ( - ( + 98 ) ) * + 28 + - 41 + + ( + 87 ) ) / CAST( NULL AS SIGNED ) * - COUNT( * ) * - 68 + 29 + - - 50 * - - 91 / - - CAST( NULL AS SIGNED ) + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - COALESCE ( + 92, + 82 * 12 + + + 50 + - + 27 * + - ( - ( + 98 ) ) * + 28 + - 41 + + ( + 87 ) ) / CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 68 + 29 + - - 50 * - - 91 / - - CAST ( NULL AS INTEGER ) + 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2434
SELECT + 99 * - 10 + + 82 - + CAST( NULL AS SIGNED ), - 84 DIV + 4 - 78 col1, + COUNT( * ) AS col2
----
NULL
-99
1

skipif mysql # not compatible
query III rowsort label-2434
SELECT + 99 * - 10 + + 82 - + CAST ( NULL AS INTEGER ), - 84 / + 4 - 78 col1, + COUNT ( * ) AS col2
----
NULL
-99
1

query I rowsort
SELECT DISTINCT 49 * + + 40 + - 17 AS col0
----
1943

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL 17 * + + NULLIF ( 59, 84 ) + 58 * + 36 + - - COUNT( * ) AS col2
----
3092

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL 17 * + + NULLIF ( 59, 84 ) + 58 * + 36 + - - COUNT ( * ) AS col2
----
3092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2437
SELECT + CASE - 62 WHEN - - COUNT( DISTINCT - 11 ) THEN 78 + 8 * - COUNT( * ) WHEN + COUNT( ALL + 32 ) THEN - 19 ELSE - COUNT( * ) END DIV + - 30 * 32
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT + CASE - 62 WHEN - - COUNT ( DISTINCT - 11 ) THEN 78 + 8 * - COUNT ( * ) WHEN + COUNT ( ALL + 32 ) THEN - 19 ELSE - COUNT ( * ) END / + - 30 * 32
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + CASE + ( 24 ) WHEN COUNT( * ) * + 16 * - COUNT( * ) THEN - 69 WHEN + 55 THEN - - COUNT( * ) END * - 77 / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT + CASE + ( 24 ) WHEN COUNT ( * ) * + 16 * - COUNT ( * ) THEN - 69 WHEN + 55 THEN - - COUNT ( * ) END * - 77 / 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT DISTINCT + 30 DIV + + 49 * + + 72
----
0

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT + 30 / + + 49 * + + 72
----
0

query I rowsort
SELECT ALL 36 * - 20 + + 45 * + ( 74 ) AS col0
----
2610

onlyif mysql # aggregate syntax: 
query II rowsort label-2442
SELECT NULLIF ( - + 93, COUNT( DISTINCT - - 31 ) ) AS col1, - 92 + 32
----
-93
-60

skipif mysql # not compatible
query II rowsort label-2442
SELECT NULLIF ( - + 93, COUNT ( DISTINCT - - 31 ) ) AS col1, - 92 + 32
----
-93
-60

query I rowsort
SELECT - NULLIF ( + 36, - 94 ) * 45 col1
----
-1620

query II rowsort
SELECT COALESCE ( + 73, - 20 * 26 ) AS col0, 85 col2
----
73
85

query I rowsort
SELECT ALL + 68 * - 65 AS col2
----
-4420

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

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

query I rowsort
SELECT DISTINCT + 50 * - + 79
----
-3950

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2448
SELECT COALESCE ( + ( + + NULLIF ( - + CAST( - 27 AS SIGNED ), 96 ) ), + - 79 ), + 0 * + 80 AS col1
----
27
0

skipif mysql # not compatible
query II rowsort label-2448
SELECT COALESCE ( + ( + + NULLIF ( - + CAST ( - 27 AS INTEGER ), 96 ) ), + - 79 ), + 0 * + 80 AS col1
----
27
0

query I rowsort
SELECT - 42 * - - 84 AS col2
----
-3528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT ALL + 80 * ( - 76 ) DIV - 95 + + ( MAX( + 40 ) ) * 40
----
1664

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + 80 * ( - 76 ) / - 95 + + ( MAX ( + 40 ) ) * 40
----
1664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL + 80 * - + 37 * + 7 - CASE - 64 WHEN - 12 * 57 - + 37 * - 47 THEN 7 ELSE NULL END + + - NULLIF ( 51, 5 + - + 48 + - 16 + 15 / - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL + 80 * - + 37 * + 7 - CASE - 64 WHEN - 12 * 57 - + 37 * - 47 THEN 7 ELSE NULL END + + - NULLIF ( 51, 5 + - + 48 + - 16 + 15 / - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 83 + 86 * - 78 * - 19
----
127535

query I rowsort
SELECT - 8 - - 21 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT + + COUNT( * ) * - 9 * + 81 * - 23 col0
----
16767

skipif mysql # not compatible
query I rowsort label-2454
SELECT + + COUNT ( * ) * - 9 * + 81 * - 23 col0
----
16767

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2455
SELECT DISTINCT + 97 - - SUM( DISTINCT + 86 ) - CAST( NULL AS DECIMAL ) + - + 57 * - 93 * + 55 * - + 51 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT + 97 - - SUM ( DISTINCT + 86 ) - CAST ( NULL AS REAL ) + - + 57 * - 93 * + 55 * - + 51 + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + ( + + 44 ) * - + 93
----
-4092

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

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

query I rowsort
SELECT 57 + + 38 AS col2
----
95

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

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

query I rowsort
SELECT 18 - + 12
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT ALL - 3 * - COUNT( * ) DIV - 40 * - 78
----
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - 3 * - COUNT ( * ) / - 40 * - 78
----
0

query I rowsort
SELECT 49 + - + 46 / + CASE - 50 WHEN ( + 23 ) THEN 99 + - - 83 * 46 * - + 43 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT MIN( - - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-2463
SELECT MIN ( - - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT - COUNT( * ) * + 59 + + 77
----
18

skipif mysql # not compatible
query I rowsort label-2464
SELECT - COUNT ( * ) * + 59 + + 77
----
18

query I rowsort
SELECT 26 + - 67 col1
----
-41

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2467
SELECT ALL 86 DIV 45, - 61 col2
----
1
-61

skipif mysql # not compatible
query II rowsort label-2467
SELECT ALL 86 / 45, - 61 col2
----
1
-61

query I rowsort
SELECT ALL 30 + - 60
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT 67, + 77 * - MAX( DISTINCT - 0 ) * - + NULLIF ( + 81, - 70 ) * - 91 + MAX( 56 ) AS col2
----
67
56

skipif mysql # not compatible
query II rowsort label-2469
SELECT 67, + 77 * - MAX ( DISTINCT - 0 ) * - + NULLIF ( + 81, - 70 ) * - 91 + MAX ( 56 ) AS col2
----
67
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2470
SELECT + 80 AS col2, + 44 + SUM( - + 90 ) * 71
----
80
-6346

skipif mysql # not compatible
query II rowsort label-2470
SELECT + 80 AS col2, + 44 + SUM ( - + 90 ) * 71
----
80
-6346

query I rowsort
SELECT ( + - 49 ) * - + 94 + - 42 AS col1
----
4564

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT 53 - 19 * MAX( - 44 ) + + 88 + + 61
----
1038

skipif mysql # not compatible
query I rowsort label-2472
SELECT 53 - 19 * MAX ( - 44 ) + + 88 + + 61
----
1038

query I rowsort
SELECT ALL 46 + 35 AS col1
----
81

query II rowsort
SELECT ( + NULLIF ( + - 5, 88 ) ) - 72 AS col2, 82 col2
----
-77
82

query I rowsort
SELECT 98 * + 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL - 8 - - + ( - 36 ) + COUNT( - + 84 )
----
-43

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL - 8 - - + ( - 36 ) + COUNT ( - + 84 )
----
-43

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

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

query I rowsort
SELECT 14 * - - 49 col0
----
686

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT DISTINCT - 91 DIV ( 13 )
----
-7

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT - 91 / ( 13 )
----
-7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT ALL - 82 DIV - 59 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL - 82 / - 59 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2482
SELECT 97 + - ( + ( COUNT( * ) ) + CAST( - 7 AS SIGNED ) ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-2482
SELECT 97 + - ( + ( COUNT ( * ) ) + CAST ( - 7 AS INTEGER ) ) AS col2
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT 33 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-2483
SELECT 33 / 23
----
1

query I rowsort
SELECT 4 * - 3
----
-12

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

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

query I rowsort
SELECT ALL + 10 * + 68 AS col0
----
680

query I rowsort
SELECT DISTINCT + CASE - 19 WHEN 28 THEN 25 + - 89 WHEN - 97 THEN 90 + 23 * 97 ELSE - 85 END * + 98 AS col2
----
-8330

query I rowsort
SELECT DISTINCT + 1 * - 91 AS col2
----
-91

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

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

query I rowsort
SELECT 58 * - 64 AS col2
----
-3712

query I rowsort
SELECT 29 + + 36 col1
----
65

query I rowsort
SELECT 38 + 31 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT + 2 + + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT + 2 + + COUNT ( * ) AS col0
----
3

query I rowsort
SELECT ALL - 47 * - 92
----
4324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT ALL - 75 + - CAST( 99 AS SIGNED )
----
-174

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - 75 + - CAST ( 99 AS INTEGER )
----
-174

query I rowsort
SELECT DISTINCT 48 * 61 AS col2
----
2928

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

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

query I rowsort
SELECT 38 + 11
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT 73 + + 66 DIV + 98
----
73

skipif mysql # not compatible
query I rowsort label-2499
SELECT 73 + + 66 / + 98
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2500
SELECT ALL - 39 + 42 DIV MAX( - 53 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL - 39 + 42 / MAX ( - 53 ) AS col0
----
-39

query I rowsort
SELECT DISTINCT - 30 * 59 AS col0
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT + SUM( 94 ) * 87 + + 51 * 60
----
11238

skipif mysql # not compatible
query I rowsort label-2502
SELECT + SUM ( 94 ) * 87 + + 51 * 60
----
11238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2503
SELECT COUNT( 74 ) DIV + 70 + - 16 * + 12
----
-192

skipif mysql # not compatible
query I rowsort label-2503
SELECT COUNT ( 74 ) / + 70 + - 16 * + 12
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ( - 75 ) * + 23 - COUNT( * ) * 9 AS col0
----
-1734

skipif mysql # not compatible
query I rowsort label-2504
SELECT ( - 75 ) * + 23 - COUNT ( * ) * 9 AS col0
----
-1734

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT MAX( 12 ) + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2506
SELECT MAX ( 12 ) + COUNT ( * ) AS col2
----
13

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

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

query I rowsort
SELECT DISTINCT + 67 * - 62 AS col2
----
-4154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2509
SELECT MAX( 18 ) DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT MAX ( 18 ) / 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT COALESCE ( 5, 40 * + ( - 30 * - 16 ) + - 9 ) + - CAST( COUNT( * ) - + 98 AS SIGNED ) * + 48 col0
----
4661

skipif mysql # not compatible
query I rowsort label-2510
SELECT COALESCE ( 5, 40 * + ( - 30 * - 16 ) + - 9 ) + - CAST ( COUNT ( * ) - + 98 AS INTEGER ) * + 48 col0
----
4661

query I rowsort
SELECT 17 + + 69
----
86

query I rowsort
SELECT 88 * + 94 AS col0
----
8272

query I rowsort
SELECT - 70 * 94 + 91 AS col0
----
-6489

query I rowsort
SELECT DISTINCT + 30 * - 82
----
-2460

query I rowsort
SELECT DISTINCT - + 72 * 43
----
-3096

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL COUNT( * ) * - COALESCE ( 22, 1 )
----
-22

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL COUNT ( * ) * - COALESCE ( 22, 1 )
----
-22

query I rowsort
SELECT + 99 * - 74 AS col2
----
-7326

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL + MAX( ALL 55 ) * 44 AS col0
----
2420

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + MAX ( ALL 55 ) * 44 AS col0
----
2420

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2520
SELECT DISTINCT + COALESCE ( - CASE - CASE 86 WHEN + 23 THEN NULL ELSE CAST( MAX( DISTINCT + 41 ) AS SIGNED ) * + 86 END WHEN - 47 THEN ( COALESCE ( COALESCE ( 34, 56 DIV + 34 ), 18 ) ) END, - SUM( - 97 ) + - ( - 99 ), - 66 ) col0
----
196

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT + COALESCE ( - CASE - CASE 86 WHEN + 23 THEN NULL ELSE CAST ( MAX ( DISTINCT + 41 ) AS INTEGER ) * + 86 END WHEN - 47 THEN ( COALESCE ( COALESCE ( 34, 56 / + 34 ), 18 ) ) END, - SUM ( - 97 ) + - ( - 99 ), - 66 ) col0
----
196

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

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

query I rowsort
SELECT + + ( 59 ) * NULLIF ( 14, + 80 )
----
826

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

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

query I rowsort
SELECT + 2 + 84 AS col1
----
86

query I rowsort
SELECT 7 * + 79 - 12
----
541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 36 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 36 * 96
----
NULL

query I rowsort
SELECT ALL + + 71 * - 64 AS col1
----
-4544

query I rowsort
SELECT ALL 3 + 82 * + 14
----
1151

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT ALL - - 58 + 33 DIV 79
----
58

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - - 58 + 33 / 79
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT - + COALESCE ( - 87, + 25 + 62 ) + MAX( ALL + 31 ) * 60
----
1947

skipif mysql # not compatible
query I rowsort label-2530
SELECT - + COALESCE ( - 87, + 25 + 62 ) + MAX ( ALL + 31 ) * 60
----
1947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2531
SELECT - CASE + 70 WHEN - 5 * 1 THEN ( + 87 ) DIV COUNT( * ) ELSE 99 * 38 END + CAST( - 98 AS SIGNED )
----
-3860

skipif mysql # not compatible
query I rowsort label-2531
SELECT - CASE + 70 WHEN - 5 * 1 THEN ( + 87 ) / COUNT ( * ) ELSE 99 * 38 END + CAST ( - 98 AS INTEGER )
----
-3860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2532
SELECT ALL - 44 + 49 + COALESCE ( - 4, - ( + CASE + 77 WHEN + MIN( ALL - 18 ) + 75 / 80 THEN 22 - + 15 * 75 WHEN + CAST( NULL AS SIGNED ) THEN + NULLIF ( 88, 55 ) * - 79 END ) )
----
1

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - 44 + 49 + COALESCE ( - 4, - ( + CASE + 77 WHEN + MIN ( ALL - 18 ) + 75 / 80 THEN 22 - + 15 * 75 WHEN + CAST ( NULL AS INTEGER ) THEN + NULLIF ( 88, 55 ) * - 79 END ) )
----
1

query I rowsort
SELECT DISTINCT - 26 - 95 * 10
----
-976

query I rowsort
SELECT ALL - 8 - 31
----
-39

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT 17 / + + 34 - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT - MIN( + CAST( 78 AS SIGNED ) ) * - 78
----
6084

skipif mysql # not compatible
query I rowsort label-2538
SELECT - MIN ( + CAST ( 78 AS INTEGER ) ) * - 78
----
6084

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL COUNT( ALL - 65 ) * 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL COUNT ( ALL - 65 ) * 48 AS col2
----
48

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT - COALESCE ( 84, 18 DIV + 66 ) * 80 AS col2
----
-6720

skipif mysql # not compatible
query I rowsort label-2542
SELECT - COALESCE ( 84, 18 / + 66 ) * 80 AS col2
----
-6720

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT + 69 DIV + 10 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2543
SELECT + 69 / + 10 AS col2
----
6

query I rowsort
SELECT ( - - 94 ) col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2545
SELECT MAX( 26 ) * - 25 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT MAX ( 26 ) * - 25 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 91 * 15
----
1365

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2547
SELECT - - CAST( NULL AS DECIMAL ) / + - 58 + - NULLIF ( + CAST( 64 AS DECIMAL ) + - 88 * 64, + 5 ) * 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT - - CAST ( NULL AS REAL ) / + - 58 + - NULLIF ( + CAST ( 64 AS REAL ) + - 88 * 64, + 5 ) * 84 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + - COUNT ( ALL - 76 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT - MIN( ALL - 37 ) * 70 + + 13 AS col1
----
2603

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT - MIN ( ALL - 37 ) * 70 + + 13 AS col1
----
2603

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT NULLIF ( + 96, - 9 + + COUNT( * ) ) * - 12 + + 21
----
-1131

skipif mysql # not compatible
query I rowsort label-2551
SELECT NULLIF ( + 96, - 9 + + COUNT ( * ) ) * - 12 + + 21
----
-1131

query I rowsort
SELECT - 28 * + 12 - 41
----
-377

query I rowsort
SELECT + COALESCE ( - 65, + 40 ) * + 86
----
-5590

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT DISTINCT + ( - 13 ) * - 57 + ( + 73 + 44 ) DIV 83 AS col2
----
742

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT + ( - 13 ) * - 57 + ( + 73 + 44 ) / 83 AS col2
----
742

query I rowsort
SELECT + 90 + 5
----
95

query I rowsort
SELECT ALL 30 * 45
----
1350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT - COUNT( + 92 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2558
SELECT - COUNT ( + 92 ) AS col0
----
-1

query I rowsort
SELECT ALL + 30 * + 69 + + 52 AS col2
----
2122

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT + COUNT( * ) * - + 33 + + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2560
SELECT + COUNT ( * ) * - + 33 + + COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT + CASE + - MAX( + 27 ) WHEN - NULLIF ( 70, 37 ) + - 50 THEN NULL WHEN COUNT( + 79 ) THEN 56 END + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT + CASE + - MAX ( + 27 ) WHEN - NULLIF ( 70, 37 ) + - 50 THEN NULL WHEN COUNT ( + 79 ) THEN 56 END + 92
----
NULL

query I rowsort
SELECT + - 20 + 33 col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT DISTINCT COALESCE ( - COUNT( * ), 38, 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT COALESCE ( - COUNT ( * ), 38, 26 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT + SUM( 59 ) + + + 31 + 41 * ( 74 )
----
3124

skipif mysql # not compatible
query I rowsort label-2564
SELECT + SUM ( 59 ) + + + 31 + 41 * ( 74 )
----
3124

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + 53 + COALESCE ( + - COUNT( * ), - CASE 66 WHEN - NULLIF ( - 32, - 24 * ( 67 * 20 ) ) THEN - ( - 60 ) END + 80, - NULLIF ( 85, - 95 * 15 + + COUNT( * ) ) * 76 + 41 * COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-2565
SELECT + 53 + COALESCE ( + - COUNT ( * ), - CASE 66 WHEN - NULLIF ( - 32, - 24 * ( 67 * 20 ) ) THEN - ( - 60 ) END + 80, - NULLIF ( 85, - 95 * 15 + + COUNT ( * ) ) * 76 + 41 * COUNT ( * ) )
----
52

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

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

query I rowsort
SELECT + ( - 51 ) + 51 + 66 AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2568
SELECT ALL NULLIF ( + + CAST( NULL AS SIGNED ), 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL NULLIF ( + + CAST ( NULL AS INTEGER ), 35 )
----
NULL

query I rowsort
SELECT ALL - 13 * - 67 AS col2
----
871

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

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

query I rowsort
SELECT ALL ( - - 42 )
----
42

query I rowsort
SELECT - 58 * + - ( + 55 )
----
3190

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT ALL 64 * MIN( - 13 )
----
-832

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL 64 * MIN ( - 13 )
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT DISTINCT CASE - 42 WHEN - + 85 THEN + COUNT( * ) + - 76 WHEN CASE 71 WHEN 77 THEN NULL WHEN 13 THEN 99 ELSE + ( + 34 ) END * 52 THEN 7 ELSE 44 END
----
44

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT CASE - 42 WHEN - + 85 THEN + COUNT ( * ) + - 76 WHEN CASE 71 WHEN 77 THEN NULL WHEN 13 THEN 99 ELSE + ( + 34 ) END * 52 THEN 7 ELSE 44 END
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT + SUM( + 96 ) * + - 83 AS col1
----
-7968

skipif mysql # not compatible
query I rowsort label-2575
SELECT + SUM ( + 96 ) * + - 83 AS col1
----
-7968

query I rowsort
SELECT ALL COALESCE ( - - 52, + 14 + 66, + 56 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2577
SELECT + COALESCE ( + + CAST( NULL AS SIGNED ), - 62 * + 7 ) * + COUNT( * )
----
-434

skipif mysql # not compatible
query I rowsort label-2577
SELECT + COALESCE ( + + CAST ( NULL AS INTEGER ), - 62 * + 7 ) * + COUNT ( * )
----
-434

query I rowsort
SELECT - 28 * + 90
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL - MIN( DISTINCT - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - MIN ( DISTINCT - 31 )
----
31

query I rowsort
SELECT 7 + - - 50
----
57

query II rowsort
SELECT ALL - 42, 51 AS col2
----
-42
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT ALL + ( + 99 ) DIV + 43 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + ( + 99 ) / + 43 AS col0
----
2

query I rowsort
SELECT ALL + 51 * - - 41 * + - 28 AS col1
----
-58548

query I rowsort
SELECT 49 * + 61
----
2989

query I rowsort
SELECT DISTINCT + + 54 + - 94 + 16 * - 8 AS col0
----
-168

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2587
SELECT ALL - CASE - 76 WHEN + COUNT( * ) THEN 42 * + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL - CASE - 76 WHEN + COUNT ( * ) THEN 42 * + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT - COUNT( DISTINCT - ( - 42 ) ) * + 40 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT - COUNT ( DISTINCT - ( - 42 ) ) * + 40 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 8 AS col0
----
NULL

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

query I rowsort
SELECT ALL - + NULLIF ( 48, - 94 ) + - 58
----
-106

query II rowsort
SELECT 92, - 28 * 34 + 59 AS col0
----
92
-893

query I rowsort
SELECT ALL + 4 + - 39
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + ( - 16 ) * - COUNT( ALL 35 ) * 18 AS col1
----
288

skipif mysql # not compatible
query I rowsort label-2593
SELECT + ( - 16 ) * - COUNT ( ALL 35 ) * 18 AS col1
----
288

query I rowsort
SELECT 98 - - 96
----
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT 33 * + - CAST( NULL AS SIGNED ) + 79 * COALESCE ( + 71, MAX( + 99 ), COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT 33 * + - CAST ( NULL AS INTEGER ) + 79 * COALESCE ( + 71, MAX ( + 99 ), COUNT ( * ) ) col0
----
NULL

query I rowsort
SELECT ALL 21 - 72 + - 31 - 39 * + ( - 81 )
----
3077

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT - SUM( DISTINCT - - 69 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-2598
SELECT - SUM ( DISTINCT - - 69 ) col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT 26 * 45 - - - COUNT( DISTINCT - ( 23 ) )
----
1169

skipif mysql # not compatible
query I rowsort label-2599
SELECT 26 * 45 - - - COUNT ( DISTINCT - ( 23 ) )
----
1169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT ALL + 26 - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) * COUNT( * ) * + CAST( NULL AS SIGNED ) + 63 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL + 26 - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 63 col1
----
NULL

query I rowsort
SELECT 98 + ( 4 )
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2602
SELECT ( MIN( ALL - + 3 ) ) DIV + - 22
----
0

skipif mysql # not compatible
query I rowsort label-2602
SELECT ( MIN ( ALL - + 3 ) ) / + - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT SUM( ALL - 76 ) * + 80 + - 53 AS col0
----
-6133

skipif mysql # not compatible
query I rowsort label-2603
SELECT SUM ( ALL - 76 ) * + 80 + - 53 AS col0
----
-6133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2604
SELECT DISTINCT 87 + - SUM( DISTINCT 45 ) - 83 * ( 58 * CAST( 86 AS SIGNED ) )
----
-413962

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT 87 + - SUM ( DISTINCT 45 ) - 83 * ( 58 * CAST ( 86 AS INTEGER ) )
----
-413962

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT ALL 51 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL 51 / - 38
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT DISTINCT 69 + + 52 + MIN( ALL - 71 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT 69 + + 52 + MIN ( ALL - 71 ) AS col0
----
50

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

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT 81 / + - ( + - COUNT ( * ) ) col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT + MIN( NULLIF ( + 60, - 47 ) ) + - 50 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + MIN ( NULLIF ( + 60, - 47 ) ) + - 50 AS col0
----
10

query I rowsort
SELECT ALL - 19 + 7 col2
----
-12

query I rowsort
SELECT DISTINCT + ( + + 72 ) * + 95 * + 87
----
595080

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT + NULLIF ( + 57, 66 ) DIV 48 + 25 DIV 11
----
3

skipif mysql # not compatible
query I rowsort label-2612
SELECT + NULLIF ( + 57, 66 ) / 48 + 25 / 11
----
3

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

query I rowsort
SELECT - 6 * + + 49 AS col2
----
-294

query I rowsort
SELECT + + NULLIF ( + ( + - 90 ), + 31 ) AS col1
----
-90

query II rowsort
SELECT ALL - ( + 54 ) AS col2, + 55 * + - 37 col0
----
-54
-2035

query I rowsort
SELECT - + 8 * + 53 + + - 67 + - 20 AS col2
----
-511

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT + - 27 * 38 * - COUNT( * ) * + ( MAX( DISTINCT 27 ) )
----
27702

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT + - 27 * 38 * - COUNT ( * ) * + ( MAX ( DISTINCT 27 ) )
----
27702

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT ALL - 33 - - + 75 * - - COUNT( * ) * - 75
----
-5658

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL - 33 - - + 75 * - - COUNT ( * ) * - 75
----
-5658

query I rowsort
SELECT DISTINCT + 75 * - ( - 42 )
----
3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2621
SELECT 13 + - 86 * - COUNT( * ) + - CASE 13 WHEN 9 + + 76 THEN 29 + 96 * - 56 WHEN 96 THEN + 73 + + 67 DIV + 17 ELSE + 61 END * + 62 AS col0
----
-3683

skipif mysql # not compatible
query I rowsort label-2621
SELECT 13 + - 86 * - COUNT ( * ) + - CASE 13 WHEN 9 + + 76 THEN 29 + 96 * - 56 WHEN 96 THEN + 73 + + 67 / + 17 ELSE + 61 END * + 62 AS col0
----
-3683

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

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

query I rowsort
SELECT ALL + 73 - 24 * 48 AS col2
----
-1079

query I rowsort
SELECT - 93 * ( ( - 64 ) ) - + 69 * - 69 + + 46 col2
----
10759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT + 75 DIV + COUNT( * ) * ( + - ( + COUNT( * ) ) ) + 62 * - 82 AS col0
----
-5159

skipif mysql # not compatible
query I rowsort label-2625
SELECT + 75 / + COUNT ( * ) * ( + - ( + COUNT ( * ) ) ) + 62 * - 82 AS col0
----
-5159

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT 33 * + 21 * + 42 + COUNT( + 64 ) + - 58 AS col1
----
29049

skipif mysql # not compatible
query I rowsort label-2626
SELECT 33 * + 21 * + 42 + COUNT ( + 64 ) + - 58 AS col1
----
29049

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

query I rowsort
SELECT ( + COALESCE ( + 78, - - 48 + - 55 ) ) * + 98 + 78
----
7722

query I rowsort
SELECT ALL - 94 * - - CASE - 96 WHEN - 62 + 28 * + 30 THEN NULL ELSE 25 + - 25 END * + 46
----
0

query I rowsort
SELECT DISTINCT + 40 * - + 40
----
-1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2631
SELECT ALL 18 DIV COALESCE ( - 33, ( COUNT( * ) ) * COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL 18 / COALESCE ( - 33, ( COUNT ( * ) ) * COUNT ( * ) )
----
0

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

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL MAX ( ALL - 93 )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT 63 + 44 DIV - 21
----
61

skipif mysql # not compatible
query I rowsort label-2633
SELECT 63 + 44 / - 21
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT COALESCE ( + + CAST( NULL AS SIGNED ), - COALESCE ( - 58, 54 + CAST( 59 AS SIGNED ) ) + - 59, - 73 ) * 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2634
SELECT COALESCE ( + + CAST ( NULL AS INTEGER ), - COALESCE ( - 58, 54 + CAST ( 59 AS INTEGER ) ) + - 59, - 73 ) * 27 AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT 88 + - + CAST( - 62 AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-2635
SELECT 88 + - + CAST ( - 62 AS INTEGER )
----
150

query I rowsort
SELECT ALL 34 + + - 15 AS col1
----
19

query I rowsort
SELECT - COALESCE ( + + 32, + 84 * 51 ) + - - 35
----
3

query I rowsort
SELECT ALL - 50 + + 33 - 93 AS col2
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT - 16 + + CASE + - COUNT( * ) WHEN - + CASE - 95 WHEN - 40 THEN - 13 ELSE NULL END THEN + CAST( + 83 AS SIGNED ) * + ( + 28 + 93 ) + 19 WHEN AVG ( 69 ) / 47 + CASE 54 WHEN + MAX( DISTINCT - 67 ) THEN 77 + + 47 END THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT - 16 + + CASE + - COUNT ( * ) WHEN - + CASE - 95 WHEN - 40 THEN - 13 ELSE NULL END THEN + CAST ( + 83 AS INTEGER ) * + ( + 28 + 93 ) + 19 WHEN AVG ( 69 ) / 47 + CASE 54 WHEN + MAX ( DISTINCT - 67 ) THEN 77 + + 47 END THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 28 + - - 72 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT DISTINCT - 78 * + - CASE - - 57 WHEN - + 99 / + 20 * 77 THEN - COALESCE ( - COUNT( * ), + 24 * ( 40 * + 3 ) + 90 ) * - 5 WHEN 39 THEN 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT - 78 * + - CASE - - 57 WHEN - + 99 / + 20 * 77 THEN - COALESCE ( - COUNT ( * ), + 24 * ( 40 * + 3 ) + 90 ) * - 5 WHEN 39 THEN 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL COALESCE ( + 70, + 74 ) + - 89 + - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL COALESCE ( + 70, + 74 ) + - 89 + - COUNT ( * ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT + 10 - NULLIF ( 30, - COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-2643
SELECT + 10 - NULLIF ( 30, - COUNT ( * ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - 80 + - + 98 + + NULLIF ( 64, + MAX( DISTINCT + 37 ) )
----
-114

skipif mysql # not compatible
query I rowsort label-2644
SELECT - 80 + - + 98 + + NULLIF ( 64, + MAX ( DISTINCT + 37 ) )
----
-114

query I rowsort
SELECT + 62 + - 15 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2646
SELECT ALL CASE WHEN NOT CAST( NULL AS SIGNED ) >= - + 88 * + 56 THEN NULL ELSE 14 END + - 70 * COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL CASE WHEN NOT CAST ( NULL AS INTEGER ) >= - + 88 * + 56 THEN NULL ELSE 14 END + - 70 * COUNT ( * )
----
-56

query II rowsort
SELECT DISTINCT 54 AS col1, - 29
----
54
-29

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

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

query I rowsort
SELECT + + 98 + 70 col1
----
168

query I rowsort
SELECT + 99 * + - 27 AS col2
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT + COALESCE ( - 8, + 16 ) * MAX( ALL - - 56 ) + MIN( DISTINCT 47 )
----
-401

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + COALESCE ( - 8, + 16 ) * MAX ( ALL - - 56 ) + MIN ( DISTINCT 47 )
----
-401

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT ALL + 54 * 50 DIV 22 * + 93
----
11346

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + 54 * 50 / 22 * + 93
----
11346

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL COUNT( * ) * 1 * - + 32 * - 62 - 58
----
1926

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL COUNT ( * ) * 1 * - + 32 * - 62 - 58
----
1926

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT + MAX( - - 82 ) * - 70 AS col1
----
-5740

skipif mysql # not compatible
query I rowsort label-2654
SELECT + MAX ( - - 82 ) * - 70 AS col1
----
-5740

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT DISTINCT - 26 DIV - + 90 * - - 48 col2
----
0

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - 26 / - + 90 * - - 48 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT ALL - 32 * + 72 + 12 * + 79 DIV COUNT( * ) - 5 * + ( 3 )
----
-1371

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - 32 * + 72 + 12 * + 79 / COUNT ( * ) - 5 * + ( 3 )
----
-1371

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL 53 * - - CASE + AVG ( DISTINCT - 79 ) WHEN + 81 THEN NULL WHEN COUNT( * ) THEN + ( + 60 ) * + SUM( 3 ) WHEN COUNT( * ) THEN + 84 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL 53 * - - CASE + AVG ( DISTINCT - 79 ) WHEN + 81 THEN NULL WHEN COUNT ( * ) THEN + ( + 60 ) * + SUM ( 3 ) WHEN COUNT ( * ) THEN + 84 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT DISTINCT - - MAX( 84 ) * + COUNT( * ) + - 4 + + - SUM( ALL 41 ) + 24 * + 7 * - 20 * - ( - 83 ) - 91 * - 41 AS col1
----
-275110

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT - - MAX ( 84 ) * + COUNT ( * ) + - 4 + + - SUM ( ALL 41 ) + 24 * + 7 * - 20 * - ( - 83 ) - 91 * - 41 AS col1
----
-275110

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + CASE + 99 WHEN - + 32 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT + CASE + 99 WHEN - + 32 THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT + + 7 + - COUNT( - 35 ) + - - ( - + MIN( - 80 ) ) + - 95 * - 35 AS col1
----
3411

skipif mysql # not compatible
query I rowsort label-2660
SELECT + + 7 + - COUNT ( - 35 ) + - - ( - + MIN ( - 80 ) ) + - 95 * - 35 AS col1
----
3411

query I rowsort
SELECT ALL + 3 * - 35 - - 47 + + 99 * + + 29 * 69 AS col2
----
198041

query I rowsort
SELECT + - 96 * 8 + - 27 * + 99 col1
----
-3441

onlyif mysql # aggregate syntax: 
query II rowsort label-2663
SELECT + 17 AS col0, + MAX( ALL - 2 ) AS col2
----
17
-2

skipif mysql # not compatible
query II rowsort label-2663
SELECT + 17 AS col0, + MAX ( ALL - 2 ) AS col2
----
17
-2

query I rowsort
SELECT + - 53 * - 55 + - ( + + 62 ) + + - 35 + 99 * - ( - 93 ) AS col1
----
12025

query I rowsort
SELECT ALL 42 * 36 * + + 77 AS col0
----
116424

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT - 83 DIV - 12 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2668
SELECT - 83 / - 12 AS col1
----
6

query I rowsort
SELECT - 0 + + 48 AS col1
----
48

query II rowsort
SELECT + 73, 49 AS col2
----
73
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - MAX( 65 ) * - 68 + - 19 AS col1
----
4401

skipif mysql # not compatible
query I rowsort label-2672
SELECT - MAX ( 65 ) * - 68 + - 19 AS col1
----
4401

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

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

query I rowsort
SELECT - 53 + + 53
----
0

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

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

query II rowsort
SELECT - 87 AS col0, - 45
----
-87
-45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT - 17 DIV - - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2678
SELECT - 17 / - - 55 AS col0
----
0

query I rowsort
SELECT ALL - 18 + + 36 col0
----
18

query I rowsort
SELECT DISTINCT - 46 * - 75 AS col0
----
3450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2681
SELECT 28 AS col0, 65 * + CAST( 66 AS SIGNED ) * - 53 + - CAST( 39 AS SIGNED ) + + 90 * + 55 AS col1
----
28
-222459

skipif mysql # not compatible
query II rowsort label-2681
SELECT 28 AS col0, 65 * + CAST ( 66 AS INTEGER ) * - 53 + - CAST ( 39 AS INTEGER ) + + 90 * + 55 AS col1
----
28
-222459

query II rowsort
SELECT - 50, 25 AS col2
----
-50
25

query I rowsort
SELECT - 63 * + - NULLIF ( - 33, - + 99 )
----
-2079

query I rowsort
SELECT - 74 - 61
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2685
SELECT ALL - - SUM( DISTINCT + CAST( + + 48 AS SIGNED ) ) * 63 DIV + 82 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL - - SUM ( DISTINCT + CAST ( + + 48 AS INTEGER ) ) * 63 / + 82 AS col2
----
36

query I rowsort
SELECT - 27 * + 31 AS col2
----
-837

query I rowsort
SELECT ALL - 47 - - + 20 * + 75 + 19 * - 36 AS col2
----
769

query I rowsort
SELECT ALL + 66 - + 44 * - - 21 AS col1
----
-858

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

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

query I rowsort
SELECT ALL - 97 * - 85 + - 88 - 28 AS col2
----
8129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2691
SELECT - - 42 + CASE - + ( + CAST( NULL AS SIGNED ) ) WHEN - + 12 THEN COUNT( * ) WHEN ( - 35 ) THEN - 14 * 56 + 7 / MAX( DISTINCT 73 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT - - 42 + CASE - + ( + CAST ( NULL AS INTEGER ) ) WHEN - + 12 THEN COUNT ( * ) WHEN ( - 35 ) THEN - 14 * 56 + 7 / MAX ( DISTINCT 73 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT - NULLIF ( 11, - COALESCE ( - + MIN( DISTINCT + + 5 ), + COUNT( * ) + - 39 ) + 72 ) * ( + COUNT( * ) + 63 ) AS col2
----
-704

skipif mysql # not compatible
query I rowsort label-2692
SELECT - NULLIF ( 11, - COALESCE ( - + MIN ( DISTINCT + + 5 ), + COUNT ( * ) + - 39 ) + 72 ) * ( + COUNT ( * ) + 63 ) AS col2
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + 0 * - COALESCE ( + - ( - + 99 ), 29, - 24 ) * COUNT( + 91 * NULLIF ( 53, + 28 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2693
SELECT + 0 * - COALESCE ( + - ( - + 99 ), 29, - 24 ) * COUNT ( + 91 * NULLIF ( 53, + 28 ) )
----
0

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

query II rowsort
SELECT + 24 AS col2, + NULLIF ( - - 36, - 38 * 73 - + - 69 + - 63 * 84 + - 82 ) * 5 AS col0
----
24
180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT + + 59 * - + 84 + + - COUNT( * ) AS col1
----
-4957

skipif mysql # not compatible
query I rowsort label-2697
SELECT + + 59 * - + 84 + + - COUNT ( * ) AS col1
----
-4957

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT + - COUNT( DISTINCT + 19 ) * - 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-2699
SELECT + - COUNT ( DISTINCT + 19 ) * - 76 AS col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT DISTINCT 28 * + - COUNT( * ) AS col1, + 16 * ( + 16 ) * + + 99 - 88 * + 33 + - 65 * 10 AS col1
----
-28
21790

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT 28 * + - COUNT ( * ) AS col1, + 16 * ( + 16 ) * + + 99 - 88 * + 33 + - 65 * 10 AS col1
----
-28
21790

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT SUM( - 72 ) * - COUNT( * ) + - ( - 42 ) + 51
----
165

skipif mysql # not compatible
query I rowsort label-2701
SELECT SUM ( - 72 ) * - COUNT ( * ) + - ( - 42 ) + 51
----
165

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

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

query I rowsort
SELECT - 91 * + + 24 + + 43 + - 59 * 50 col1
----
-5091

onlyif mysql # aggregate syntax: 
query II rowsort label-2704
SELECT + ( + 55 ), - COUNT( * ) * 33 * + 75 * - 81 AS col2
----
55
200475

skipif mysql # not compatible
query II rowsort label-2704
SELECT + ( + 55 ), - COUNT ( * ) * 33 * + 75 * - 81 AS col2
----
55
200475

query I rowsort
SELECT DISTINCT 64 * - + 80
----
-5120

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT DISTINCT + 87 + - - 72 DIV - 94
----
87

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT + 87 + - - 72 / - 94
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2707
SELECT DISTINCT CASE - 80 WHEN 86 THEN NULL ELSE - - 56 - 87 + + 52 * - CAST( NULL AS SIGNED ) END + COALESCE ( + 15, - 99 * + 31, - SUM( DISTINCT + 1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT CASE - 80 WHEN 86 THEN NULL ELSE - - 56 - 87 + + 52 * - CAST ( NULL AS INTEGER ) END + COALESCE ( + 15, - 99 * + 31, - SUM ( DISTINCT + 1 ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT DISTINCT ( 71 ) + + + 13 DIV - + 69
----
71

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT ( 71 ) + + + 13 / - + 69
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT COUNT( * ) + - 42 + - + 3 * + 46 * + 75 * - MAX( + ( 82 ) )
----
848659

skipif mysql # not compatible
query I rowsort label-2710
SELECT COUNT ( * ) + - 42 + - + 3 * + 46 * + 75 * - MAX ( + ( 82 ) )
----
848659

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2711
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 14 * + 6 * + + 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT + CAST ( NULL AS REAL ) * 14 * + 6 * + + 65 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT 23 + - + COUNT( - - 46 )
----
22

skipif mysql # not compatible
query I rowsort label-2712
SELECT 23 + - + COUNT ( - - 46 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT NULLIF ( + 7, + 48 + - + 21 * 47 * - ( - COUNT( * ) ) + 33 ) * 90 col2
----
630

skipif mysql # not compatible
query I rowsort label-2713
SELECT NULLIF ( + 7, + 48 + - + 21 * 47 * - ( - COUNT ( * ) ) + 33 ) * 90 col2
----
630

query I rowsort
SELECT 32 + + + 27 col1
----
59

query I rowsort
SELECT NULLIF ( - + ( + 62 ), + 39 ) + - 57 AS col2
----
-119

query I rowsort
SELECT ALL + + 54 * + 73
----
3942

query I rowsort
SELECT DISTINCT - + 91 * - 67 - + 24 + + + 5
----
6078

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT + COALESCE ( 69, - COUNT( * ) * - 44, + 64 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2718
SELECT + COALESCE ( 69, - COUNT ( * ) * - 44, + 64 ) AS col2
----
69

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

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

query I rowsort
SELECT ALL - + 41 - + 17 AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT - 1 * CAST( - 75 AS SIGNED ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-2721
SELECT - 1 * CAST ( - 75 AS INTEGER ) AS col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT 49 DIV - 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2722
SELECT 49 / - 46 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2723
SELECT + 84 DIV 71, 24 * - 18 + 13 + + 48 AS col1
----
1
-371

skipif mysql # not compatible
query II rowsort label-2723
SELECT + 84 / 71, 24 * - 18 + 13 + + 48 AS col1
----
1
-371

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT + 41 + MIN( DISTINCT + 61 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-2724
SELECT + 41 + MIN ( DISTINCT + 61 ) AS col1
----
102

query I rowsort
SELECT DISTINCT 3 + - 51 AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2726
SELECT DISTINCT + MAX( + - ( + 1 ) ) * 34 + + - CAST( NULL AS SIGNED ) AS col1, + COUNT( DISTINCT - 24 ) / 41 + 68 * - CASE + 74 + - 34 * 20 WHEN 67 THEN NULL WHEN MIN( + 97 ) + CAST( - 84 - + 15 AS SIGNED ) * 27 THEN 56 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2726
SELECT DISTINCT + MAX ( + - ( + 1 ) ) * 34 + + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( DISTINCT - 24 ) / 41 + 68 * - CASE + 74 + - 34 * 20 WHEN 67 THEN NULL WHEN MIN ( + 97 ) + CAST ( - 84 - + 15 AS INTEGER ) * 27 THEN 56 ELSE NULL END
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT 67 * COALESCE ( 93, - + 39 - - + COUNT( * ), + CAST( NULL AS SIGNED ) ) + + - ( - COUNT( * ) ) * 42 AS col2
----
6273

skipif mysql # not compatible
query I rowsort label-2727
SELECT 67 * COALESCE ( 93, - + 39 - - + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) + + - ( - COUNT ( * ) ) * 42 AS col2
----
6273

onlyif mysql # aggregate syntax: 
query II rowsort label-2728
SELECT DISTINCT - SUM( + - 12 ) AS col0, + ( + 88 ) AS col1
----
12
88

skipif mysql # not compatible
query II rowsort label-2728
SELECT DISTINCT - SUM ( + - 12 ) AS col0, + ( + 88 ) AS col1
----
12
88

query II rowsort
SELECT + 17 AS col1, + 70 col2
----
17
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2730
SELECT ALL + 63 * - + 12 DIV + - COUNT( * ) AS col0
----
756

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL + 63 * - + 12 / + - COUNT ( * ) AS col0
----
756

onlyif mysql # aggregate syntax: 
query II rowsort label-2731
SELECT 62 AS col1, 72 + + SUM( ALL + + 52 ) + + ( - SUM( DISTINCT + 14 ) ) + + 59
----
62
169

skipif mysql # not compatible
query II rowsort label-2731
SELECT 62 AS col1, 72 + + SUM ( ALL + + 52 ) + + ( - SUM ( DISTINCT + 14 ) ) + + 59
----
62
169

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT DISTINCT NULLIF ( + + 42, - COUNT( * ) ) + + 9
----
51

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT NULLIF ( + + 42, - COUNT ( * ) ) + + 9
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT CAST( NULL AS SIGNED ) * COALESCE ( + 49, 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( + 49, 42 )
----
NULL

query I rowsort
SELECT ALL ( + 25 ) * + 39 AS col0
----
975

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2737
SELECT ALL NULLIF ( + + MAX( ALL - 11 ), + - 77 ) * - CAST( + - 8 AS SIGNED ) + 72 * - 97 + 47
----
-7025

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL NULLIF ( + + MAX ( ALL - 11 ), + - 77 ) * - CAST ( + - 8 AS INTEGER ) + 72 * - 97 + 47
----
-7025

query II rowsort
SELECT 61 AS col2, - 72 - + 65 + ( 99 ) * - 63
----
61
-6374

query I rowsort
SELECT DISTINCT 39 - + 31
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2740
SELECT DISTINCT 10 AS col1, - CASE COUNT( * ) WHEN - + 50 + 65 THEN - - 0 WHEN - 83 THEN NULL END + + - 1 * 47 AS col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-2740
SELECT DISTINCT 10 AS col1, - CASE COUNT ( * ) WHEN - + 50 + 65 THEN - - 0 WHEN - 83 THEN NULL END + + - 1 * 47 AS col0
----
10
NULL

query I rowsort
SELECT ALL NULLIF ( + 62, 92 ) * - - 46
----
2852

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT - + 31 AS col2, CASE + - 88 WHEN - NULLIF ( - AVG ( DISTINCT 16 ), - + 33 * + ( + NULLIF ( + 56, - 48 ) ) ) * COUNT( * ) THEN + 15 - 55 WHEN + 32 + 96 THEN NULL ELSE + ( ( - 18 ) ) * 65 END * 83
----
-31
-97110

skipif mysql # not compatible
query II rowsort label-2743
SELECT - + 31 AS col2, CASE + - 88 WHEN - NULLIF ( - AVG ( DISTINCT 16 ), - + 33 * + ( + NULLIF ( + 56, - 48 ) ) ) * COUNT ( * ) THEN + 15 - 55 WHEN + 32 + 96 THEN NULL ELSE + ( ( - 18 ) ) * 65 END * 83
----
-31
-97110

query I rowsort
SELECT + 98 - - 14 AS col2
----
112

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2746
SELECT 77 * - - 26 DIV - - COUNT( * ) AS col2
----
2002

skipif mysql # not compatible
query I rowsort label-2746
SELECT 77 * - - 26 / - - COUNT ( * ) AS col2
----
2002

query I rowsort
SELECT ALL + 14 * NULLIF ( + 42, - + 28 ) * + 44 AS col2
----
25872

query II rowsort
SELECT - 24 AS col0, 24 - + + ( - 80 ) AS col0
----
-24
104

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT ALL - 3 DIV + 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - 3 / + 30 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT - CASE - - 81 WHEN - MAX( DISTINCT - + NULLIF ( + 87, + 47 * - 5 ) ) THEN - - 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT - CASE - - 81 WHEN - MAX ( DISTINCT - + NULLIF ( + 87, + 47 * - 5 ) ) THEN - - 13 END
----
NULL

query I rowsort
SELECT 56 * 45 AS col1
----
2520

query I rowsort
SELECT ALL 9 + 91
----
100

query I rowsort
SELECT ALL - + ( - 19 ) + + 16 * 14
----
243

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

skipif mysql # not compatible
query I rowsort label-2754
SELECT 33 - COUNT ( + 32 ) * + 1 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT 99 DIV - COUNT( + 92 ) + - 41 AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-2755
SELECT 99 / - COUNT ( + 92 ) + - 41 AS col2
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT + + CASE - 13 WHEN 76 THEN NULL ELSE - + 50 DIV - 21 + ( 58 ) END AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2756
SELECT + + CASE - 13 WHEN 76 THEN NULL ELSE - + 50 / - 21 + ( 58 ) END AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT + + COUNT( - - 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2757
SELECT + + COUNT ( - - 20 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT - + 44 DIV + CASE 10 WHEN - ( 44 ) + 73 THEN + - 11 ELSE + 7 END AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2758
SELECT - + 44 / + CASE 10 WHEN - ( 44 ) + 73 THEN + - 11 ELSE + 7 END AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2759
SELECT ALL - - 11 * - 80 + 42, + 20 * - 84 * - 86 + - - 32 * - COUNT( * ) - 14 col0
----
-838
144434

skipif mysql # not compatible
query II rowsort label-2759
SELECT ALL - - 11 * - 80 + 42, + 20 * - 84 * - 86 + - - 32 * - COUNT ( * ) - 14 col0
----
-838
144434

query I rowsort
SELECT DISTINCT + NULLIF ( + 39, 38 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT ALL 1 * + - CASE - 97 WHEN ( 7 ) THEN 12 + + + 20 WHEN - 25 THEN NULL ELSE - + 80 * + NULLIF ( 80, 68 * + 11 ) END * - 63 + 32 DIV + 65 AS col2
----
-403200

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL 1 * + - CASE - 97 WHEN ( 7 ) THEN 12 + + + 20 WHEN - 25 THEN NULL ELSE - + 80 * + NULLIF ( 80, 68 * + 11 ) END * - 63 + 32 / + 65 AS col2
----
-403200

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL + NULLIF ( + 5, - 68 * - + 43 * + + COUNT( * ) + + 33 * 14 ) * - - MIN( DISTINCT + - 20 ) * - 45
----
4500

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + NULLIF ( + 5, - 68 * - + 43 * + + COUNT ( * ) + + 33 * 14 ) * - - MIN ( DISTINCT + - 20 ) * - 45
----
4500

query I rowsort
SELECT - 46 + 82
----
36

query I rowsort
SELECT DISTINCT + 14 * + 81 * - - 29
----
32886

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT ALL + SUM( DISTINCT + 43 ), 16 AS col0
----
43
16

skipif mysql # not compatible
query II rowsort label-2765
SELECT ALL + SUM ( DISTINCT + 43 ), 16 AS col0
----
43
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2766
SELECT - 34 * + - 27 AS col2, 40 * + CASE + 71 WHEN - 46 + - MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) * + 57 / 57 THEN NULL WHEN + COALESCE ( 86, - 57 * + 93, COUNT( 83 ) ) THEN + COUNT( DISTINCT - ( 97 ) ) WHEN + MIN( DISTINCT 40 ) THEN NULL ELSE 77 END + 51 AS col2
----
918
3131

skipif mysql # not compatible
query II rowsort label-2766
SELECT - 34 * + - 27 AS col2, 40 * + CASE + 71 WHEN - 46 + - MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) * + 57 / 57 THEN NULL WHEN + COALESCE ( 86, - 57 * + 93, COUNT ( 83 ) ) THEN + COUNT ( DISTINCT - ( 97 ) ) WHEN + MIN ( DISTINCT 40 ) THEN NULL ELSE 77 END + 51 AS col2
----
918
3131

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT + NULLIF ( + + 40, + + 37 + - 56 ) * - + COUNT( * ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-2767
SELECT + NULLIF ( + + 40, + + 37 + - 56 ) * - + COUNT ( * ) col0
----
-40

query I rowsort
SELECT - 10 + - 27 + - + 41 * - 53 * - - 13 * - 13 * + 71 AS col0
----
-26073864

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT DISTINCT + ( - MAX( + - 65 ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT + ( - MAX ( + - 65 ) ) AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2770
SELECT ALL 98 DIV - + COUNT( ALL - 88 )
----
-98

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL 98 / - + COUNT ( ALL - 88 )
----
-98

query I rowsort
SELECT - 4 * + 59 AS col1
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT + SUM( ALL + 2 ) - 66 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2772
SELECT + SUM ( ALL + 2 ) - 66 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT ALL - ( + 90 ) / CASE WHEN NOT NULL <> ( NULL ) THEN NULL WHEN ( 14 ) > COUNT( * ) THEN + CASE - ( 21 ) WHEN 78 + - 4 THEN COUNT( * ) END WHEN NOT 64 * + COALESCE ( + 41, - 44, 10 ) = 10 * + COUNT( * ) THEN - 55 + 20 ELSE - NULLIF ( + 91, + NULLIF ( CAST( NULL AS SIGNED ), - 70 * - 65 ) ) * 92 END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - ( + 90 ) / CASE WHEN NOT NULL <> ( NULL ) THEN NULL WHEN ( 14 ) > COUNT ( * ) THEN + CASE - ( 21 ) WHEN 78 + - 4 THEN COUNT ( * ) END WHEN NOT 64 * + COALESCE ( + 41, - 44, 10 ) = 10 * + COUNT ( * ) THEN - 55 + 20 ELSE - NULLIF ( + 91, + NULLIF ( CAST ( NULL AS INTEGER ), - 70 * - 65 ) ) * 92 END * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - - 4 + 11 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT + + 99 * + - CASE - - 26 WHEN + + 11 THEN NULL WHEN + 1 THEN - 22 + - - 79 / + 6 + + 43 + 58 * COALESCE ( CAST( CAST( - 23 AS SIGNED ) AS SIGNED ), 3 ) ELSE NULL END * - 10 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT + + 99 * + - CASE - - 26 WHEN + + 11 THEN NULL WHEN + 1 THEN - 22 + - - 79 / + 6 + + 43 + 58 * COALESCE ( CAST ( CAST ( - 23 AS INTEGER ) AS INTEGER ), 3 ) ELSE NULL END * - 10 + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT + NULLIF ( 60, + 89 * 66 * + 89 + COALESCE ( + 92, + + 16 - - 15, MIN( DISTINCT 30 ) - 12 / 16 ) + 63 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT + NULLIF ( 60, + 89 * 66 * + 89 + COALESCE ( + 92, + + 16 - - 15, MIN ( DISTINCT 30 ) - 12 / 16 ) + 63 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2777
SELECT - - 55 DIV + COUNT( * ) AS col0, 27
----
55
27

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT + + 49 / - - 35 - - - 6 - - 97 / 44 + + 4 + + 14 + + + COALESCE ( 28, 68 ) / 99 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT + + 49 / - - 35 - - - 6 - - 97 / 44 + + 4 + + 14 + + + COALESCE ( 28, 68 ) / 99 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + ( 22 ) * - + 29
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT + 23 + COUNT( + - 16 )
----
24

skipif mysql # not compatible
query I rowsort label-2781
SELECT + 23 + COUNT ( + - 16 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + NULLIF ( + - 19, + + 40 + - ( - 61 ) ) / - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + NULLIF ( + - 19, + + 40 + - ( - 61 ) ) / - 43
----
NULL

query I rowsort
SELECT + 37 * COALESCE ( + + 7, - - NULLIF ( 62, 85 / - 13 * + 47 * + 55 * 77 + 61 + + 16 ) )
----
259

query I rowsort
SELECT + + 97 + - 25
----
72

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

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

query I rowsort
SELECT DISTINCT 38 + + 57 AS col0
----
95

query I rowsort
SELECT ALL + 42 + 85 AS col1
----
127

query I rowsort
SELECT + + 36 * + 52 * + 51
----
95472

query I rowsort
SELECT DISTINCT - ( + 20 ) + 47 col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT + SUM( 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT + SUM ( 60 ) AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2791
SELECT + 64 DIV - 18 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2791
SELECT + 64 / - 18 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2792
SELECT - COUNT( * ) * + + 92 * + CASE COUNT( * ) WHEN - 3 THEN + 37 ELSE NULL END AS col2, 45 * - 72 AS col2
----
NULL
-3240

skipif mysql # not compatible
query II rowsort label-2792
SELECT - COUNT ( * ) * + + 92 * + CASE COUNT ( * ) WHEN - 3 THEN + 37 ELSE NULL END AS col2, 45 * - 72 AS col2
----
NULL
-3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL - ( 39 ) * 16 - + 81 - + CASE + CAST( NULL AS SIGNED ) WHEN 82 + + 26 THEN - 64 * + 50 / + COUNT( * ) + 30 WHEN 97 THEN NULL END + 17 * + 88 * 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL - ( 39 ) * 16 - + 81 - + CASE + CAST ( NULL AS INTEGER ) WHEN 82 + + 26 THEN - 64 * + 50 / + COUNT ( * ) + 30 WHEN 97 THEN NULL END + 17 * + 88 * 27 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2794
SELECT + 34 DIV - NULLIF ( + + 50, - - ( - 64 ) - 82 * ( - 2 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2794
SELECT + 34 / - NULLIF ( + + 50, - - ( - 64 ) - 82 * ( - 2 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT - 10 * - - 63 * - + 19 * + CASE + 31 WHEN + 42 THEN 86 WHEN + - CASE - + COUNT( * ) WHEN + + CASE - 90 WHEN 88 * COUNT( * ) THEN - COALESCE ( 63, 37 / 54 ) + CASE - ( + 60 ) + 80 * 97 WHEN + 99 - + 7 THEN NULL WHEN - 81 * + ( NULLIF ( 49, + 94 ) * + 51 ) THEN 24 END END THEN 72 WHEN - 45 * 20 THEN NULL ELSE 80 END - - 94 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT - 10 * - - 63 * - + 19 * + CASE + 31 WHEN + 42 THEN 86 WHEN + - CASE - + COUNT ( * ) WHEN + + CASE - 90 WHEN 88 * COUNT ( * ) THEN - COALESCE ( 63, 37 / 54 ) + CASE - ( + 60 ) + 80 * 97 WHEN + 99 - + 7 THEN NULL WHEN - 81 * + ( NULLIF ( 49, + 94 ) * + 51 ) THEN 24 END END THEN 72 WHEN - 45 * 20 THEN NULL ELSE 80 END - - 94 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT DISTINCT + MAX( 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT + MAX ( 73 ) AS col0
----
73

query I rowsort
SELECT DISTINCT + 83 * - ( + 48 )
----
-3984

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

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

query I rowsort
SELECT + 51 + - + 9
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT + SUM( DISTINCT + - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-2800
SELECT + SUM ( DISTINCT + - 76 ) AS col0
----
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT - 84 * - COUNT( * ) * + 92 * + 33 col0
----
255024

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT - 84 * - COUNT ( * ) * + 92 * + 33 col0
----
255024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT NULLIF ( 46, 12 * + + 94 * + AVG ( - 24 ) - CASE + CAST( NULL AS SIGNED ) WHEN + 25 / + + 25 THEN 20 - 92 * 51 END )
----
46

skipif mysql # not compatible
query I rowsort label-2803
SELECT NULLIF ( 46, 12 * + + 94 * + AVG ( - 24 ) - CASE + CAST ( NULL AS INTEGER ) WHEN + 25 / + + 25 THEN 20 - 92 * 51 END )
----
46

query I rowsort
SELECT - 44 * + 84 AS col1
----
-3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT + 42 * - - 49 + - SUM( + 57 ) - + + CAST( 99 AS SIGNED ) + + CASE 67 WHEN COUNT( * ) + + 70 + 72 THEN + ( + 89 ) + 75 ELSE - 72 END * - 18 * 70
----
92622

skipif mysql # not compatible
query I rowsort label-2805
SELECT + 42 * - - 49 + - SUM ( + 57 ) - + + CAST ( 99 AS INTEGER ) + + CASE 67 WHEN COUNT ( * ) + + 70 + 72 THEN + ( + 89 ) + 75 ELSE - 72 END * - 18 * 70
----
92622

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2806
SELECT - CAST( NULL AS DECIMAL ) AS col0, + 72 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-2806
SELECT - CAST ( NULL AS REAL ) AS col0, + 72 AS col1
----
NULL
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT + MAX( ALL + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + MAX ( ALL + 90 )
----
90

query I rowsort
SELECT ALL 59 * 35 + + 7
----
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL + COUNT( * ) * + + COALESCE ( + 79, + 41 ) * 63 + + COUNT( * ) + - 9
----
4969

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL + COUNT ( * ) * + + COALESCE ( + 79, + 41 ) * 63 + + COUNT ( * ) + - 9
----
4969

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

query I rowsort
SELECT + - 26 * + 12 AS col2
----
-312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2812
SELECT ALL NULLIF ( - COALESCE ( + 68, - + 68 * COALESCE ( - 78, COUNT( * ) * - 35 + + - 8 DIV + 32 * COUNT( DISTINCT - 95 ) ), - 20 ), COUNT( * ) + - 24 )
----
-68

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL NULLIF ( - COALESCE ( + 68, - + 68 * COALESCE ( - 78, COUNT ( * ) * - 35 + + - 8 / + 32 * COUNT ( DISTINCT - 95 ) ), - 20 ), COUNT ( * ) + - 24 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT - - ( - CASE 88 WHEN + ( ( SUM( DISTINCT + + 62 ) ) ) * - + COUNT( * ) * + - 29 THEN NULL WHEN + MIN( 31 ) THEN 31 * + 92 + 82 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT - - ( - CASE 88 WHEN + ( ( SUM ( DISTINCT + + 62 ) ) ) * - + COUNT ( * ) * + - 29 THEN NULL WHEN + MIN ( 31 ) THEN 31 * + 92 + 82 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2814
SELECT 63 DIV + 73 * - 78 + - 20
----
-20

skipif mysql # not compatible
query I rowsort label-2814
SELECT 63 / + 73 * - 78 + - 20
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2815
SELECT ALL 27 + - 46 * COUNT( * ) * 19 * - + COUNT( * ) AS col2, ( 13 ) * + 30 + + 79
----
901
469

skipif mysql # not compatible
query II rowsort label-2815
SELECT ALL 27 + - 46 * COUNT ( * ) * 19 * - + COUNT ( * ) AS col2, ( 13 ) * + 30 + + 79
----
901
469

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT + - COUNT( * ) + 64 + - 34 * - CASE - + ( 0 ) WHEN 75 * - - 13 + - - 33 + - + 39 * 0 + - 34 * - 78 THEN + COUNT( * ) ELSE 16 * - 71 END
----
-38561

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + - COUNT ( * ) + 64 + - 34 * - CASE - + ( 0 ) WHEN 75 * - - 13 + - - 33 + - + 39 * 0 + - 34 * - 78 THEN + COUNT ( * ) ELSE 16 * - 71 END
----
-38561

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL - MIN( - 96 ) * + - 28 * NULLIF ( + + 4, 72 ) / CASE + 72 WHEN - NULLIF ( 20, NULLIF ( 68, 61 * ( + 11 ) ) / - CASE - 92 + + 61 WHEN + 84 THEN + 38 + - 46 WHEN ( 9 ) THEN NULL WHEN CASE 0 WHEN 64 - + 58 THEN - 4 END * + ( - 6 + + 40 ) THEN 36 + 27 ELSE 82 / COUNT( * ) END + + 79 * - CASE + 61 WHEN 86 THEN + 26 END ) THEN NULL WHEN + MAX( - 70 ) + + 46 THEN - 78 * + 37 WHEN 42 THEN CASE COUNT( 42 ) WHEN 5 * + 20 THEN NULL ELSE 44 * 18 END ELSE NULL END + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - MIN ( - 96 ) * + - 28 * NULLIF ( + + 4, 72 ) / CASE + 72 WHEN - NULLIF ( 20, NULLIF ( 68, 61 * ( + 11 ) ) / - CASE - 92 + + 61 WHEN + 84 THEN + 38 + - 46 WHEN ( 9 ) THEN NULL WHEN CASE 0 WHEN 64 - + 58 THEN - 4 END * + ( - 6 + + 40 ) THEN 36 + 27 ELSE 82 / COUNT ( * ) END + + 79 * - CASE + 61 WHEN 86 THEN + 26 END ) THEN NULL WHEN + MAX ( - 70 ) + + 46 THEN - 78 * + 37 WHEN 42 THEN CASE COUNT ( 42 ) WHEN 5 * + 20 THEN NULL ELSE 44 * 18 END ELSE NULL END + 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2818
SELECT ALL + 98 AS col2, COUNT( * ) * - - CAST( 24 AS SIGNED ) - + 35 AS col0
----
98
-11

skipif mysql # not compatible
query II rowsort label-2818
SELECT ALL + 98 AS col2, COUNT ( * ) * - - CAST ( 24 AS INTEGER ) - + 35 AS col0
----
98
-11

query I rowsort
SELECT ALL + + 75 - + 66 + 61 * + 71 + - - 95 AS col2
----
4435

query I rowsort
SELECT ALL - ( - 71 ) - 25 AS col2
----
46

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

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

query I rowsort
SELECT COALESCE ( + + 40, + - 76, 66 ) - - 36 AS col0
----
76

query I rowsort
SELECT 7 * + + 3
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT 42 * - + COUNT( * ) * - ( + - 95 )
----
-3990

skipif mysql # not compatible
query I rowsort label-2824
SELECT 42 * - + COUNT ( * ) * - ( + - 95 )
----
-3990

query I rowsort
SELECT DISTINCT 87 * + 40 AS col1
----
3480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT 42 * 10 + ( - CAST( - 99 AS SIGNED ) ) * + NULLIF ( - MIN( ALL - + 95 ), 38 + - 88 ) * 89 AS col2
----
837465

skipif mysql # not compatible
query I rowsort label-2826
SELECT 42 * 10 + ( - CAST ( - 99 AS INTEGER ) ) * + NULLIF ( - MIN ( ALL - + 95 ), 38 + - 88 ) * 89 AS col2
----
837465

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

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL COUNT ( * ) * + + MAX ( 61 ) AS col1
----
61

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

skipif mysql # not compatible
query II rowsort label-2828
SELECT ALL - COUNT ( * ) AS col2, - CAST ( - + 61 AS INTEGER ) AS col1
----
-1
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2829
SELECT COUNT( * ) + 42 + - - 94 * - ( - + COUNT( * ) ) * - 79 * + 74 + + 35 DIV + 66 AS col2
----
-549481

skipif mysql # not compatible
query I rowsort label-2829
SELECT COUNT ( * ) + 42 + - - 94 * - ( - + COUNT ( * ) ) * - 79 * + 74 + + 35 / + 66 AS col2
----
-549481

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL SUM( DISTINCT + - 10 ) * + + 4 + 97
----
57

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL SUM ( DISTINCT + - 10 ) * + + 4 + 97
----
57

query II rowsort
SELECT + 99, + 96 AS col1
----
99
96

query I rowsort
SELECT DISTINCT COALESCE ( 79, + - 91 ) + 36 + - 92 + + - ( - + 91 ) * + 19 col2
----
1752

query I rowsort
SELECT + 92 * - - 8 + - 4 AS col2
----
732

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT NULLIF ( - - 7, + - 76 ) DIV + ( 9 )
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT NULLIF ( - - 7, + - 76 ) / + ( 9 )
----
0

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

skipif mysql # not compatible
query I rowsort label-2835
SELECT 77 / + - 30
----
-2

query I rowsort
SELECT 16 * - 9 + + 48
----
-96

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

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT + 25 / + 35 * COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT - 91 + - + 94 * - - 62 AS col1
----
-5919

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

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

query I rowsort
SELECT - NULLIF ( - + 19, 33 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL + COUNT( * ) + CAST( 44 AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + COUNT ( * ) + CAST ( 44 AS INTEGER ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ALL - - CASE ( - 91 ) WHEN + ( - 6 ) THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE - - 73 END AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - - CASE ( - 91 ) WHEN + ( - 6 ) THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE - - 73 END AS col2
----
73

query II rowsort
SELECT DISTINCT - 90 col2, 86 AS col1
----
-90
86

query I rowsort
SELECT ALL - 36 + - + 95 AS col2
----
-131

query I rowsort
SELECT - ( + 82 ) + + 23 AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2846
SELECT + 11 * CAST( NULL AS DECIMAL ) / + 48 - + 13 - - 12 + - 69 / + - 88 + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT + 11 * CAST ( NULL AS REAL ) / + 48 - + 13 - - 12 + - 69 / + - 88 + + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 41 + - + 69 * - NULLIF ( + COALESCE ( + 76, - - 25 ), + 69 ) + 48
----
5333

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2848
SELECT - 28 * - + CAST( NULL AS DECIMAL ) / 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT - 28 * - + CAST ( NULL AS REAL ) / 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL - 75 + + - SUM( DISTINCT - 22 )
----
-53

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - 75 + + - SUM ( DISTINCT - 22 )
----
-53

query I rowsort
SELECT COALESCE ( 80, - 59 ) + 45
----
125

query II rowsort
SELECT - 16, - 68 AS col1
----
-16
-68

query II rowsort
SELECT - 27 AS col1, 51
----
-27
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + MAX( ( 21 ) ) + + - 58 + - 95 + 92 + + + MIN( + NULLIF ( - + 79, - 32 / + 13 * + 2 + 42 * 88 ) ) * 76
----
-6044

skipif mysql # not compatible
query I rowsort label-2853
SELECT + MAX ( ( 21 ) ) + + - 58 + - 95 + 92 + + + MIN ( + NULLIF ( - + 79, - 32 / + 13 * + 2 + 42 * 88 ) ) * 76
----
-6044

query I rowsort
SELECT ALL - - 23 - + 75 col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT 11 + + 34 + CAST( - 57 AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2855
SELECT 11 + + 34 + CAST ( - 57 AS INTEGER ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-2856
SELECT - + 3, COUNT( * ) * + COALESCE ( - MAX( DISTINCT - 79 ), 34, - 15 ) AS col0
----
-3
79

skipif mysql # not compatible
query II rowsort label-2856
SELECT - + 3, COUNT ( * ) * + COALESCE ( - MAX ( DISTINCT - 79 ), 34, - 15 ) AS col0
----
-3
79

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

skipif mysql # not compatible
query I rowsort label-2857
SELECT COUNT ( * ) + 34 - - 11 AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2858
SELECT 7 DIV - - 35 * 24 * MIN( ALL 93 ) * + 93
----
0

skipif mysql # not compatible
query I rowsort label-2858
SELECT 7 / - - 35 * 24 * MIN ( ALL 93 ) * + 93
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2859
SELECT 45 + + 38 col1, + CAST( + 32 AS SIGNED )
----
83
32

skipif mysql # not compatible
query II rowsort label-2859
SELECT 45 + + 38 col1, + CAST ( + 32 AS INTEGER )
----
83
32

query II rowsort
SELECT DISTINCT 47 * 98, + 6 AS col1
----
4606
6

query I rowsort
SELECT ALL + 74 * - - 41 AS col1
----
3034

query I rowsort
SELECT DISTINCT - 2 * 63 AS col1
----
-126

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2864
SELECT ALL - CAST( 77 AS SIGNED ) * + 49 + + 86 * - - CASE 99 WHEN + + 97 THEN + COUNT( * ) DIV - 22 * - ( + 78 ) + + 8 - 90 * 63 ELSE - 81 + 86 END * - 79 + 37
----
-37706

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL - CAST ( 77 AS INTEGER ) * + 49 + + 86 * - - CASE 99 WHEN + + 97 THEN + COUNT ( * ) / - 22 * - ( + 78 ) + + 8 - 90 * 63 ELSE - 81 + 86 END * - 79 + 37
----
-37706

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT SUM( + - 2 ) * COUNT( DISTINCT + - 87 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2866
SELECT SUM ( + - 2 ) * COUNT ( DISTINCT + - 87 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL 33 + - 71 - + COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL 33 + - 71 - + COUNT ( * ) AS col0
----
-39

query I rowsort
SELECT + 87 * - 7 + 78 * - 41 - 86
----
-3893

query I rowsort
SELECT ALL - 87 + - 37 AS col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT DISTINCT - 37 + - SUM( DISTINCT - - 32 )
----
-69

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT - 37 + - SUM ( DISTINCT - - 32 )
----
-69

query II rowsort
SELECT 23 * + 35 col1, NULLIF ( + CASE + 47 WHEN + - 59 * - + 14 / - - 86 * + + 56 THEN + - 4 - 95 * 81 * 47 END, 34 ) * - 49
----
805
NULL

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

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

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

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

query I rowsort
SELECT + 70 * - 52
----
-3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2875
SELECT ALL + + 0 DIV - + COALESCE ( CAST( + - 66 AS SIGNED ), - COUNT( * ) DIV - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + + 0 / - + COALESCE ( CAST ( + - 66 AS INTEGER ), - COUNT ( * ) / - 74 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL - COUNT( * ) - 2 * 18 + - 89 + 13 * + 70 AS col2
----
784

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - COUNT ( * ) - 2 * 18 + - 89 + 13 * + 70 AS col2
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT ALL - + 87 - CAST( - 71 AS SIGNED ) + + ( + + 90 ) * - COUNT( * ) - NULLIF ( SUM( + 18 ), + 13 / 17 )
----
-124

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL - + 87 - CAST ( - 71 AS INTEGER ) + + ( + + 90 ) * - COUNT ( * ) - NULLIF ( SUM ( + 18 ), + 13 / 17 )
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT - 35 - - + CAST( NULL AS SIGNED ) * + - 43 / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT - 35 - - + CAST ( NULL AS INTEGER ) * + - 43 / - 67
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2879
SELECT - COUNT ( * ) * 32
----
-32

query II rowsort
SELECT ALL 22 AS col2, 82
----
22
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2881
SELECT - 88 * - MIN( ALL - ( + 84 ) ) AS col1, 11
----
-7392
11

skipif mysql # not compatible
query II rowsort label-2881
SELECT - 88 * - MIN ( ALL - ( + 84 ) ) AS col1, 11
----
-7392
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT ALL CASE - + 61 WHEN - 70 / - - 5 * COUNT( - - 5 ) THEN - 89 WHEN - 82 * - ( + ( + COALESCE ( CAST( 67 AS SIGNED ), CAST( NULL AS SIGNED ), - 40, ( + 47 ) ) ) ) * - 53 - + 86 THEN 43 ELSE + 40 END
----
40

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL CASE - + 61 WHEN - 70 / - - 5 * COUNT ( - - 5 ) THEN - 89 WHEN - 82 * - ( + ( + COALESCE ( CAST ( 67 AS INTEGER ), CAST ( NULL AS INTEGER ), - 40, ( + 47 ) ) ) ) * - 53 - + 86 THEN 43 ELSE + 40 END
----
40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2884
SELECT 32, 50 + + + 97 + + 11 * + 54 * - CASE + + 15 WHEN MAX( - 48 ) THEN - 24 * 12 * + - 99 * - MAX( ALL - 30 ) * - COUNT( - 53 ) + - 46 WHEN 75 THEN NULL END + 42 * 18 AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2884
SELECT 32, 50 + + + 97 + + 11 * + 54 * - CASE + + 15 WHEN MAX ( - 48 ) THEN - 24 * 12 * + - 99 * - MAX ( ALL - 30 ) * - COUNT ( - 53 ) + - 46 WHEN 75 THEN NULL END + 42 * 18 AS col2
----
32
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2885
SELECT - 52 + 0 + + 93 DIV + COALESCE ( 92, 43 * + 56 + + COUNT( * ), - COALESCE ( - NULLIF ( - - 50, COUNT( * ) ), + ( + 91 ) * + 86 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-2885
SELECT - 52 + 0 + + 93 / + COALESCE ( 92, 43 * + 56 + + COUNT ( * ), - COALESCE ( - NULLIF ( - - 50, COUNT ( * ) ), + ( + 91 ) * + 86 ) ) AS col1
----
-51

query I rowsort
SELECT - 28 + + 54 AS col0
----
26

query I rowsort
SELECT DISTINCT + 25 * 6 * + - 35 * 84
----
-441000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT + CAST( NULL AS SIGNED ) / + 31 * - + 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT + CAST ( NULL AS INTEGER ) / + 31 * - + 24 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + CASE - 15 WHEN COUNT( + 4 ) THEN NULL WHEN + - 93 * 55 THEN - - ( + 97 ) ELSE + 13 END
----
13

skipif mysql # not compatible
query I rowsort label-2889
SELECT + CASE - 15 WHEN COUNT ( + 4 ) THEN NULL WHEN + - 93 * 55 THEN - - ( + 97 ) ELSE + 13 END
----
13

query I rowsort
SELECT ALL - 7 * + 54 * 12
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + 83 * 6 * 21 + - + CASE + + COUNT( * ) WHEN + 72 * COUNT( * ) THEN + + 86 + 17 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT + 83 * 6 * 21 + - + CASE + + COUNT ( * ) WHEN + 72 * COUNT ( * ) THEN + + 86 + 17 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 48 col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT DISTINCT 23 * - 51 * + - 42 - + CASE 63 WHEN CAST( - - 96 AS SIGNED ) + 70 THEN + 58 WHEN 69 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT 23 * - 51 * + - 42 - + CASE 63 WHEN CAST ( - - 96 AS INTEGER ) + 70 THEN + 58 WHEN 69 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + 63 + - + 69 * + COUNT( * ) + + + MAX( - + 82 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-2895
SELECT + 63 + - + 69 * + COUNT ( * ) + + + MAX ( - + 82 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT 43 * COUNT( * ) - + 35 * 38 + + 75 AS col2
----
-1212

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT 43 * COUNT ( * ) - + 35 * 38 + + 75 AS col2
----
-1212

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

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

query I rowsort
SELECT DISTINCT - CASE 25 WHEN + 17 THEN + 53 END * + ( - 34 ) - - 47
----
NULL

query I rowsort
SELECT + 3 * + 41 * 73
----
8979

query I rowsort
SELECT + - 43 + - 29 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT DISTINCT + 32 * - - COUNT( * ) + 32
----
64

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT + 32 * - - COUNT ( * ) + 32
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT + + COUNT( - 23 ) + + 82 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2902
SELECT + + COUNT ( - 23 ) + + 82 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT NULLIF ( - + 9, - 33 + ( + COUNT( * ) ) )
----
-9

skipif mysql # not compatible
query I rowsort label-2903
SELECT NULLIF ( - + 9, - 33 + ( + COUNT ( * ) ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + - 93 / - - CASE 27 WHEN COUNT( * ) * + COALESCE ( - COUNT( * ), - + 59 / 45 ) * + 55 THEN NULL WHEN + - 6 THEN - + 89 / - 97 * COUNT( * ) ELSE NULL END * COUNT( * ) + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT + - 93 / - - CASE 27 WHEN COUNT ( * ) * + COALESCE ( - COUNT ( * ), - + 59 / 45 ) * + 55 THEN NULL WHEN + - 6 THEN - + 89 / - 97 * COUNT ( * ) ELSE NULL END * COUNT ( * ) + 22 AS col2
----
NULL

query I rowsort
SELECT - - 88 * + 75 col1
----
6600

query II rowsort
SELECT - 80 AS col1, - 48 * - + 25 AS col0
----
-80
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT + 12 + COUNT( * ) - - 75 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2907
SELECT + 12 + COUNT ( * ) - - 75 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT DISTINCT NULLIF ( - - MIN( + 16 ), - 33 + - 98 ) + + 89 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT NULLIF ( - - MIN ( + 16 ), - 33 + - 98 ) + + 89 AS col1
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT ALL - 10 * - COUNT( * ) AS col1, - 92 * - - 13 col1
----
10
-1196

skipif mysql # not compatible
query II rowsort label-2909
SELECT ALL - 10 * - COUNT ( * ) AS col1, - 92 * - - 13 col1
----
10
-1196

query II rowsort
SELECT ALL CASE - - 46 WHEN - 76 THEN + 98 END, 64 + + 16 + - + 58 + 61 col2
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT + MAX( - ( - 30 ) ) + + 83
----
113

skipif mysql # not compatible
query I rowsort label-2911
SELECT + MAX ( - ( - 30 ) ) + + 83
----
113

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT + COUNT( * ) * CASE SUM( DISTINCT 72 ) WHEN - COUNT( * ) THEN COUNT( * ) + + - 81 * - - ( + 6 ) END * + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT + COUNT ( * ) * CASE SUM ( DISTINCT 72 ) WHEN - COUNT ( * ) THEN COUNT ( * ) + + - 81 * - - ( + 6 ) END * + + 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2914
SELECT - ( + + COUNT( * ) ) + ( 39 ) AS col0, 44
----
38
44

skipif mysql # not compatible
query II rowsort label-2914
SELECT - ( + + COUNT ( * ) ) + ( 39 ) AS col0, 44
----
38
44

query I rowsort
SELECT DISTINCT NULLIF ( 52, 32 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT + 39 + - - 39 + - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + 39 + - - 39 + - COUNT ( * ) AS col0
----
77

query I rowsort
SELECT - ( 70 ) * - + 93
----
6510

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT ALL + COALESCE ( - 29, + + 5 + + - CASE - MIN( + 83 ) WHEN + 23 DIV + 46 THEN + 19 END, + COALESCE ( - 60, - 40 DIV 61 + + + 67, 19 ), NULLIF ( - 67, ( + COUNT( * ) ) DIV + 6 + 96 ) DIV + COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL + COALESCE ( - 29, + + 5 + + - CASE - MIN ( + 83 ) WHEN + 23 / + 46 THEN + 19 END, + COALESCE ( - 60, - 40 / 61 + + + 67, 19 ), NULLIF ( - 67, ( + COUNT ( * ) ) / + 6 + 96 ) / + COUNT ( * ) )
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2920
SELECT ALL 35 DIV - 69 - - 25 * - + CAST( + - 64 AS SIGNED ) col2
----
1600

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL 35 / - 69 - - 25 * - + CAST ( + - 64 AS INTEGER ) col2
----
1600

query I rowsort
SELECT - 68 * - 16 AS col2
----
1088

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT - + 51 * - + 56 + 16 - - 77 * 20 DIV + 20
----
2949

skipif mysql # not compatible
query I rowsort label-2922
SELECT - + 51 * - + 56 + 16 - - 77 * 20 / + 20
----
2949

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT 6 DIV - + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2923
SELECT 6 / - + 94 AS col0
----
0

query I rowsort
SELECT 37 * + 83
----
3071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2925
SELECT + - 22 * 40 * - + COALESCE ( - 84, 76 * 86 + + - 27, - COUNT( * ), - 51 / + ( - 10 ) ) + - - 71 + + - CAST( NULL AS SIGNED ) * + NULLIF ( + MAX( - 65 ), + CASE 79 WHEN 40 * 1 THEN - 51 END * 70 - + 6 ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT + - 22 * 40 * - + COALESCE ( - 84, 76 * 86 + + - 27, - COUNT ( * ), - 51 / + ( - 10 ) ) + - - 71 + + - CAST ( NULL AS INTEGER ) * + NULLIF ( + MAX ( - 65 ), + CASE 79 WHEN 40 * 1 THEN - 51 END * 70 - + 6 ) - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT 86 - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + + 84 / + + 37 + - MAX( - + 2 ) - 42 * - NULLIF ( 0, + - CASE - 83 WHEN + 66 THEN + 51 * ( 77 * - 96 ) END ) * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT 86 - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 84 / + + 37 + - MAX ( - + 2 ) - 42 * - NULLIF ( 0, + - CASE - 83 WHEN + 66 THEN + 51 * ( 77 * - 96 ) END ) * + 84
----
NULL

query I rowsort
SELECT ALL - 44 * + 99
----
-4356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2928
SELECT DISTINCT + - 3 * + - COUNT( * ) + + CAST( + - MIN( DISTINCT - 94 ) AS SIGNED ) - 99 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT + - 3 * + - COUNT ( * ) + + CAST ( + - MIN ( DISTINCT - 94 ) AS INTEGER ) - 99 AS col2
----
-2

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT - - COUNT( * ) * NULLIF ( - COUNT( * ), ( + 25 ) * + MIN( - 2 ) ) + - + 18 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2931
SELECT - - COUNT ( * ) * NULLIF ( - COUNT ( * ), ( + 25 ) * + MIN ( - 2 ) ) + - + 18 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT ALL 94 + + + CAST( CASE + 36 WHEN - - ( - MIN( + - 87 ) ) THEN NULL WHEN + 91 THEN + + 51 WHEN - 42 THEN NULL ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL 94 + + + CAST ( CASE + 36 WHEN - - ( - MIN ( + - 87 ) ) THEN NULL WHEN + 91 THEN + + 51 WHEN - 42 THEN NULL ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2933
SELECT SUM( 46 ) * 59 * + + CAST( 59 AS SIGNED ) AS col2
----
160126

skipif mysql # not compatible
query I rowsort label-2933
SELECT SUM ( 46 ) * 59 * + + CAST ( 59 AS INTEGER ) AS col2
----
160126

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT + 20 * ( + + CASE - 58 WHEN 89 / 32 THEN + - 3 WHEN - 34 * + - 70 THEN + - NULLIF ( + + 30, - + 94 ) + ( 64 ) - + COUNT( - 66 ) END ) + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT + 20 * ( + + CASE - 58 WHEN 89 / 32 THEN + - 3 WHEN - 34 * + - 70 THEN + - NULLIF ( + + 30, - + 94 ) + ( 64 ) - + COUNT ( - 66 ) END ) + 40
----
NULL

query I rowsort
SELECT ALL + ( - 55 ) + - 79
----
-134

query I rowsort
SELECT ALL 59 * + 64 AS col2
----
3776

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2937
SELECT 45 DIV + + ( + COUNT( * ) ) AS col0, 63 AS col1
----
45
63

skipif mysql # not compatible
query II rowsort label-2937
SELECT 45 / + + ( + COUNT ( * ) ) AS col0, 63 AS col1
----
45
63

query I rowsort
SELECT DISTINCT 88 * - 2
----
-176

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

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

query II rowsort
SELECT 79 AS col0, 57 + - 87 AS col1
----
79
-30

query II rowsort
SELECT ALL 76 col0, 51 AS col0
----
76
51

query I rowsort
SELECT ALL 23 * 82
----
1886

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT 71 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2943
SELECT 71 / 91 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT CAST( - - 22 AS SIGNED ) * + ( + 15 ) AS col2
----
330

skipif mysql # not compatible
query I rowsort label-2944
SELECT CAST ( - - 22 AS INTEGER ) * + ( + 15 ) AS col2
----
330

query I rowsort
SELECT ALL 16 + + - 98 AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT ALL 10 DIV + - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL 10 / + - 76 AS col2
----
0

query I rowsort
SELECT ALL 80 - - 39 - - 27 AS col2
----
146

query I rowsort
SELECT DISTINCT - 62 * 24 AS col1
----
-1488

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2949
SELECT ALL 50, - MAX( - COALESCE ( - 44, + 11 ) ) / + - COUNT( * ) + 99 + + 68 + - NULLIF ( - 76, - COUNT( * ) + ( - AVG ( DISTINCT + 31 ) ) ) * + - CASE 77 WHEN - 66 + 20 THEN NULL ELSE CASE + CAST( 60 AS DECIMAL ) WHEN + 86 * COUNT( * ) THEN - 25 WHEN 89 THEN SUM( - 65 ) END END + 65 AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-2949
SELECT ALL 50, - MAX ( - COALESCE ( - 44, + 11 ) ) / + - COUNT ( * ) + 99 + + 68 + - NULLIF ( - 76, - COUNT ( * ) + ( - AVG ( DISTINCT + 31 ) ) ) * + - CASE 77 WHEN - 66 + 20 THEN NULL ELSE CASE + CAST ( 60 AS REAL ) WHEN + 86 * COUNT ( * ) THEN - 25 WHEN 89 THEN SUM ( - 65 ) END END + 65 AS col0
----
50
NULL

query I rowsort
SELECT DISTINCT 15 - - + 35 AS col1
----
50

query II rowsort
SELECT ALL 53, - 72 * - - 27 * + 15 AS col2
----
53
-29160

query I rowsort
SELECT 60 + + 79 * - - 54 AS col0
----
4326

query I rowsort
SELECT - 22 + 94 * 99 + - - 5 AS col0
----
9289

query I rowsort
SELECT ALL 92 * - 93 - - 41 - 40 + + ( + - NULLIF ( - 17, + 44 * + - 14 ) ) * - - 93 * + 31 AS col0
----
40456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2955
SELECT + - 32 * - - 45 - + 29 DIV - 73 * - - SUM( + - 10 ) - 69 + - ( + + 26 )
----
-1535

skipif mysql # not compatible
query I rowsort label-2955
SELECT + - 32 * - - 45 - + 29 / - 73 * - - SUM ( + - 10 ) - 69 + - ( + + 26 )
----
-1535

query II rowsort
SELECT ALL - 41 col0, - 70
----
-41
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT 3 / ( - 34 ) + - MAX( + 68 ) / ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT 3 / ( - 34 ) + - MAX ( + 68 ) / ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( + - 47 ) * - 79 AS col0
----
3713

query I rowsort
SELECT + - 8 col2
----
-8

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

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

query I rowsort
SELECT 11 * + 38 AS col0
----
418

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT - 95 * + ( + 52 ) + + MIN( - + 26 ) AS col2
----
-4966

skipif mysql # not compatible
query I rowsort label-2962
SELECT - 95 * + ( + 52 ) + + MIN ( - + 26 ) AS col2
----
-4966

query I rowsort
SELECT ALL - ( 54 ) + + 54 + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL + - COUNT( * ) + + 40
----
39

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + - COUNT ( * ) + + 40
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT - - COUNT( * ) * 49 + + 68 - + + ( - + 93 ) AS col1
----
210

skipif mysql # not compatible
query I rowsort label-2965
SELECT - - COUNT ( * ) * 49 + + 68 - + + ( - + 93 ) AS col1
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT ALL 22 DIV - - 74 * 94 * - 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL 22 / - - 74 * 94 * - 30 AS col1
----
0

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

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

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

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

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

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

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

query II rowsort
SELECT + 61, 15 AS col1
----
61
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL 76 + - - NULLIF ( + + MIN( + + 5 ), + - 88 * 9 + + COALESCE ( + + 95, 5, 42 ) * 57 + + AVG ( - 88 ) )
----
81

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL 76 + - - NULLIF ( + + MIN ( + + 5 ), + - 88 * 9 + + COALESCE ( + + 95, 5, 42 ) * 57 + + AVG ( - 88 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT 51 - + 78 * ( - SUM( DISTINCT - 82 ) )
----
-6345

skipif mysql # not compatible
query I rowsort label-2973
SELECT 51 - + 78 * ( - SUM ( DISTINCT - 82 ) )
----
-6345

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

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT COUNT ( ALL + 73 ) AS col2
----
1

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

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

query II rowsort
SELECT 26 + 49 AS col1, + 56 AS col0
----
75
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT MAX( - - ( - - 74 ) ) * - 42 - 76
----
-3184

skipif mysql # not compatible
query I rowsort label-2977
SELECT MAX ( - - ( - - 74 ) ) * - 42 - 76
----
-3184

query II rowsort
SELECT 51 AS col0, - 18 + - 66 AS col0
----
51
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT ALL + 84 + + - CASE + + 35 WHEN + - 14 * + + 41 THEN NULL WHEN + SUM( + 75 ) * + 61 + - 46 THEN - 45 WHEN - CAST( NULL AS SIGNED ) * - 51 THEN - 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + 84 + + - CASE + + 35 WHEN + - 14 * + + 41 THEN NULL WHEN + SUM ( + 75 ) * + 61 + - 46 THEN - 45 WHEN - CAST ( NULL AS INTEGER ) * - 51 THEN - 11 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 20 + + 62
----
42

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

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL COUNT ( DISTINCT - + 35 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2982
SELECT DISTINCT COUNT( * ) AS col0, + MAX( + CAST( NULL AS SIGNED ) ) - 89 / - 95 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2982
SELECT DISTINCT COUNT ( * ) AS col0, + MAX ( + CAST ( NULL AS INTEGER ) ) - 89 / - 95 AS col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2983
SELECT ALL 69 * + + CAST( - MAX( ALL - 98 ) AS SIGNED ) AS col0
----
6762

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL 69 * + + CAST ( - MAX ( ALL - 98 ) AS INTEGER ) AS col0
----
6762

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT - COUNT( DISTINCT + 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2984
SELECT - COUNT ( DISTINCT + 86 ) AS col1
----
-1

query I rowsort
SELECT ALL 33 * + - 93
----
-3069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2986
SELECT + NULLIF ( 74, - 51 / 45 * - + 4 + - CAST( MIN( ( - + 72 ) ) AS SIGNED ) - + - 97 ) + - - 54 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-2986
SELECT + NULLIF ( 74, - 51 / 45 * - + 4 + - CAST ( MIN ( ( - + 72 ) ) AS INTEGER ) - + - 97 ) + - - 54 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT - MIN( 11 ) * - - 19
----
-209

skipif mysql # not compatible
query I rowsort label-2987
SELECT - MIN ( 11 ) * - - 19
----
-209

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

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

query I rowsort
SELECT + 97 + + 85 + - 60 AS col2
----
122

query II rowsort
SELECT ALL 85, 43 AS col0
----
85
43

query I rowsort
SELECT ALL + 77 * 94
----
7238

query II rowsort
SELECT DISTINCT 40 col0, + 69
----
40
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2993
SELECT DISTINCT + 97 AS col1, - MIN( DISTINCT - - 31 ) * + + CASE 15 WHEN 78 * ( 4 ) THEN 60 + - CAST( NULL AS DECIMAL ) + - COALESCE ( - CAST( NULL AS SIGNED ), CASE + + 28 WHEN + + 82 * - 6 * 18 + + AVG ( ALL 31 ) THEN ( 94 ) WHEN COUNT( * ) - - COUNT( * ) * + ( 30 ) THEN NULL END ) + - CAST( NULL AS SIGNED ) * + 75 * - 78 WHEN CAST( - 59 AS SIGNED ) + MIN( DISTINCT 34 ) / 50 THEN 7 END + + 77 - - 59 AS col0
----
97
NULL

skipif mysql # not compatible
query II rowsort label-2993
SELECT DISTINCT + 97 AS col1, - MIN ( DISTINCT - - 31 ) * + + CASE 15 WHEN 78 * ( 4 ) THEN 60 + - CAST ( NULL AS REAL ) + - COALESCE ( - CAST ( NULL AS INTEGER ), CASE + + 28 WHEN + + 82 * - 6 * 18 + + AVG ( ALL 31 ) THEN ( 94 ) WHEN COUNT ( * ) - - COUNT ( * ) * + ( 30 ) THEN NULL END ) + - CAST ( NULL AS INTEGER ) * + 75 * - 78 WHEN CAST ( - 59 AS INTEGER ) + MIN ( DISTINCT 34 ) / 50 THEN 7 END + + 77 - - 59 AS col0
----
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2994
SELECT + 43 DIV 20 + - - 48
----
50

skipif mysql # not compatible
query I rowsort label-2994
SELECT + 43 / 20 + - - 48
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2995
SELECT DISTINCT + + 41 * + - 26 AS col1, 9 * COUNT( * ) + + 49 - - - 2
----
-1066
56

skipif mysql # not compatible
query II rowsort label-2995
SELECT DISTINCT + + 41 * + - 26 AS col1, 9 * COUNT ( * ) + + 49 - - - 2
----
-1066
56

query II rowsort
SELECT + 30 AS col2, - 31
----
30
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-2997
SELECT COUNT( * ) AS col1, - 46 * - 26 + + - 28 * + 4
----
1
1084

skipif mysql # not compatible
query II rowsort label-2997
SELECT COUNT ( * ) AS col1, - 46 * - 26 + + - 28 * + 4
----
1
1084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2998
SELECT - - ( - - COUNT( * ) ) * - 88 * - 83 - - - 25 + - NULLIF ( - + COUNT( * ), 97 + + + CASE 23 WHEN + AVG ( - + 17 ) + 78 + - 54 THEN + 86 END ) DIV + 23
----
7279

skipif mysql # not compatible
query I rowsort label-2998
SELECT - - ( - - COUNT ( * ) ) * - 88 * - 83 - - - 25 + - NULLIF ( - + COUNT ( * ), 97 + + + CASE 23 WHEN + AVG ( - + 17 ) + 78 + - 54 THEN + 86 END ) / + 23
----
7279

query I rowsort
SELECT ALL + - 78 * + 63 * + + 68 * - + 8 * + - 17 + + 67 * + 42 * + + 69
----
-45250506

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT - NULLIF ( 9, - + MIN( ALL - 54 ) * + 3 - 1 ) * + 17 + 33
----
-120

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT - NULLIF ( 9, - + MIN ( ALL - 54 ) * + 3 - 1 ) * + 17 + 33
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3002
SELECT + 59 DIV - ( - 19 ) + 33 + - + ( - - COUNT( * ) ) col1
----
35

skipif mysql # not compatible
query I rowsort label-3002
SELECT + 59 / - ( - 19 ) + 33 + - + ( - - COUNT ( * ) ) col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3003
SELECT ALL + 19 * - CAST( - COUNT( * ) AS SIGNED ) + 84
----
103

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL + 19 * - CAST ( - COUNT ( * ) AS INTEGER ) + 84
----
103

query I rowsort
SELECT DISTINCT + 92 * ( 50 ) + - 82 * + 2
----
4436

query I rowsort
SELECT - - 19 * 82 + - 62 + 30 + 49 AS col2
----
1575

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3006
SELECT + CASE + 0 WHEN + ( - - 53 ) + - 77 - - - 98 - + 68 / + ( + 6 ) THEN NULL WHEN + - 47 + - 56 THEN + - ( + + CAST( 24 AS DECIMAL ) ) / - 17 ELSE NULL END AS col0, + 38 + - 84 AS col2
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-3006
SELECT + CASE + 0 WHEN + ( - - 53 ) + - 77 - - - 98 - + 68 / + ( + 6 ) THEN NULL WHEN + - 47 + - 56 THEN + - ( + + CAST ( 24 AS REAL ) ) / - 17 ELSE NULL END AS col0, + 38 + - 84 AS col2
----
NULL
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT ALL + 97 DIV 68 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + 97 / 68 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT DISTINCT + 80 * - CASE + - 87 WHEN - 15 + - COUNT( * ) THEN NULL WHEN + ( - AVG ( + ( 49 ) ) ) * - 48 THEN - 67 * - ( - 40 ) * - 83 + + + ( 17 ) * 86 - 46 * 78 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT + 80 * - CASE + - 87 WHEN - 15 + - COUNT ( * ) THEN NULL WHEN + ( - AVG ( + ( 49 ) ) ) * - 48 THEN - 67 * - ( - 40 ) * - 83 + + + ( 17 ) * 86 - 46 * 78 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT DISTINCT CAST( NULL AS SIGNED ) / 31 * 86 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 31 * 86 * - 58
----
NULL

query I rowsort
SELECT ALL 5 - - - 22 AS col0
----
-17

query II rowsort
SELECT ALL ( + + 75 ), + 77 * - 25 AS col1
----
75
-1925

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT - ( - - 40 ) DIV + 40 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3012
SELECT - ( - - 40 ) / + 40 col1
----
-1

query I rowsort
SELECT DISTINCT + 80 * - 3
----
-240

query I rowsort
SELECT + 63 - + + 32
----
31

query I rowsort
SELECT ALL - 17 * + ( - 2 ) * + 29 AS col0
----
986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3016
SELECT - COUNT( * ) * + CAST( - + ( + 94 ) AS SIGNED ) DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT - COUNT ( * ) * + CAST ( - + ( + 94 ) AS INTEGER ) / 96 AS col1
----
0

query I rowsort
SELECT + 39 * + 61
----
2379

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL CASE + 52 WHEN - 60 / - - 86 THEN - + 99 / - 23 + + COUNT( * ) + - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL CASE + 52 WHEN - 60 / - - 86 THEN - + 99 / - 23 + + COUNT ( * ) + - 53 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT DISTINCT NULLIF ( + - CAST( 97 AS SIGNED ), + + MAX( 43 ) + - 37 * 96 / - 98 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT NULLIF ( + - CAST ( 97 AS INTEGER ), + + MAX ( 43 ) + - 37 * 96 / - 98 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT - + 62 + 44 AS col2, + CASE COUNT( * ) WHEN - - 47 THEN - 14 * + COALESCE ( - 96, + 60 + 66 ) ELSE NULL END * + - 98 * + 66
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-3021
SELECT - + 62 + 44 AS col2, + CASE COUNT ( * ) WHEN - - 47 THEN - 14 * + COALESCE ( - 96, + 60 + 66 ) ELSE NULL END * + - 98 * + 66
----
-18
NULL

query I rowsort
SELECT DISTINCT ( 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL - COALESCE ( - - 23, NULLIF ( + COUNT( * ), 85 ) + 34 )
----
-23

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - COALESCE ( - - 23, NULLIF ( + COUNT ( * ), 85 ) + 34 )
----
-23

query I rowsort
SELECT NULLIF ( 82, - - 11 * + ( - + 58 ) )
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3025
SELECT ALL + 65 * - 9 - - NULLIF ( 33, + 47 ) + - - 52 * CAST( NULL AS DECIMAL ) * + + 22 + 16 + - ( 13 ) / - 1 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + 65 * - 9 - - NULLIF ( 33, + 47 ) + - - 52 * CAST ( NULL AS REAL ) * + + 22 + 16 + - ( 13 ) / - 1 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 98 + - 62
----
-160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3027
SELECT - 55 DIV + COUNT( * ) - - 58 * 64 DIV + + 98, 29 AS col0
----
-18
29

skipif mysql # not compatible
query II rowsort label-3027
SELECT - 55 / + COUNT ( * ) - - 58 * 64 / + + 98, 29 AS col0
----
-18
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3028
SELECT ALL - 65 DIV + 22 + + - CAST( - - 60 AS SIGNED ) - - 9 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - 65 / + 22 + + - CAST ( - - 60 AS INTEGER ) - - 9 AS col0
----
-53

query I rowsort
SELECT DISTINCT + - COALESCE ( - - 20, - - 38 ) AS col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3030
SELECT ALL + COUNT( * ) DIV 47 * - + MAX( - - 78 ) DIV - - 13 + + - 73 + 44 DIV + 49
----
-73

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL + COUNT ( * ) / 47 * - + MAX ( - - 78 ) / - - 13 + + - 73 + 44 / + 49
----
-73

query II rowsort
SELECT + - 35 + + + 64 AS col1, 14 * - 47 AS col2
----
29
-658

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3032
SELECT DISTINCT + + 13 DIV 58 * + 55 * ( + - CAST( 38 AS SIGNED ) ) + COALESCE ( - + 93, + 61 - - 83 )
----
-93

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT + + 13 / 58 * + 55 * ( + - CAST ( 38 AS INTEGER ) ) + COALESCE ( - + 93, + 61 - - 83 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT DISTINCT - - 46 / - 97 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - - 46 / - 97 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - COALESCE ( 53, + 26 + + - COUNT( * ) * 35 ) * 53 - + COUNT( * )
----
-2810

skipif mysql # not compatible
query I rowsort label-3035
SELECT - COALESCE ( 53, + 26 + + - COUNT ( * ) * 35 ) * 53 - + COUNT ( * )
----
-2810

query II rowsort
SELECT + 70 * + 3 * - CASE - 55 WHEN 29 + CASE - 38 WHEN + + 37 THEN - + 52 + - 80 END + + 81 THEN - 91 END AS col0, ( - + 43 ) + - 56
----
NULL
-99

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

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL - 88 / + + 88
----
-1

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

query I rowsort
SELECT 20 * 16 + + - 91 AS col1
----
229

query II rowsort
SELECT DISTINCT + 12 AS col2, + 14 + 52 + + 62
----
12
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT + 70 * MAX( DISTINCT + 15 ) * + 70 - 56 AS col0
----
73444

skipif mysql # not compatible
query I rowsort label-3041
SELECT + 70 * MAX ( DISTINCT + 15 ) * + 70 - 56 AS col0
----
73444

query I rowsort
SELECT 96 + + 33
----
129

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT ALL + 58 DIV - 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + 58 / - 49 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT DISTINCT 98, - SUM( ALL 49 ) AS col0
----
98
-49

skipif mysql # not compatible
query II rowsort label-3045
SELECT DISTINCT 98, - SUM ( ALL 49 ) AS col0
----
98
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3046
SELECT 95 + + + 35 + - COUNT( * ) DIV - 63 + + 47
----
177

skipif mysql # not compatible
query I rowsort label-3046
SELECT 95 + + + 35 + - COUNT ( * ) / - 63 + + 47
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-3047
SELECT 5 + MAX( 30 ), 39 AS col2
----
35
39

skipif mysql # not compatible
query II rowsort label-3047
SELECT 5 + MAX ( 30 ), 39 AS col2
----
35
39

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

skipif mysql # not compatible
query I rowsort label-3048
SELECT + CAST ( NULL AS REAL ) + - - 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL + COUNT( * ) + + - 83
----
-82

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

query I rowsort
SELECT 86 * - + 3
----
-258

query I rowsort
SELECT + 38 + - + 4 - + + 38 + 0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL CASE + 95 WHEN + 94 * - - 27 + + + 72 THEN 19 / + 30 + - 67 + COUNT( * ) + - 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL CASE + 95 WHEN + 94 * - - 27 + + + 72 THEN 19 / + 30 + - 67 + COUNT ( * ) + - 16 END AS col1
----
NULL

query II rowsort
SELECT 99 AS col0, - 16 AS col0
----
99
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT CAST( + CAST( 91 AS SIGNED ) AS SIGNED ) + + 68 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-3054
SELECT CAST ( + CAST ( 91 AS INTEGER ) AS INTEGER ) + + 68 AS col2
----
159

query I rowsort
SELECT ALL - 44 + 67 col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT DISTINCT - 34, COUNT( ALL + - 36 ) AS col1
----
-34
1

skipif mysql # not compatible
query II rowsort label-3056
SELECT DISTINCT - 34, COUNT ( ALL + - 36 ) AS col1
----
-34
1

query I rowsort
SELECT DISTINCT - 28 + + + 20
----
-8

query I rowsort
SELECT DISTINCT - - 65 + 41
----
106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3059
SELECT - COUNT( * ) + + CAST( NULL AS DECIMAL ) * + 90 + - - 58 + + COUNT( ALL + 21 ) * - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT - COUNT ( * ) + + CAST ( NULL AS REAL ) * + 90 + - - 58 + + COUNT ( ALL + 21 ) * - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3060
SELECT DISTINCT + ( + 82 ) + - 93 DIV + 3, + 46 - COUNT( * ) * - - 12 + - + 52 * + - 11 + + - 56 * - + 61 AS col2
----
51
4022

skipif mysql # not compatible
query II rowsort label-3060
SELECT DISTINCT + ( + 82 ) + - 93 / + 3, + 46 - COUNT ( * ) * - - 12 + - + 52 * + - 11 + + - 56 * - + 61 AS col2
----
51
4022

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT DISTINCT + 36 + + - 10 * - 88 * 90 + - COUNT( * ) AS col1
----
79235

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT + 36 + + - 10 * - 88 * 90 + - COUNT ( * ) AS col1
----
79235

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

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

query I rowsort
SELECT - 32 * + 88
----
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT COUNT( 4 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3064
SELECT COUNT ( 4 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3065
SELECT ALL + 92 DIV - MIN( DISTINCT ( + + 80 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + 92 / - MIN ( DISTINCT ( + + 80 ) )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3066
SELECT + + 19 col1, 14 DIV + - 78 AS col0
----
19
0

skipif mysql # not compatible
query II rowsort label-3066
SELECT + + 19 col1, 14 / + - 78 AS col0
----
19
0

query I rowsort
SELECT 34 - 7 AS col2
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT + + 89 - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT + + 89 - - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3070
SELECT ALL - 43 * 71 DIV + ( - SUM( DISTINCT 81 ) ) + + + 27
----
64

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - 43 * 71 / + ( - SUM ( DISTINCT 81 ) ) + + + 27
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3071
SELECT + 7 * + 90 * CASE 6 WHEN + 58 + COUNT( * ) + + - CAST( NULL AS SIGNED ) + + 28 * + + 50 * + - 89 THEN - + COUNT( * ) * + + CAST( - - 58 AS SIGNED ) + - 25 * 60 WHEN - - 43 - - 94 * - - 5 * + ( CAST( NULL AS SIGNED ) ) + MIN( - 34 ) THEN + 48 + - 27 WHEN 23 THEN + COUNT( * ) + + 56 * - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT + 7 * + 90 * CASE 6 WHEN + 58 + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + + 28 * + + 50 * + - 89 THEN - + COUNT ( * ) * + + CAST ( - - 58 AS INTEGER ) + - 25 * 60 WHEN - - 43 - - 94 * - - 5 * + ( CAST ( NULL AS INTEGER ) ) + MIN ( - 34 ) THEN + 48 + - 27 WHEN 23 THEN + COUNT ( * ) + + 56 * - COUNT ( * ) END AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + 52 - 26 AS col1
----
26

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3076
SELECT ALL 46 DIV NULLIF ( - CASE + ( - MIN( - 25 ) ) WHEN SUM( - 43 ) * - - 45 * - 25 DIV + ( - 3 ) THEN - + COUNT( * ) * + MIN( ALL 55 ) * 44 * + 80 - 13 * + + 71 + + 60 WHEN + COUNT( * ) THEN NULL ELSE - SUM( + 86 ) END, COUNT( - 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL 46 / NULLIF ( - CASE + ( - MIN ( - 25 ) ) WHEN SUM ( - 43 ) * - - 45 * - 25 / + ( - 3 ) THEN - + COUNT ( * ) * + MIN ( ALL 55 ) * 44 * + 80 - 13 * + + 71 + + 60 WHEN + COUNT ( * ) THEN NULL ELSE - SUM ( + 86 ) END, COUNT ( - 48 ) )
----
0

query I rowsort
SELECT ( + 12 ) * - COALESCE ( - - 24, + - ( + 49 ) * 51 + + 93 + - 34 ) AS col1
----
-288

onlyif mysql # DIV for integer division: 
query II rowsort label-3078
SELECT DISTINCT 93 DIV + 78 col2, 78
----
1
78

skipif mysql # not compatible
query II rowsort label-3078
SELECT DISTINCT 93 / + 78 col2, 78
----
1
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL COALESCE ( 50, + - 72 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL COALESCE ( 50, + - 72 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT ALL 80 + - CAST( NULL AS SIGNED ) * 19 * + CAST( 28 AS SIGNED ) * - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL 80 + - CAST ( NULL AS INTEGER ) * 19 * + CAST ( 28 AS INTEGER ) * - 44 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT DISTINCT ( - COUNT( * ) ) + + 44 - COUNT( * ) + COUNT( * ) + + + 11 + 15 * 6 + - 0 * - 25 * - 25 * 38 + - 2 + - 37 * - CASE - - CASE - CAST( NULL AS SIGNED ) WHEN - - 96 / + + 49 + 89 THEN 91 + + 29 / + 6 ELSE NULL END WHEN 74 + 20 * 36 THEN + ( 25 ) ELSE + 68 * 50 END * + 87 AS col1
----
10944742

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT ( - COUNT ( * ) ) + + 44 - COUNT ( * ) + COUNT ( * ) + + + 11 + 15 * 6 + - 0 * - 25 * - 25 * 38 + - 2 + - 37 * - CASE - - CASE - CAST ( NULL AS INTEGER ) WHEN - - 96 / + + 49 + 89 THEN 91 + + 29 / + 6 ELSE NULL END WHEN 74 + 20 * 36 THEN + ( 25 ) ELSE + 68 * 50 END * + 87 AS col1
----
10944742

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL SUM( + NULLIF ( - 81, + 35 ) ) * + 83 * + + 89 + + COUNT( * ) - + COUNT( ALL + 58 ) * - - 36 * + 96
----
-601802

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL SUM ( + NULLIF ( - 81, + 35 ) ) * + 83 * + + 89 + + COUNT ( * ) - + COUNT ( ALL + 58 ) * - - 36 * + 96
----
-601802

query I rowsort
SELECT DISTINCT 9 + - + NULLIF ( + 34, - 43 ) + + - 50 + - + 4
----
-79

query II rowsort
SELECT DISTINCT 85 * - 51 * - - NULLIF ( - 63, - 82 ) * + 21 + - 74, 69 + + ( 70 ) AS col0
----
5735131
139

query I rowsort
SELECT ALL 44 + 51 + 41
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT - CASE + + 57 WHEN 86 THEN + COALESCE ( + 10, - COALESCE ( - + 23, + + 60 / + 12 + + COUNT( * ) * + 38 + + 83 + + 40 ) ) WHEN 37 / - 68 * - - 82 * + 9 + 63 THEN - 65 + 86 * 62 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT - CASE + + 57 WHEN 86 THEN + COALESCE ( + 10, - COALESCE ( - + 23, + + 60 / + 12 + + COUNT ( * ) * + 38 + + 83 + + 40 ) ) WHEN 37 / - 68 * - - 82 * + 9 + 63 THEN - 65 + 86 * 62 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3087
SELECT CAST( 70 AS SIGNED ) + - + 22
----
48

skipif mysql # not compatible
query I rowsort label-3087
SELECT CAST ( 70 AS INTEGER ) + - + 22
----
48

query I rowsort
SELECT ALL 92 + - ( - 75 )
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT DISTINCT - - 4 DIV 83 DIV - + 82 + 63
----
63

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT - - 4 / 83 / - + 82 + 63
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3090
SELECT - 89 - + COUNT( * ) DIV - + COALESCE ( COUNT( * ), - CASE CASE CASE + 7 WHEN - 62 * - 12 * + 57 THEN NULL WHEN 14 + + + 7 THEN NULL WHEN COUNT( * ) + 10 THEN 8 * - COUNT( DISTINCT + 91 ) + 53 END WHEN - 26 THEN 69 + - COUNT( * ) ELSE NULL END WHEN - 70 THEN NULL WHEN + CAST( 90 AS DECIMAL ) THEN NULL ELSE 71 END - 5 )
----
-88

skipif mysql # not compatible
query I rowsort label-3090
SELECT - 89 - + COUNT ( * ) / - + COALESCE ( COUNT ( * ), - CASE CASE CASE + 7 WHEN - 62 * - 12 * + 57 THEN NULL WHEN 14 + + + 7 THEN NULL WHEN COUNT ( * ) + 10 THEN 8 * - COUNT ( DISTINCT + 91 ) + 53 END WHEN - 26 THEN 69 + - COUNT ( * ) ELSE NULL END WHEN - 70 THEN NULL WHEN + CAST ( 90 AS REAL ) THEN NULL ELSE 71 END - 5 )
----
-88

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

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

query I rowsort
SELECT ALL + COALESCE ( + 95, + 72 ) + + 64
----
159

query I rowsort
SELECT ALL + - 67 * - + 74
----
4958

query II rowsort
SELECT 70 + + - 35 col1, 60 * - - ( + CASE + 2 WHEN 63 / + - 96 + - ( 35 ) + + 1 + - ( + + 31 ) * + - 68 * + 41 * + NULLIF ( + + 27, - - 6 + - 63 ) + + 71 * + 62 THEN NULL WHEN 38 * + ( 49 * 44 ) THEN 50 * - 47 + 87 END )
----
35
NULL

query I rowsort
SELECT ALL + + ( 34 ) * - 11
----
-374

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

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

query I rowsort
SELECT NULLIF ( + + 19, + 80 + 46 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3098
SELECT COUNT( * ) + - COUNT( DISTINCT + 63 ) / 2 - + - 7 * + CAST( NULL AS DECIMAL ) / + - 68 / 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT COUNT ( * ) + - COUNT ( DISTINCT + 63 ) / 2 - + - 7 * + CAST ( NULL AS REAL ) / + - 68 / 54 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3099
SELECT + 8 / - - 57 + COUNT ( * ) * + + 14 + COUNT ( * ) + 57 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT - 5 * + 8 + + 45 * - + ( + - 66 ) * - 84 + - 14 + COUNT( * ) + 15 * + 30 + - 16 col0
----
-249099

skipif mysql # not compatible
query I rowsort label-3100
SELECT - 5 * + 8 + + 45 * - + ( + - 66 ) * - 84 + - 14 + COUNT ( * ) + 15 * + 30 + - 16 col0
----
-249099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT DISTINCT - - CASE + 41 WHEN + COUNT( * ) THEN + - 70 + - + CAST( + 10 AS SIGNED ) + - 16 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT - - CASE + 41 WHEN + COUNT ( * ) THEN + - 70 + - + CAST ( + 10 AS INTEGER ) + - 16 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 69 * - 38
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT COUNT( * ) * CASE + 49 WHEN - + 25 * 70 THEN + COUNT( * ) WHEN 49 THEN + COUNT( DISTINCT 99 ) END + 54 * CASE - 89 WHEN - 64 THEN NULL ELSE 26 END - - 47 * + 56
----
4037

skipif mysql # not compatible
query I rowsort label-3103
SELECT COUNT ( * ) * CASE + 49 WHEN - + 25 * 70 THEN + COUNT ( * ) WHEN 49 THEN + COUNT ( DISTINCT 99 ) END + 54 * CASE - 89 WHEN - 64 THEN NULL ELSE 26 END - - 47 * + 56
----
4037

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3104
SELECT - COUNT( - 81 ) + - + 97 + - 34 DIV + 84, 0 + - - 28 AS col2
----
-98
28

skipif mysql # not compatible
query II rowsort label-3104
SELECT - COUNT ( - 81 ) + - + 97 + - 34 / + 84, 0 + - - 28 AS col2
----
-98
28

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3106
SELECT - 28 DIV - MAX( + + ( - 85 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3106
SELECT - 28 / - MAX ( + + ( - 85 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT 30 * + 84 + + + 24 - - NULLIF ( 99, - - 59 ) * - + 29 * + + COUNT( * )
----
-327

skipif mysql # not compatible
query I rowsort label-3107
SELECT 30 * + 84 + + + 24 - - NULLIF ( 99, - - 59 ) * - + 29 * + + COUNT ( * )
----
-327

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT - 46 * - 40 * + - MIN( DISTINCT - + 32 ) AS col1
----
58880

skipif mysql # not compatible
query I rowsort label-3108
SELECT - 46 * - 40 * + - MIN ( DISTINCT - + 32 ) AS col1
----
58880

query I rowsort
SELECT DISTINCT - 58 * - 44
----
2552

query I rowsort
SELECT DISTINCT - 49 * - + 42
----
2058

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

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

query I rowsort
SELECT ALL + ( 76 ) * 92 * 44 - - ( 51 ) - - NULLIF ( + + 96, - + 9 ) * - 1 + - 1
----
307602

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL AVG ( ALL - NULLIF ( + 72, + - 16 ) ) / - CASE - 59 WHEN + - 66 + - MIN( - 51 ) THEN - + ( 40 ) WHEN 2 THEN NULL END + - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL AVG ( ALL - NULLIF ( + 72, + - 16 ) ) / - CASE - 59 WHEN + - 66 + - MIN ( - 51 ) THEN - + ( 40 ) WHEN 2 THEN NULL END + - 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT + 62 + - SUM( ALL ( - 42 ) ) * - 67 * 60 * + + ( + 10 ), - 9 * + 28 * - 76 AS col1
----
-1688338
19152

skipif mysql # not compatible
query II rowsort label-3114
SELECT + 62 + - SUM ( ALL ( - 42 ) ) * - 67 * 60 * + + ( + 10 ), - 9 * + 28 * - 76 AS col1
----
-1688338
19152

query I rowsort
SELECT ALL - 31 + - 40
----
-71

query I rowsort
SELECT - 50 + + + 75 AS col0
----
25

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

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

query II rowsort
SELECT + 32 + + + COALESCE ( + 60, - ( + 51 ) + + - 91 ) AS col2, 37 AS col2
----
92
37

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3120
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0, - 14 * - 13 + - 88 col0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-3120
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0, - 14 * - 13 + - 88 col0
----
NULL
94

query I rowsort
SELECT + - 97 + + 82 AS col1
----
-15

query I rowsort
SELECT ALL + 28 + + 95 * 10
----
978

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

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

query II rowsort
SELECT COALESCE ( - 66, 83 + - 9, + + 99 * 88 ) AS col1, - 57
----
-66
-57

query I rowsort
SELECT ALL + ( + 6 ) - - 55 + - 71 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT + COUNT( * ) - + - COALESCE ( + + ( 32 ), + - 51 + + - 88, + 85 + - COUNT( * ) ) + - + 17
----
16

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT + COUNT ( * ) - + - COALESCE ( + + ( 32 ), + - 51 + + - 88, + 85 + - COUNT ( * ) ) + - + 17
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL MIN( DISTINCT - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL MIN ( DISTINCT - 38 ) AS col1
----
-38

query I rowsort
SELECT + 62 * - 24 col1
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT + 36 + + CASE - 71 WHEN 77 THEN 32 / COALESCE ( - - 9, 0 + + 51 + - - 13 + - 49 * 13 + - COUNT( * ), + MIN( + 30 ) ) WHEN - + COALESCE ( + 77, - 92 + - 58 * + 33 ) + MIN( ALL + 16 + 99 * + 64 ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT + 36 + + CASE - 71 WHEN 77 THEN 32 / COALESCE ( - - 9, 0 + + 51 + - - 13 + - 49 * 13 + - COUNT ( * ), + MIN ( + 30 ) ) WHEN - + COALESCE ( + 77, - 92 + - 58 * + 33 ) + MIN ( ALL + 16 + 99 * + 64 ) THEN NULL END col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3130
SELECT MAX ( 99 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3131
SELECT - COUNT( * ) AS col0, - 31 + ( + 54 ) AS col2
----
-1
23

skipif mysql # not compatible
query II rowsort label-3131
SELECT - COUNT ( * ) AS col0, - 31 + ( + 54 ) AS col2
----
-1
23

query I rowsort
SELECT - 50 + 55 AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT ALL - 10 DIV 13 * + 18 DIV + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - 10 / 13 * + 18 / + 26 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3134
SELECT DISTINCT - 93 * ( + 63 ) AS col1, NULLIF ( + COUNT( * ), - 93 * - COUNT( 74 ) ) AS col0
----
-5859
1

skipif mysql # not compatible
query II rowsort label-3134
SELECT DISTINCT - 93 * ( + 63 ) AS col1, NULLIF ( + COUNT ( * ), - 93 * - COUNT ( 74 ) ) AS col0
----
-5859
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT ALL + SUM( DISTINCT - 33 ) * 21 * + CAST( 92 AS SIGNED ) AS col1
----
-63756

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL + SUM ( DISTINCT - 33 ) * 21 * + CAST ( 92 AS INTEGER ) AS col1
----
-63756

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT + 25 * + COALESCE ( + ( - COUNT( * ) ), COUNT( * ) * + ( - 16 ), - COUNT( * ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3136
SELECT + 25 * + COALESCE ( + ( - COUNT ( * ) ), COUNT ( * ) * + ( - 16 ), - COUNT ( * ) ) AS col0
----
-25

query I rowsort
SELECT ALL 82 * - - 52 * - - 43
----
183352

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3139
SELECT ALL + 34, CAST( + COALESCE ( - + 89, + - 91 * + 85 * - 2 + + 92 + - 74 + - - NULLIF ( 59, 80 ) ) AS SIGNED ) * - 36 + + - 49 + + + CAST( NULL AS DECIMAL ) + + 7 + 71 AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-3139
SELECT ALL + 34, CAST ( + COALESCE ( - + 89, + - 91 * + 85 * - 2 + + 92 + - 74 + - - NULLIF ( 59, 80 ) ) AS INTEGER ) * - 36 + + - 49 + + + CAST ( NULL AS REAL ) + + 7 + 71 AS col2
----
34
NULL

query I rowsort
SELECT + 17 * ( + 99 )
----
1683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3141
SELECT 99 / - COUNT( ALL - 66 ) + - - CAST( NULL AS SIGNED ) * + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT 99 / - COUNT ( ALL - 66 ) + - - CAST ( NULL AS INTEGER ) * + 40 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT ALL 76 / - 96 + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL 76 / - 96 + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3143
SELECT + 76 col1, COUNT( * ) - - + COUNT( * ) + - 24
----
76
-22

skipif mysql # not compatible
query II rowsort label-3143
SELECT + 76 col1, COUNT ( * ) - - + COUNT ( * ) + - 24
----
76
-22

query I rowsort
SELECT DISTINCT + 81 * + 24 + + - 53 * - 43
----
4223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT DISTINCT 45 * + CASE 18 WHEN 25 THEN CAST( NULL AS SIGNED ) ELSE + + 87 * + 61 END + - + 99 + + 4
----
238720

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT 45 * + CASE 18 WHEN 25 THEN CAST ( NULL AS INTEGER ) ELSE + + 87 * + 61 END + - + 99 + + 4
----
238720

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

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

query I rowsort
SELECT DISTINCT 88 * NULLIF ( ( + - 37 ), - 39 + - 55 - 75 ) + - 20
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT - COUNT( * ) * + - 0 * + 19
----
0

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT - COUNT ( * ) * + - 0 * + 19
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT ALL + CAST( - SUM( ALL + 82 ) AS SIGNED )
----
-82

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

query II rowsort
SELECT + 99 AS col1, 9 + - 34
----
99
-25

query I rowsort
SELECT ALL + ( - 60 ) * - - 0 + - - 73 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + CASE - CASE - 54 WHEN - - 95 * - COUNT( * ) THEN NULL WHEN - 93 THEN + + 71 * + SUM( + + 19 ) ELSE + - 86 END WHEN + + ( + 97 ) + - - ( + 73 ) * 17 THEN NULL WHEN + 36 THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT + CASE - CASE - 54 WHEN - - 95 * - COUNT ( * ) THEN NULL WHEN - 93 THEN + + 71 * + SUM ( + + 19 ) ELSE + - 86 END WHEN + + ( + 97 ) + - - ( + 73 ) * 17 THEN NULL WHEN + 36 THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ALL - 71 * - 15 * 38 * COUNT( * ) + - - 77 AS col2
----
40547

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL - 71 * - 15 * 38 * COUNT ( * ) + - - 77 AS col2
----
40547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3154
SELECT - 20 * + + NULLIF ( + COUNT( * ), + - 84 - - - MIN( ALL - ( - CAST( + 24 AS SIGNED ) ) ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3154
SELECT - 20 * + + NULLIF ( + COUNT ( * ), + - 84 - - - MIN ( ALL - ( - CAST ( + 24 AS INTEGER ) ) ) )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT DISTINCT + + 25 * - 10 * - + 54 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + + 25 * - 10 * - + 54 - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 22 AS col0, - 58
----
22
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3157
SELECT DISTINCT - 49 DIV + CAST( ( - - ( - 35 ) ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT - 49 / + CAST ( ( - - ( - 35 ) ) AS INTEGER ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT - - COUNT( * ) * 28 - + 38
----
-10

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT - - COUNT ( * ) * 28 - + 38
----
-10

query I rowsort
SELECT + CASE + 45 WHEN + 89 * + + 86 THEN + 21 ELSE + - ( 52 ) END * + - 16
----
832

query I rowsort
SELECT - 37 + - 58 AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3161
SELECT + 7 DIV + 43 * - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT + 7 / + 43 * - 46 AS col0
----
0

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

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

query I rowsort
SELECT ALL ( + 64 ) col1
----
64

query I rowsort
SELECT + + 75 + - NULLIF ( 23, + ( 44 ) ) AS col1
----
52

query I rowsort
SELECT ALL 26 * - - 43
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT - CASE + 9 WHEN + COUNT( * ) THEN + + 66 END * 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT - CASE + 9 WHEN + COUNT ( * ) THEN + + 66 END * 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT CASE + 0 WHEN - 37 * - NULLIF ( 87, + MAX( DISTINCT + - 32 ) * - 38 * COALESCE ( - COUNT( ALL + 63 ), - 91 * 57, - 53 * 77 - + NULLIF ( + COUNT( * ), + COUNT( ALL + 29 ) * 32 + - + COUNT( * ) * 25 - 87 ) * MIN( ALL + 19 + 35 ) ) * - COUNT( * ) ) THEN 86 / - 76 WHEN COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT CASE + 0 WHEN - 37 * - NULLIF ( 87, + MAX ( DISTINCT + - 32 ) * - 38 * COALESCE ( - COUNT ( ALL + 63 ), - 91 * 57, - 53 * 77 - + NULLIF ( + COUNT ( * ), + COUNT ( ALL + 29 ) * 32 + - + COUNT ( * ) * 25 - 87 ) * MIN ( ALL + 19 + 35 ) ) * - COUNT ( * ) ) THEN 86 / - 76 WHEN COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 1 + - 46
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3169
SELECT ALL 84 * + 14 * - 25 + - 3 + + 42 + - 32 DIV 76 * 18 * + COUNT( * ) AS col2, 63 col2
----
-29361
63

skipif mysql # not compatible
query II rowsort label-3169
SELECT ALL 84 * + 14 * - 25 + - 3 + + 42 + - 32 / 76 * 18 * + COUNT ( * ) AS col2, 63 col2
----
-29361
63

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

query II rowsort
SELECT 54 + 78 AS col0, 16
----
132
16

query I rowsort
SELECT DISTINCT 94 + - 96 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3173
SELECT ALL 29 + + - 22 AS col2, + 85 - 67 + + 76 * CAST( NULL AS SIGNED ) * 61
----
7
NULL

skipif mysql # not compatible
query II rowsort label-3173
SELECT ALL 29 + + - 22 AS col2, + 85 - 67 + + 76 * CAST ( NULL AS INTEGER ) * 61
----
7
NULL

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

skipif mysql # not compatible
query I rowsort label-3174
SELECT ( + 32 ) / COUNT ( * ) AS col0
----
32

query I rowsort
SELECT ALL 93 + + 65 - - 34
----
192

query I rowsort
SELECT DISTINCT + 86 * - 37 * - 15 AS col2
----
47730

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT ALL - ( - - COUNT( * ) ) + 48 * + ( - 1 ) col0
----
-49

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL - ( - - COUNT ( * ) ) + 48 * + ( - 1 ) col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT CASE + COUNT( * ) WHEN + 48 / 63 + - + 77 THEN + CAST( NULL AS SIGNED ) * + 92 + + 4 * + ( - 43 ) + - 76 * 66 / 93 WHEN + + 63 THEN NULL END * + - CAST( - 94 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT CASE + COUNT ( * ) WHEN + 48 / 63 + - + 77 THEN + CAST ( NULL AS INTEGER ) * + 92 + + 4 * + ( - 43 ) + - 76 * 66 / 93 WHEN + + 63 THEN NULL END * + - CAST ( - 94 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ( 11 ) + + 16 AS col2, 36 AS col1
----
27
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3180
SELECT 21 / - - 11 * - CAST( NULL AS SIGNED ) AS col1, 22 + + 1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-3180
SELECT 21 / - - 11 * - CAST ( NULL AS INTEGER ) AS col1, 22 + + 1
----
NULL
23

query I rowsort
SELECT DISTINCT CASE WHEN NOT NULL < 82 THEN - 9 * 36 - - 62 ELSE - - 22 - - 29 + - + 5 END + 41 * - + CASE WHEN NOT 34 IS NULL THEN NULL ELSE - 81 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT 4 * + 27 + COUNT( * ) + - + 9 * + + 21 - 73
----
-153

skipif mysql # not compatible
query I rowsort label-3182
SELECT 4 * + 27 + COUNT ( * ) + - + 9 * + + 21 - 73
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT - 52 * - - 30 + + COUNT( * ) * 32 - + + 60 * 82
----
-6448

skipif mysql # not compatible
query I rowsort label-3183
SELECT - 52 * - - 30 + + COUNT ( * ) * 32 - + + 60 * 82
----
-6448

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

skipif mysql # not compatible
query I rowsort label-3184
SELECT CAST ( NULL AS INTEGER ) * - 52 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 68 - + + 78
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT 32 * 46 + - COUNT( * )
----
1471

skipif mysql # not compatible
query I rowsort label-3186
SELECT 32 * 46 + - COUNT ( * )
----
1471

query I rowsort
SELECT ALL + 20 * - 84 - - 58 * - - 32 AS col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT 6 * - COUNT( - 24 ) * + + 29 * + 13 AS col1
----
-2262

skipif mysql # not compatible
query I rowsort label-3188
SELECT 6 * - COUNT ( - 24 ) * + + 29 * + 13 AS col1
----
-2262

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3189
SELECT ALL - CAST( - 90 AS SIGNED ) AS col2, CASE 12 WHEN - 19 + 4 * + 2 - + 71 THEN NULL WHEN 58 THEN NULL ELSE 31 + 86 END AS col1
----
90
117

skipif mysql # not compatible
query II rowsort label-3189
SELECT ALL - CAST ( - 90 AS INTEGER ) AS col2, CASE 12 WHEN - 19 + 4 * + 2 - + 71 THEN NULL WHEN 58 THEN NULL ELSE 31 + 86 END AS col1
----
90
117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3190
SELECT ALL + 76 * - + AVG ( + 29 ) * + 46 * + 26 - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL + 76 * - + AVG ( + 29 ) * + 46 * + 26 - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT 98 + - SUM( DISTINCT 77 ) + - 75
----
-54

skipif mysql # not compatible
query I rowsort label-3191
SELECT 98 + - SUM ( DISTINCT 77 ) + - 75
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT + + COUNT( * ) * 73
----
73

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT + + COUNT ( * ) * 73
----
73

query I rowsort
SELECT DISTINCT + 26 * - 60 AS col0
----
-1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3194
SELECT ALL + COUNT( * ) * + 66 DIV - ( - + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + COUNT ( * ) * + 66 / - ( - + 54 )
----
1

query II rowsort
SELECT 78 + - - 96 AS col2, + 22 col0
----
174
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT + + SUM( - 8 ) + + 46 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT + + SUM ( - 8 ) + + 46 AS col0
----
38

query I rowsort
SELECT 47 + - + 99 AS col2
----
-52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT + COUNT( - 51 ) DIV + 2 col2
----
0

skipif mysql # not compatible
query I rowsort label-3199
SELECT + COUNT ( - 51 ) / + 2 col2
----
0

query I rowsort
SELECT 99 + + - 0
----
99

query I rowsort
SELECT DISTINCT 29 + + 2 AS col0
----
31

query I rowsort
SELECT ALL 88 + 96 AS col0
----
184

query II rowsort
SELECT DISTINCT 14, + 4 AS col2
----
14
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3204
SELECT DISTINCT - 17 + - ( + + COUNT( * ) ) DIV 42 * - 92 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT - 17 + - ( + + COUNT ( * ) ) / 42 * - 92 AS col1
----
-17

query I rowsort
SELECT 95 + - + 8 col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT DISTINCT - SUM( - - 54 ) + - + 17 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT - SUM ( - - 54 ) + - + 17 AS col0
----
-71

query I rowsort
SELECT ALL + 45 + + 48
----
93

query II rowsort
SELECT + 32 AS col2, 67 AS col0
----
32
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ( + COUNT( * ) ) * - 94 col1
----
-94

skipif mysql # not compatible
query I rowsort label-3209
SELECT ( + COUNT ( * ) ) * - 94 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT - 11 * COUNT( * ) + + - ( + SUM( DISTINCT - 36 ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3210
SELECT - 11 * COUNT ( * ) + + - ( + SUM ( DISTINCT - 36 ) ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT - 33 * + CASE COALESCE ( - - 10, 23 ) WHEN + + 21 THEN COUNT( * ) WHEN + - CASE - + 28 WHEN + AVG ( - + 26 ) THEN NULL WHEN - COALESCE ( + - COUNT( * ), + COUNT( * ) ) THEN - - 82 * - COUNT( * ) * + - 95 ELSE NULL END THEN - - 81 ELSE NULL END * COUNT( * ) - 94 * + + 99 + 85 + + - 38 * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT - 33 * + CASE COALESCE ( - - 10, 23 ) WHEN + + 21 THEN COUNT ( * ) WHEN + - CASE - + 28 WHEN + AVG ( - + 26 ) THEN NULL WHEN - COALESCE ( + - COUNT ( * ), + COUNT ( * ) ) THEN - - 82 * - COUNT ( * ) * + - 95 ELSE NULL END THEN - - 81 ELSE NULL END * COUNT ( * ) - 94 * + + 99 + 85 + + - 38 * 44 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT ALL CAST( + 4 AS SIGNED ) - + ( + + COALESCE ( ( + COUNT( * ) ), - - 75 + + 90 + - 1, - - 69 ) ) * + 76 * - 9 * - MIN( DISTINCT 49 )
----
-33512

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL CAST ( + 4 AS INTEGER ) - + ( + + COALESCE ( ( + COUNT ( * ) ), - - 75 + + 90 + - 1, - - 69 ) ) * + 76 * - 9 * - MIN ( DISTINCT 49 )
----
-33512

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT ALL 38 DIV - + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL 38 / - + 88 AS col0
----
0

query I rowsort
SELECT 44 * + 40
----
1760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + COUNT( ALL - - 20 ) * 83 * - COUNT( ALL 32 )
----
-83

skipif mysql # not compatible
query I rowsort label-3216
SELECT + COUNT ( ALL - - 20 ) * 83 * - COUNT ( ALL 32 )
----
-83

query II rowsort
SELECT - 29, 62 * + 87 + - NULLIF ( - 80, + + 55 ) AS col2
----
-29
5474

onlyif mysql # DIV for integer division: 
query I rowsort label-3218
SELECT + 80 DIV ( + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-3218
SELECT + 80 / ( + 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL + COUNT( * ) * + 74 * - 47
----
-3478

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL + COUNT ( * ) * + 74 * - 47
----
-3478

query II rowsort
SELECT ( 11 ) * 7 AS col1, 58 AS col2
----
77
58

query II rowsort
SELECT + 2 AS col0, 64 + + - 0
----
2
64

query I rowsort
SELECT 69 * + 68
----
4692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT 0 - CAST( NULL AS SIGNED ) + + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT 0 - CAST ( NULL AS INTEGER ) + + + 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3224
SELECT DISTINCT + 86 + COUNT( * ) + - 9 + - - 97 * + NULLIF ( 49, - COALESCE ( - + COUNT( * ), - + 86 ) * + CAST( COUNT( * ) AS DECIMAL ) + 41 * - - 51 ) * + 40 + 6 AS col0
----
190204

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT + 86 + COUNT ( * ) + - 9 + - - 97 * + NULLIF ( 49, - COALESCE ( - + COUNT ( * ), - + 86 ) * + CAST ( COUNT ( * ) AS REAL ) + 41 * - - 51 ) * + 40 + 6 AS col0
----
190204

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL + 64 + - COUNT( * ) * 47 + 35 + 74
----
126

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + 64 + - COUNT ( * ) * 47 + 35 + 74
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL + 53 + - + 33 + + ( + 19 ) * - 97 + + COUNT( * )
----
-1822

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + 53 + - + 33 + + ( + 19 ) * - 97 + + COUNT ( * )
----
-1822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3227
SELECT - + CAST( NULL AS SIGNED ) * - - 47 + + 76, + 76 + - + 26 - - COUNT( * ) AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3227
SELECT - + CAST ( NULL AS INTEGER ) * - - 47 + + 76, + 76 + - + 26 - - COUNT ( * ) AS col1
----
NULL
51

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

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

query I rowsort
SELECT + - 23 + - 54
----
-77

query I rowsort
SELECT ALL + 12 + 66 * + 43
----
2850

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3231
SELECT - 32 * + ( CAST( - + 53 AS SIGNED ) ) AS col1, + ( - 11 ) + NULLIF ( + 46, + 67 ) DIV 76
----
1696
-11

skipif mysql # not compatible
query II rowsort label-3231
SELECT - 32 * + ( CAST ( - + 53 AS INTEGER ) ) AS col1, + ( - 11 ) + NULLIF ( + 46, + 67 ) / 76
----
1696
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT ALL - COUNT( * ) + - + 99, - 48 AS col2
----
-100
-48

skipif mysql # not compatible
query II rowsort label-3232
SELECT ALL - COUNT ( * ) + - + 99, - 48 AS col2
----
-100
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - 94 + 2 - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-3233
SELECT - 94 + 2 - COUNT ( * )
----
-93

query I rowsort
SELECT ALL - 3 * - 76 AS col0
----
228

query I rowsort
SELECT DISTINCT 17 + + - 46
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL CASE - MIN( 93 ) WHEN + 53 THEN NULL WHEN 69 THEN + + CAST( NULL AS SIGNED ) + 89 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL CASE - MIN ( 93 ) WHEN + 53 THEN NULL WHEN 69 THEN + + CAST ( NULL AS INTEGER ) + 89 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL COALESCE ( + NULLIF ( 96, + 25 ), - COUNT( * ) * + + 27, - + 92 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL COALESCE ( + NULLIF ( 96, + 25 ), - COUNT ( * ) * + + 27, - + 92 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - 46 + + COUNT( * ) - 60
----
-105

skipif mysql # not compatible
query I rowsort label-3238
SELECT - 46 + + COUNT ( * ) - 60
----
-105

query I rowsort
SELECT ALL - 13 + 67 + 55
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT DISTINCT MAX( 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT MAX ( 54 ) AS col1
----
54

query I rowsort
SELECT - ( + 51 ) + + 2 + - - 9 + + + 95 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3242
SELECT ALL CASE + 88 WHEN MAX( 68 ) + + CASE + ( 20 ) WHEN - 82 THEN NULL ELSE - 11 + 80 - + + 78 END + + CAST( - 97 AS SIGNED ) * - 73 * + + COUNT( * ) + + + 51 + - CASE + 11 WHEN - COUNT( * ) * + + 10 THEN 32 END * - 30 THEN + CAST( NULL AS SIGNED ) + - + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL CASE + 88 WHEN MAX ( 68 ) + + CASE + ( 20 ) WHEN - 82 THEN NULL ELSE - 11 + 80 - + + 78 END + + CAST ( - 97 AS INTEGER ) * - 73 * + + COUNT ( * ) + + + 51 + - CASE + 11 WHEN - COUNT ( * ) * + + 10 THEN 32 END * - 30 THEN + CAST ( NULL AS INTEGER ) + - + 60 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3243
SELECT ALL COALESCE ( - + COALESCE ( + + 21, - COUNT( * ) DIV + + 14 + - 88 + - 14 * - + 88 * + - MIN( ( + + 52 ) ) + 85, + 18, - ( 61 ) ), + 54 * 89 * 32 + - NULLIF ( + 7, + - 73 ) + + - 50 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL COALESCE ( - + COALESCE ( + + 21, - COUNT ( * ) / + + 14 + - 88 + - 14 * - + 88 * + - MIN ( ( + + 52 ) ) + 85, + 18, - ( 61 ) ), + 54 * 89 * 32 + - NULLIF ( + 7, + - 73 ) + + - 50 ) AS col0
----
-21

query I rowsort
SELECT - 16 - 47 AS col1
----
-63

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

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

query I rowsort
SELECT + 92 + + 20 AS col0
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3247
SELECT - MIN( 69 ) col0, + 40 DIV - 48 + - 51
----
-69
-51

skipif mysql # not compatible
query II rowsort label-3247
SELECT - MIN ( 69 ) col0, + 40 / - 48 + - 51
----
-69
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3248
SELECT - 80 / + CAST( NULL AS DECIMAL ) AS col1, MIN( ALL - 39 )
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-3248
SELECT - 80 / + CAST ( NULL AS REAL ) AS col1, MIN ( ALL - 39 )
----
NULL
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT - 12 / CAST( NULL AS SIGNED ) * + COUNT( * ) * + MAX( - 67 ) * + 40 * - 13 + - COUNT( * ) + 17 + 78 - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT - 12 / CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + MAX ( - 67 ) * + 40 * - 13 + - COUNT ( * ) + 17 + 78 - 82
----
NULL

query I rowsort
SELECT + 26 * 52
----
1352

query II rowsort
SELECT ALL - - 1 * - 18 + + ( 42 ) col1, + 83 * 43 AS col2
----
24
3569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3252
SELECT + ( 98 ) / + - CAST( NULL AS SIGNED ) + - 35 + + ( 18 ) * ( 36 ) - - COUNT( * ), + 2 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3252
SELECT + ( 98 ) / + - CAST ( NULL AS INTEGER ) + - 35 + + ( 18 ) * ( 36 ) - - COUNT ( * ), + 2 AS col1
----
NULL
2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT - COUNT( * ) * - COALESCE ( - 51, - CAST( NULL AS SIGNED ) ) * - + 25 AS col1
----
1275

skipif mysql # not compatible
query I rowsort label-3254
SELECT - COUNT ( * ) * - COALESCE ( - 51, - CAST ( NULL AS INTEGER ) ) * - + 25 AS col1
----
1275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT 37 * + 79 + + COUNT( * ) - - 75 * COUNT( * ) AS col2
----
2999

skipif mysql # not compatible
query I rowsort label-3256
SELECT 37 * + 79 + + COUNT ( * ) - - 75 * COUNT ( * ) AS col2
----
2999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3257
SELECT + + 62 + + COUNT( * ), CAST( - COUNT( + 5 ) AS SIGNED ) AS col0
----
63
-1

skipif mysql # not compatible
query II rowsort label-3257
SELECT + + 62 + + COUNT ( * ), CAST ( - COUNT ( + 5 ) AS INTEGER ) AS col0
----
63
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL + ( - NULLIF ( - - 60, + - 70 / SUM( ALL 2 ) + 88 + - - NULLIF ( - COUNT( * ), + 10 + 93 ) ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + ( - NULLIF ( - - 60, + - 70 / SUM ( ALL 2 ) + 88 + - - NULLIF ( - COUNT ( * ), + 10 + 93 ) ) ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) + - - 22 + - 42 + + 70 + + 99 * + ( - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - - 22 + - 42 + + 70 + + 99 * + ( - 34 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3260
SELECT ALL CAST( NULL AS DECIMAL ) * 20 + 91 + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL CAST ( NULL AS REAL ) * 20 + 91 + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3261
SELECT ALL + 13 * - 55 * 50 + - COUNT( * ) AS col2, + 44 * 47 AS col0
----
-35751
2068

skipif mysql # not compatible
query II rowsort label-3261
SELECT ALL + 13 * - 55 * 50 + - COUNT ( * ) AS col2, + 44 * 47 AS col0
----
-35751
2068

onlyif mysql # DIV for integer division: 
query II rowsort label-3262
SELECT + 20 DIV 88 col2, + ( - - 18 )
----
0
18

skipif mysql # not compatible
query II rowsort label-3262
SELECT + 20 / 88 col2, + ( - - 18 )
----
0
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + COUNT( * ) + + + COUNT( * ) + + MIN( + ( - 39 ) ) + 78
----
41

skipif mysql # not compatible
query I rowsort label-3264
SELECT + COUNT ( * ) + + + COUNT ( * ) + + MIN ( + ( - 39 ) ) + 78
----
41

query I rowsort
SELECT ALL - 91 + + + 66
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT + 70 * + - 40 * - 5 * COUNT( * ) * + + 66 AS col1
----
924000

skipif mysql # not compatible
query I rowsort label-3266
SELECT + 70 * + - 40 * - 5 * COUNT ( * ) * + + 66 AS col1
----
924000

query I rowsort
SELECT ALL 76 + - 65 * - - 0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT 93 AS col0, NULLIF ( - + ( - COUNT( * ) ), + CASE 48 WHEN + + 51 THEN + 36 ELSE NULL END + ( 16 ) ) AS col0
----
93
1

skipif mysql # not compatible
query II rowsort label-3268
SELECT 93 AS col0, NULLIF ( - + ( - COUNT ( * ) ), + CASE 48 WHEN + + 51 THEN + 36 ELSE NULL END + ( 16 ) ) AS col0
----
93
1

query I rowsort
SELECT + 34 * - 69
----
-2346

query I rowsort
SELECT + 4 * - 79 AS col0
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - 98 + + + 39 + + SUM( ALL + 7 )
----
-52

skipif mysql # not compatible
query I rowsort label-3271
SELECT - 98 + + + 39 + + SUM ( ALL + 7 )
----
-52

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

skipif mysql # not compatible
query I rowsort label-3272
SELECT - 74 + + COUNT ( * ) AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3273
SELECT ALL CAST( - CAST( - COUNT( - 29 ) AS SIGNED ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL CAST ( - CAST ( - COUNT ( - 29 ) AS INTEGER ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT 19 DIV - 84 - + - 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3274
SELECT 19 / - 84 - + - 33 AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT - 26 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT - 26 / - - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - 38 * 53
----
-2014

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3279
SELECT - SUM( - 2 ) DIV + NULLIF ( - + 92, - 52 DIV - - MAX( 36 ) * 53 + - 66 ) * - + 21 + - - 2 + - - 60 + - + 53 + 11 + 94 + SUM( - 10 ) + - 73 + + 67
----
98

skipif mysql # not compatible
query I rowsort label-3279
SELECT - SUM ( - 2 ) / + NULLIF ( - + 92, - 52 / - - MAX ( 36 ) * 53 + - 66 ) * - + 21 + - - 2 + - - 60 + - + 53 + 11 + 94 + SUM ( - 10 ) + - 73 + + 67
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3280
SELECT ALL + 88 DIV + + COUNT( * ) + COUNT( * ), SUM( + 85 ) AS col2
----
89
85

skipif mysql # not compatible
query II rowsort label-3280
SELECT ALL + 88 / + + COUNT ( * ) + COUNT ( * ), SUM ( + 85 ) AS col2
----
89
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3281
SELECT - - 83 DIV - + CAST( + - 75 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3281
SELECT - - 83 / - + CAST ( + - 75 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT ALL + + COUNT( * ) DIV 63 + - 97 + - 39 AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + + COUNT ( * ) / 63 + - 97 + - 39 AS col0
----
-136

query I rowsort
SELECT ALL CASE 34 WHEN - 80 THEN - - 80 WHEN + 94 THEN NULL ELSE NULL END / - CASE + 37 WHEN + 73 THEN - + 83 ELSE NULL END + + - NULLIF ( COALESCE ( - 58, - 4 * - 4 ), 22 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT + - 84, - COUNT( * ) * + COALESCE ( 93, - 73 ) AS col0
----
-84
-93

skipif mysql # not compatible
query II rowsort label-3284
SELECT + - 84, - COUNT ( * ) * + COALESCE ( 93, - 73 ) AS col0
----
-84
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3285
SELECT ALL + + NULLIF ( + CASE CAST( NULL AS SIGNED ) WHEN - CASE + 47 WHEN COUNT( * ) * - 33 + - 19 THEN NULL WHEN + 76 THEN 91 - + 11 ELSE 91 END THEN 25 WHEN - 50 + - 52 THEN 9 WHEN + 65 THEN NULL END, 8 * + NULLIF ( - + 2, 67 * 23 - - 47 + 50 ) - + - ( - 86 ) + 2 ) / COUNT( * ) + + COUNT( 47 ) / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL + + NULLIF ( + CASE CAST ( NULL AS INTEGER ) WHEN - CASE + 47 WHEN COUNT ( * ) * - 33 + - 19 THEN NULL WHEN + 76 THEN 91 - + 11 ELSE 91 END THEN 25 WHEN - 50 + - 52 THEN 9 WHEN + 65 THEN NULL END, 8 * + NULLIF ( - + 2, 67 * 23 - - 47 + 50 ) - + - ( - 86 ) + 2 ) / COUNT ( * ) + + COUNT ( 47 ) / - 74
----
NULL

query I rowsort
SELECT ALL 77 + 89 AS col1
----
166

query I rowsort
SELECT ALL 82 * 82 - 42
----
6682

query I rowsort
SELECT ALL - - COALESCE ( - - 65, + 45 + - 78 ) AS col0
----
65

query I rowsort
SELECT DISTINCT - + 32 + 95 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - COALESCE ( - 2, + - 80 * - SUM( ALL + 24 ), COALESCE ( + ( 77 ), + 24 ) * 44 + 25 - 80 + - ( + 63 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3290
SELECT - COALESCE ( - 2, + - 80 * - SUM ( ALL + 24 ), COALESCE ( + ( 77 ), + 24 ) * 44 + 25 - 80 + - ( + 63 ) )
----
2

query I rowsort
SELECT ALL + 70 + - 92 + + - 91 * + 77 AS col0
----
-7029

query I rowsort
SELECT ALL - + NULLIF ( - + 84, ( 66 ) ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3293
SELECT DISTINCT - 43 + 60 * + NULLIF ( + + 75, + - CAST( + - 3 AS DECIMAL ) ) * 3 + MAX( DISTINCT + 26 )
----
13483

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - 43 + 60 * + NULLIF ( + + 75, + - CAST ( + - 3 AS REAL ) ) * 3 + MAX ( DISTINCT + 26 )
----
13483

query I rowsort
SELECT + 45 * - 57 AS col2
----
-2565

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT 78 DIV - - 12 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3295
SELECT 78 / - - 12 AS col0
----
6

query II rowsort
SELECT ALL + - 89 - 42 * - 9 AS col0, 29
----
289
29

query I rowsort
SELECT DISTINCT - 88 * - 24
----
2112

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3299
SELECT DISTINCT 7, + 56 + + 81 + + COUNT( * ) DIV - 85 * + + 96 AS col1
----
7
137

skipif mysql # not compatible
query II rowsort label-3299
SELECT DISTINCT 7, + 56 + + 81 + + COUNT ( * ) / - 85 * + + 96 AS col1
----
7
137

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3300
SELECT ALL 29 DIV - 80 AS col1, - CAST( + 66 AS SIGNED ) + - 74
----
0
-140

skipif mysql # not compatible
query II rowsort label-3300
SELECT ALL 29 / - 80 AS col1, - CAST ( + 66 AS INTEGER ) + - 74
----
0
-140

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

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

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

query II rowsort
SELECT - 17 AS col2, + 50 AS col0
----
-17
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3304
SELECT COUNT( 78 ) + COUNT( * ) + - 20 + - 95 + + 2 col1, - 2 AS col1
----
-111
-2

skipif mysql # not compatible
query II rowsort label-3304
SELECT COUNT ( 78 ) + COUNT ( * ) + - 20 + - 95 + + 2 col1, - 2 AS col1
----
-111
-2

query II rowsort
SELECT DISTINCT 73 AS col0, 4 - 69
----
73
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT COUNT( * ) * - + 94
----
-94

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT COUNT ( * ) * - + 94
----
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT DISTINCT 21 * + - ( MIN( 47 ) ) * - 37
----
36519

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT 21 * + - ( MIN ( 47 ) ) * - 37
----
36519

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-3310
SELECT 0 AS col1, ( - 92 ) DIV - 93, 32 * - - ( - 74 ) AS col0
----
0
0
-2368

skipif mysql # not compatible
query III rowsort label-3310
SELECT 0 AS col1, ( - 92 ) / - 93, 32 * - - ( - 74 ) AS col0
----
0
0
-2368

query II rowsort
SELECT 70 AS col2, 54 * 41 * - - 53 AS col1
----
70
117342

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3313
SELECT ALL 2, NULLIF ( - COUNT( * ), - 52 ) AS col1
----
2
-1

skipif mysql # not compatible
query II rowsort label-3313
SELECT ALL 2, NULLIF ( - COUNT ( * ), - 52 ) AS col1
----
2
-1

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

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL - 1 + + + ( + + 88 ) + + COUNT ( - + ( + - 61 ) ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT 65 + MAX( DISTINCT + 12 )
----
77

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT 65 + MAX ( DISTINCT + 12 )
----
77

query I rowsort
SELECT ALL + - 34 + + + 62 + + 40 * - 30 col0
----
-1172

query II rowsort
SELECT ALL - - 83 col2, 66 AS col2
----
83
66

query I rowsort
SELECT DISTINCT - 99 * + + 77
----
-7623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT - NULLIF ( ( - ( - 21 ) ), + - CAST( - 12 AS SIGNED ) + - AVG ( DISTINCT 32 ) + - ( - 81 ) + + 48 ) + + COUNT( * ) + + COUNT( * ) * + 94 * + 44
----
4116

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - NULLIF ( ( - ( - 21 ) ), + - CAST ( - 12 AS INTEGER ) + - AVG ( DISTINCT 32 ) + - ( - 81 ) + + 48 ) + + COUNT ( * ) + + COUNT ( * ) * + 94 * + 44
----
4116

query II rowsort
SELECT ALL - - 66 AS col1, - 14
----
66
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3321
SELECT ALL + + 42 + - CAST( NULL AS SIGNED ) col1, - 99
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-3321
SELECT ALL + + 42 + - CAST ( NULL AS INTEGER ) col1, - 99
----
NULL
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL - + 29 + COUNT( * ) + + 72 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - + 29 + COUNT ( * ) + + 72 AS col1
----
44

query I rowsort
SELECT ALL - + ( NULLIF ( + 11, - + 11 * 20 ) ) AS col0
----
-11

query I rowsort
SELECT DISTINCT + 72 - - - 86
----
-14

query I rowsort
SELECT ALL + 50 * - 41 AS col2
----
-2050

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT 47 + + COUNT( * ) - + 24
----
24

skipif mysql # not compatible
query I rowsort label-3327
SELECT 47 + + COUNT ( * ) - + 24
----
24

query I rowsort
SELECT ALL + - 41 * - 28 AS col1
----
1148

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3329
SELECT ALL - CAST( + - 61 AS SIGNED ) - - 48 + 62 + + 65 * + 81 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL - CAST ( + - 61 AS INTEGER ) - - 48 + 62 + + 65 * + 81 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3330
SELECT 24 * + - 39 * 73 + + 4 * + 73 - 58 + + + 9 + 92 + - COUNT( DISTINCT CASE 79 WHEN + 3 THEN - 85 WHEN - + 18 THEN NULL END ) + + + 57 DIV 62
----
-67993

skipif mysql # not compatible
query I rowsort label-3330
SELECT 24 * + - 39 * 73 + + 4 * + 73 - 58 + + + 9 + 92 + - COUNT ( DISTINCT CASE 79 WHEN + 3 THEN - 85 WHEN - + 18 THEN NULL END ) + + + 57 / 62
----
-67993

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

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

query I rowsort
SELECT DISTINCT + + 12 - + ( 86 ) + 68 * + + 56 * - - ( + ( 73 ) ) AS col1
----
277910

onlyif mysql # aggregate syntax: 
query II rowsort label-3333
SELECT ALL + 82 * - - 33 * - + SUM( - + ( - 99 ) ) AS col0, + 31
----
-267894
31

skipif mysql # not compatible
query II rowsort label-3333
SELECT ALL + 82 * - - 33 * - + SUM ( - + ( - 99 ) ) AS col0, + 31
----
-267894
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT 95 * NULLIF ( + + 54, + + SUM( ALL 3 ) ) AS col2
----
5130

skipif mysql # not compatible
query I rowsort label-3334
SELECT 95 * NULLIF ( + + 54, + + SUM ( ALL 3 ) ) AS col2
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT DISTINCT SUM( DISTINCT - ( - 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT SUM ( DISTINCT - ( - 41 ) )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3336
SELECT 8 * - - 37 col0, AVG ( ( + CAST( NULL AS SIGNED ) ) ) - - - 89 - 61 AS col1
----
296
NULL

skipif mysql # not compatible
query II rowsort label-3336
SELECT 8 * - - 37 col0, AVG ( ( + CAST ( NULL AS INTEGER ) ) ) - - - 89 - 61 AS col1
----
296
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT ALL MIN( DISTINCT + 47 ) AS col1, + 81
----
47
81

skipif mysql # not compatible
query II rowsort label-3337
SELECT ALL MIN ( DISTINCT + 47 ) AS col1, + 81
----
47
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT DISTINCT - COALESCE ( - 19, + + 57, + 38 * - + 53 * 20 - - 28 + + 29 * 78 * - - CAST( NULL AS SIGNED ) * COUNT( * ) ) + + + 60
----
79

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT - COALESCE ( - 19, + + 57, + 38 * - + 53 * 20 - - 28 + + 29 * 78 * - - CAST ( NULL AS INTEGER ) * COUNT ( * ) ) + + + 60
----
79

query I rowsort
SELECT ALL 45 * + 82 AS col1
----
3690

query I rowsort
SELECT ALL - 92 + 82 * 71 AS col2
----
5730

onlyif mysql # aggregate syntax: 
query II rowsort label-3341
SELECT - MIN( + 31 ), 88 AS col2
----
-31
88

skipif mysql # not compatible
query II rowsort label-3341
SELECT - MIN ( + 31 ), 88 AS col2
----
-31
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL 3 + - - NULLIF ( - 56, + - 52 * + COUNT( * ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL 3 + - - NULLIF ( - 56, + - 52 * + COUNT ( * ) ) AS col1
----
-53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL - ( - CASE - - 19 WHEN + 90 THEN 26 + + + 97 - 49 - CASE 96 WHEN + COUNT( * ) THEN NULL WHEN - - 47 THEN + + 1 * - ( + 89 ) * 50 WHEN - COUNT( * ) * + - 69 + + COUNT( * ) / - 14 THEN 76 / - ( + ( + 21 ) ) ELSE + + COUNT( * ) - 14 + + + MIN( DISTINCT - 92 ) * + 80 END / - 89 WHEN 36 THEN ( 43 ) ELSE NULL END ) * + 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - ( - CASE - - 19 WHEN + 90 THEN 26 + + + 97 - 49 - CASE 96 WHEN + COUNT ( * ) THEN NULL WHEN - - 47 THEN + + 1 * - ( + 89 ) * 50 WHEN - COUNT ( * ) * + - 69 + + COUNT ( * ) / - 14 THEN 76 / - ( + ( + 21 ) ) ELSE + + COUNT ( * ) - 14 + + + MIN ( DISTINCT - 92 ) * + 80 END / - 89 WHEN 36 THEN ( 43 ) ELSE NULL END ) * + 18 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT + - 50 + - - COUNT( + - 62 ), CASE + + 66 WHEN - 97 THEN 11 * 93 WHEN 87 THEN + - MIN( DISTINCT 61 ) + + - 2 END * - 59 * 68 + + 78 + + + 14 AS col1
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-3345
SELECT + - 50 + - - COUNT ( + - 62 ), CASE + + 66 WHEN - 97 THEN 11 * 93 WHEN 87 THEN + - MIN ( DISTINCT 61 ) + + - 2 END * - 59 * 68 + + 78 + + + 14 AS col1
----
-49
NULL

query I rowsort
SELECT - NULLIF ( + 81, - 27 ) AS col0
----
-81

query II rowsort
SELECT + + 31 + - 14, 67 AS col0
----
17
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + - 36 * + COUNT( * ) * 87 + - 68 + 46
----
-3154

skipif mysql # not compatible
query I rowsort label-3349
SELECT + - 36 * + COUNT ( * ) * 87 + - 68 + 46
----
-3154

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3351
SELECT ALL + 54 * COUNT( * ) * + CASE - 90 WHEN - ( COUNT( * ) ) THEN + 41 ELSE 97 DIV COALESCE ( MAX( ALL + 33 ), + + 8, 88 ) * COUNT( * ) + 71 END AS col0
----
3942

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + 54 * COUNT ( * ) * + CASE - 90 WHEN - ( COUNT ( * ) ) THEN + 41 ELSE 97 / COALESCE ( MAX ( ALL + 33 ), + + 8, 88 ) * COUNT ( * ) + 71 END AS col0
----
3942

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT DISTINCT MIN( + 91 ) * + - 8 * - + 35 - - 69
----
25549

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT MIN ( + 91 ) * + - 8 * - + 35 - - 69
----
25549

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL - 93 * + CAST( + 14 AS SIGNED ) AS col0
----
-1302

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - 93 * + CAST ( + 14 AS INTEGER ) AS col0
----
-1302

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

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

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

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL + COUNT ( DISTINCT + 9 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT - 64 DIV - - 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 64 / - - 49 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3358
SELECT ALL - ( - - 80 ) DIV COUNT( * ) col0, 28 + - 78 DIV + 55 col1
----
-80
27

skipif mysql # not compatible
query II rowsort label-3358
SELECT ALL - ( - - 80 ) / COUNT ( * ) col0, 28 + - 78 / + 55 col1
----
-80
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL + MIN( ALL + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + MIN ( ALL + 44 ) AS col2
----
44

query I rowsort
SELECT - 53 * 83 * + - 47 - - 26
----
206779

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

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - 23 + + COUNT ( * ) col2
----
-22

query I rowsort
SELECT - 22 + + + 54 AS col1
----
32

query I rowsort
SELECT - 4 - - 97 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT DISTINCT + ( + 7 ) * + ( - CAST( 57 AS SIGNED ) )
----
-399

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT + ( + 7 ) * + ( - CAST ( 57 AS INTEGER ) )
----
-399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3365
SELECT + ( 64 ) * 97 DIV - - 37 + ( - 65 ) + 88 + MIN( + + ( + 59 ) ) AS col0
----
249

skipif mysql # not compatible
query I rowsort label-3365
SELECT + ( 64 ) * 97 / - - 37 + ( - 65 ) + 88 + MIN ( + + ( + 59 ) ) AS col0
----
249

query I rowsort
SELECT ALL + 15 + + 17 + 11 AS col0
----
43

query I rowsort
SELECT ALL - 61 + 3
----
-58

query I rowsort
SELECT ALL COALESCE ( 22, + 63, 8 * 59 + 61 * - + 9 ) col2
----
22

query I rowsort
SELECT DISTINCT CASE 28 WHEN + - 50 THEN NULL WHEN + - 74 + 71 THEN + - 67 * - 76 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT ALL 55 DIV + - 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL 55 / + - 47 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3371
SELECT ALL - 79 col0, + 25 * CAST( 58 AS SIGNED ) + + - 24
----
-79
1426

skipif mysql # not compatible
query II rowsort label-3371
SELECT ALL - 79 col0, + 25 * CAST ( 58 AS INTEGER ) + + - 24
----
-79
1426

query I rowsort
SELECT ALL + + 88 + - 75 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT - CAST( + + CAST( + SUM( - + 47 ) AS SIGNED ) AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3373
SELECT - CAST ( + + CAST ( + SUM ( - + 47 ) AS INTEGER ) AS INTEGER ) AS col2
----
47

query I rowsort
SELECT - 43 + 43
----
0

query II rowsort
SELECT - 66 AS col1, - 84
----
-66
-84

query I rowsort
SELECT + ( - 65 ) + + 55
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT DISTINCT MAX( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT MAX ( 14 )
----
14

query I rowsort
SELECT ALL + CASE + 38 WHEN + 46 THEN + - 45 WHEN + 10 THEN + 30 / - - 85 ELSE - ( + + 79 ) / CASE - 82 WHEN 91 THEN - 47 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3379
SELECT + + SUM( ALL + 43 ) - - - 40 AS col0, 27 + - 8 AS col0
----
3
19

skipif mysql # not compatible
query II rowsort label-3379
SELECT + + SUM ( ALL + 43 ) - - - 40 AS col0, 27 + - 8 AS col0
----
3
19

query I rowsort
SELECT + 98 * - 49 AS col1
----
-4802

query I rowsort
SELECT DISTINCT - 55 * + 88 AS col1
----
-4840

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT + + 28 * - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3382
SELECT + + 28 * - - COUNT ( * )
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-3383
SELECT ALL + - 90, + 76 + + 91 + - 34 DIV 89 AS col2
----
-90
167

skipif mysql # not compatible
query II rowsort label-3383
SELECT ALL + - 90, + 76 + + 91 + - 34 / 89 AS col2
----
-90
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3384
SELECT - - 58 * + 65 + + MIN( - 8 ) * - - 98 * + 30 + + COALESCE ( 45, 76, + 84 DIV - 56 + - 86 + - - ( + COUNT( * ) ) * + COUNT( * ) * + CAST( NULL AS SIGNED ) + + - 13 ) AS col2
----
-19705

skipif mysql # not compatible
query I rowsort label-3384
SELECT - - 58 * + 65 + + MIN ( - 8 ) * - - 98 * + 30 + + COALESCE ( 45, 76, + 84 / - 56 + - 86 + - - ( + COUNT ( * ) ) * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + - 13 ) AS col2
----
-19705

query I rowsort
SELECT - 78 * - - 93 - - 94 * 57
----
-1896

query I rowsort
SELECT + 56 - + - 25 * + 56
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT + COUNT( * ) * - + 49 * + 81
----
-3969

skipif mysql # not compatible
query I rowsort label-3387
SELECT + COUNT ( * ) * - + 49 * + 81
----
-3969

query I rowsort
SELECT ALL + 81 * + 91 AS col2
----
7371

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT ( 94 ), - COUNT( * ) AS col0
----
94
-1

skipif mysql # not compatible
query II rowsort label-3389
SELECT ( 94 ), - COUNT ( * ) AS col0
----
94
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT + COUNT( ALL - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT + COUNT ( ALL - 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT - 91 * + 81 * 26 + + 93 + COUNT( * ) * - ( 28 ) * 90
----
-194073

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - 91 * + 81 * 26 + + 93 + COUNT ( * ) * - ( 28 ) * 90
----
-194073

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3392
SELECT ALL - ( - 27 ) * 0 * - 90, 93 * - - CAST( NULL AS SIGNED ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3392
SELECT ALL - ( - 27 ) * 0 * - 90, 93 * - - CAST ( NULL AS INTEGER ) col1
----
0
NULL

query I rowsort
SELECT + ( - - ( - ( - 74 ) ) )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3394
SELECT ( - 91 ) AS col0, - NULLIF ( + COUNT( * ), ( + 67 ) * - CASE ( + COUNT( * ) ) WHEN CASE + 85 WHEN + - 28 * - 66 THEN NULL WHEN + 94 THEN + 62 END + - 95 + CASE + + COALESCE ( - COALESCE ( 49, - ( - + ( + 72 ) ) DIV - + SUM( 25 ), + 65, 15 * + NULLIF ( + - 36, + NULLIF ( NULLIF ( - COALESCE ( 39, - 76 DIV 65 ), - 69 ), - 64 ) - 89 ) ), COUNT( * ), 95, + COALESCE ( + 43, 56 + 88 ) ) WHEN + 32 THEN NULL WHEN - COUNT( * ) - MAX( ALL - 70 ) THEN NULL ELSE + COALESCE ( 30, 51 ) - - 35 * - 88 END * 30 THEN 68 END ) DIV + CAST( + COUNT( * ) * COUNT( * ) AS SIGNED )
----
-91
-1

skipif mysql # not compatible
query II rowsort label-3394
SELECT ( - 91 ) AS col0, - NULLIF ( + COUNT ( * ), ( + 67 ) * - CASE ( + COUNT ( * ) ) WHEN CASE + 85 WHEN + - 28 * - 66 THEN NULL WHEN + 94 THEN + 62 END + - 95 + CASE + + COALESCE ( - COALESCE ( 49, - ( - + ( + 72 ) ) / - + SUM ( 25 ), + 65, 15 * + NULLIF ( + - 36, + NULLIF ( NULLIF ( - COALESCE ( 39, - 76 / 65 ), - 69 ), - 64 ) - 89 ) ), COUNT ( * ), 95, + COALESCE ( + 43, 56 + 88 ) ) WHEN + 32 THEN NULL WHEN - COUNT ( * ) - MAX ( ALL - 70 ) THEN NULL ELSE + COALESCE ( 30, 51 ) - - 35 * - 88 END * 30 THEN 68 END ) / + CAST ( + COUNT ( * ) * COUNT ( * ) AS INTEGER )
----
-91
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3395
SELECT + 22 * - ( - CAST( + + COUNT( * ) AS SIGNED ) ) AS col2, - 52 * + 30
----
22
-1560

skipif mysql # not compatible
query II rowsort label-3395
SELECT + 22 * - ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col2, - 52 * + 30
----
22
-1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3396
SELECT 55 * - MIN( + - CAST( + - 62 AS SIGNED ) ) * + 97 + 31
----
-330739

skipif mysql # not compatible
query I rowsort label-3396
SELECT 55 * - MIN ( + - CAST ( + - 62 AS INTEGER ) ) * + 97 + 31
----
-330739

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3397
SELECT ALL + 59 * - - MIN( DISTINCT + - 1 ) + + CAST( - 1 AS DECIMAL ) + 33 + - 62 - - 65 / 90 + - 24 * + MIN( + + CAST( NULL AS DECIMAL ) ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + 59 * - - MIN ( DISTINCT + - 1 ) + + CAST ( - 1 AS REAL ) + 33 + - 62 - - 65 / 90 + - 24 * + MIN ( + + CAST ( NULL AS REAL ) ) * - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT - COALESCE ( 93, 73, 32 ) + - MAX( - 88 ) + + 51 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3398
SELECT - COALESCE ( 93, 73, 32 ) + - MAX ( - 88 ) + + 51 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3399
SELECT CASE 75 WHEN 47 THEN 9 ELSE NULL END AS col1, COUNT( * ) + - - 34 AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-3399
SELECT CASE 75 WHEN 47 THEN 9 ELSE NULL END AS col1, COUNT ( * ) + - - 34 AS col0
----
NULL
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3400
SELECT + 74 DIV - ( + - 28 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3400
SELECT + 74 / - ( + - 28 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT - 80 + 28 - - 63 * - CAST( 20 AS SIGNED )
----
-1312

skipif mysql # not compatible
query I rowsort label-3401
SELECT - 80 + 28 - - 63 * - CAST ( 20 AS INTEGER )
----
-1312

query I rowsort
SELECT + 92 * + 54 * - 93
----
-462024

query I rowsort
SELECT ALL - 56 * 96
----
-5376

query I rowsort
SELECT DISTINCT + 2 * + - 70 * 66
----
-9240

query I rowsort
SELECT DISTINCT - 48 - - - 57 col1
----
-105

query I rowsort
SELECT 43 * - 87 AS col1
----
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ALL + COUNT( * ) - + 10 col2
----
-9

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL + COUNT ( * ) - + 10 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT COALESCE ( - ( - COUNT( * ) ), + - 29 ) - + - 95
----
96

skipif mysql # not compatible
query I rowsort label-3408
SELECT COALESCE ( - ( - COUNT ( * ) ), + - 29 ) - + - 95
----
96

query I rowsort
SELECT 53 + 63 + + - 77 AS col1
----
39

query I rowsort
SELECT DISTINCT + 4 * - + 89
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL ( + MIN( ALL + 90 ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL ( + MIN ( ALL + 90 ) ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3412
SELECT - 62 + + 59 + + 92 + + 40 * + 0 + + + 82 + - - COUNT( 36 ) - 52 * CASE + SUM( ALL + 97 ) WHEN - + COUNT( * ) THEN + NULLIF ( 16, - MAX( - CAST( NULL AS DECIMAL ) ) + 82 + - 87 + + COUNT( * ) + - NULLIF ( - 6, + MIN( + - 18 ) * + 4 ) * + 41 * 18 + + 40 * - ( + 27 ) ) + MIN( - 29 ) ELSE NULL END * - CASE 19 + 99 WHEN + 84 THEN NULL ELSE + 83 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT - 62 + + 59 + + 92 + + 40 * + 0 + + + 82 + - - COUNT ( 36 ) - 52 * CASE + SUM ( ALL + 97 ) WHEN - + COUNT ( * ) THEN + NULLIF ( 16, - MAX ( - CAST ( NULL AS REAL ) ) + 82 + - 87 + + COUNT ( * ) + - NULLIF ( - 6, + MIN ( + - 18 ) * + 4 ) * + 41 * 18 + + 40 * - ( + 27 ) ) + MIN ( - 29 ) ELSE NULL END * - CASE 19 + 99 WHEN + 84 THEN NULL ELSE + 83 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT + SUM( DISTINCT - + ( - 73 ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3413
SELECT + SUM ( DISTINCT - + ( - 73 ) ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT - COUNT( * ) - + + ( 17 )
----
-18

skipif mysql # not compatible
query I rowsort label-3414
SELECT - COUNT ( * ) - + + ( 17 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT + 84 DIV - 64 + + - 55 * - + 95 AS col0
----
5224

skipif mysql # not compatible
query I rowsort label-3415
SELECT + 84 / - 64 + + - 55 * - + 95 AS col0
----
5224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3416
SELECT COUNT( * ) DIV + 53 + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-3416
SELECT COUNT ( * ) / + 53 + - 36
----
-36

query I rowsort
SELECT ALL - 10 + - 97 AS col0
----
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-3418
SELECT ALL + 52 * + + CASE + 94 WHEN + COUNT( * ) + - ( - + 2 ) THEN NULL ELSE - + 50 + + COUNT( 33 ) END AS col2, - 30 AS col0
----
-2548
-30

skipif mysql # not compatible
query II rowsort label-3418
SELECT ALL + 52 * + + CASE + 94 WHEN + COUNT ( * ) + - ( - + 2 ) THEN NULL ELSE - + 50 + + COUNT ( 33 ) END AS col2, - 30 AS col0
----
-2548
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL + - 76 + - ( - + 66 ) * - COUNT( * ) + - 76 + - 49 col0
----
-267

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + - 76 + - ( - + 66 ) * - COUNT ( * ) + - 76 + - 49 col0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT COUNT( * ) * + + 79
----
79

skipif mysql # not compatible
query I rowsort label-3420
SELECT COUNT ( * ) * + + 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL + COUNT( * ) + + 72
----
73

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + COUNT ( * ) + + 72
----
73

query I rowsort
SELECT 33 * ( + + 41 )
----
1353

query I rowsort
SELECT 4 - - 51 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT DISTINCT ( + NULLIF ( + + 53, - 32 ) ) + + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT ( + NULLIF ( + + 53, - 32 ) ) + + COUNT ( * ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3425
SELECT + 76 col2, - 70 + + COUNT( * )
----
76
-69

skipif mysql # not compatible
query II rowsort label-3425
SELECT + 76 col2, - 70 + + COUNT ( * )
----
76
-69

query I rowsort
SELECT ALL 86 + - + 24 * - 40
----
1046

query I rowsort
SELECT DISTINCT 45 * - 65 AS col1
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT 48 - - COUNT( * ) + - - 61 * + + 32 * + 30 * COUNT( * ) AS col2
----
58609

skipif mysql # not compatible
query I rowsort label-3428
SELECT 48 - - COUNT ( * ) + - - 61 * + + 32 * + 30 * COUNT ( * ) AS col2
----
58609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT ALL CAST( + - 29 AS SIGNED ) - + ( - 10 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL CAST ( + - 29 AS INTEGER ) - + ( - 10 ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT 38 + + 59 + + CAST( - COUNT( * ) AS SIGNED ) col0
----
96

skipif mysql # not compatible
query I rowsort label-3430
SELECT 38 + + 59 + + CAST ( - COUNT ( * ) AS INTEGER ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT MAX( + 68 ) * - 42
----
-2856

skipif mysql # not compatible
query I rowsort label-3431
SELECT MAX ( + 68 ) * - 42
----
-2856

query I rowsort
SELECT ALL 44 * + 17 * + - 47 AS col0
----
-35156

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ( + ( 4 ) ) + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3433
SELECT ( + ( 4 ) ) + - COUNT ( * )
----
3

query I rowsort
SELECT + - 95 * + - 10 + - + 86 + - 63 * + 86 * - 89 * 36 AS col2
----
17360136

query I rowsort
SELECT + 0 - - 8 AS col0
----
8

query I rowsort
SELECT 98 * + 94
----
9212

query II rowsort
SELECT - 9 * - 63 + + 12 col2, 78
----
579
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL + COALESCE ( COUNT( * ), + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + COALESCE ( COUNT ( * ), + 16 )
----
1

query I rowsort
SELECT ALL CASE - + ( - COALESCE ( 84, + 19 ) ) WHEN + - ( + - 93 ) - + 2 THEN + - NULLIF ( - 57, + 49 ) WHEN + + 90 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 66 + 48
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT DISTINCT COUNT( * ) DIV + CASE - 12 WHEN 78 THEN NULL ELSE + + 70 END + - 92 + + 86 DIV 23 + - 92 AS col1
----
-181

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT COUNT ( * ) / + CASE - 12 WHEN 78 THEN NULL ELSE + + 70 END + - 92 + + 86 / 23 + - 92 AS col1
----
-181

query I rowsort
SELECT DISTINCT + 33 * + 80
----
2640

query I rowsort
SELECT - 93 + - 9
----
-102

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3444
SELECT DISTINCT + COALESCE ( 53, ( + 59 ) * + 21 + - 42 - + + 28 DIV + - CAST( - + 14 AS SIGNED ) ) col2
----
53

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + COALESCE ( 53, ( + 59 ) * + 21 + - 42 - + + 28 / + - CAST ( - + 14 AS INTEGER ) ) col2
----
53

query II rowsort
SELECT ALL 63 AS col0, 15 AS col1
----
63
15

query I rowsort
SELECT DISTINCT + 73 + + ( 71 )
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3447
SELECT DISTINCT - COUNT( * ) * + 89 DIV - - CAST( + 96 AS SIGNED ) + + + 85, - ( - 76 ) AS col0
----
85
76

skipif mysql # not compatible
query II rowsort label-3447
SELECT DISTINCT - COUNT ( * ) * + 89 / - - CAST ( + 96 AS INTEGER ) + + + 85, - ( - 76 ) AS col0
----
85
76

query I rowsort
SELECT - + ( - 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL SUM( + - 74 ) + - - COUNT( ALL + 39 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL SUM ( + - 74 ) + - - COUNT ( ALL + 39 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL + MIN( DISTINCT - 23 ) * + 92 + - + COUNT( * ) - + + 12 * + 48 * - 9 AS col0
----
3067

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL + MIN ( DISTINCT - 23 ) * + 92 + - + COUNT ( * ) - + + 12 * + 48 * - 9 AS col0
----
3067

onlyif mysql # DIV for integer division: 
query I rowsort label-3451
SELECT 33 DIV 61 * + 35
----
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT 33 / 61 * + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT - MIN( 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - MIN ( 8 ) AS col0
----
-8

query I rowsort
SELECT 14 + - 46 - + + 63 AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3454
SELECT 92 DIV - 57 - + - NULLIF ( - + 94, - CAST( - NULLIF ( 64, - 43 ) AS SIGNED ) )
----
-95

skipif mysql # not compatible
query I rowsort label-3454
SELECT 92 / - 57 - + - NULLIF ( - + 94, - CAST ( - NULLIF ( 64, - 43 ) AS INTEGER ) )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-3455
SELECT COUNT( * ) AS col1, 67 * 77 * 74 + + 74 AS col1
----
1
381840

skipif mysql # not compatible
query II rowsort label-3455
SELECT COUNT ( * ) AS col1, 67 * 77 * 74 + + 74 AS col1
----
1
381840

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT - ( + MAX( 30 ) ) * - + 58 + + - COUNT( * )
----
1739

skipif mysql # not compatible
query I rowsort label-3456
SELECT - ( + MAX ( 30 ) ) * - + 58 + + - COUNT ( * )
----
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL - 4 * COUNT( * ) + - 31 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL - 4 * COUNT ( * ) + - 31 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT - MAX( DISTINCT 3 ) * 12 + - 31, + COUNT( * ) * COUNT( + + 93 ) AS col2
----
-67
1

skipif mysql # not compatible
query II rowsort label-3458
SELECT - MAX ( DISTINCT 3 ) * 12 + - 31, + COUNT ( * ) * COUNT ( + + 93 ) AS col2
----
-67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL + NULLIF ( - 88, COUNT( * ) * + ( - 78 ) + - MAX( + 43 ) + + COUNT( * ) + - - 3 ) * + SUM( DISTINCT 99 ) AS col0
----
-8712

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL + NULLIF ( - 88, COUNT ( * ) * + ( - 78 ) + - MAX ( + 43 ) + + COUNT ( * ) + - - 3 ) * + SUM ( DISTINCT 99 ) AS col0
----
-8712

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT - COUNT( * ) * + - 28 - 36
----
-8

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - COUNT ( * ) * + - 28 - 36
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT - 45 + - - COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3461
SELECT - 45 + - - COUNT ( * ) AS col1
----
-44

query I rowsort
SELECT DISTINCT + 75 * + 83
----
6225

query I rowsort
SELECT + 40 * + 17 + - 78 AS col0
----
602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT - COUNT( * ) / + 18 * SUM( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT - COUNT ( * ) / + 18 * SUM ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 30 * - + 71 + - 91 col2
----
-2221

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT + SUM( ALL - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-3466
SELECT + SUM ( ALL - 72 )
----
-72

query I rowsort
SELECT ALL 76 * + + ( - 46 ) AS col1
----
-3496

query I rowsort
SELECT DISTINCT ( - 36 ) col0
----
-36

query I rowsort
SELECT + + 15 * + - 16
----
-240

query I rowsort
SELECT + + 46 - 14 AS col1
----
32

query II rowsort
SELECT - 30 AS col2, 50 AS col0
----
-30
50

query I rowsort
SELECT + - 71 - 97 AS col0
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3473
SELECT - CASE + - 34 WHEN + COUNT( * ) - + 69 / - - CAST( NULL AS DECIMAL ) THEN + 59 + 50 + ( COUNT( * ) ) WHEN + CAST( - + 44 AS SIGNED ) THEN NULL WHEN ( 34 ) * + 52 - - - CAST( 87 AS SIGNED ) THEN NULL ELSE - - 3 END
----
-3

skipif mysql # not compatible
query I rowsort label-3473
SELECT - CASE + - 34 WHEN + COUNT ( * ) - + 69 / - - CAST ( NULL AS REAL ) THEN + 59 + 50 + ( COUNT ( * ) ) WHEN + CAST ( - + 44 AS INTEGER ) THEN NULL WHEN ( 34 ) * + 52 - - - CAST ( 87 AS INTEGER ) THEN NULL ELSE - - 3 END
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT + 39 DIV + + 46 + + 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3474
SELECT + 39 / + + 46 + + 6 AS col0
----
6

query I rowsort
SELECT - NULLIF ( + 71, + 43 / - + 33 ) + - - 69
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT DISTINCT 79 + 60 + - - 16 - + COUNT( * ) AS col0, + 92 AS col2
----
154
92

skipif mysql # not compatible
query II rowsort label-3476
SELECT DISTINCT 79 + 60 + - - 16 - + COUNT ( * ) AS col0, + 92 AS col2
----
154
92

query II rowsort
SELECT + 31 AS col2, 23
----
31
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT - 22 + + 32 * - + COUNT( * ) * + 49 * 84 AS col1
----
-131734

skipif mysql # not compatible
query I rowsort label-3478
SELECT - 22 + + 32 * - + COUNT ( * ) * + 49 * 84 AS col1
----
-131734

query II rowsort
SELECT - + 8 AS col0, COALESCE ( - - 53, 88, - 77 * - 75 ) - - - 75 - + 47 + + 44 - + 38 * + + 98
----
-8
-3749

query I rowsort
SELECT ALL + 94 + + + 97 - 43 * - 29 col2
----
1438

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT + - COUNT( DISTINCT 71 ) + + 92 + 81 AS col2
----
172

skipif mysql # not compatible
query I rowsort label-3481
SELECT + - COUNT ( DISTINCT 71 ) + + 92 + 81 AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT - SUM( - 99 ) + 4 + COUNT( * ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT - SUM ( - 99 ) + 4 + COUNT ( * ) AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT + + CAST( NULL AS SIGNED ) * - 45 * + 47 + + 10 + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT + + CAST ( NULL AS INTEGER ) * - 45 * + 47 + + 10 + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT + 93 - COUNT( DISTINCT - 50 ) + 67
----
159

skipif mysql # not compatible
query I rowsort label-3484
SELECT + 93 - COUNT ( DISTINCT - 50 ) + 67
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL SUM( - - NULLIF ( - - 7, - 27 + 89 ) )
----
7

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL SUM ( - - NULLIF ( - - 7, - 27 + 89 ) )
----
7

query I rowsort
SELECT + 23 * - 79
----
-1817

query I rowsort
SELECT - 29 + - 56 AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3488
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2, - 96
----
1
-96

skipif mysql # not compatible
query II rowsort label-3488
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2, - 96
----
1
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3489
SELECT 96 * 50 + + 83 - - CAST( CASE 86 WHEN - - 71 + - 5 - ( 51 ) * + 44 THEN NULL ELSE - + 76 * MIN( - 76 ) + ( + + MIN( ALL 6 ) ) END AS SIGNED ) AS col2
----
10665

skipif mysql # not compatible
query I rowsort label-3489
SELECT 96 * 50 + + 83 - - CAST ( CASE 86 WHEN - - 71 + - 5 - ( 51 ) * + 44 THEN NULL ELSE - + 76 * MIN ( - 76 ) + ( + + MIN ( ALL 6 ) ) END AS INTEGER ) AS col2
----
10665

onlyif mysql # DIV for integer division: 
query I rowsort label-3490
SELECT ALL - 60 DIV - 6 - - 60 + 20 col1
----
90

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL - 60 / - 6 - - 60 + 20 col1
----
90

query I rowsort
SELECT DISTINCT + NULLIF ( + + 80, 73 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - ( 39 ) * + NULLIF ( - CASE 39 WHEN - 73 THEN - - 77 * - + ( 74 ) + + - AVG ( + - 82 ) WHEN - 72 THEN + 35 WHEN - COUNT( * ) THEN + + CASE MIN( 16 ) WHEN 64 + + 28 THEN + - 88 * - + CASE + 86 WHEN + CASE + + 94 WHEN - 64 * - 26 - 51 - COUNT( - 14 ) * + 78 THEN MIN( - 59 ) WHEN - 68 + + 83 THEN - 7 * 75 ELSE 42 END THEN NULL WHEN COALESCE ( COUNT( * ), ( ( 3 ) ) * - ( + MAX( 96 ) ) ) THEN - 8 END END END, + CASE 51 WHEN 63 * + 30 THEN + COUNT( * ) + 69 * 29 WHEN 7 - + COUNT( * ) THEN + 40 * SUM( 28 ) ELSE - 36 * + 37 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT - ( 39 ) * + NULLIF ( - CASE 39 WHEN - 73 THEN - - 77 * - + ( 74 ) + + - AVG ( + - 82 ) WHEN - 72 THEN + 35 WHEN - COUNT ( * ) THEN + + CASE MIN ( 16 ) WHEN 64 + + 28 THEN + - 88 * - + CASE + 86 WHEN + CASE + + 94 WHEN - 64 * - 26 - 51 - COUNT ( - 14 ) * + 78 THEN MIN ( - 59 ) WHEN - 68 + + 83 THEN - 7 * 75 ELSE 42 END THEN NULL WHEN COALESCE ( COUNT ( * ), ( ( 3 ) ) * - ( + MAX ( 96 ) ) ) THEN - 8 END END END, + CASE 51 WHEN 63 * + 30 THEN + COUNT ( * ) + 69 * 29 WHEN 7 - + COUNT ( * ) THEN + 40 * SUM ( 28 ) ELSE - 36 * + 37 END )
----
NULL

query II rowsort
SELECT DISTINCT + 44 * - 19 AS col0, - ( - 86 ) AS col1
----
-836
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - ( COUNT( * ) ) * - + 67 + 73 + 90 AS col1
----
230

skipif mysql # not compatible
query I rowsort label-3494
SELECT - ( COUNT ( * ) ) * - + 67 + 73 + 90 AS col1
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT DISTINCT + COUNT( * ) * - - 82
----
82

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT + COUNT ( * ) * - - 82
----
82

query I rowsort
SELECT - - 36 - + - 61
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + COUNT( DISTINCT + 70 ) * 79 + - + COALESCE ( 32, + COUNT( + + 92 ) ) + ( 3 ) * - 23 + NULLIF ( - + 68, + 76 + - - 28 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3497
SELECT + COUNT ( DISTINCT + 70 ) * 79 + - + COALESCE ( 32, + COUNT ( + + 92 ) ) + ( 3 ) * - 23 + NULLIF ( - + 68, + 76 + - - 28 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-3498
SELECT DISTINCT + 97 * - - 9 AS col0, - MAX( DISTINCT - CASE 22 WHEN + - 63 THEN + 35 WHEN - 3 * 74 THEN + 48 END ) + + MAX( 14 ) + - 39 AS col2
----
873
NULL

skipif mysql # not compatible
query II rowsort label-3498
SELECT DISTINCT + 97 * - - 9 AS col0, - MAX ( DISTINCT - CASE 22 WHEN + - 63 THEN + 35 WHEN - 3 * 74 THEN + 48 END ) + + MAX ( 14 ) + - 39 AS col2
----
873
NULL

query I rowsort
SELECT - + 75 + - - 67 + + - 9 * 19 * 25 + 68
----
-4215

query I rowsort
SELECT ALL 74 * - 47 + 52
----
-3426

query I rowsort
SELECT - - 0 + 38 * 28 AS col1
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT + 84 - + - 92 - 35 * - + 61 * - COUNT( * )
----
-1959

skipif mysql # not compatible
query I rowsort label-3502
SELECT + 84 - + - 92 - 35 * - + 61 * - COUNT ( * )
----
-1959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT DISTINCT CAST( - 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT CAST ( - 65 AS INTEGER )
----
-65

query I rowsort
SELECT ALL ( 42 ) + 36
----
78

query I rowsort
SELECT + + 59 + + 68 * + 79 + 81 AS col1
----
5512

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3506
SELECT - - 99 * - + CASE + - 4 WHEN - COUNT( * ) THEN - + 85 ELSE + + COALESCE ( - COUNT( * ), + SUM( - 89 ) + + + 62 DIV - - 8 DIV - COUNT( * ) ) END AS col2, - 30 AS col0
----
99
-30

skipif mysql # not compatible
query II rowsort label-3506
SELECT - - 99 * - + CASE + - 4 WHEN - COUNT ( * ) THEN - + 85 ELSE + + COALESCE ( - COUNT ( * ), + SUM ( - 89 ) + + + 62 / - - 8 / - COUNT ( * ) ) END AS col2, - 30 AS col0
----
99
-30

query I rowsort
SELECT + 99 + + + 48
----
147

query I rowsort
SELECT + 64 + + 63
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT ALL 81 * CAST( + 37 AS SIGNED )
----
2997

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL 81 * CAST ( + 37 AS INTEGER )
----
2997

query II rowsort
SELECT DISTINCT 58 AS col0, 83
----
58
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3511
SELECT 74 AS col2, 73 * + ( - COUNT( * ) ) * - 94 + - + 77 + - + 34 + 23 - + 38 DIV COUNT( * ) + - + 71 + COALESCE ( - + 74, + 90 + - 77 ) * 27 * + MIN( 24 ) + - 98 - + - 48 AS col2
----
74
-41337

skipif mysql # not compatible
query II rowsort label-3511
SELECT 74 AS col2, 73 * + ( - COUNT ( * ) ) * - 94 + - + 77 + - + 34 + 23 - + 38 / COUNT ( * ) + - + 71 + COALESCE ( - + 74, + 90 + - 77 ) * 27 * + MIN ( 24 ) + - 98 - + - 48 AS col2
----
74
-41337

query I rowsort
SELECT COALESCE ( - 18, + 23 ) + + 44 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL CASE 23 WHEN + - NULLIF ( - + ( - 69 ), + + 61 * 79 + + + 83 ) THEN NULL WHEN - - COUNT( * ) THEN + 99 / + 97 - + + 34 END - + COALESCE ( 25, + 63 + - - NULLIF ( + ( - 23 ), ( + - 53 ) ) + 72 - - 87 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL CASE 23 WHEN + - NULLIF ( - + ( - 69 ), + + 61 * 79 + + + 83 ) THEN NULL WHEN - - COUNT ( * ) THEN + 99 / + 97 - + + 34 END - + COALESCE ( 25, + 63 + - - NULLIF ( + ( - 23 ), ( + - 53 ) ) + 72 - - 87 ) col1
----
NULL

query I rowsort
SELECT ALL - 29 - 72 AS col0
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3515
SELECT - 20 DIV + - COUNT( * ) * 1 + - 37 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3515
SELECT - 20 / + - COUNT ( * ) * 1 + - 37 AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT 77 DIV + 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3516
SELECT 77 / + 42 AS col0
----
1

query I rowsort
SELECT 48 + - 69 AS col0
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-3518
SELECT 66 DIV + 99 - 4 DIV - 80, + 27 AS col2
----
0
27

skipif mysql # not compatible
query II rowsort label-3518
SELECT 66 / + 99 - 4 / - 80, + 27 AS col2
----
0
27

query I rowsort
SELECT ALL 21 * + 52
----
1092

query I rowsort
SELECT 93 + + 85
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3521
SELECT ALL - 3 AS col0, + CAST( + ( - - 68 ) AS SIGNED ) * - COUNT( * ) AS col1
----
-3
-68

skipif mysql # not compatible
query II rowsort label-3521
SELECT ALL - 3 AS col0, + CAST ( + ( - - 68 ) AS INTEGER ) * - COUNT ( * ) AS col1
----
-3
-68

query II rowsort
SELECT ALL - - 72 AS col2, 80
----
72
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3523
SELECT - 69 AS col2, COUNT( * ) DIV + COUNT( * ) - 86 AS col0
----
-69
-85

skipif mysql # not compatible
query II rowsort label-3523
SELECT - 69 AS col2, COUNT ( * ) / + COUNT ( * ) - 86 AS col0
----
-69
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT + - 84 + - COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT + - 84 + - COUNT ( * ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL - - 22 + + ( - COUNT( * ) ) * 98 * - - 28
----
-2722

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL - - 22 + + ( - COUNT ( * ) ) * 98 * - - 28
----
-2722

query II rowsort
SELECT + 20, + 69 col1
----
20
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3527
SELECT + - 35 AS col0, COUNT( * ) + 82 AS col2
----
-35
83

skipif mysql # not compatible
query II rowsort label-3527
SELECT + - 35 AS col0, COUNT ( * ) + 82 AS col2
----
-35
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT DISTINCT - + 96 + - ( - - COUNT( * ) ) + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT - + 96 + - ( - - COUNT ( * ) ) + COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT - + 80 + - 37 + + 70 + + 10 * - + 37 - - CASE + - 49 WHEN ( + - AVG ( - + 54 ) ) / + COUNT( * ) + - 70 THEN 78 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT - + 80 + - 37 + + 70 + + 10 * - + 37 - - CASE + - 49 WHEN ( + - AVG ( - + 54 ) ) / + COUNT ( * ) + - 70 THEN 78 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT MIN( ALL + - 95 ) * 82
----
-7790

skipif mysql # not compatible
query I rowsort label-3530
SELECT MIN ( ALL + - 95 ) * 82
----
-7790

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT MIN( + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT MIN ( + 84 )
----
84

query II rowsort
SELECT 24, 8 * 91 AS col0
----
24
728

onlyif mysql # DIV for integer division: 
query II rowsort label-3533
SELECT ALL + 91 * 93 * + - 6 AS col2, 32 DIV + 99
----
-50778
0

skipif mysql # not compatible
query II rowsort label-3533
SELECT ALL + 91 * 93 * + - 6 AS col2, 32 / + 99
----
-50778
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL - - 54 - + 25 + - + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL - - 54 - + 25 + - + COUNT ( * )
----
28

query I rowsort
SELECT 14 * - 62
----
-868

query I rowsort
SELECT 60 * - 21 col0
----
-1260

query I rowsort
SELECT 32 * 65 col0
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT 68 * - COUNT( * ) * 85 col2
----
-5780

skipif mysql # not compatible
query I rowsort label-3538
SELECT 68 * - COUNT ( * ) * 85 col2
----
-5780

query I rowsort
SELECT ALL 28 * - 24
----
-672

query I rowsort
SELECT ( ( - 73 ) ) + + 42 AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT ALL 80 * 15 DIV 10 * - 13 AS col1
----
-1560

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL 80 * 15 / 10 * - 13 AS col1
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT COUNT( DISTINCT + - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-3542
SELECT COUNT ( DISTINCT + - 46 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL SUM( DISTINCT - 81 ) + 76 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL SUM ( DISTINCT - 81 ) + 76 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3544
SELECT DISTINCT 67 DIV - - 17 * + - ( ( - COUNT( * ) ) ) col0
----
3

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT 67 / - - 17 * + - ( ( - COUNT ( * ) ) ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT 79 + - 42 + - 13 + 22 * COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT 79 + - 42 + - 13 + 22 * COUNT ( * )
----
46

query I rowsort
SELECT ALL 14 + - 44
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ALL - MAX( + - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL - MAX ( + - 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT - 54 * COALESCE ( + 56, - 88 ) + - CASE + ( - 98 ) WHEN + 39 + + + COUNT( * ) + - + 65 + 82 / 23 THEN NULL ELSE + 11 END + - 42 + NULLIF ( - 9, + 88 + + - 76 * 86 * - - 53 ) + - 77
----
-3163

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - 54 * COALESCE ( + 56, - 88 ) + - CASE + ( - 98 ) WHEN + 39 + + + COUNT ( * ) + - + 65 + 82 / 23 THEN NULL ELSE + 11 END + - 42 + NULLIF ( - 9, + 88 + + - 76 * 86 * - - 53 ) + - 77
----
-3163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3549
SELECT 43 * - 74 + 6 + CASE - 5 WHEN - + 29 THEN 73 + - + 86 + - COUNT( * ) DIV + 67 ELSE + + 68 END AS col2
----
-3108

skipif mysql # not compatible
query I rowsort label-3549
SELECT 43 * - 74 + 6 + CASE - 5 WHEN - + 29 THEN 73 + - + 86 + - COUNT ( * ) / + 67 ELSE + + 68 END AS col2
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - 60 + - ( 0 ) + + COUNT( * ) + + - 64 + - - 92 * - 28 AS col2
----
-2699

skipif mysql # not compatible
query I rowsort label-3550
SELECT - 60 + - ( 0 ) + + COUNT ( * ) + + - 64 + - - 92 * - 28 AS col2
----
-2699

query I rowsort
SELECT 39 + - 95 * + 75 AS col0
----
-7086

query I rowsort
SELECT + 19 * + 23 + 40 + + - 51 + + 57 AS col2
----
483

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3553
SELECT ALL + CAST( - + 99 AS SIGNED ), + 79 * - 47 col2
----
-99
-3713

skipif mysql # not compatible
query II rowsort label-3553
SELECT ALL + CAST ( - + 99 AS INTEGER ), + 79 * - 47 col2
----
-99
-3713

query I rowsort
SELECT + 26 + - 6
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT - - CAST( NULL AS SIGNED ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT - - CAST ( NULL AS INTEGER ) - + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT DISTINCT COUNT( - 59 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT COUNT ( - 59 ) AS col2
----
1

query I rowsort
SELECT ALL - + 27 * - 58
----
1566

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT ALL 18 DIV - ( 5 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL 18 / - ( 5 ) col0
----
-3

query I rowsort
SELECT - 28 + + 75 AS col2
----
47

query II rowsort
SELECT ALL NULLIF ( + 57, - + 43 ) AS col0, - 16
----
57
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT + 16 DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3561
SELECT + 16 / - 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT - COUNT( * ) * + - 56 * + 75 * + 91
----
382200

skipif mysql # not compatible
query I rowsort label-3562
SELECT - COUNT ( * ) * + - 56 * + 75 * + 91
----
382200

query I rowsort
SELECT - 34 + - + 78 col1
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-3564
SELECT - SUM( DISTINCT + CASE + 94 WHEN + 38 + + 67 THEN NULL ELSE - 86 + - 3 - - 6 END ) + - NULLIF ( + - 91, 43 + - + 30 + + AVG ( ALL - - 32 ) * 20 ) AS col1, ( + - MIN( DISTINCT + - 72 ) )
----
174
72

skipif mysql # not compatible
query II rowsort label-3564
SELECT - SUM ( DISTINCT + CASE + 94 WHEN + 38 + + 67 THEN NULL ELSE - 86 + - 3 - - 6 END ) + - NULLIF ( + - 91, 43 + - + 30 + + AVG ( ALL - - 32 ) * 20 ) AS col1, ( + - MIN ( DISTINCT + - 72 ) )
----
174
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT + ( 88 ) * CASE + 73 WHEN NULLIF ( - 43, 45 + - ( MAX( 65 ) ) - MIN( DISTINCT 2 ) * - MIN( ALL + 47 ) ) THEN NULL WHEN 47 THEN - 29 - 69 * 16 * - + 88 * + + SUM( 7 ) ELSE NULL END + + 15 * + COUNT( * ) + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT + ( 88 ) * CASE + 73 WHEN NULLIF ( - 43, 45 + - ( MAX ( 65 ) ) - MIN ( DISTINCT 2 ) * - MIN ( ALL + 47 ) ) THEN NULL WHEN 47 THEN - 29 - 69 * 16 * - + 88 * + + SUM ( 7 ) ELSE NULL END + + 15 * + COUNT ( * ) + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL - COUNT( * ) + 89
----
88

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - COUNT ( * ) + 89
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT - 80 + - CAST( NULL AS SIGNED ) + + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT - 80 + - CAST ( NULL AS INTEGER ) + + + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL CASE 54 WHEN - COUNT( * ) THEN NULL WHEN + 47 THEN - + 45 WHEN + COUNT( * ) * - 98 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL CASE 54 WHEN - COUNT ( * ) THEN NULL WHEN + 47 THEN - + 45 WHEN + COUNT ( * ) * - 98 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3569
SELECT DISTINCT - 57 + + - 40 DIV - + 20 + + 83 + 66 + - 17 * - 78 + - COUNT( DISTINCT + 48 ) AS col2
----
1419

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT - 57 + + - 40 / - + 20 + + 83 + 66 + - 17 * - 78 + - COUNT ( DISTINCT + 48 ) AS col2
----
1419

query I rowsort
SELECT ALL - 37 * + 30 * - + 3 + + 13 + + 37 * 7 AS col0
----
3602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT MIN( - 85 ) * 4 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT MIN ( - 85 ) * 4 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT ALL 55 * - 95 + - 10 DIV - 22
----
-5225

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL 55 * - 95 + - 10 / - 22
----
-5225

query I rowsort
SELECT - ( + 71 ) + - + 27
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-3574
SELECT 40 DIV + 42 + + COALESCE ( + 7, + 31 + - 61 * + 61, - 94 ), 61 - - 5 col0
----
7
66

skipif mysql # not compatible
query II rowsort label-3574
SELECT 40 / + 42 + + COALESCE ( + 7, + 31 + - 61 * + 61, - 94 ), 61 - - 5 col0
----
7
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT - 16 * + MIN( ALL 48 ) + - 74 + 87 * - 46 * COUNT( * ) AS col2
----
-4844

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT - 16 * + MIN ( ALL 48 ) + - 74 + 87 * - 46 * COUNT ( * ) AS col2
----
-4844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT DISTINCT + NULLIF ( - + 44, - 68 * - + CAST( - 91 AS SIGNED ) + - + 45 ) * - 60 + - + 21 + + 53
----
2672

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + NULLIF ( - + 44, - 68 * - + CAST ( - 91 AS INTEGER ) + - + 45 ) * - 60 + - + 21 + + 53
----
2672

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL + 73 * + - COUNT( * ) + 99 col0
----
26

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL + 73 * + - COUNT ( * ) + 99 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT - - 16 * - + NULLIF ( - COUNT( * ), - 99 + + - COUNT( * ) ) + + 29 * + - 57
----
-1637

skipif mysql # not compatible
query I rowsort label-3578
SELECT - - 16 * - + NULLIF ( - COUNT ( * ), - 99 + + - COUNT ( * ) ) + + 29 * + - 57
----
-1637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT ALL + 16 * CAST( NULL AS SIGNED ) + + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + 16 * CAST ( NULL AS INTEGER ) + + + 89
----
NULL

query I rowsort
SELECT DISTINCT + + 44 * ( - 60 ) - - 53 AS col2
----
-2587

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL + COALESCE ( - 60, + 83 * + 13 + - CASE - 71 WHEN COUNT( ALL + 29 ) / - + 78 * - + COUNT( * ) - 6 THEN - ( - SUM( DISTINCT + - 96 ) ) ELSE + - 61 + + 58 END ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL + COALESCE ( - 60, + 83 * + 13 + - CASE - 71 WHEN COUNT ( ALL + 29 ) / - + 78 * - + COUNT ( * ) - 6 THEN - ( - SUM ( DISTINCT + - 96 ) ) ELSE + - 61 + + 58 END ) AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT ALL SUM( DISTINCT - 75 ) DIV 41 DIV - - 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL SUM ( DISTINCT - 75 ) / 41 / - - 17 AS col1
----
0

query I rowsort
SELECT + 30 + - 90 * - 75
----
6780

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL - COUNT( * ) * - - 98 - COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - COUNT ( * ) * - - 98 - COUNT ( * ) AS col0
----
-99

query I rowsort
SELECT + - 55 * 89
----
-4895

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3586
SELECT + + 86 * + - CAST( NULL AS DECIMAL ) * COALESCE ( + 45, - - 46, + 78 ) + 42 + + 6 - + + 91 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT + + 86 * + - CAST ( NULL AS REAL ) * COALESCE ( + 45, - - 46, + 78 ) + 42 + + 6 - + + 91 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + MIN( DISTINCT - - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3587
SELECT + MIN ( DISTINCT - - 61 )
----
61

query I rowsort
SELECT + + ( + 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT + MAX( + - ( - - 52 ) ) * - 63 AS col0
----
3276

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT + MAX ( + - ( - - 52 ) ) * - 63 AS col0
----
3276

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3590
SELECT SUM( + 56 ) * - - COUNT( * ) * + 53 + COUNT( + CAST( NULL AS DECIMAL ) ) + - 49 col2
----
2919

skipif mysql # not compatible
query I rowsort label-3590
SELECT SUM ( + 56 ) * - - COUNT ( * ) * + 53 + COUNT ( + CAST ( NULL AS REAL ) ) + - 49 col2
----
2919

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT - 71 * - 84 - + 93 - - MIN( - 55 )
----
5816

skipif mysql # not compatible
query I rowsort label-3591
SELECT - 71 * - 84 - + 93 - - MIN ( - 55 )
----
5816

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT + COUNT( * ) * + ( + 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3592
SELECT + COUNT ( * ) * + ( + 69 ) AS col0
----
69

query I rowsort
SELECT + 69 - - 94 * + 27 * 15 + + + 66 AS col1
----
38205

query III rowsort
SELECT - 12 AS col2, - 40 AS col1, - 39
----
-12
-40
-39

query I rowsort
SELECT - 92 + 56
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT - MAX( + 43 ) + ( - + ( - + 28 ) ) * - 7 * + - 30 + + - 47 AS col2
----
5790

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT - MAX ( + 43 ) + ( - + ( - + 28 ) ) * - 7 * + - 30 + + - 47 AS col2
----
5790

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT ALL 69 + + - COUNT( * ) AS col0, ( - SUM( ALL + 90 ) )
----
68
-90

skipif mysql # not compatible
query II rowsort label-3597
SELECT ALL 69 + + - COUNT ( * ) AS col0, ( - SUM ( ALL + 90 ) )
----
68
-90

query I rowsort
SELECT DISTINCT 3 + - 94 col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3599
SELECT - CAST( NULL AS SIGNED ), 10 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-3599
SELECT - CAST ( NULL AS INTEGER ), 10 AS col1
----
NULL
10

query I rowsort
SELECT - ( 85 ) * 22 AS col0
----
-1870

query I rowsort
SELECT DISTINCT + ( + 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3602
SELECT ALL - + 0 DIV + + COUNT( * ) - - NULLIF ( - 26, + 18 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL - + 0 / + + COUNT ( * ) - - NULLIF ( - 26, + 18 ) AS col2
----
-26

query I rowsort
SELECT - + 90 + + 57
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3604
SELECT + 95 AS col0, - 52 AS col1, - + ( + - 51 ) + 97 + COUNT( * ) - + 95 - + + COUNT( * ) + CAST( NULL AS SIGNED ) + + 29 + COUNT( * ) + 70 col0
----
95
-52
NULL

skipif mysql # not compatible
query III rowsort label-3604
SELECT + 95 AS col0, - 52 AS col1, - + ( + - 51 ) + 97 + COUNT ( * ) - + 95 - + + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 29 + COUNT ( * ) + 70 col0
----
95
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT - + 25 * + 69 * 38 + - - 93 + SUM( + 52 ) + + 37 col1
----
-65368

skipif mysql # not compatible
query I rowsort label-3605
SELECT - + 25 * + 69 * 38 + - - 93 + SUM ( + 52 ) + + 37 col1
----
-65368

query I rowsort
SELECT ALL + + 10 * + 81 AS col0
----
810

query I rowsort
SELECT ALL + ( NULLIF ( + 20, - 87 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - COUNT( * ) * - ( - - COUNT( * ) ) - + + 85 + + + 50 * - 91 * + COUNT( * )
----
-4634

skipif mysql # not compatible
query I rowsort label-3608
SELECT - COUNT ( * ) * - ( - - COUNT ( * ) ) - + + 85 + + + 50 * - 91 * + COUNT ( * )
----
-4634

onlyif mysql # DIV for integer division: 
query II rowsort label-3609
SELECT + 95 AS col0, 64 DIV 78
----
95
0

skipif mysql # not compatible
query II rowsort label-3609
SELECT + 95 AS col0, 64 / 78
----
95
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT + COUNT( * ) AS col0, 31 col1
----
1
31

skipif mysql # not compatible
query II rowsort label-3610
SELECT + COUNT ( * ) AS col0, 31 col1
----
1
31

query II rowsort
SELECT + + 12 AS col1, - 20
----
12
-20

query I rowsort
SELECT DISTINCT - ( 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL + - COUNT( * ) * + 16
----
-16

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + - COUNT ( * ) * + 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL - SUM( DISTINCT 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - SUM ( DISTINCT 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT 45 - SUM( + - 60 ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-3615
SELECT 45 - SUM ( + - 60 ) AS col2
----
105

query I rowsort
SELECT + - COALESCE ( + - 56, - 40 ) * - + 58 + + 78 + - 44
----
-3214

query II rowsort
SELECT + 40 * - - 39 AS col0, + 68 * + 21 * - - 3
----
1560
4284

query I rowsort
SELECT 25 * - - CASE + 31 WHEN + 25 + 83 THEN NULL WHEN + - 65 THEN + + 81 END + - 53 + + - 0 * - + 68 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3619
SELECT CAST( + + COUNT( * ) AS SIGNED ) + + MAX( ALL 7 ) * 30
----
211

skipif mysql # not compatible
query I rowsort label-3619
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) + + MAX ( ALL 7 ) * 30
----
211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3620
SELECT ALL 5 DIV COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL 5 / COUNT ( * ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT 48 DIV 24
----
2

skipif mysql # not compatible
query I rowsort label-3621
SELECT 48 / 24
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT 98 + - + SUM( 65 ) col0
----
33

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT 98 + - + SUM ( 65 ) col0
----
33

query I rowsort
SELECT DISTINCT 4 + 12 AS col0
----
16

query I rowsort
SELECT DISTINCT 63 + + 48
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT 83 + + 32 - - 88 + + ( 66 ) AS col0, SUM( DISTINCT 68 ) AS col1
----
269
68

skipif mysql # not compatible
query II rowsort label-3625
SELECT 83 + + 32 - - 88 + + ( 66 ) AS col0, SUM ( DISTINCT 68 ) AS col1
----
269
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT 35 * - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3626
SELECT 35 * - COUNT ( * ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT ALL - - 87 * - - 57 * CAST( NULL AS SIGNED ) * + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL - - 87 * - - 57 * CAST ( NULL AS INTEGER ) * + 95 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT ( - 71 ) + - CAST( - COUNT( * ) AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-3628
SELECT ( - 71 ) + - CAST ( - COUNT ( * ) AS INTEGER )
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT ALL 55 - + 55 + 53 DIV 3 * + 29
----
493

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL 55 - + 55 + 53 / 3 * + 29
----
493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3630
SELECT - COUNT( + - CAST( NULL AS SIGNED ) ) * - SUM( ALL + 17 ) + 75 + - 4 DIV + ( 79 ) * + 87 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3630
SELECT - COUNT ( + - CAST ( NULL AS INTEGER ) ) * - SUM ( ALL + 17 ) + 75 + - 4 / + ( 79 ) * + 87 AS col0
----
75

query I rowsort
SELECT 83 * - 48 col0
----
-3984

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT + - ( + MAX( ( + 72 ) ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3632
SELECT + - ( + MAX ( ( + 72 ) ) ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL - 34 + + 98 + + 66 + - + 27 * - COUNT( * ) / + CASE + + 95 WHEN 27 THEN 95 WHEN + 0 THEN - 18 * + COUNT( * ) WHEN + AVG ( - + 73 ) THEN NULL ELSE NULL END + - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - 34 + + 98 + + 66 + - + 27 * - COUNT ( * ) / + CASE + + 95 WHEN 27 THEN 95 WHEN + 0 THEN - 18 * + COUNT ( * ) WHEN + AVG ( - + 73 ) THEN NULL ELSE NULL END + - + 14
----
NULL

query I rowsort
SELECT ALL + 32 + 54
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT ALL - 73 + - - NULLIF ( + 69, + MAX( CAST( + 27 AS SIGNED ) ) ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - 73 + - - NULLIF ( + 69, + MAX ( CAST ( + 27 AS INTEGER ) ) ) col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT NULLIF ( - COUNT( * ), 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-3636
SELECT NULLIF ( - COUNT ( * ), 54 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3637
SELECT ( + 96 ) + - - 94, ( ( + 84 ) ) * COUNT( * ) AS col1
----
190
84

skipif mysql # not compatible
query II rowsort label-3637
SELECT ( + 96 ) + - - 94, ( ( + 84 ) ) * COUNT ( * ) AS col1
----
190
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3638
SELECT 93 * - 37 * COUNT( * ) * + - 8 DIV - COUNT( * )
----
-27528

skipif mysql # not compatible
query I rowsort label-3638
SELECT 93 * - 37 * COUNT ( * ) * + - 8 / - COUNT ( * )
----
-27528

onlyif mysql # aggregate syntax: 
query II rowsort label-3639
SELECT + 55 AS col2, + COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-3639
SELECT + 55 AS col2, + COUNT ( * )
----
55
1

query I rowsort
SELECT ALL - 25 + 54 + 88 - + 2 + + 42 AS col0
----
157

query I rowsort
SELECT DISTINCT - 7 + - + 0 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL MAX( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL MAX ( - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT DISTINCT COUNT( * ), + CASE - 20 WHEN + NULLIF ( - 80, + - 25 + - 10 + - COUNT( * ) * COALESCE ( 87, - + 24 ) ) + + 49 THEN - COUNT( * ) END * ( + 49 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3643
SELECT DISTINCT COUNT ( * ), + CASE - 20 WHEN + NULLIF ( - 80, + - 25 + - 10 + - COUNT ( * ) * COALESCE ( 87, - + 24 ) ) + + 49 THEN - COUNT ( * ) END * ( + 49 ) AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT 96 DIV - + 28
----
-3

skipif mysql # not compatible
query I rowsort label-3644
SELECT 96 / - + 28
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3645
SELECT COUNT( ALL 91 ) - - 84 + - CAST( NULL AS SIGNED ) * 19 - + + 69 col0, 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3645
SELECT COUNT ( ALL 91 ) - - 84 + - CAST ( NULL AS INTEGER ) * 19 - + + 69 col0, 0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT DISTINCT 50 DIV - + 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT 50 / - + 48 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT 21 DIV + 8
----
2

skipif mysql # not compatible
query I rowsort label-3647
SELECT 21 / + 8
----
2

query I rowsort
SELECT 92 * - 87 AS col2
----
-8004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3649
SELECT ALL - 81 DIV - + MAX( ALL - - 24 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL - 81 / - + MAX ( ALL - - 24 ) col0
----
3

query I rowsort
SELECT ALL ( - 0 ) * - + 27 * - ( + 25 )
----
0

query I rowsort
SELECT DISTINCT 3 * + 11
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3652
SELECT DISTINCT NULLIF ( CASE - + 32 WHEN + 52 THEN COUNT( * ) END, 46 * + - COALESCE ( 15, 79 + + 48 ) * MAX( ALL + 85 ) + - + 24 + 10 + 43 + - 58 + + 10 + + + COALESCE ( - + 92, - CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT NULLIF ( CASE - + 32 WHEN + 52 THEN COUNT ( * ) END, 46 * + - COALESCE ( 15, 79 + + 48 ) * MAX ( ALL + 85 ) + - + 24 + 10 + 43 + - 58 + + 10 + + + COALESCE ( - + 92, - CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3653
SELECT ALL + SUM( DISTINCT - - ( + + 29 ) ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + SUM ( DISTINCT - - ( + + 29 ) ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT CASE - 10 WHEN 84 THEN NULL WHEN - 98 * COUNT( * ) + + 70 * - 9 THEN NULL WHEN + ( + CASE - 32 WHEN 91 THEN - + ( 79 ) / 33 + - + 19 WHEN + - 4 THEN - 69 END ) * - - 27 * - 92 * + - 36 * - 36 + + 82 * - - COUNT( * ) THEN - 45 ELSE - - 41 + + 34 END - COUNT( * ) - MAX( ALL - + 0 )
----
74

skipif mysql # not compatible
query I rowsort label-3654
SELECT CASE - 10 WHEN 84 THEN NULL WHEN - 98 * COUNT ( * ) + + 70 * - 9 THEN NULL WHEN + ( + CASE - 32 WHEN 91 THEN - + ( 79 ) / 33 + - + 19 WHEN + - 4 THEN - 69 END ) * - - 27 * - 92 * + - 36 * - 36 + + 82 * - - COUNT ( * ) THEN - 45 ELSE - - 41 + + 34 END - COUNT ( * ) - MAX ( ALL - + 0 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT - + 83, 48 * COUNT( 6 ) AS col0
----
-83
48

skipif mysql # not compatible
query II rowsort label-3655
SELECT - + 83, 48 * COUNT ( 6 ) AS col0
----
-83
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT NULLIF ( + 18, + COUNT( DISTINCT - 79 ) * + + 92 * - 77 + + COUNT( * ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-3656
SELECT NULLIF ( + 18, + COUNT ( DISTINCT - 79 ) * + + 92 * - 77 + + COUNT ( * ) ) AS col2
----
18

query I rowsort
SELECT - NULLIF ( 32, + 14 + 25 - - 46 + - 74 + 39 / 53 )
----
-32

query II rowsort
SELECT 23 AS col0, - 35 col1
----
23
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT - NULLIF ( - SUM( DISTINCT - 8 ), - - AVG ( ALL + 50 ) * - + COALESCE ( + 82, + AVG ( DISTINCT + 96 ) ) ) * ( + COUNT( * ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3659
SELECT - NULLIF ( - SUM ( DISTINCT - 8 ), - - AVG ( ALL + 50 ) * - + COALESCE ( + 82, + AVG ( DISTINCT + 96 ) ) ) * ( + COUNT ( * ) ) AS col1
----
-8

query I rowsort
SELECT - - ( - 38 ) AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3661
SELECT - + 3, CASE 15 WHEN 91 THEN NULL ELSE - NULLIF ( - 79, - CAST( NULL AS DECIMAL ) * - - CAST( - 99 AS SIGNED ) * 65 - - CAST( NULL AS DECIMAL ) * + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) END - + 64 * - NULLIF ( 51, + 74 ) - 64 - - COUNT( * ) col0
----
-3
3280

skipif mysql # not compatible
query II rowsort label-3661
SELECT - + 3, CASE 15 WHEN 91 THEN NULL ELSE - NULLIF ( - 79, - CAST ( NULL AS REAL ) * - - CAST ( - 99 AS INTEGER ) * 65 - - CAST ( NULL AS REAL ) * + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) END - + 64 * - NULLIF ( 51, + 74 ) - 64 - - COUNT ( * ) col0
----
-3
3280

query I rowsort
SELECT ALL + NULLIF ( + 15, + 88 - - + 8 ) AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3663
SELECT ALL + 54 DIV + - COUNT( * ) + + 41
----
-13

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + 54 / + - COUNT ( * ) + + 41
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3664
SELECT NULLIF ( - COALESCE ( 9, + CASE + - 65 WHEN + MAX( - - 58 ) + 16 THEN - - 7 * 35 DIV + CASE + CASE 79 WHEN - ( NULLIF ( + 4, - 18 ) ) THEN NULL WHEN + COUNT( ALL ( + 10 ) ) DIV 27 * + 58 THEN NULL WHEN + + COUNT( * ) THEN 74 + - 84 END WHEN - MAX( DISTINCT + + 22 ) THEN NULL ELSE - + 42 END + 68 END - + 69 + - + 68, - 31 ), - 4 ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-3664
SELECT NULLIF ( - COALESCE ( 9, + CASE + - 65 WHEN + MAX ( - - 58 ) + 16 THEN - - 7 * 35 / + CASE + CASE 79 WHEN - ( NULLIF ( + 4, - 18 ) ) THEN NULL WHEN + COUNT ( ALL ( + 10 ) ) / 27 * + 58 THEN NULL WHEN + + COUNT ( * ) THEN 74 + - 84 END WHEN - MAX ( DISTINCT + + 22 ) THEN NULL ELSE - + 42 END + 68 END - + 69 + - + 68, - 31 ), - 4 ) col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3665
SELECT ALL - CASE 63 WHEN + - 84 THEN + CAST( NULL AS SIGNED ) END * 28 - - 64 * 54 + CAST( NULL AS SIGNED ) + - 28 - COUNT( - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - CASE 63 WHEN + - 84 THEN + CAST ( NULL AS INTEGER ) END * 28 - - 64 * 54 + CAST ( NULL AS INTEGER ) + - 28 - COUNT ( - 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL + - ( MIN( - - 38 ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + - ( MIN ( - - 38 ) ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT + CASE + - 86 WHEN - COUNT( * ) * + 50 * 93 THEN + 36 / - 14 - 91 / - + 69 / + 44 + 98 WHEN - 56 * + + 66 THEN + - 2 WHEN + - COUNT( * ) * - 41 THEN 37 * + - 11 * 59 + + 80 + - - 87 END * + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + CASE + - 86 WHEN - COUNT ( * ) * + 50 * 93 THEN + 36 / - 14 - 91 / - + 69 / + 44 + 98 WHEN - 56 * + + 66 THEN + - 2 WHEN + - COUNT ( * ) * - 41 THEN 37 * + - 11 * 59 + + 80 + - - 87 END * + + 68
----
NULL

query I rowsort
SELECT - COALESCE ( + + 29, - - 9, - 63 + 33 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3669
SELECT ALL + + COUNT( * ), + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3669
SELECT ALL + + COUNT ( * ), + COUNT ( * ) AS col2
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT + - CAST( + 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-3670
SELECT + - CAST ( + 47 AS INTEGER )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3671
SELECT DISTINCT - 66 DIV - 47, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3671
SELECT DISTINCT - 66 / - 47, COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT ALL 83 * + + 9 + - 70 AS col2
----
677

query I rowsort
SELECT 57 * COALESCE ( + + 99, 43 + - + 32, + - 85, 82 ) + + + 47 AS col2
----
5690

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT - ( 80 ) + + 84 / - - CASE + 31 WHEN NULLIF ( - COUNT( * ), - + 44 ) THEN NULL WHEN + - 54 / - - 83 THEN + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT - ( 80 ) + + 84 / - - CASE + 31 WHEN NULLIF ( - COUNT ( * ), - + 44 ) THEN NULL WHEN + - 54 / - - 83 THEN + 15 END
----
NULL

query I rowsort
SELECT + 62 + - + 19 * + + 72 + - + 17 AS col1
----
-1323

query I rowsort
SELECT ALL ( 29 ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL MAX( ALL - - ( - 14 ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL MAX ( ALL - - ( - 14 ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3678
SELECT ALL - 95 * + - 16 AS col2, COUNT( * )
----
1520
1

skipif mysql # not compatible
query II rowsort label-3678
SELECT ALL - 95 * + - 16 AS col2, COUNT ( * )
----
1520
1

query I rowsort
SELECT - 50 * - 56
----
2800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3680
SELECT DISTINCT CASE - + CAST( + 21 AS SIGNED ) WHEN + ( + MIN( 45 ) ) * 87 THEN - 2 + - 47 + - CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT CASE - + CAST ( + 21 AS INTEGER ) WHEN + ( + MIN ( 45 ) ) * 87 THEN - 2 + - 47 + - CAST ( NULL AS REAL ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3681
SELECT ALL CASE - - 40 WHEN - - CAST( NULL AS SIGNED ) * - + ( + + 46 ) + COALESCE ( 91, + COALESCE ( - + 93, 5 * + - 63 + + - 33 ) * 90 + + 85 + + CAST( NULL AS DECIMAL ) + + 70 * - 5 / + - 22 + - 69, - 79 ) / + 37 + - + 92 THEN NULL WHEN 35 + + 58 + - - ( + ( + + 46 ) ) + - 99 * - - 0 * - COUNT( * ) * - - 24 * + 15 * - - 12 THEN - ( 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL CASE - - 40 WHEN - - CAST ( NULL AS INTEGER ) * - + ( + + 46 ) + COALESCE ( 91, + COALESCE ( - + 93, 5 * + - 63 + + - 33 ) * 90 + + 85 + + CAST ( NULL AS REAL ) + + 70 * - 5 / + - 22 + - 69, - 79 ) / + 37 + - + 92 THEN NULL WHEN 35 + + 58 + - - ( + ( + + 46 ) ) + - 99 * - - 0 * - COUNT ( * ) * - - 24 * + 15 * - - 12 THEN - ( 2 ) END
----
NULL

query I rowsort
SELECT - 2 + - 22 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT + 20 * + + 40 * + + 80 * + 72 * NULLIF ( 47, + COUNT( * ) )
----
216576000

skipif mysql # not compatible
query I rowsort label-3683
SELECT + 20 * + + 40 * + + 80 * + 72 * NULLIF ( 47, + COUNT ( * ) )
----
216576000

query I rowsort
SELECT ALL ( + NULLIF ( + ( - 46 ), + 46 / + 93 ) ) AS col0
----
-46

query I rowsort
SELECT + - 97 - 7 + 68
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT - + 28 + - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT - + 28 + - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3687
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), ( - 87 ) / + COUNT( * ) * - 62 * - 63 / + + 33 ) * 38, + CAST( NULL AS SIGNED ) * + COUNT( * ) / + 52, + CAST( NULL AS SIGNED ) + - NULLIF ( SUM( ALL - - 73 ), + 53 - + 93 * - 72 + NULLIF ( - 49, + CAST( NULL AS SIGNED ) ) + 30 ) col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query III rowsort label-3687
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), ( - 87 ) / + COUNT ( * ) * - 62 * - 63 / + + 33 ) * 38, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 52, + CAST ( NULL AS INTEGER ) + - NULLIF ( SUM ( ALL - - 73 ), + 53 - + 93 * - 72 + NULLIF ( - 49, + CAST ( NULL AS INTEGER ) ) + 30 ) col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL 73 * - MIN( DISTINCT 3 ) AS col2
----
-219

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL 73 * - MIN ( DISTINCT 3 ) AS col2
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - - MAX( + ( - - 93 ) ) + + COUNT( * ) - + + 30 + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-3689
SELECT - - MAX ( + ( - - 93 ) ) + + COUNT ( * ) - + + 30 + COUNT ( * )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3690
SELECT ALL - 47 + + - SUM( + 10 ) + - CAST( NULL AS SIGNED ) col1, 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-3690
SELECT ALL - 47 + + - SUM ( + 10 ) + - CAST ( NULL AS INTEGER ) col1, 84 AS col0
----
NULL
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT DISTINCT + 89 DIV + - ( 88 ) - - 7 col0
----
6

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT + 89 / + - ( 88 ) - - 7 col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3692
SELECT + + 78 DIV COUNT( * ) col1
----
78

skipif mysql # not compatible
query I rowsort label-3692
SELECT + + 78 / COUNT ( * ) col1
----
78

query I rowsort
SELECT ALL 0 + - 34 AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3694
SELECT + CASE + ( - 82 ) WHEN AVG ( - + 79 ) THEN NULL ELSE 39 END + + 70, + 52 * 6 + + 1 - - - 88 + - CAST( 7 AS SIGNED ) * + + COUNT( * ) AS col0
----
109
218

skipif mysql # not compatible
query II rowsort label-3694
SELECT + CASE + ( - 82 ) WHEN AVG ( - + 79 ) THEN NULL ELSE 39 END + + 70, + 52 * 6 + + 1 - - - 88 + - CAST ( 7 AS INTEGER ) * + + COUNT ( * ) AS col0
----
109
218

query I rowsort
SELECT ALL + + 11 * ( - 65 )
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT + COUNT( + 95 ) + 2
----
3

skipif mysql # not compatible
query I rowsort label-3696
SELECT + COUNT ( + 95 ) + 2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT ALL 49 DIV - 54 - + 39 + - 20 * - 90 + + 48 AS col2
----
1809

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL 49 / - 54 - + 39 + - 20 * - 90 + + 48 AS col2
----
1809

onlyif mysql # aggregate syntax: 
query II rowsort label-3698
SELECT + + COUNT( * ) * + COUNT( * ), + 56 col1
----
1
56

skipif mysql # not compatible
query II rowsort label-3698
SELECT + + COUNT ( * ) * + COUNT ( * ), + 56 col1
----
1
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT + - 46 + COUNT( * ) AS col0, ( + 32 )
----
-45
32

skipif mysql # not compatible
query II rowsort label-3699
SELECT + - 46 + COUNT ( * ) AS col0, ( + 32 )
----
-45
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3700
SELECT ALL 36 DIV + ( - - 32 ) + - COUNT( * ) + - - 19 col1
----
19

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL 36 / + ( - - 32 ) + - COUNT ( * ) + - - 19 col1
----
19

query I rowsort
SELECT ALL + + 7 col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3702
SELECT DISTINCT 94 DIV + 15 + + - COUNT( * ) + 98 col1
----
103

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT 94 / + 15 + + - COUNT ( * ) + 98 col1
----
103

query I rowsort
SELECT DISTINCT - 49 * 19 AS col2
----
-931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3704
SELECT + NULLIF ( - + 23, + 61 ) / - COALESCE ( CAST( NULL AS SIGNED ), + 19 + - CAST( NULL AS DECIMAL ) * 81 ) / NULLIF ( - - 80, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT + NULLIF ( - + 23, + 61 ) / - COALESCE ( CAST ( NULL AS INTEGER ), + 19 + - CAST ( NULL AS REAL ) * 81 ) / NULLIF ( - - 80, COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + 53 * - 91 * + 87 AS col0
----
-419601

query I rowsort
SELECT 89 * + 88 - + 26 * - 3 * 20 * + 83 col1
----
137312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT ALL MIN( - + 27 ) * - CAST( - + 72 AS SIGNED ) - - COUNT( + 87 ) * 28 AS col1
----
-1916

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL MIN ( - + 27 ) * - CAST ( - + 72 AS INTEGER ) - - COUNT ( + 87 ) * 28 AS col1
----
-1916

query I rowsort
SELECT DISTINCT 97 * 89
----
8633

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT MIN( ALL 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT MIN ( ALL 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3710
SELECT COALESCE ( - 21, 27 * + CAST( 84 AS SIGNED ) * MAX( - + 26 ) * + SUM( + 83 ) * 99 - COUNT( * ) * + 94 )
----
-21

skipif mysql # not compatible
query I rowsort label-3710
SELECT COALESCE ( - 21, 27 * + CAST ( 84 AS INTEGER ) * MAX ( - + 26 ) * + SUM ( + 83 ) * 99 - COUNT ( * ) * + 94 )
----
-21

query I rowsort
SELECT DISTINCT COALESCE ( 73, - 63 ) AS col0
----
73

query I rowsort
SELECT - 96 * + - 80 col2
----
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT 11 + - - COUNT( * ) * + 57
----
68

skipif mysql # not compatible
query I rowsort label-3713
SELECT 11 + - - COUNT ( * ) * + 57
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3714
SELECT NULLIF ( + + 12, CAST( NULL AS DECIMAL ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3714
SELECT NULLIF ( + + 12, CAST ( NULL AS REAL ) ) AS col1
----
12

query I rowsort
SELECT ALL + + 84 + - - 87 AS col0
----
171

query I rowsort
SELECT DISTINCT - - 22 + - - 75 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT + 60 * + + MIN( + 55 )
----
3300

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT + 60 * + + MIN ( + 55 )
----
3300

query II rowsort
SELECT - - 20 col0, + 45
----
20
45

query I rowsort
SELECT DISTINCT - + 72 + - - 27 col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3720
SELECT ALL + + 9 * + CASE ( + 90 ) WHEN - + 71 + + + 7 THEN + + 0 DIV + 54 WHEN + 9 THEN NULL END + - 23 * + - 47 * - 90 + 57, + COUNT( * ) DIV + 57 + - 21 AS col1
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-3720
SELECT ALL + + 9 * + CASE ( + 90 ) WHEN - + 71 + + + 7 THEN + + 0 / + 54 WHEN + 9 THEN NULL END + - 23 * + - 47 * - 90 + 57, + COUNT ( * ) / + 57 + - 21 AS col1
----
NULL
-21

query I rowsort
SELECT DISTINCT - + 47 + - + 2 AS col0
----
-49

query II rowsort
SELECT DISTINCT - 40, 51 * 54 + + 22 AS col1
----
-40
2776

query I rowsort
SELECT ALL - + 96 + + 93 AS col0
----
-3

query I rowsort
SELECT 99 - + + 90
----
9

query I rowsort
SELECT - + ( - 53 ) AS col1
----
53

query II rowsort
SELECT + 93 col0, 14 * 68
----
93
952

onlyif mysql # DIV for integer division: 
query I rowsort label-3727
SELECT - 34 DIV - + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3727
SELECT - 34 / - + 37 AS col0
----
0

query I rowsort
SELECT - ( - 75 ) * + 50 * + 55 * 50 AS col2
----
10312500

query II rowsort
SELECT DISTINCT - 9 AS col2, 98 * + 7
----
-9
686

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT DISTINCT - COUNT( * ) - + - 84 * - + COUNT( * ) AS col2, 74 col1
----
-85
74

skipif mysql # not compatible
query II rowsort label-3730
SELECT DISTINCT - COUNT ( * ) - + - 84 * - + COUNT ( * ) AS col2, 74 col1
----
-85
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL + 20 * + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL + 20 * + COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT - 13 * - + 76 * COUNT( * ) - - 1 * - + ( + 89 ) + ( + + 63 ) AS col2
----
962

skipif mysql # not compatible
query I rowsort label-3732
SELECT - 13 * - + 76 * COUNT ( * ) - - 1 * - + ( + 89 ) + ( + + 63 ) AS col2
----
962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT ALL + CASE - + 84 WHEN - 65 THEN NULL WHEN + 69 THEN CAST( - + 88 AS SIGNED ) ELSE NULL END * - 28 + - - 54 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + CASE - + 84 WHEN - 65 THEN NULL WHEN + 69 THEN CAST ( - + 88 AS INTEGER ) ELSE NULL END * - 28 + - - 54 * - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL - MAX( NULLIF ( 39, 15 * - + 96 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL - MAX ( NULLIF ( 39, 15 * - + 96 ) )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3735
SELECT COUNT( * ) * 99 AS col1, 46 / - CAST( NULL AS SIGNED ) - - COALESCE ( + 50, + - MAX( ALL - + 88 ) ) * 98
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3735
SELECT COUNT ( * ) * 99 AS col1, 46 / - CAST ( NULL AS INTEGER ) - - COALESCE ( + 50, + - MAX ( ALL - + 88 ) ) * 98
----
99
NULL

query I rowsort
SELECT ( - 80 ) * + + 32 + + 60 AS col0
----
-2500

query I rowsort
SELECT 12 - - + 29 * + + 20
----
592

query II rowsort
SELECT + 61, + 89 * + 3 AS col0
----
61
267

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT SUM( + 33 ) * 87
----
2871

skipif mysql # not compatible
query I rowsort label-3739
SELECT SUM ( + 33 ) * 87
----
2871

query I rowsort
SELECT 96 + - 35
----
61

query II rowsort
SELECT ALL - 66, - 75 col0
----
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL NULLIF ( - 65, - - 80 ) * - CASE - COALESCE ( + 14, + - 83 * - 6 ) WHEN COUNT( ALL - - 14 ) THEN - - 87 WHEN - 44 * ( 35 ) THEN NULL WHEN - 69 + + 72 - - + ( + 84 ) - + COALESCE ( + 99, 50 * + 7 * + - ( + AVG ( + 64 ) ) * NULLIF ( + - 19, + 68 ) ) * - 68 * - 9 THEN + 61 ELSE NULL END * 23 + + + 80 + - COUNT( * ) + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL NULLIF ( - 65, - - 80 ) * - CASE - COALESCE ( + 14, + - 83 * - 6 ) WHEN COUNT ( ALL - - 14 ) THEN - - 87 WHEN - 44 * ( 35 ) THEN NULL WHEN - 69 + + 72 - - + ( + 84 ) - + COALESCE ( + 99, 50 * + 7 * + - ( + AVG ( + 64 ) ) * NULLIF ( + - 19, + 68 ) ) * - 68 * - 9 THEN + 61 ELSE NULL END * 23 + + + 80 + - COUNT ( * ) + + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3743
SELECT ALL - 47, CASE 64 WHEN + 40 - - + CAST( NULL AS SIGNED ) + COUNT( * ) THEN SUM( + 56 ) ELSE - + 21 * 79 * - 89 - 28 END * CAST( NULL AS SIGNED ) * 42 + + COUNT( * ) AS col0
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-3743
SELECT ALL - 47, CASE 64 WHEN + 40 - - + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN SUM ( + 56 ) ELSE - + 21 * 79 * - 89 - 28 END * CAST ( NULL AS INTEGER ) * 42 + + COUNT ( * ) AS col0
----
-47
NULL

query II rowsort
SELECT DISTINCT - 50 AS col2, - 30 + + 18 AS col2
----
-50
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT DISTINCT MIN( + 36 ) DIV + + ( 38 ) - - 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT MIN ( + 36 ) / + + ( 38 ) - - 29 AS col0
----
29

query I rowsort
SELECT ALL 26 + - 30
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3747
SELECT CAST( NULL AS DECIMAL ) / 82 * 98 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT CAST ( NULL AS REAL ) / 82 * 98 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + 9 )
----
NULL

query I rowsort
SELECT 56 + + 41 col2
----
97

query I rowsort
SELECT ALL + NULLIF ( - 43, - - 36 ) + - 85 * 71
----
-6078

query I rowsort
SELECT ALL - - 74 + - NULLIF ( + + 95, + 68 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT SUM( ALL - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3752
SELECT SUM ( ALL - 95 ) AS col0
----
-95

query I rowsort
SELECT ALL + 31 * + 11 + - 92
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT 4 * 17 * - + 97 + + 92 + - + COUNT( * ) AS col2
----
-6505

skipif mysql # not compatible
query I rowsort label-3754
SELECT 4 * 17 * - + 97 + + 92 + - + COUNT ( * ) AS col2
----
-6505

query I rowsort
SELECT DISTINCT 17 + 44
----
61

query II rowsort
SELECT - 98 AS col1, + 98
----
-98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT ALL 35 + + - COALESCE ( - 57, 46 * 89 + + - 5 + - - 22, + + CAST( NULL AS SIGNED ) + 35 ) + + COUNT( * ) * 26 * + - 90 * - 48 AS col1
----
112412

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL 35 + + - COALESCE ( - 57, 46 * 89 + + - 5 + - - 22, + + CAST ( NULL AS INTEGER ) + 35 ) + + COUNT ( * ) * 26 * + - 90 * - 48 AS col1
----
112412

query I rowsort
SELECT - 5 + 48
----
43

query II rowsort
SELECT - + 27 col1, + 70 * + 87
----
-27
6090

query I rowsort
SELECT 14 + - 28
----
-14

query I rowsort
SELECT - CASE - 80 WHEN - 51 / + 45 - + 39 THEN NULL WHEN 7 THEN 15 * + + 59 ELSE NULL END - 78 AS col0
----
NULL

query I rowsort
SELECT ALL + 15 * + + 93 + - - CASE - - 57 WHEN + 16 THEN - 62 + + + 65 WHEN - 44 / + 58 / - 14 THEN 28 ELSE - 89 END + + - 84
----
1222

query I rowsort
SELECT - 32 + - 90 AS col2
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT 4 - + COUNT( * ) + + + NULLIF ( + + COUNT( * ), 91 / + MIN( + 2 ) + 19 * - CASE + 63 WHEN - 12 THEN ( + + 52 ) WHEN + 84 * - - 87 THEN - - MIN( 67 ) WHEN - 85 THEN NULL ELSE - + 6 END / - - COUNT( * ) + 45 ) + - 44 + + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-3764
SELECT 4 - + COUNT ( * ) + + + NULLIF ( + + COUNT ( * ), 91 / + MIN ( + 2 ) + 19 * - CASE + 63 WHEN - 12 THEN ( + + 52 ) WHEN + 84 * - - 87 THEN - - MIN ( 67 ) WHEN - 85 THEN NULL ELSE - + 6 END / - - COUNT ( * ) + 45 ) + - 44 + + COUNT ( * )
----
-39

query I rowsort
SELECT - 6 + - 72 - - - 67
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT - CASE - + ( ( + COUNT( ALL 84 ) ) ) WHEN - 64 THEN 16 * - ( - COUNT( * ) ) WHEN + + CAST( NULL AS SIGNED ) + - 57 THEN + COUNT( * ) + + - 87 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT - CASE - + ( ( + COUNT ( ALL 84 ) ) ) WHEN - 64 THEN 16 * - ( - COUNT ( * ) ) WHEN + + CAST ( NULL AS INTEGER ) + - 57 THEN + COUNT ( * ) + + - 87 END AS col2
----
NULL

query I rowsort
SELECT 52 * + 60 AS col2
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL + 54 * - + 84 * COUNT( ALL - 87 )
----
-4536

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL + 54 * - + 84 * COUNT ( ALL - 87 )
----
-4536

query II rowsort
SELECT ALL 83, - ( + 99 ) AS col2
----
83
-99

query I rowsort
SELECT DISTINCT + 21 * + 73 AS col2
----
1533

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL - SUM( ALL - 56 ) - 32 * - + 88 * - - MAX( ALL - - NULLIF ( - 46, 82 ) ) col1
----
-129480

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - SUM ( ALL - 56 ) - 32 * - + 88 * - - MAX ( ALL - - NULLIF ( - 46, 82 ) ) col1
----
-129480

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT COUNT( * ) * + 29 col0
----
29

skipif mysql # not compatible
query I rowsort label-3772
SELECT COUNT ( * ) * + 29 col0
----
29

query I rowsort
SELECT DISTINCT 83 * - - 24 - ( + + 87 ) + 97 + + 91 AS col1
----
2093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3774
SELECT - 46 DIV CASE + 67 WHEN - MAX( DISTINCT 70 ) THEN - 15 DIV - 73 * 86 * - + ( + + 5 ) ELSE - 78 END + 21 * + 26
----
546

skipif mysql # not compatible
query I rowsort label-3774
SELECT - 46 / CASE + 67 WHEN - MAX ( DISTINCT 70 ) THEN - 15 / - 73 * 86 * - + ( + + 5 ) ELSE - 78 END + 21 * + 26
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT ALL - 35 DIV 71 * + + NULLIF ( 75, + - 96 * 58 + + 26 + + CASE - 22 WHEN - 31 DIV - 91 THEN NULL WHEN + MAX( - 31 ) THEN NULL ELSE 85 END + + + MIN( 55 ) - + COALESCE ( + 98, - - 14, 62 * 10 + SUM( DISTINCT + 49 ) + - 42 * - - 63 + + + 41 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - 35 / 71 * + + NULLIF ( 75, + - 96 * 58 + + 26 + + CASE - 22 WHEN - 31 / - 91 THEN NULL WHEN + MAX ( - 31 ) THEN NULL ELSE 85 END + + + MIN ( 55 ) - + COALESCE ( + 98, - - 14, 62 * 10 + SUM ( DISTINCT + 49 ) + - 42 * - - 63 + + + 41 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT 86 * + - MIN( + + 44 ) * - 92
----
348128

skipif mysql # not compatible
query I rowsort label-3776
SELECT 86 * + - MIN ( + + 44 ) * - 92
----
348128

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT 22 + - + 46 * 75 * + 60 + + COUNT( * ) + - - 50 AS col2
----
-206927

skipif mysql # not compatible
query I rowsort label-3777
SELECT 22 + - + 46 * 75 * + 60 + + COUNT ( * ) + - - 50 AS col2
----
-206927

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3778
SELECT DISTINCT 4 * - 25 AS col0, + CAST( NULL AS SIGNED ) AS col1
----
-100
NULL

skipif mysql # not compatible
query II rowsort label-3778
SELECT DISTINCT 4 * - 25 AS col0, + CAST ( NULL AS INTEGER ) AS col1
----
-100
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT ALL - 36 DIV + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - 36 / + 40 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT CASE 49 WHEN + - COUNT( DISTINCT + 25 ) / 5 * - 19 THEN - 17 END * - CASE ( - + 71 ) WHEN - + 85 THEN - 34 + 19 WHEN - 63 + 10 THEN NULL END / + 68 + 12 + - 17 * + - COUNT( + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT CASE 49 WHEN + - COUNT ( DISTINCT + 25 ) / 5 * - 19 THEN - 17 END * - CASE ( - + 71 ) WHEN - + 85 THEN - 34 + 19 WHEN - 63 + 10 THEN NULL END / + 68 + 12 + - 17 * + - COUNT ( + 20 )
----
NULL

query I rowsort
SELECT - 85 * + 44
----
-3740

query I rowsort
SELECT DISTINCT + 46 * - 46 * + 10 AS col0
----
-21160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3783
SELECT DISTINCT MIN( - 57 ) + - NULLIF ( + - CAST( NULL AS DECIMAL ), + - 19 ) - + CASE + CASE + 88 WHEN - 46 - + 91 THEN - + 21 WHEN + COUNT( * ) THEN - 38 + - COUNT( ( + - ( 21 ) ) ) WHEN - 45 THEN NULL END WHEN + 81 * + COUNT( * ) THEN 39 ELSE - + COUNT( * ) * 38 * 61 + - 81 END * + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT MIN ( - 57 ) + - NULLIF ( + - CAST ( NULL AS REAL ), + - 19 ) - + CASE + CASE + 88 WHEN - 46 - + 91 THEN - + 21 WHEN + COUNT ( * ) THEN - 38 + - COUNT ( ( + - ( 21 ) ) ) WHEN - 45 THEN NULL END WHEN + 81 * + COUNT ( * ) THEN 39 ELSE - + COUNT ( * ) * 38 * 61 + - 81 END * + + 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT ALL 31 + - COUNT( * ) + - 43 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL 31 + - COUNT ( * ) + - 43 AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT + + 91 - COALESCE ( + CAST( NULL AS SIGNED ), - - 93 / - + 67 ) + CAST( NULL AS SIGNED ) * - COUNT( * ) * - - 73 + + - 70 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT + + 91 - COALESCE ( + CAST ( NULL AS INTEGER ), - - 93 / - + 67 ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - - 73 + + - 70 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 87 ) col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT DISTINCT 6 + + 92, + 59 * - MIN( ALL - 47 ) - - - 60 + + 61 AS col1
----
98
2774

skipif mysql # not compatible
query II rowsort label-3788
SELECT DISTINCT 6 + + 92, + 59 * - MIN ( ALL - 47 ) - - - 60 + + 61 AS col1
----
98
2774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT ALL 11 DIV - NULLIF ( - - COUNT( - 59 ), + + 73 )
----
-11

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL 11 / - NULLIF ( - - COUNT ( - 59 ), + + 73 )
----
-11

query I rowsort
SELECT DISTINCT + 77 * + 97
----
7469

query II rowsort
SELECT + 77 * + - 42 AS col1, + 79 AS col1
----
-3234
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL + COUNT( * ) * + 71
----
71

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + COUNT ( * ) * + 71
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3793
SELECT - + ( + 37 ) + - CASE + 11 WHEN + 5 + 81 * ( + 42 ) + 95 THEN 2 WHEN - 15 + - NULLIF ( - 7, - 27 ) THEN NULL ELSE - - 68 DIV + SUM( + 39 ) END * 81
----
-118

skipif mysql # not compatible
query I rowsort label-3793
SELECT - + ( + 37 ) + - CASE + 11 WHEN + 5 + 81 * ( + 42 ) + 95 THEN 2 WHEN - 15 + - NULLIF ( - 7, - 27 ) THEN NULL ELSE - - 68 / + SUM ( + 39 ) END * 81
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT ALL + CASE - COUNT( * ) WHEN - 2 - CAST( - ( NULLIF ( 48, 86 ) ) AS SIGNED ) * COUNT( * ) THEN NULL WHEN + 40 / + 61 * - 1 + 14 - - 66 THEN 55 * 23 WHEN + 99 * - + 35 THEN - + 47 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL + CASE - COUNT ( * ) WHEN - 2 - CAST ( - ( NULLIF ( 48, 86 ) ) AS INTEGER ) * COUNT ( * ) THEN NULL WHEN + 40 / + 61 * - 1 + 14 - - 66 THEN 55 * 23 WHEN + 99 * - + 35 THEN - + 47 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3795
SELECT + 39 * 31 AS col2, - SUM( ALL + ( + 43 ) ) DIV 19 AS col0
----
1209
-2

skipif mysql # not compatible
query II rowsort label-3795
SELECT + 39 * 31 AS col2, - SUM ( ALL + ( + 43 ) ) / 19 AS col0
----
1209
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT DISTINCT - 25 * + - COUNT( * ), + 35 AS col0
----
25
35

skipif mysql # not compatible
query II rowsort label-3796
SELECT DISTINCT - 25 * + - COUNT ( * ), + 35 AS col0
----
25
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL MIN( - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL MIN ( - 4 ) AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT + CAST( NULL AS SIGNED ) - + + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT + CAST ( NULL AS INTEGER ) - + + 96 AS col0
----
NULL

query I rowsort
SELECT + - 12 - + 59 + - 97 * + 4
----
-459

query II rowsort
SELECT + 23 * + 87 AS col2, + 4 + - - 54
----
2001
58

query I rowsort
SELECT + + 37 - 64
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3802
SELECT CAST( - COALESCE ( + 28, COUNT( * ) + - 22 * 66, - 28, + 24 * + 27 + - 82 * + - 83 ) AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-3802
SELECT CAST ( - COALESCE ( + 28, COUNT ( * ) + - 22 * 66, - 28, + 24 * + 27 + - 82 * + - 83 ) AS INTEGER )
----
-28

query II rowsort
SELECT 94, - 30 AS col0
----
94
-30

query I rowsort
SELECT - ( + 76 ) AS col0
----
-76

query I rowsort
SELECT - 34 * 15 * 50
----
-25500

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL - COUNT( * ) * - 2 * - + 2 * - - 1 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL - COUNT ( * ) * - 2 * - + 2 * - - 1 AS col2
----
-4

query I rowsort
SELECT - 51 - - 28 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL + CASE + 34 WHEN - COUNT( * ) THEN - 65 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL + CASE + 34 WHEN - COUNT ( * ) THEN - 65 END col2
----
NULL

query I rowsort
SELECT - 4 * - - 76
----
-304

query I rowsort
SELECT ( - 61 ) col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3811
SELECT ( - + CASE + COUNT( * ) WHEN + + 61 + + - 82 + - NULLIF ( COALESCE ( + 49, - + COUNT( * ) ), + CAST( NULL AS SIGNED ) * + 78 + - 60 ) THEN 54 DIV + 71 + + 29 WHEN + 94 THEN NULL WHEN - - 14 * COUNT( * ) + - - 7 + + + 11 THEN + 12 ELSE + - 91 END ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3811
SELECT ( - + CASE + COUNT ( * ) WHEN + + 61 + + - 82 + - NULLIF ( COALESCE ( + 49, - + COUNT ( * ) ), + CAST ( NULL AS INTEGER ) * + 78 + - 60 ) THEN 54 / + 71 + + 29 WHEN + 94 THEN NULL WHEN - - 14 * COUNT ( * ) + - - 7 + + + 11 THEN + 12 ELSE + - 91 END ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL + CASE - CAST( 33 AS SIGNED ) WHEN + 31 THEN NULL WHEN - + 22 * - - 95 / - + 67 THEN + MAX( - 14 ) WHEN + 69 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + CASE - CAST ( 33 AS INTEGER ) WHEN + 31 THEN NULL WHEN - + 22 * - - 95 / - + 67 THEN + MAX ( - 14 ) WHEN + 69 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT 68 * - 83 * 77 * + 25 + + - 5 * + COUNT( * ) + + 69 AS col0
----
-10864636

skipif mysql # not compatible
query I rowsort label-3813
SELECT 68 * - 83 * 77 * + 25 + + - 5 * + COUNT ( * ) + + 69 AS col0
----
-10864636

query I rowsort
SELECT - 73 - - + 44
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT - 44 + - + COUNT( * ) + - 66 * + MAX( 32 )
----
-2157

skipif mysql # not compatible
query I rowsort label-3815
SELECT - 44 + - + COUNT ( * ) + - 66 * + MAX ( 32 )
----
-2157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3816
SELECT ALL + COALESCE ( - + 20, + CAST( NULL AS SIGNED ) + - 13 + + + MIN( DISTINCT - + ( - 5 ) ) ) * + + 5 + - + CAST( - 84 AS SIGNED ) + + - 80 * - - 69 + + 35 + - + 95 AS col1
----
-5596

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + COALESCE ( - + 20, + CAST ( NULL AS INTEGER ) + - 13 + + + MIN ( DISTINCT - + ( - 5 ) ) ) * + + 5 + - + CAST ( - 84 AS INTEGER ) + + - 80 * - - 69 + + 35 + - + 95 AS col1
----
-5596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3817
SELECT + 82, CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-3817
SELECT + 82, CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
82
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT - 38 * 67 DIV 67 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3818
SELECT - 38 * 67 / 67 AS col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3819
SELECT ALL - MAX( ALL + + ( 80 ) ) DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL - MAX ( ALL + + ( 80 ) ) / 97 AS col1
----
0

query I rowsort
SELECT ALL 49 * - - 28
----
1372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3821
SELECT DISTINCT + COALESCE ( 51, - 2 ) * 46 + - 85 + + COUNT( * ) DIV - - MIN( + - ( - + 42 ) ) * + 44
----
2261

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT + COALESCE ( 51, - 2 ) * 46 + - 85 + + COUNT ( * ) / - - MIN ( + - ( - + 42 ) ) * + 44
----
2261

query I rowsort
SELECT ALL 25 * - - 13
----
325

query II rowsort
SELECT ALL + 44 AS col2, 2 * 51 col1
----
44
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT + 11 * - 70 + + + COUNT( * ) + 3
----
-766

skipif mysql # not compatible
query I rowsort label-3824
SELECT + 11 * - 70 + + + COUNT ( * ) + 3
----
-766

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL + - 45 * + SUM( DISTINCT + 3 ) + 83 + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + - 45 * + SUM ( DISTINCT + 3 ) + 83 + - COUNT ( * )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT - CAST( + 78 AS SIGNED ) * - ( + 15 ) * 61 + 65 + - 65
----
71370

skipif mysql # not compatible
query I rowsort label-3826
SELECT - CAST ( + 78 AS INTEGER ) * - ( + 15 ) * 61 + 65 + - 65
----
71370

query I rowsort
SELECT + ( ( - 58 ) )
----
-58

query I rowsort
SELECT - - 59 * 23 * - + 91
----
-123487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT - + COALESCE ( 96, - + 77 ) + + 50 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT - + COALESCE ( 96, - + 77 ) + + 50 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT - CASE - 19 WHEN - 73 THEN + - COUNT( * ) ELSE NULL END * 96 + + + ( + 44 ) - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT - CASE - 19 WHEN - 73 THEN + - COUNT ( * ) ELSE NULL END * 96 + + + ( + 44 ) - 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT + SUM( + + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT + SUM ( + + 88 )
----
88

query I rowsort
SELECT ALL 27 * - - 89 - - + 62 AS col1
----
2465

query II rowsort
SELECT + 37 + - 53 - + 70 + + 53, + 95 AS col1
----
-33
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT + - COUNT( * ) + + - 40
----
-41

skipif mysql # not compatible
query I rowsort label-3834
SELECT + - COUNT ( * ) + + - 40
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT + SUM( DISTINCT - - 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3835
SELECT + SUM ( DISTINCT - - 24 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3836
SELECT - - COUNT( * ) AS col0, 8 - COUNT( * )
----
1
7

skipif mysql # not compatible
query II rowsort label-3836
SELECT - - COUNT ( * ) AS col0, 8 - COUNT ( * )
----
1
7

query I rowsort
SELECT - + 41 + - 96 + + 46 AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3838
SELECT - - 83 DIV 44 + + 92
----
93

skipif mysql # not compatible
query I rowsort label-3838
SELECT - - 83 / 44 + + 92
----
93

query I rowsort
SELECT ALL - 72 * 54
----
-3888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3840
SELECT + - 66 + - - COALESCE ( 35, + 14, - 58 + 54 + - 92 * CAST( NULL AS SIGNED ) * + + CAST( - COUNT( - 64 ) AS SIGNED ) ) AS col2, 29 * + 19
----
-31
551

skipif mysql # not compatible
query II rowsort label-3840
SELECT + - 66 + - - COALESCE ( 35, + 14, - 58 + 54 + - 92 * CAST ( NULL AS INTEGER ) * + + CAST ( - COUNT ( - 64 ) AS INTEGER ) ) AS col2, 29 * + 19
----
-31
551

onlyif mysql # aggregate syntax: 
query II rowsort label-3841
SELECT 69 AS col0, 39 + + - COUNT( + ( - 92 ) ) - + + 54
----
69
-16

skipif mysql # not compatible
query II rowsort label-3841
SELECT 69 AS col0, 39 + + - COUNT ( + ( - 92 ) ) - + + 54
----
69
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT + + 91 + - - NULLIF ( - + CASE - 71 WHEN 5 THEN - - 53 END, + + COALESCE ( + COUNT( * ), + 56, - - 21 + ( + MIN( ALL 29 ) ) + 73 * + + 87 * + 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT + + 91 + - - NULLIF ( - + CASE - 71 WHEN 5 THEN - - 53 END, + + COALESCE ( + COUNT ( * ), + 56, - - 21 + ( + MIN ( ALL 29 ) ) + 73 * + + 87 * + 16 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT 22 * CASE - - COUNT( - + 7 ) WHEN - 5 THEN NULL ELSE - - 0 * + 90 - + 15 END
----
-330

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT 22 * CASE - - COUNT ( - + 7 ) WHEN - 5 THEN NULL ELSE - - 0 * + 90 - + 15 END
----
-330

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT DISTINCT CASE + 29 WHEN + COUNT( * ) THEN + - 30 END AS col2, + 79
----
NULL
79

skipif mysql # not compatible
query II rowsort label-3844
SELECT DISTINCT CASE + 29 WHEN + COUNT ( * ) THEN + - 30 END AS col2, + 79
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL 22 + + COUNT( * ) - 11
----
12

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL 22 + + COUNT ( * ) - 11
----
12

query I rowsort
SELECT + 28 + - + 75 * - 6
----
478

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3847
SELECT ALL + CAST( 39 AS SIGNED ) + 73 DIV - - 62 + 35 col2
----
75

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL + CAST ( 39 AS INTEGER ) + 73 / - - 62 + 35 col2
----
75

query I rowsort
SELECT + 4 + + - ( + 52 ) + - 70 - 46 * 87 AS col2
----
-4120

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT ALL COUNT( * ) + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL COUNT ( * ) + - 37
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3850
SELECT - ( - 37 ) AS col0, + ( + 51 ) + + + COUNT( * ) + 47 + 94 - + 2 DIV - + ( 67 ) AS col1
----
37
193

skipif mysql # not compatible
query II rowsort label-3850
SELECT - ( - 37 ) AS col0, + ( + 51 ) + + + COUNT ( * ) + 47 + 94 - + 2 / - + ( 67 ) AS col1
----
37
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3851
SELECT DISTINCT COUNT( * ) + - - 30 DIV - 63
----
1

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT COUNT ( * ) + - - 30 / - 63
----
1

query I rowsort
SELECT DISTINCT 21 + + 93 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT 21 * - 82 * - + MAX( + 58 )
----
99876

skipif mysql # not compatible
query I rowsort label-3853
SELECT 21 * - 82 * - + MAX ( + 58 )
----
99876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT ALL - NULLIF ( COALESCE ( - + 84, 7 DIV + COUNT( * ) * - COUNT( * ) - + 84 ), - 43 ) + - ( + - 46 ) AS col0
----
130

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - NULLIF ( COALESCE ( - + 84, 7 / + COUNT ( * ) * - COUNT ( * ) - + 84 ), - 43 ) + - ( + - 46 ) AS col0
----
130

query I rowsort
SELECT DISTINCT - CASE + 99 WHEN 90 THEN + - 80 + - + 30 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL COALESCE ( + - 70, + - 81 ) + - - COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL COALESCE ( + - 70, + - 81 ) + - - COUNT ( * ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT ALL 2 * + CAST( - 54 AS SIGNED ) col1
----
-108

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL 2 * + CAST ( - 54 AS INTEGER ) col1
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT ALL - 74 + - CAST( NULL AS SIGNED ) + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL - 74 + - CAST ( NULL AS INTEGER ) + + 0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3859
SELECT 28 DIV - - 3 + - 54 + - COALESCE ( - 27, 64 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3859
SELECT 28 / - - 3 + - 54 + - COALESCE ( - 27, 64 ) AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT CASE + - 98 WHEN COUNT( * ) + + + 5 THEN NULL WHEN + CAST( NULL AS SIGNED ) / - + 63 + 11 - ( 44 ) + + COUNT( * ) / + + 98 * + + 27 * 18 / + ( 1 ) THEN - + 9 END / + - 9 - + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT CASE + - 98 WHEN COUNT ( * ) + + + 5 THEN NULL WHEN + CAST ( NULL AS INTEGER ) / - + 63 + 11 - ( 44 ) + + COUNT ( * ) / + + 98 * + + 27 * 18 / + ( 1 ) THEN - + 9 END / + - 9 - + - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT 33 * 81 + + MAX( DISTINCT - 85 ) + + - 98
----
2490

skipif mysql # not compatible
query I rowsort label-3861
SELECT 33 * 81 + + MAX ( DISTINCT - 85 ) + + - 98
----
2490

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + 76 - MIN( + 87 ) + - ( - 67 )
----
56

skipif mysql # not compatible
query I rowsort label-3862
SELECT + 76 - MIN ( + 87 ) + - ( - 67 )
----
56

query I rowsort
SELECT + - ( + 53 ) AS col2
----
-53

query I rowsort
SELECT 91 * - 11 + - 16 AS col2
----
-1017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3865
SELECT ALL + 28 DIV - - CASE CASE - 81 WHEN + ( + 86 ) * - ( + + COUNT( * ) ) THEN NULL WHEN - 94 * 5 THEN + - 32 ELSE NULL END WHEN - COUNT( * ) * + 17 * - 62 + - + ( + 48 ) THEN + COUNT( * ) * - + COALESCE ( 62, + CAST( 61 AS SIGNED ) ) + + + 53 ELSE - 43 * + 21 * - 30 END * - 33 + + 0 * COALESCE ( 65, 84 * + 59, - ( - - 36 ) + - SUM( DISTINCT + 9 ) * COUNT( * ) + - + COUNT( * ) * - - MIN( DISTINCT 3 ), + 75 - + - 6 + - CAST( NULL AS SIGNED ) + - 99 * + 55 * - 68 + + 21 )
----
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + 28 / - - CASE CASE - 81 WHEN + ( + 86 ) * - ( + + COUNT ( * ) ) THEN NULL WHEN - 94 * 5 THEN + - 32 ELSE NULL END WHEN - COUNT ( * ) * + 17 * - 62 + - + ( + 48 ) THEN + COUNT ( * ) * - + COALESCE ( 62, + CAST ( 61 AS INTEGER ) ) + + + 53 ELSE - 43 * + 21 * - 30 END * - 33 + + 0 * COALESCE ( 65, 84 * + 59, - ( - - 36 ) + - SUM ( DISTINCT + 9 ) * COUNT ( * ) + - + COUNT ( * ) * - - MIN ( DISTINCT 3 ), + 75 - + - 6 + - CAST ( NULL AS INTEGER ) + - 99 * + 55 * - 68 + + 21 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3866
SELECT DISTINCT + 84 DIV COUNT( * ) col0
----
84

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT + 84 / COUNT ( * ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT - 25 - - COUNT( * ) / + CASE COUNT( * ) WHEN 16 * + + 9 / + COALESCE ( - + 71, + + ( + 32 ) + + 21 ) THEN NULL WHEN + + 27 THEN - 20 WHEN + + 11 * 82 / - - COUNT( * ) + + 3 + + COUNT( * ) * 70 THEN - - ( + - 35 ) / - 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT - 25 - - COUNT ( * ) / + CASE COUNT ( * ) WHEN 16 * + + 9 / + COALESCE ( - + 71, + + ( + 32 ) + + 21 ) THEN NULL WHEN + + 27 THEN - 20 WHEN + + 11 * 82 / - - COUNT ( * ) + + 3 + + COUNT ( * ) * 70 THEN - - ( + - 35 ) / - 24 END AS col0
----
NULL

query II rowsort
SELECT + 34 * + - 58 + - 78 * - 12 * 61, 75 AS col1
----
55124
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3869
SELECT 81 * CAST( + + COUNT( * ) AS SIGNED ) * - - 33 + + 99 * - 87 * + + MIN( DISTINCT + ( ( + 30 ) ) ) AS col0
----
-255717

skipif mysql # not compatible
query I rowsort label-3869
SELECT 81 * CAST ( + + COUNT ( * ) AS INTEGER ) * - - 33 + + 99 * - 87 * + + MIN ( DISTINCT + ( ( + 30 ) ) ) AS col0
----
-255717

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL - 76 * + 21 + COALESCE ( + 61, - ( - COALESCE ( + + 75, - 56 * + COUNT( * ) ) ) ) - + 66 AS col1
----
-1601

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - 76 * + 21 + COALESCE ( + 61, - ( - COALESCE ( + + 75, - 56 * + COUNT ( * ) ) ) ) - + 66 AS col1
----
-1601

query I rowsort
SELECT - - ( + + NULLIF ( + + 18, + 78 ) ) AS col2
----
18

query I rowsort
SELECT 30 + + 24 AS col2
----
54

query I rowsort
SELECT DISTINCT - 82 + - 90
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL COUNT( * ) + - 64 + - + 28
----
-91

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL COUNT ( * ) + - 64 + - + 28
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT ALL - 31 + 88 + + 58 DIV - 32 col0
----
56

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - 31 + 88 + + 58 / - 32 col0
----
56

query I rowsort
SELECT 92 - - 17
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3877
SELECT COUNT( * ) DIV - 42 * - - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3877
SELECT COUNT ( * ) / - 42 * - - 71 AS col1
----
0

query I rowsort
SELECT 11 + 77 AS col0
----
88

query II rowsort
SELECT ALL 14 AS col1, 17 - 78
----
14
-61

query I rowsort
SELECT ALL ( - 25 ) + - 77 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT COALESCE ( - COUNT( * ), COALESCE ( - 60, - - 76 * - 31 ) ) * 95 * + + 8 + - 95
----
-855

skipif mysql # not compatible
query I rowsort label-3881
SELECT COALESCE ( - COUNT ( * ), COALESCE ( - 60, - - 76 * - 31 ) ) * 95 * + + 8 + - 95
----
-855

query I rowsort
SELECT DISTINCT 67 - 98 AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3883
SELECT 20 + - NULLIF ( - - ( 17 ), - 87 + 78 ) DIV + - 78 * - COUNT( * ) * - 76
----
20

skipif mysql # not compatible
query I rowsort label-3883
SELECT 20 + - NULLIF ( - - ( 17 ), - 87 + 78 ) / + - 78 * - COUNT ( * ) * - 76
----
20

query I rowsort
SELECT 26 * 87 AS col1
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT COUNT( DISTINCT 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3885
SELECT COUNT ( DISTINCT 89 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT ALL 73 DIV 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL 73 / 91 AS col0
----
0

query I rowsort
SELECT - 7 * + - 88 + 47 * - - 49 AS col1
----
2919

query I rowsort
SELECT 37 * - 16 - + + 63 * 33
----
-2671

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL - - MAX( - + 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - - MAX ( - + 88 ) AS col2
----
-88

query I rowsort
SELECT ALL - - 35 - + 86
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - COUNT( DISTINCT 17 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3891
SELECT - COUNT ( DISTINCT 17 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 84 * 38 - ( - 34 ) AS col0
----
3226

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT + 64 * + + 8 + + 67 + + 57 + - 27 + 80 * - + 18 * - + 14 * + COUNT( * ) AS col1
----
20769

skipif mysql # not compatible
query I rowsort label-3893
SELECT + 64 * + + 8 + + 67 + + 57 + - 27 + 80 * - + 18 * - + 14 * + COUNT ( * ) AS col1
----
20769

query I rowsort
SELECT DISTINCT - + ( 20 )
----
-20

query I rowsort
SELECT 83 + 34
----
117

query I rowsort
SELECT DISTINCT - + NULLIF ( 15, + 76 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL - MAX( DISTINCT + 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - MAX ( DISTINCT + 25 ) AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT - 99 DIV - + 2 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3898
SELECT - 99 / - + 2 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL - NULLIF ( + + COUNT( * ), 87 ) + + 93
----
92

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL - NULLIF ( + + COUNT ( * ), 87 ) + + 93
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL - + COUNT( * ) + - 92 + - CASE + 60 WHEN - 0 THEN NULL WHEN + + 17 + COUNT( * ) THEN + 46 * + 6 WHEN 37 THEN NULL END * - + ( + - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - + COUNT ( * ) + - 92 + - CASE + 60 WHEN - 0 THEN NULL WHEN + + 17 + COUNT ( * ) THEN + 46 * + 6 WHEN 37 THEN NULL END * - + ( + - 98 )
----
NULL

query I rowsort
SELECT - 34 * + + ( COALESCE ( + - 54, + 35, 77 ) ) - + 52 AS col0
----
1784

query I rowsort
SELECT ALL + 89 + - 52 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT MAX( ALL ( - + 4 ) ) + + ( + COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3903
SELECT MAX ( ALL ( - + 4 ) ) + + ( + COUNT ( * ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT + - COALESCE ( + - 53, - - ( - 2 ), + + 11 ) * - + COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + - COALESCE ( + - 53, - - ( - 2 ), + + 11 ) * - + COUNT ( * ) AS col2
----
-53

query I rowsort
SELECT DISTINCT + 90 * 79 col1
----
7110

query I rowsort
SELECT - NULLIF ( 56, - 25 * - + 47 * ( - 29 ) ) + 18 * + 10
----
124

query III rowsort
SELECT 4 col1, 17, - 46 * 57 * - 52 AS col0
----
4
17
136344

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - ( + COUNT( * ) ) + + + 21
----
20

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - ( + COUNT ( * ) ) + + + 21
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT - 69 + MIN( DISTINCT + - 43 ) AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-3909
SELECT - 69 + MIN ( DISTINCT + - 43 ) AS col2
----
-112

query I rowsort
SELECT + 74 - - 49
----
123

query I rowsort
SELECT ALL COALESCE ( + 10, + 25 ) AS col0
----
10

query I rowsort
SELECT ALL 33 - + 43 * - 3
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - 38 + + 98 + - 51 * COUNT( * ) + + 61 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3913
SELECT - 38 + + 98 + - 51 * COUNT ( * ) + + 61 AS col1
----
70

query I rowsort
SELECT ALL - 37 - - 42 AS col2
----
5

query II rowsort
SELECT - 76, 79 col2
----
-76
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT + 65 DIV + COUNT( * ) col2
----
65

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + 65 / + COUNT ( * ) col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3917
SELECT ALL + COUNT( * ) AS col0, ( - 4 ) AS col1
----
1
-4

skipif mysql # not compatible
query II rowsort label-3917
SELECT ALL + COUNT ( * ) AS col0, ( - 4 ) AS col1
----
1
-4

query I rowsort
SELECT + ( + 7 ) * - 49
----
-343

query II rowsort
SELECT DISTINCT + 13, 16 AS col1
----
13
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3920
SELECT DISTINCT + ( + + CASE + 56 WHEN + 63 / - + 83 + - CASE WHEN - 59 IS NULL THEN - 42 - + COUNT( * ) END + - 88 * CAST( + + ( + 64 ) AS SIGNED ) + + 49 / - 71 + + 32 THEN + - 74 END ) / + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + ( + + CASE + 56 WHEN + 63 / - + 83 + - CASE WHEN - 59 IS NULL THEN - 42 - + COUNT ( * ) END + - 88 * CAST ( + + ( + 64 ) AS INTEGER ) + + 49 / - 71 + + 32 THEN + - 74 END ) / + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + MIN( DISTINCT 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3921
SELECT + MIN ( DISTINCT 53 ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3922
SELECT + + NULLIF ( + - 25, + CAST( + + 98 AS SIGNED ) ) * MIN( 33 ) * - COUNT( 95 ) * + - 20 * + NULLIF ( - MAX( + + 41 ), + 7 * 76 * - COUNT( * ) + + 31 )
----
676500

skipif mysql # not compatible
query I rowsort label-3922
SELECT + + NULLIF ( + - 25, + CAST ( + + 98 AS INTEGER ) ) * MIN ( 33 ) * - COUNT ( 95 ) * + - 20 * + NULLIF ( - MAX ( + + 41 ), + 7 * 76 * - COUNT ( * ) + + 31 )
----
676500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3923
SELECT ALL + MAX( CAST( - - 27 AS SIGNED ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL + MAX ( CAST ( - - 27 AS INTEGER ) ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL + - CASE - ( + + 42 ) WHEN + 88 THEN + 71 * 50 WHEN + COUNT( * ) THEN NULL WHEN + - 69 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL + - CASE - ( + + 42 ) WHEN + 88 THEN + 71 * 50 WHEN + COUNT ( * ) THEN NULL WHEN + - 69 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 65 ) AS col0
----
-65

query I rowsort
SELECT + 7 * - - ( 51 ) AS col0
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL + MAX( + 83 ) * - - COUNT( * ) + - ( + 67 )
----
16

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL + MAX ( + 83 ) * - - COUNT ( * ) + - ( + 67 )
----
16

query I rowsort
SELECT ALL + 53 * - + 77 + - + 84 AS col0
----
-4165

query I rowsort
SELECT + 60 - + - 82 AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT + + MAX( ALL - + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-3930
SELECT + + MAX ( ALL - + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + - COUNT( + + 40 ) * - - 92 col2
----
-92

skipif mysql # not compatible
query I rowsort label-3931
SELECT + - COUNT ( + + 40 ) * - - 92 col2
----
-92

query I rowsort
SELECT + 74 - + 32 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT + COUNT( DISTINCT + + 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3933
SELECT + COUNT ( DISTINCT + + 99 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT ALL SUM( - ( - - 53 ) ) * + MAX( - 54 ) + - 27 + - 35 - - 86 * COUNT( * ) * - 7 AS col2
----
2198

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL SUM ( - ( - - 53 ) ) * + MAX ( - 54 ) + - 27 + - 35 - - 86 * COUNT ( * ) * - 7 AS col2
----
2198

query I rowsort
SELECT ALL + 24 * 99 + 89 * - 0
----
2376

query I rowsort
SELECT ALL - 95 * 40 + + - 1 AS col0
----
-3801

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL - 60 * 62 * - 82 + COUNT( * )
----
305041

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - 60 * 62 * - 82 + COUNT ( * )
----
305041

query I rowsort
SELECT ALL 93 * - 13 AS col1
----
-1209

query I rowsort
SELECT ALL - 66 * + + 90 + - + 71 AS col0
----
-6011

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT DISTINCT - ( - + CAST( + + ( + 83 ) AS SIGNED ) ) - + 65 + - ( + 20 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT - ( - + CAST ( + + ( + 83 ) AS INTEGER ) ) - + 65 + - ( + 20 ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT ALL CASE 68 WHEN - - 43 THEN - NULLIF ( + 88, + - 85 * 73 ) + + 53 + - 57 * NULLIF ( + - ( + 82 ), + + COALESCE ( + 47, + 83 + ( - - 29 ), CAST( ( + 51 ) AS SIGNED ) ) ) + + + 94 * + - 27 * 38 ELSE + 71 * + 67 * + 69 END
----
328233

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL CASE 68 WHEN - - 43 THEN - NULLIF ( + 88, + - 85 * 73 ) + + 53 + - 57 * NULLIF ( + - ( + 82 ), + + COALESCE ( + 47, + 83 + ( - - 29 ), CAST ( ( + 51 ) AS INTEGER ) ) ) + + + 94 * + - 27 * 38 ELSE + 71 * + 67 * + 69 END
----
328233

query I rowsort
SELECT DISTINCT COALESCE ( - 54, 74 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT 10 - - - COUNT( * ) + - - 80 * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT 10 - - - COUNT ( * ) + - - 80 * - COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL - 41 * COUNT( ALL - 54 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - 41 * COUNT ( ALL - 54 ) AS col2
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT - 39 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-3945
SELECT - 39 / 45
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3946
SELECT ALL SUM( - 17 ), COUNT( * ) AS col2
----
-17
1

skipif mysql # not compatible
query II rowsort label-3946
SELECT ALL SUM ( - 17 ), COUNT ( * ) AS col2
----
-17
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT + 85 * + SUM( DISTINCT 94 )
----
7990

skipif mysql # not compatible
query I rowsort label-3947
SELECT + 85 * + SUM ( DISTINCT 94 )
----
7990

query I rowsort
SELECT DISTINCT + 70 * + - 18
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-3949
SELECT ALL ( - 70 ), COALESCE ( - 50, - 20, + + 15 + + - COUNT( 23 ) * + - COUNT( * ) ) AS col1
----
-70
-50

skipif mysql # not compatible
query II rowsort label-3949
SELECT ALL ( - 70 ), COALESCE ( - 50, - 20, + + 15 + + - COUNT ( 23 ) * + - COUNT ( * ) ) AS col1
----
-70
-50

query I rowsort
SELECT - NULLIF ( + + 29, - 30 ) + - + 74
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL + COUNT( ALL - - 6 ) * 38
----
38

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + COUNT ( ALL - - 6 ) * 38
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3952
SELECT DISTINCT COALESCE ( - 85, + - CASE - 17 WHEN - COUNT( * ) THEN + - 27 WHEN + 37 THEN + 4 END - - COALESCE ( + + 79, - CASE 72 WHEN + CAST( 31 AS SIGNED ) THEN + 56 END, - - COUNT( * ) + + - 18 + - - 59 ) ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT COALESCE ( - 85, + - CASE - 17 WHEN - COUNT ( * ) THEN + - 27 WHEN + 37 THEN + 4 END - - COALESCE ( + + 79, - CASE 72 WHEN + CAST ( 31 AS INTEGER ) THEN + 56 END, - - COUNT ( * ) + + - 18 + - - 59 ) ) col2
----
-85

query I rowsort
SELECT ALL + + 39 col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3954
SELECT - - COUNT( * ) * CAST( NULL AS SIGNED ) + + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT - - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL CASE - 78 WHEN + 9 THEN 75 END / - 21 * + 89 * 57 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL CASE - 78 WHEN + 9 THEN 75 END / - 21 * + 89 * 57 + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + - ( - + ( - 4 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + 5 * 59 + - COUNT( - 48 ) - + 99 AS col0
----
195

skipif mysql # not compatible
query I rowsort label-3957
SELECT + 5 * 59 + - COUNT ( - 48 ) - + 99 AS col0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT ALL - + CAST( + 31 AS SIGNED ) * + + 92 - CASE 41 WHEN 51 THEN - 90 + - MAX( DISTINCT - + 48 ) ELSE - - COUNT( * ) END + - 86
----
-2939

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - + CAST ( + 31 AS INTEGER ) * + + 92 - CASE 41 WHEN 51 THEN - 90 + - MAX ( DISTINCT - + 48 ) ELSE - - COUNT ( * ) END + - 86
----
-2939

query I rowsort
SELECT - - 77 * - 80 - - 44
----
-6116

onlyif mysql # DIV for integer division: 
query I rowsort label-3960
SELECT ALL 97 DIV + - 86 + - 17 * + 93 - 38 + 3 - 50 * - + 0
----
-1617

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL 97 / + - 86 + - 17 * + 93 - 38 + 3 - 50 * - + 0
----
-1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT ALL - 41 DIV + 14 + - - COUNT( * ) + 38 - 89 - + + 77
----
-129

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - 41 / + 14 + - - COUNT ( * ) + 38 - 89 - + + 77
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT ALL - 6 DIV + 49 + + 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - 6 / + 49 + + 72 AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT - 5 * 13 + - - CAST( + 1 AS SIGNED ) + + 40 - + 73 - COUNT( * ) * - - 49 * 14 + + 18 + - + 84 + CAST( - 92 AS SIGNED ) AS col2
----
-941

skipif mysql # not compatible
query I rowsort label-3963
SELECT - 5 * 13 + - - CAST ( + 1 AS INTEGER ) + + 40 - + 73 - COUNT ( * ) * - - 49 * 14 + + 18 + - + 84 + CAST ( - 92 AS INTEGER ) AS col2
----
-941

query I rowsort
SELECT ALL - ( - 26 ) + + + 33 + - 67 AS col2
----
-8

query I rowsort
SELECT ALL 91 + - 38 AS col1
----
53

query I rowsort
SELECT + NULLIF ( 33, + 16 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3967
SELECT + - MAX( DISTINCT + ( - 77 ) ) AS col1, + 4 * + ( + 28 ) + - - 56
----
77
168

skipif mysql # not compatible
query II rowsort label-3967
SELECT + - MAX ( DISTINCT + ( - 77 ) ) AS col1, + 4 * + ( + 28 ) + - - 56
----
77
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT + 44 * + COUNT( * ) col2
----
44

skipif mysql # not compatible
query I rowsort label-3968
SELECT + 44 * + COUNT ( * ) col2
----
44

query I rowsort
SELECT 11 + - 59 AS col2
----
-48

query I rowsort
SELECT 46 + - 5
----
41

query II rowsort
SELECT - 61, 0 AS col0
----
-61
0

query I rowsort
SELECT ( - ( 75 ) ) + 10
----
-65

query II rowsort
SELECT ALL 65 AS col2, 71 * 3 AS col0
----
65
213

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT COUNT( * ) + + SUM( + + 39 ), 53 AS col1
----
40
53

skipif mysql # not compatible
query II rowsort label-3974
SELECT COUNT ( * ) + + SUM ( + + 39 ), 53 AS col1
----
40
53

query II rowsort
SELECT 65 * + 75 * 39 AS col0, - 70
----
190125
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT 72 - - 4 - + + 62 * - CAST( + 84 AS SIGNED ) + ( - MAX( ALL + 41 ) )
----
5243

skipif mysql # not compatible
query I rowsort label-3976
SELECT 72 - - 4 - + + 62 * - CAST ( + 84 AS INTEGER ) + ( - MAX ( ALL + 41 ) )
----
5243

query II rowsort
SELECT ALL 74, + 71 AS col0
----
74
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ( + 54 ) + - 74 + - 14 * + - 65 + + COUNT( * ) * + 73
----
963

skipif mysql # not compatible
query I rowsort label-3978
SELECT ( + 54 ) + - 74 + - 14 * + - 65 + + COUNT ( * ) * + 73
----
963

query I rowsort
SELECT 81 + 72 + + - 28 + - - 26 AS col1
----
151

query I rowsort
SELECT 55 * 3 AS col0
----
165

query II rowsort
SELECT - 32 AS col1, - 6
----
-32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL + 47 + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL + 47 + + COUNT ( * )
----
48

query I rowsort
SELECT 71 + 82 col1
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT ALL 90 DIV 42 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL 90 / 42 AS col1
----
2

query I rowsort
SELECT 81 * 73 AS col2
----
5913

onlyif mysql # aggregate syntax: 
query II rowsort label-3986
SELECT DISTINCT - SUM( + - 68 ) * - 61 AS col2, - 24 * + 94 AS col2
----
-4148
-2256

skipif mysql # not compatible
query II rowsort label-3986
SELECT DISTINCT - SUM ( + - 68 ) * - 61 AS col2, - 24 * + 94 AS col2
----
-4148
-2256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT 2 * - - COUNT( * ) DIV - 48 col0
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT 2 * - - COUNT ( * ) / - 48 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL + COUNT( * ) * 90 + - 23 - - 0 * + + SUM( - 21 ) * + - 64 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + COUNT ( * ) * 90 + - 23 - - 0 * + + SUM ( - 21 ) * + - 64 AS col1
----
67

query I rowsort
SELECT 48 + + COALESCE ( + + 65, - NULLIF ( - - 79, - 68 * - + 8 * + 72 ) - - - 90 )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT - - 11 + - - COALESCE ( + + 0, + + 93 ) + + 19 * + 40 * + - ( + MIN( ( + + 7 ) ) ) + + 16 - 6 col1
----
-5299

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT - - 11 + - - COALESCE ( + + 0, + + 93 ) + + 19 * + 40 * + - ( + MIN ( ( + + 7 ) ) ) + + 16 - 6 col1
----
-5299

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL + MIN( DISTINCT - 94 ) + 69 * - 0 * + + MAX( DISTINCT 32 )
----
-94

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL + MIN ( DISTINCT - 94 ) + 69 * - 0 * + + MAX ( DISTINCT 32 )
----
-94

query I rowsort
SELECT DISTINCT - 65 + 63 col1
----
-2

query II rowsort
SELECT - 44 AS col1, - ( + + 61 ) * - ( 45 ) + - 95 col2
----
-44
2650

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + 1 + 18 * SUM( + + 63 ) + + COUNT( * )
----
1136

skipif mysql # not compatible
query I rowsort label-3994
SELECT + 1 + 18 * SUM ( + + 63 ) + + COUNT ( * )
----
1136

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT COUNT( * ) * ( - - COUNT( * ) ) * - - 48
----
48

skipif mysql # not compatible
query I rowsort label-3995
SELECT COUNT ( * ) * ( - - COUNT ( * ) ) * - - 48
----
48

query I rowsort
SELECT ALL - + 69 - - 5 AS col1
----
-64

query I rowsort
SELECT + 45 * 56 + 97 + 55 * - 74 AS col0
----
-1453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3998
SELECT + 58 - + - 27 + + + 34 * 16 - + COUNT( * ) + + CASE - CAST( NULL AS SIGNED ) WHEN - - 93 + - COALESCE ( 95, + CASE + + 10 WHEN - 1 THEN 99 WHEN - + 95 + 2 THEN + + 20 ELSE - + 38 END / - - MAX( 84 ) * - 9 + + CAST( + - ( 8 ) AS SIGNED ) + - + 7 ) THEN + 13 WHEN - - 13 * + 7 - - ( 5 ) + ( + + 98 ) + 43 THEN ( + 80 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT + 58 - + - 27 + + + 34 * 16 - + COUNT ( * ) + + CASE - CAST ( NULL AS INTEGER ) WHEN - - 93 + - COALESCE ( 95, + CASE + + 10 WHEN - 1 THEN 99 WHEN - + 95 + 2 THEN + + 20 ELSE - + 38 END / - - MAX ( 84 ) * - 9 + + CAST ( + - ( 8 ) AS INTEGER ) + - + 7 ) THEN + 13 WHEN - - 13 * + 7 - - ( 5 ) + ( + + 98 ) + 43 THEN ( + 80 ) END
----
NULL

query I rowsort
SELECT DISTINCT - + 94 * - 38
----
3572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL - CAST( + + ( - COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - CAST ( + + ( - COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT ALL + 42 * + - 25 * 91 AS col0
----
-95550

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT 30 DIV + + 44
----
0

skipif mysql # not compatible
query I rowsort label-4002
SELECT 30 / + + 44
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT DISTINCT 91 DIV 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT 91 / 50 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT DISTINCT 9 DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT 9 / + 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL COUNT( - 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL COUNT ( - 45 ) AS col1
----
1

query I rowsort
SELECT ALL 2 * 86 AS col0
----
172

query I rowsort
SELECT 65 * 42 AS col2
----
2730

query II rowsort
SELECT ALL 14 + + 80, + 12 col0
----
94
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT - SUM( ALL 46 ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-4009
SELECT - SUM ( ALL 46 ) col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL MIN( ALL + + 65 ) + + 81 col1
----
146

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL MIN ( ALL + + 65 ) + + 81 col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT - COUNT( - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4011
SELECT - COUNT ( - 1 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT - CAST( NULL AS SIGNED ) - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT - CAST ( NULL AS INTEGER ) - 79 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 39 * + 57 AS col2
----
2223

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT 17 * + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4014
SELECT 17 * + COUNT ( * )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT ALL - - CAST( NULL AS SIGNED ) + - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT - CASE CASE 81 WHEN + 27 * - - 1 THEN NULL WHEN COUNT( * ) * - 48 THEN 41 WHEN + SUM( - + 59 ) + - MIN( - + 43 ) THEN - - COUNT( * ) END WHEN - - 41 / - 57 THEN + + 56 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT - CASE CASE 81 WHEN + 27 * - - 1 THEN NULL WHEN COUNT ( * ) * - 48 THEN 41 WHEN + SUM ( - + 59 ) + - MIN ( - + 43 ) THEN - - COUNT ( * ) END WHEN - - 41 / - 57 THEN + + 56 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL COUNT( - - ( + - 13 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL COUNT ( - - ( + - 13 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT - + 40 * - + MAX( COALESCE ( - 16, 2 ) ) + 24 + - - COUNT( * ) * + 7 * + 43 - - 12 + - ( + 34 ) * - 88 + - 25
----
2664

skipif mysql # not compatible
query I rowsort label-4018
SELECT - + 40 * - + MAX ( COALESCE ( - 16, 2 ) ) + 24 + - - COUNT ( * ) * + 7 * + 43 - - 12 + - ( + 34 ) * - 88 + - 25
----
2664

query I rowsort
SELECT ALL + + ( + + 38 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4020
SELECT - COUNT( * ) DIV + 40 + 92
----
92

skipif mysql # not compatible
query I rowsort label-4020
SELECT - COUNT ( * ) / + 40 + 92
----
92

query I rowsort
SELECT ALL + 76 * + 38 - + 76 AS col1
----
2812

query I rowsort
SELECT 81 * 76 * + 23 + 56 + + 68 - - - 53 + - ( 0 )
----
141659

query I rowsort
SELECT - 12 * - - 57 AS col1
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL - 70 * - 25 * - 95 * - ( MIN( + + 42 ) ) + 41 * + 97 AS col1
----
6986477

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL - 70 * - 25 * - 95 * - ( MIN ( + + 42 ) ) + 41 * + 97 AS col1
----
6986477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4025
SELECT - + 96 DIV + - 14 + + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4025
SELECT - + 96 / + - 14 + + - COUNT ( * )
----
5

query I rowsort
SELECT + CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN NULL ELSE - 32 END
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4027
SELECT ALL - 75 * - 37 * + - 21 + - 81 * - 23 - + 56 + + 31 * + - 42 + - 84 + - 38 * - 24 + CAST( + COUNT( * ) AS SIGNED )
----
-56941

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL - 75 * - 37 * + - 21 + - 81 * - 23 - + 56 + + 31 * + - 42 + - 84 + - 38 * - 24 + CAST ( + COUNT ( * ) AS INTEGER )
----
-56941

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - - COUNT( * ) * + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4028
SELECT - - COUNT ( * ) * + 76 AS col1
----
76

query I rowsort
SELECT DISTINCT + CASE - 99 WHEN - - 35 THEN 49 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4030
SELECT COUNT( * ) AS col1, + 85 AS col2
----
1
85

skipif mysql # not compatible
query II rowsort label-4030
SELECT COUNT ( * ) AS col1, + 85 AS col2
----
1
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4031
SELECT SUM( 61 ) * + 2 - + - 34 + ( - 27 ) - - 79 DIV 98
----
129

skipif mysql # not compatible
query I rowsort label-4031
SELECT SUM ( 61 ) * + 2 - + - 34 + ( - 27 ) - - 79 / 98
----
129

query I rowsort
SELECT + 86 * - 19
----
-1634

query I rowsort
SELECT - 80 + 16
----
-64

query I rowsort
SELECT ALL + 20 * 62 AS col1
----
1240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT - COUNT( + 52 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT - COUNT ( + 52 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + CASE 72 WHEN 40 THEN 58 ELSE NULL END * - 67, - 5 col2
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT COUNT( ALL - 59 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT COUNT ( ALL - 59 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT ALL - 47 + 96 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - 47 + 96 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 3 * - - 42 col2
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4040
SELECT COUNT( * ) AS col1, - 4 DIV + MIN( ALL - + 49 )
----
1
0

skipif mysql # not compatible
query II rowsort label-4040
SELECT COUNT ( * ) AS col1, - 4 / + MIN ( ALL - + 49 )
----
1
0

query I rowsort
SELECT ALL + 20 + + 91
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT DISTINCT - 66 + + 41 - 60 + - NULLIF ( - + 52, 74 * - + 52 * + - NULLIF ( - 52, + 54 * + - 54 - ( - 58 ) * - 68 ) + ( - - COUNT( * ) ) + - COUNT( * ) + AVG ( 98 ) / + ( + 16 ) - 85 + - - COUNT( * ) * + 85 * + 22 ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT - 66 + + 41 - 60 + - NULLIF ( - + 52, 74 * - + 52 * + - NULLIF ( - 52, + 54 * + - 54 - ( - 58 ) * - 68 ) + ( - - COUNT ( * ) ) + - COUNT ( * ) + AVG ( 98 ) / + ( + 16 ) - 85 + - - COUNT ( * ) * + 85 * + 22 ) col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4043
SELECT 43, - 77 * - 40 * - ( - - 46 ) + + COUNT( * ) + + 14 * + 59 AS col2
----
43
-140853

skipif mysql # not compatible
query II rowsort label-4043
SELECT 43, - 77 * - 40 * - ( - - 46 ) + + COUNT ( * ) + + 14 * + 59 AS col2
----
43
-140853

query I rowsort
SELECT ALL 96 + + + 26
----
122

query I rowsort
SELECT - 2 + - - 87
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT + CAST( + + 52 AS SIGNED ) + + 52 + + 18 / + - 13 * + CASE + 63 WHEN - CASE + - CAST( NULL AS SIGNED ) WHEN 28 THEN NULL WHEN + 90 THEN NULL WHEN + 30 THEN + + 62 / + 50 - + AVG ( DISTINCT 11 ) + - - AVG ( - CAST( 54 AS SIGNED ) ) * 34 + + 26 + + 34 + - + 94 / + 16 + - 82 * - + 5 + - - 86 - - ( - ( - 44 ) ) + - 2 * - COUNT( * ) + - - ( + - 66 ) WHEN + + 59 * - COUNT( ALL 98 ) - 44 * - - CASE 90 WHEN - 64 THEN + COUNT( * ) * + 41 * - 54 - - 70 END THEN NULL END THEN - COUNT( * ) * MAX( 95 ) * + 20 * + COUNT( - 49 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT + CAST ( + + 52 AS INTEGER ) + + 52 + + 18 / + - 13 * + CASE + 63 WHEN - CASE + - CAST ( NULL AS INTEGER ) WHEN 28 THEN NULL WHEN + 90 THEN NULL WHEN + 30 THEN + + 62 / + 50 - + AVG ( DISTINCT 11 ) + - - AVG ( - CAST ( 54 AS INTEGER ) ) * 34 + + 26 + + 34 + - + 94 / + 16 + - 82 * - + 5 + - - 86 - - ( - ( - 44 ) ) + - 2 * - COUNT ( * ) + - - ( + - 66 ) WHEN + + 59 * - COUNT ( ALL 98 ) - 44 * - - CASE 90 WHEN - 64 THEN + COUNT ( * ) * + 41 * - 54 - - 70 END THEN NULL END THEN - COUNT ( * ) * MAX ( 95 ) * + 20 * + COUNT ( - 49 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT - CASE - 7 WHEN + 86 * - 0 + - 17 * - 5 THEN + + 17 WHEN 17 THEN + - COUNT( * ) ELSE NULL END * - 8 * - 7 + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT - CASE - 7 WHEN + 86 * - 0 + - 17 * - 5 THEN + + 17 WHEN 17 THEN + - COUNT ( * ) ELSE NULL END * - 8 * - 7 + + 30
----
NULL

query I rowsort
SELECT + 55 + - 60 + + ( + 3 ) AS col1
----
-2

query I rowsort
SELECT ALL 60 + + - 97 AS col0
----
-37

query I rowsort
SELECT + 72 + 81 AS col1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT - CAST( NULL AS SIGNED ) / 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT - CAST ( NULL AS INTEGER ) / 12 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4053
SELECT ALL COUNT( * ) - - COUNT( * ) DIV 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL COUNT ( * ) - - COUNT ( * ) / 29 AS col0
----
1

query I rowsort
SELECT + NULLIF ( + 39, 39 ) * 62 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 3 - - 65 AS col1
----
68

query I rowsort
SELECT + 89 + 71 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL COUNT( 39 ) - 61 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL COUNT ( 39 ) - 61 AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT - ( + CAST( 81 AS SIGNED ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4058
SELECT - ( + CAST ( 81 AS INTEGER ) ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4059
SELECT - ( CAST( CASE 32 WHEN ( 68 ) + 30 * CAST( - 12 + + MAX( 12 ) * + MAX( DISTINCT - 39 * 69 ) AS DECIMAL ) THEN NULL WHEN + CAST( - 16 AS SIGNED ) THEN 86 END AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT - ( CAST ( CASE 32 WHEN ( 68 ) + 30 * CAST ( - 12 + + MAX ( 12 ) * + MAX ( DISTINCT - 39 * 69 ) AS REAL ) THEN NULL WHEN + CAST ( - 16 AS INTEGER ) THEN 86 END AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT ALL COALESCE ( 78, - COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL COALESCE ( 78, - COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 70 * ( ( + ( 11 ) ) * - 62 ) AS col2
----
-47740

query I rowsort
SELECT + NULLIF ( 42, - 49 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT SUM( 50 ) * - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT SUM ( 50 ) * - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + 5 * + CASE - ( + COUNT( * ) ) WHEN - COUNT( * ) / 7 THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT + 5 * + CASE - ( + COUNT ( * ) ) WHEN - COUNT ( * ) / 7 THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT + 22 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-4065
SELECT + 22 / + 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4066
SELECT ALL + 14 DIV 2
----
7

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + 14 / 2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT 14 DIV ( + 16 ) + - 7
----
-7

skipif mysql # not compatible
query I rowsort label-4067
SELECT 14 / ( + 16 ) + - 7
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4068
SELECT ALL CAST( - NULLIF ( + 38, + 34 * - 92 ) AS SIGNED ) DIV - 13
----
2

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL CAST ( - NULLIF ( + 38, + 34 * - 92 ) AS INTEGER ) / - 13
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT + 87 DIV - 30 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4069
SELECT + 87 / - 30 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ALL COUNT( 9 ) * + 73 + 90
----
163

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL COUNT ( 9 ) * + 73 + 90
----
163

query I rowsort
SELECT + 39 - NULLIF ( + 32, 38 * 14 ) AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT + 56 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-4072
SELECT + 56 / + 66
----
0

query I rowsort
SELECT + 15 + + 52 * 36
----
1887

query I rowsort
SELECT ALL + 24 * + 48
----
1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT ( + NULLIF ( 15, CAST( 70 AS SIGNED ) * COUNT( * ) ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4075
SELECT ( + NULLIF ( 15, CAST ( 70 AS INTEGER ) * COUNT ( * ) ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL - NULLIF ( - 29, + COUNT( DISTINCT - 33 ) ) * - COUNT( * ) + ( - 5 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL - NULLIF ( - 29, + COUNT ( DISTINCT - 33 ) ) * - COUNT ( * ) + ( - 5 ) AS col2
----
-34

query I rowsort
SELECT ALL 76 * 73 + 85
----
5633

query I rowsort
SELECT ALL 14 * + 9 + - 13 AS col1
----
113

query I rowsort
SELECT - ( 55 ) * - 51 AS col2
----
2805

query I rowsort
SELECT - 61 - 18 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT CASE + 91 WHEN 52 + 39 THEN NULL WHEN - 61 / COUNT( * ) THEN 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT CASE + 91 WHEN 52 + 39 THEN NULL WHEN - 61 / COUNT ( * ) THEN 82 ELSE NULL END
----
NULL

query I rowsort
SELECT CASE + 68 WHEN 9 THEN 86 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( - 40, 0 ) col2
----
-40

query I rowsort
SELECT - ( - 69 ) * + 66 AS col1
----
4554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4085
SELECT - 72 * COALESCE ( - CAST( - CASE - 95 WHEN 21 + - 79 THEN CAST( NULL AS DECIMAL ) - - 94 WHEN - 88 - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL END AS SIGNED ), + COUNT( * ) * 54 + + 24 ) AS col2
----
-5616

skipif mysql # not compatible
query I rowsort label-4085
SELECT - 72 * COALESCE ( - CAST ( - CASE - 95 WHEN 21 + - 79 THEN CAST ( NULL AS REAL ) - - 94 WHEN - 88 - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL END AS INTEGER ), + COUNT ( * ) * 54 + + 24 ) AS col2
----
-5616

query I rowsort
SELECT ALL + 4 * 0 - - ( - 49 ) AS col0
----
-49

query I rowsort
SELECT ALL + 72 * + 9 AS col0
----
648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT ALL + - COALESCE ( MAX( DISTINCT + 77 ), ( + ( 47 ) ), 27 * - 80 + 53 * COUNT( * ) ) DIV - 74
----
1

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL + - COALESCE ( MAX ( DISTINCT + 77 ), ( + ( 47 ) ), 27 * - 80 + 53 * COUNT ( * ) ) / - 74
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT - CAST( NULL AS SIGNED ) - - COUNT( ( + 19 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT - CAST ( NULL AS INTEGER ) - - COUNT ( ( + 19 ) ) col1
----
NULL

query I rowsort
SELECT 66 * + 19
----
1254

query I rowsort
SELECT - 89 + + 10
----
-79

query I rowsort
SELECT + 98 + 45
----
143

query I rowsort
SELECT + 11 + - 64 AS col0
----
-53

query I rowsort
SELECT NULLIF ( 7, + 26 * - 27 ) + - 39 col1
----
-32

query I rowsort
SELECT 36 * 17 AS col0
----
612

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT + 38 + 23 DIV - 90 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4096
SELECT + 38 + 23 / - 90 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT ALL - 84 DIV - 31 col1
----
2

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL - 84 / - 31 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT - COUNT( 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT - COUNT ( 80 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT SUM( DISTINCT - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT SUM ( DISTINCT - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT - ( 53 ) * COUNT( DISTINCT 42 ) + 4
----
-49

skipif mysql # not compatible
query I rowsort label-4100
SELECT - ( 53 ) * COUNT ( DISTINCT 42 ) + 4
----
-49

query I rowsort
SELECT NULLIF ( 75, + 73 * 5 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT CASE - ( - 84 ) WHEN - MAX( + 68 ) THEN 88 + + 14 * 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT CASE - ( - 84 ) WHEN - MAX ( + 68 ) THEN 88 + + 14 * 39 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT DISTINCT COUNT( DISTINCT - 1 ) + + 90
----
91

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT COUNT ( DISTINCT - 1 ) + + 90
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL 33 + + + 19 * COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL 33 + + + 19 * COUNT ( * ) AS col0
----
52

query I rowsort
SELECT 28 * + + 29 * 0 + 34 AS col0
----
34

query I rowsort
SELECT 49 + - + ( - 6 )
----
55

query I rowsort
SELECT ALL 21 + - 90 col1
----
-69

query I rowsort
SELECT ALL 80 + 8
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT + COUNT( * ) * - 93 + 97
----
4

skipif mysql # not compatible
query I rowsort label-4109
SELECT + COUNT ( * ) * - 93 + 97
----
4

query I rowsort
SELECT 64 * + 25
----
1600

query I rowsort
SELECT 71 + - + 49 AS col2
----
22

query I rowsort
SELECT 85 * - 89 - 45
----
-7610

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT 79 * SUM( 92 ) AS col0
----
7268

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT 79 * SUM ( 92 ) AS col0
----
7268

query I rowsort
SELECT ( + 60 ) + - ( + 45 ) * 66 col0
----
-2910

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4115
SELECT DISTINCT 84 - 87 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT 84 - 87 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4116
SELECT NULLIF ( COALESCE ( CAST( NULL AS SIGNED ), 47 DIV + 94, 92 + + 41 ), - MIN( ALL + 65 ) ) + - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4116
SELECT NULLIF ( COALESCE ( CAST ( NULL AS INTEGER ), 47 / + 94, 92 + + 41 ), - MIN ( ALL + 65 ) ) + - 89 AS col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT + 29 + + - 39 + + 29 DIV 19 col1
----
-9

skipif mysql # not compatible
query I rowsort label-4117
SELECT + 29 + + - 39 + + 29 / 19 col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT - CAST( - 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-4118
SELECT - CAST ( - 98 AS INTEGER )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4119
SELECT - 52 * 50 - + CAST( + 91 AS SIGNED ) * 64 AS col1
----
-8424

skipif mysql # not compatible
query I rowsort label-4119
SELECT - 52 * 50 - + CAST ( + 91 AS INTEGER ) * 64 AS col1
----
-8424

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT SUM( - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4120
SELECT SUM ( - 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT 71 + NULLIF ( 9, + 45 ) + + 22 * 2 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT 71 + NULLIF ( 9, + 45 ) + + 22 * 2 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT + CAST( 77 AS SIGNED ) * 25 AS col2
----
1925

skipif mysql # not compatible
query I rowsort label-4122
SELECT + CAST ( 77 AS INTEGER ) * 25 AS col2
----
1925

query I rowsort
SELECT - 9 * - 64 AS col2
----
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4124
SELECT - 18 DIV - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4124
SELECT - 18 / - COUNT ( * ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT - + MIN( ALL + 90 ) * ( 90 )
----
-8100

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT - + MIN ( ALL + 90 ) * ( 90 )
----
-8100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT DISTINCT - + CASE + + 80 WHEN + 39 THEN 68 WHEN + 4 THEN CAST( NULL AS SIGNED ) * 95 WHEN 0 THEN 35 END / + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - + CASE + + 80 WHEN + 39 THEN 68 WHEN + 4 THEN CAST ( NULL AS INTEGER ) * 95 WHEN 0 THEN 35 END / + 8 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT - 36 DIV - NULLIF ( 70, - 13 * + 74 + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-4127
SELECT - 36 / - NULLIF ( 70, - 13 * + 74 + 33 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL - COUNT( * ) + 99
----
98

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - COUNT ( * ) + 99
----
98

query I rowsort
SELECT ALL - - 18 * - + 8 - - 18 AS col1
----
-126

query I rowsort
SELECT + NULLIF ( - 79, + 12 + 13 * 79 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT + 3 DIV + 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4131
SELECT + 3 / + 30 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT SUM( DISTINCT + - 95 ) * - NULLIF ( - 71 * 63 + 83, - 93 * SUM( ALL + 58 ) - - COUNT( * ) ) col1
----
-417050

skipif mysql # not compatible
query I rowsort label-4132
SELECT SUM ( DISTINCT + - 95 ) * - NULLIF ( - 71 * 63 + 83, - 93 * SUM ( ALL + 58 ) - - COUNT ( * ) ) col1
----
-417050

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL - - COUNT( * ) + + 74
----
75

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL - - COUNT ( * ) + + 74
----
75

query I rowsort
SELECT - + ( + + 82 )
----
-82

query I rowsort
SELECT + 86 * NULLIF ( 30, 93 )
----
2580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT DISTINCT CAST( MIN( + - 69 ) AS SIGNED ) * - 72 + 61 AS col2
----
5029

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT CAST ( MIN ( + - 69 ) AS INTEGER ) * - 72 + 61 AS col2
----
5029

query II rowsort
SELECT DISTINCT - 23 AS col0, + 62 AS col0
----
-23
62

query I rowsort
SELECT ALL + 37 * - + 20 * - CASE 56 WHEN - 79 THEN - 0 END * 40 + 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4139
SELECT DISTINCT + ( - 80 ) * + 10 + + 97 DIV 71
----
-799

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT + ( - 80 ) * + 10 + + 97 / 71
----
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL 37 * - - 52 * 95 + - 1 * COUNT( * ) AS col1
----
182779

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL 37 * - - 52 * 95 + - 1 * COUNT ( * ) AS col1
----
182779

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL - COALESCE ( - COUNT( DISTINCT - 53 ), - 65, + 49 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - COALESCE ( - COUNT ( DISTINCT - 53 ), - 65, + 49 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT + 87 DIV 18 + 50 + - 6 * 4 * 70 AS col0
----
-1626

skipif mysql # not compatible
query I rowsort label-4142
SELECT + 87 / 18 + 50 + - 6 * 4 * 70 AS col0
----
-1626

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL - 89 * 99 * + CASE 0 WHEN 41 * + MAX( - 5 * + 10 ) THEN NULL WHEN - 30 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL - 89 * 99 * + CASE 0 WHEN 41 * + MAX ( - 5 * + 10 ) THEN NULL WHEN - 30 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL 74 * - 84 / - + 42 - + SUM( - 40 ) / MAX( ALL + CAST( NULL AS SIGNED ) * - 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL 74 * - 84 / - + 42 - + SUM ( - 40 ) / MAX ( ALL + CAST ( NULL AS INTEGER ) * - 32 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT DISTINCT 49 * + + 72 - ( CAST( + 55 AS SIGNED ) ) AS col0
----
3473

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT 49 * + + 72 - ( CAST ( + 55 AS INTEGER ) ) AS col0
----
3473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4146
SELECT DISTINCT - ( - + CASE 95 WHEN 77 * - CAST( NULL AS SIGNED ) THEN 99 WHEN - 7 - - 32 THEN NULL WHEN + 31 + - 34 * + 97 THEN - CAST( NULL AS SIGNED ) ELSE COUNT( * ) END )
----
1

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT - ( - + CASE 95 WHEN 77 * - CAST ( NULL AS INTEGER ) THEN 99 WHEN - 7 - - 32 THEN NULL WHEN + 31 + - 34 * + 97 THEN - CAST ( NULL AS INTEGER ) ELSE COUNT ( * ) END )
----
1

query I rowsort
SELECT ALL - 89 * 92 AS col1
----
-8188

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT + COUNT( - + 41 ) * + 39
----
39

skipif mysql # not compatible
query I rowsort label-4148
SELECT + COUNT ( - + 41 ) * + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT + SUM( ALL + 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT + SUM ( ALL + 41 ) AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4150
SELECT + CASE + + COUNT( ALL + 80 ) WHEN CAST( 59 AS SIGNED ) + - 74 * + COUNT( * ) THEN + 47 + 60 WHEN + 61 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT + CASE + + COUNT ( ALL + 80 ) WHEN CAST ( 59 AS INTEGER ) + - 74 * + COUNT ( * ) THEN + 47 + 60 WHEN + 61 THEN NULL END col2
----
NULL

query I rowsort
SELECT + - 89 * + - NULLIF ( + ( + 81 ), + 65 ) - 24 AS col2
----
7185

query I rowsort
SELECT + + 83 * - + 29 + + 10
----
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT + SUM( DISTINCT 7 ) - - + 5 * + 54 AS col0
----
277

skipif mysql # not compatible
query I rowsort label-4153
SELECT + SUM ( DISTINCT 7 ) - - + 5 * + 54 AS col0
----
277

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4154
SELECT + + COALESCE ( - 32, + + 26, + COALESCE ( 86, + COUNT( * ), 25 * - 11 ) + COUNT( * ), 55 + + COUNT( * ) ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT + + COALESCE ( - 32, + + 26, + COALESCE ( 86, + COUNT ( * ), 25 * - 11 ) + COUNT ( * ), 55 + + COUNT ( * ) ) * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - - 96 col2, 86
----
96
86

query I rowsort
SELECT NULLIF ( - 2, + + 38 * - 85 )
----
-2

query II rowsort
SELECT DISTINCT + 83, 86 AS col1
----
83
86

query I rowsort
SELECT ALL ( - 11 ) * + - 34 col2
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + + 32 - 31 + MAX( 56 ) + + COUNT( * ) * 29
----
86

skipif mysql # not compatible
query I rowsort label-4159
SELECT + + 32 - 31 + MAX ( 56 ) + + COUNT ( * ) * 29
----
86

query I rowsort
SELECT DISTINCT + COALESCE ( + ( 30 ), + 92 ) * + 99 AS col0
----
2970

query II rowsort
SELECT - 8 AS col2, 18 AS col2
----
-8
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL - 93 * 32 * + COUNT( * ) * NULLIF ( + 91, - 21 ) AS col1
----
-270816

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - 93 * 32 * + COUNT ( * ) * NULLIF ( + 91, - 21 ) AS col1
----
-270816

query I rowsort
SELECT - + 82 * + 16 * - - 82 * 77 + 13 AS col1
----
-8283955

query I rowsort
SELECT ALL 26 + ( + + 0 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4165
SELECT + 96 + 62 DIV COUNT( * ) + - 54 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4165
SELECT + 96 + 62 / COUNT ( * ) + - 54 AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT + CAST( NULL AS SIGNED ) + ( - - 8 ) + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT + CAST ( NULL AS INTEGER ) + ( - - 8 ) + - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT - ( + + 71 ) + + + MIN( ALL 61 )
----
-10

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT - ( + + 71 ) + + + MIN ( ALL 61 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT ALL CAST( NULL AS SIGNED ) + 99 * + CASE WHEN NOT - ( 63 ) IS NULL THEN + ( - 70 ) WHEN NOT - 77 <> ( + 92 ) THEN NULLIF ( 15, 60 ) ELSE NULL END / + COALESCE ( 80, 1, + 64 + - 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL CAST ( NULL AS INTEGER ) + 99 * + CASE WHEN NOT - ( 63 ) IS NULL THEN + ( - 70 ) WHEN NOT - 77 <> ( + 92 ) THEN NULLIF ( 15, 60 ) ELSE NULL END / + COALESCE ( 80, 1, + 64 + - 5 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4169
SELECT - 92 + + 93, 50 + - COUNT( * ) * + 23 AS col2
----
1
27

skipif mysql # not compatible
query II rowsort label-4169
SELECT - 92 + + 93, 50 + - COUNT ( * ) * + 23 AS col2
----
1
27

query I rowsort
SELECT ALL - 65 + + - 13
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4171
SELECT ALL 16 DIV + - 63 AS col1, 39 * COUNT( * ) AS col0
----
0
39

skipif mysql # not compatible
query II rowsort label-4171
SELECT ALL 16 / + - 63 AS col1, 39 * COUNT ( * ) AS col0
----
0
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4172
SELECT ALL + COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) * - 62 col0
----
63

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL + COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) * - 62 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ( - ( - 42 ) ) * + 40 + COUNT( * ) * + 39 + 97 * - SUM( ALL 67 ) AS col2
----
-4780

skipif mysql # not compatible
query I rowsort label-4173
SELECT ( - ( - 42 ) ) * + 40 + COUNT ( * ) * + 39 + 97 * - SUM ( ALL 67 ) AS col2
----
-4780

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + ( - + MIN( - ( 50 ) ) )
----
50

skipif mysql # not compatible
query I rowsort label-4174
SELECT + ( - + MIN ( - ( 50 ) ) )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT + 83 DIV + 99 + - - 91 col1
----
91

skipif mysql # not compatible
query I rowsort label-4175
SELECT + 83 / + 99 + - - 91 col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT + MAX( - 93 ) * + - 30 * - 54 AS col0
----
-150660

skipif mysql # not compatible
query I rowsort label-4176
SELECT + MAX ( - 93 ) * + - 30 * - 54 AS col0
----
-150660

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT - CASE + 78 WHEN + 47 * 48 - 76 * + MIN( DISTINCT 96 - + 76 ) THEN ( - 3 ) ELSE NULL END * MAX( ALL 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT - CASE + 78 WHEN + 47 * 48 - 76 * + MIN ( DISTINCT 96 - + 76 ) THEN ( - 3 ) ELSE NULL END * MAX ( ALL 65 ) AS col0
----
NULL

query I rowsort
SELECT - 38 + - + 66 * 52 AS col0
----
-3470

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT ALL 2 * + - 69 - - 81 * + COUNT( * ) + 74
----
17

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL 2 * + - 69 - - 81 * + COUNT ( * ) + 74
----
17

query I rowsort
SELECT DISTINCT + NULLIF ( + 12, + 44 ) AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT ( - - AVG ( - + NULLIF ( CAST( NULL AS SIGNED ), 97 * + 88 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT ( - - AVG ( - + NULLIF ( CAST ( NULL AS INTEGER ), 97 * + 88 ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT + 20 DIV 34 + 10 + - 61
----
-51

skipif mysql # not compatible
query I rowsort label-4182
SELECT + 20 / 34 + 10 + - 61
----
-51

query I rowsort
SELECT ALL + ( + 27 ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4184
SELECT ALL + 31 DIV + - 13 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL + 31 / + - 13 AS col0
----
-2

query I rowsort
SELECT COALESCE ( 14, - NULLIF ( 48, - 60 ) * 12, 42 )
----
14

query I rowsort
SELECT 3 * - 80 + + 52 + - + 42 + + 40
----
-190

query I rowsort
SELECT - 84 * - 49
----
4116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT CASE + + COALESCE ( + + 69, + 62 ) WHEN + 14 THEN - 77 WHEN - 88 THEN - CAST( - 89 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT CASE + + COALESCE ( + + 69, + 62 ) WHEN + 14 THEN - 77 WHEN - 88 THEN - CAST ( - 89 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL + COUNT( ALL + ( + NULLIF ( - 24, - 18 * + 65 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + COUNT ( ALL + ( + NULLIF ( - 24, - 18 * + 65 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4190
SELECT - 51 + - CASE + - COUNT( ALL - 46 ) WHEN CASE 88 WHEN 12 THEN - 87 * + MAX( 58 ) + MIN( ALL 13 + - 38 ) / COUNT( + 66 * 43 ) END * - CAST( NULL AS SIGNED ) THEN AVG ( ALL + 93 ) WHEN + NULLIF ( - COUNT( * ), + 64 * 40 + 93 ) THEN NULL WHEN - 28 THEN 94 END + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT - 51 + - CASE + - COUNT ( ALL - 46 ) WHEN CASE 88 WHEN 12 THEN - 87 * + MAX ( 58 ) + MIN ( ALL 13 + - 38 ) / COUNT ( + 66 * 43 ) END * - CAST ( NULL AS INTEGER ) THEN AVG ( ALL + 93 ) WHEN + NULLIF ( - COUNT ( * ), + 64 * 40 + 93 ) THEN NULL WHEN - 28 THEN 94 END + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT + NULLIF ( - - COUNT( * ), + + 31 - 54 * + 71 ) * + CAST( 55 + - 48 / 21 AS SIGNED ) col2
----
53

skipif mysql # not compatible
query I rowsort label-4191
SELECT + NULLIF ( - - COUNT ( * ), + + 31 - 54 * + 71 ) * + CAST ( 55 + - 48 / 21 AS INTEGER ) col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4192
SELECT - + COUNT( * ) + + CASE + + 34 WHEN - + 42 THEN NULL WHEN - 53 + - 12 * 21 THEN - 74 + ( CAST( + NULLIF ( + 7, - ( 58 ) + - COUNT( * ) ) AS SIGNED ) ) WHEN NULLIF ( + 78, COUNT( * ) ) THEN + ( COALESCE ( - 50, COALESCE ( + 62, + 83 * ( - 8 / 39 ), - NULLIF ( 54, + 49 ), 62 ), ( 94 ), COUNT( * ) ) ) + - 71 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT - + COUNT ( * ) + + CASE + + 34 WHEN - + 42 THEN NULL WHEN - 53 + - 12 * 21 THEN - 74 + ( CAST ( + NULLIF ( + 7, - ( 58 ) + - COUNT ( * ) ) AS INTEGER ) ) WHEN NULLIF ( + 78, COUNT ( * ) ) THEN + ( COALESCE ( - 50, COALESCE ( + 62, + 83 * ( - 8 / 39 ), - NULLIF ( 54, + 49 ), 62 ), ( 94 ), COUNT ( * ) ) ) + - 71 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT - 26 * + 37 - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT - 26 * + 37 - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4194
SELECT 52 * - 86 * MIN( DISTINCT - + 91 ) * 80 + + 64 DIV CAST( + 56 + SUM( + 71 + 1 ) AS SIGNED ) AS col2
----
32556160

skipif mysql # not compatible
query I rowsort label-4194
SELECT 52 * - 86 * MIN ( DISTINCT - + 91 ) * 80 + + 64 / CAST ( + 56 + SUM ( + 71 + 1 ) AS INTEGER ) AS col2
----
32556160

query I rowsort
SELECT ALL - 69 * - 43 + - 86 + + 96 * 64 * + 67
----
414529

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL - COUNT( * ) * - 7 + + 26 - ( COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL - COUNT ( * ) * - 7 + + 26 - ( COUNT ( * ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - - 47 * + + 55 + - 71 + - 88 * NULLIF ( 85 - 9, - COALESCE ( MAX( ALL - 7 ), - 21 * - NULLIF ( + 0, - 56 / 60 ) ) )
----
-4174

skipif mysql # not compatible
query I rowsort label-4197
SELECT - - 47 * + + 55 + - 71 + - 88 * NULLIF ( 85 - 9, - COALESCE ( MAX ( ALL - 7 ), - 21 * - NULLIF ( + 0, - 56 / 60 ) ) )
----
-4174

query I rowsort
SELECT DISTINCT + 55 * + 17 * + 29 + - 6 + - 41 AS col2
----
27068

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + 14 + - COUNT( * ) * - + 89
----
103

skipif mysql # not compatible
query I rowsort label-4199
SELECT + 14 + - COUNT ( * ) * - + 89
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT - - 17 DIV + - 52
----
0

skipif mysql # not compatible
query I rowsort label-4200
SELECT - - 17 / + - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT + 27 + MAX( DISTINCT - 8 ) + - + 90 col2
----
-71

skipif mysql # not compatible
query I rowsort label-4201
SELECT + 27 + MAX ( DISTINCT - 8 ) + - + 90 col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4202
SELECT ALL + - MIN( DISTINCT - 79 ) * + - ( + 60 ) + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL + - MIN ( DISTINCT - 79 ) * + - ( + 60 ) + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT + 41 + 83 + - COUNT( * ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-4203
SELECT + 41 + 83 + - COUNT ( * ) AS col1
----
123

query II rowsort
SELECT ( - 32 ) AS col0, - 26
----
-32
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4205
SELECT + 94 DIV + - 13 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4205
SELECT + 94 / + - 13 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + - 45 + COUNT( * ) - - 6 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-4206
SELECT + - 45 + COUNT ( * ) - - 6 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL + SUM( - 13 ) + - 56 + + 54 * - MIN( DISTINCT NULLIF ( + 63, + ( 63 ) * - 53 ) * 98 ) col1
----
-333465

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL + SUM ( - 13 ) + - 56 + + 54 * - MIN ( DISTINCT NULLIF ( + 63, + ( 63 ) * - 53 ) * 98 ) col1
----
-333465

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT 81 * COALESCE ( - 27, + 43 ) * + MIN( ALL + 61 ) AS col1
----
-133407

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT 81 * COALESCE ( - 27, + 43 ) * + MIN ( ALL + 61 ) AS col1
----
-133407

query I rowsort
SELECT ALL 4 - - + ( - ( - + 21 ) ) + - 31 * - 38 AS col1
----
1203

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT + ( 49 ) * - 95 * + + ( - - 91 ) + - 43 DIV 58
----
-423605

skipif mysql # not compatible
query I rowsort label-4210
SELECT + ( 49 ) * - 95 * + + ( - - 91 ) + - 43 / 58
----
-423605

query I rowsort
SELECT ALL 75 * 34 AS col0
----
2550

query I rowsort
SELECT - ( - NULLIF ( - 74, - 14 ) )
----
-74

query I rowsort
SELECT ALL 68 - - 3 AS col1
----
71

query II rowsort
SELECT DISTINCT + 51 AS col1, 18 + + + COALESCE ( + 83, - 31 ) + + 70 * 14
----
51
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT DISTINCT + COUNT( * ) * - 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT + COUNT ( * ) * - 51 AS col1
----
-51

query I rowsort
SELECT DISTINCT 61 * 86 AS col1
----
5246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4217
SELECT 15 + + + COUNT( * ) * + + COALESCE ( ( + 60 ), CASE 84 WHEN + 5 THEN NULL WHEN - 58 THEN 80 WHEN MAX( - CAST( NULL AS SIGNED ) ) THEN NULL ELSE - 33 - + 11 END + - 82 * - 95, + COUNT( * ) ) + - 93 DIV - ( - 82 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4217
SELECT 15 + + + COUNT ( * ) * + + COALESCE ( ( + 60 ), CASE 84 WHEN + 5 THEN NULL WHEN - 58 THEN 80 WHEN MAX ( - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - 33 - + 11 END + - 82 * - 95, + COUNT ( * ) ) + - 93 / - ( - 82 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4218
SELECT DISTINCT - 67 col0, - COUNT( * ) + + 52 AS col0
----
-67
51

skipif mysql # not compatible
query II rowsort label-4218
SELECT DISTINCT - 67 col0, - COUNT ( * ) + + 52 AS col0
----
-67
51

query I rowsort
SELECT + 48 * + + ( 6 ) * 84 + + 17
----
24209

query I rowsort
SELECT - - NULLIF ( - 53, - 16 ) * - 75 + + 73
----
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT + + 53 + - - 82 * - 65 * - MIN( - + 4 ) + - MIN( ALL + 21 ) * SUM( DISTINCT 46 ) AS col0
----
-22233

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT + + 53 + - - 82 * - 65 * - MIN ( - + 4 ) + - MIN ( ALL + 21 ) * SUM ( DISTINCT 46 ) AS col0
----
-22233

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL - 70 + 89 * + COUNT( * ) * - - CASE 91 WHEN + ( ( - 73 ) ) * - MAX( 66 ) THEN NULL WHEN 26 * 21 THEN 40 - - NULLIF ( 98, 7 * + 38 ) WHEN - 92 - 55 THEN NULLIF ( + 21, - 53 ) ELSE 44 END * 48
----
187898

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - 70 + 89 * + COUNT ( * ) * - - CASE 91 WHEN + ( ( - 73 ) ) * - MAX ( 66 ) THEN NULL WHEN 26 * 21 THEN 40 - - NULLIF ( 98, 7 * + 38 ) WHEN - 92 - 55 THEN NULLIF ( + 21, - 53 ) ELSE 44 END * 48
----
187898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT + + CAST( 33 AS SIGNED ) col1
----
33

skipif mysql # not compatible
query I rowsort label-4223
SELECT + + CAST ( 33 AS INTEGER ) col1
----
33

query I rowsort
SELECT DISTINCT - 68 + + 29 * - NULLIF ( 39, 95 ) + 41 * 22
----
-297

query I rowsort
SELECT 18 * - 18
----
-324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4226
SELECT ALL - + COUNT( * ) + + CASE + 11 WHEN + 5 THEN - 84 END + - 92 * - ( 53 + 36 * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - + COUNT ( * ) + + CASE + 11 WHEN + 5 THEN - 84 END + - 92 * - ( 53 + 36 * CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ( + - 74 ) - + - 14 * + COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4227
SELECT ( + - 74 ) - + - 14 * + COUNT ( * ) AS col0
----
-60

query II rowsort
SELECT + 21 AS col0, - 2 * + + ( COALESCE ( - 95, + 9 ) ) + + 6 * 21
----
21
316

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + MIN( 35 ) - + 0 + 22 * + 22 AS col0
----
519

skipif mysql # not compatible
query I rowsort label-4229
SELECT + MIN ( 35 ) - + 0 + 22 * + 22 AS col0
----
519

query I rowsort
SELECT DISTINCT + + 98 * 81 AS col0
----
7938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT - ( + + MIN( ALL - CAST( 68 AS SIGNED ) ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4231
SELECT - ( + + MIN ( ALL - CAST ( 68 AS INTEGER ) ) ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL + COALESCE ( 23, + - COALESCE ( - ( + + 4 ), 16, COUNT( DISTINCT - 53 ) ), 18 + 88 ) * + 15
----
345

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + COALESCE ( 23, + - COALESCE ( - ( + + 4 ), 16, COUNT ( DISTINCT - 53 ) ), 18 + 88 ) * + 15
----
345

query II rowsort
SELECT 82, 43 AS col1
----
82
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4234
SELECT ALL COUNT( * ) - + MIN( ALL - 89 ), + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT 6 ) * 94 AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4234
SELECT ALL COUNT ( * ) - + MIN ( ALL - 89 ), + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT 6 ) * 94 AS col2
----
90
NULL

query I rowsort
SELECT 5 * 38 col1
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT + - ( COALESCE ( 7, - COUNT( * ), - 10 ) ) * + 20
----
-140

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + - ( COALESCE ( 7, - COUNT ( * ), - 10 ) ) * + 20
----
-140

query I rowsort
SELECT - 14 - - + 21
----
7

query I rowsort
SELECT 49 + + 27 + - - 53 * + + 62
----
3362

query II rowsort
SELECT ALL 69 - - 6, - 7 AS col1
----
75
-7

query II rowsort
SELECT - 45 AS col2, - 0
----
-45
0

query II rowsort
SELECT 75 AS col2, - 94 + - 71
----
75
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4242
SELECT CAST( NULL AS SIGNED ) / - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT CAST ( NULL AS INTEGER ) / - - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT ALL 62 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL 62 / - 89 AS col0
----
0

query I rowsort
SELECT 74 + + 15
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4245
SELECT DISTINCT - 48 DIV + 85 * + COUNT( - - 78 ) * 55 - 91
----
-91

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT - 48 / + 85 * + COUNT ( - - 78 ) * 55 - 91
----
-91

query I rowsort
SELECT 84 + - 1 AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4247
SELECT 90 / COUNT( DISTINCT 3 ) * + 44 / + CASE 59 WHEN 57 THEN NULL ELSE - ( - 10 ) - CAST( + ( + ( 41 ) ) AS SIGNED ) END * CASE - 22 WHEN 75 * - 66 + + COUNT( * ) THEN - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT 90 / COUNT ( DISTINCT 3 ) * + 44 / + CASE 59 WHEN 57 THEN NULL ELSE - ( - 10 ) - CAST ( + ( + ( 41 ) ) AS INTEGER ) END * CASE - 22 WHEN 75 * - 66 + + COUNT ( * ) THEN - 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT 9 + - ( - + COUNT( * ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4248
SELECT 9 + - ( - + COUNT ( * ) ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT + 22, + MAX( ALL - 96 ) AS col1
----
22
-96

skipif mysql # not compatible
query II rowsort label-4249
SELECT + 22, + MAX ( ALL - 96 ) AS col1
----
22
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT - COUNT( * ) DIV - + 13 + + ( - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4250
SELECT - COUNT ( * ) / - + 13 + + ( - 85 ) AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4251
SELECT CAST( NULL AS SIGNED ) * - - 28 * - - MAX( + 62 ) AS col0, - 83 * - 15 * 6
----
NULL
7470

skipif mysql # not compatible
query II rowsort label-4251
SELECT CAST ( NULL AS INTEGER ) * - - 28 * - - MAX ( + 62 ) AS col0, - 83 * - 15 * 6
----
NULL
7470

query II rowsort
SELECT DISTINCT ( - 99 ) + - 20 + + 45 AS col2, COALESCE ( + 22, - 91 - 61 )
----
-74
22

query I rowsort
SELECT - 46 * - ( - - 90 ) AS col2
----
4140

onlyif mysql # DIV for integer division: 
query II rowsort label-4254
SELECT ALL - 50 AS col2, - 71 * 66 DIV - + 39
----
-50
120

skipif mysql # not compatible
query II rowsort label-4254
SELECT ALL - 50 AS col2, - 71 * 66 / - + 39
----
-50
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT ALL + - 76 + + - CAST( - + 37 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + - 76 + + - CAST ( - + 37 AS INTEGER )
----
-39

query I rowsort
SELECT DISTINCT + 39 + - 53 * - - 8
----
-385

query II rowsort
SELECT + - 73, 76 + 84 AS col0
----
-73
160

query I rowsort
SELECT ALL - + 9 * 99
----
-891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4259
SELECT + COALESCE ( + 50, + COUNT( * ) DIV + 56 * - CAST( COALESCE ( 98, + 62 * + 58, 62 ) AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-4259
SELECT + COALESCE ( + 50, + COUNT ( * ) / + 56 * - CAST ( COALESCE ( 98, + 62 * + 58, 62 ) AS INTEGER ) )
----
50

query I rowsort
SELECT ALL 32 - 29 + - + 85 AS col0
----
-82

query I rowsort
SELECT ALL + 45 * 37
----
1665

query II rowsort
SELECT ALL - 32 AS col0, 18 * 5 + + 6
----
-32
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT + AVG ( DISTINCT 28 ) * + 25 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT + AVG ( DISTINCT 28 ) * + 25 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT - 3 * - CAST( NULL AS SIGNED ) * - 47 / + 96 / - 19 - - - ( - 38 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 3 * - CAST ( NULL AS INTEGER ) * - 47 / + 96 / - 19 - - - ( - 38 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT ALL - 73 * + 10 * - COUNT( * ) + - + 89 col2, 50 * - 10 + - 60 AS col0
----
641
-560

skipif mysql # not compatible
query II rowsort label-4265
SELECT ALL - 73 * + 10 * - COUNT ( * ) + - + 89 col2, 50 * - 10 + - 60 AS col0
----
641
-560

query I rowsort
SELECT ALL - 62 - - 94 * + - 80
----
-7582

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT - - MIN( ALL - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-4267
SELECT - - MIN ( ALL - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT NULLIF ( - MIN( ALL + 58 ), + 30 * COALESCE ( 27, - 72 ) ) + 75 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4268
SELECT NULLIF ( - MIN ( ALL + 58 ), + 30 * COALESCE ( 27, - 72 ) ) + 75 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT MAX( DISTINCT + - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT MAX ( DISTINCT + - 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT NULLIF ( + 61, + COALESCE ( COUNT( * ), - COUNT( * ) * - + 23 + 61 * - 16, AVG ( DISTINCT 4 ) ) / COUNT( * ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT NULLIF ( + 61, + COALESCE ( COUNT ( * ), - COUNT ( * ) * - + 23 + 61 * - 16, AVG ( DISTINCT 4 ) ) / COUNT ( * ) ) AS col0
----
61

query II rowsort
SELECT DISTINCT - 62 * + 26, 51 AS col1
----
-1612
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL MAX( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL MAX ( 57 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT ALL - 44 * 20 DIV - 35
----
25

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL - 44 * 20 / - 35
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4274
SELECT ALL CASE 23 WHEN 16 + 63 THEN NULL WHEN + 32 * + 24 + + CAST( 76 AS DECIMAL ) THEN 46 END + + 49 * + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL CASE 23 WHEN 16 + 63 THEN NULL WHEN + 32 * + 24 + + CAST ( 76 AS REAL ) THEN 46 END + + 49 * + 73 AS col1
----
NULL

query I rowsort
SELECT - 44 * + - 7
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + 49 * COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4276
SELECT + 49 * COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT DISTINCT CASE + - 55 WHEN - 82 + ( 50 ) THEN - COALESCE ( - MAX( DISTINCT - 21 ), 18 ) * COALESCE ( + MAX( + 31 ), 5 * 22, + 3 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT CASE + - 55 WHEN - 82 + ( 50 ) THEN - COALESCE ( - MAX ( DISTINCT - 21 ), 18 ) * COALESCE ( + MAX ( + 31 ), 5 * 22, + 3 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 73 + + - 21
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4279
SELECT - CAST( NULL AS SIGNED ) - + ( MAX( ALL + 45 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT - CAST ( NULL AS INTEGER ) - + ( MAX ( ALL + 45 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL - 9 + - 82 + + 30 + + COUNT( * ) * + 15 * + NULLIF ( 49, 7 )
----
674

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - 9 + - 82 + + 30 + + COUNT ( * ) * + 15 * + NULLIF ( 49, 7 )
----
674

query I rowsort
SELECT DISTINCT + ( ( - 73 ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT ALL - 9 * - + MAX( ALL + 22 ) + - + 77 + + 51 * - 61
----
-2990

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - 9 * - + MAX ( ALL + 22 ) + - + 77 + + 51 * - 61
----
-2990

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + MAX( - - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-4283
SELECT + MAX ( - - 19 )
----
19

query II rowsort
SELECT ALL + 63 * + 88 + 62, 24 col0
----
5606
24

query I rowsort
SELECT + + 90 * - + 5
----
-450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4286
SELECT 73 DIV COUNT( * ) + + - 41 * + ( + MIN( ALL + 81 ) )
----
-3248

skipif mysql # not compatible
query I rowsort label-4286
SELECT 73 / COUNT ( * ) + + - 41 * + ( + MIN ( ALL + 81 ) )
----
-3248

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT + COUNT( DISTINCT - - 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4287
SELECT + COUNT ( DISTINCT - - 1 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + - 59 AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4289
SELECT + + 54 + 23, - 90 * - + CAST( NULL AS SIGNED ) col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-4289
SELECT + + 54 + 23, - 90 * - + CAST ( NULL AS INTEGER ) col2
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT + - COUNT( + + 56 ) + - 70 - + - ( + + 40 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4290
SELECT + - COUNT ( + + 56 ) + - 70 - + - ( + + 40 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4291
SELECT ALL + MAX( DISTINCT + 79 ), + 86 AS col0
----
79
86

skipif mysql # not compatible
query II rowsort label-4291
SELECT ALL + MAX ( DISTINCT + 79 ), + 86 AS col0
----
79
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4292
SELECT ALL 4 * + + 62 / - CAST( NULL AS SIGNED ), + CASE + MIN( 56 ) WHEN - - 51 THEN NULL WHEN CASE - AVG ( - 29 ) WHEN 37 + 14 * ( + 50 * + 43 - 45 ) THEN - AVG ( - 82 ) WHEN - 87 THEN NULL END THEN 64 END + - 14 * + 63
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4292
SELECT ALL 4 * + + 62 / - CAST ( NULL AS INTEGER ), + CASE + MIN ( 56 ) WHEN - - 51 THEN NULL WHEN CASE - AVG ( - 29 ) WHEN 37 + 14 * ( + 50 * + 43 - 45 ) THEN - AVG ( - 82 ) WHEN - 87 THEN NULL END THEN 64 END + - 14 * + 63
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT ALL - ( CAST( - - 26 AS SIGNED ) ) * - 62 AS col0
----
1612

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - ( CAST ( - - 26 AS INTEGER ) ) * - 62 AS col0
----
1612

query I rowsort
SELECT + - 28 * + ( 21 ) AS col2
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + COUNT( * ) - 54
----
-53

skipif mysql # not compatible
query I rowsort label-4295
SELECT + COUNT ( * ) - 54
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + COUNT( DISTINCT - + CASE + - 57 WHEN - 48 THEN - - 97 WHEN 75 * - 7 - + 78 * 92 THEN NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT + COUNT ( DISTINCT - + CASE + - 57 WHEN - 48 THEN - - 97 WHEN 75 * - 7 - + 78 * 92 THEN NULL END )
----
0

query II rowsort
SELECT + 62 - + 16, 78 * - + 16 * ( - 2 ) + - CASE 70 WHEN 0 THEN 25 END AS col0
----
46
NULL

query I rowsort
SELECT - 16 * + 80
----
-1280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4299
SELECT + COUNT( * ) * - - 60 * - ( COALESCE ( + 83, 12 DIV ( + 31 ), 90 ) )
----
-4980

skipif mysql # not compatible
query I rowsort label-4299
SELECT + COUNT ( * ) * - - 60 * - ( COALESCE ( + 83, 12 / ( + 31 ), 90 ) )
----
-4980

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL NULLIF ( + 6, 81 / + NULLIF ( + 93, + ( + + 60 ) + + 18 ) + 18 + COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL NULLIF ( + 6, 81 / + NULLIF ( + 93, + ( + + 60 ) + + 18 ) + 18 + COUNT ( * ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT 51 * COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT 51 * COUNT ( * ) AS col0
----
51

query I rowsort
SELECT ALL 86 + + + 70
----
156

query I rowsort
SELECT - 97 - + 24 AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT + 68 + - 85 + - MAX( 89 )
----
-106

skipif mysql # not compatible
query I rowsort label-4304
SELECT + 68 + - 85 + - MAX ( 89 )
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT - 73 - AVG ( + CAST( NULL AS SIGNED ) ) * + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT - 73 - AVG ( + CAST ( NULL AS INTEGER ) ) * + - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL NULLIF ( - + 29, COUNT( * ) * - 52 - - MAX( ALL - 45 ) / - 14 + - + ( + 72 ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL NULLIF ( - + 29, COUNT ( * ) * - 52 - - MAX ( ALL - 45 ) / - 14 + - + ( + 72 ) ) AS col0
----
-29

query II rowsort
SELECT 92, - 2 col1
----
92
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT - 50 DIV 34
----
-1

skipif mysql # not compatible
query I rowsort label-4308
SELECT - 50 / 34
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT DISTINCT + CASE - - 69 WHEN + - ( - CAST( - 98 AS SIGNED ) ) * - AVG ( DISTINCT + + 62 ) * + - 17 + COUNT( * ) * + 34 THEN NULL WHEN + 5 THEN NULL ELSE CASE + 19 WHEN + 85 * 59 THEN 7 * ( 96 / + 52 ) END / 27 END + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT + CASE - - 69 WHEN + - ( - CAST ( - 98 AS INTEGER ) ) * - AVG ( DISTINCT + + 62 ) * + - 17 + COUNT ( * ) * + 34 THEN NULL WHEN + 5 THEN NULL ELSE CASE + 19 WHEN + 85 * 59 THEN 7 * ( 96 / + 52 ) END / 27 END + 84 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 53, 82 ) + - NULLIF ( + 11, + + 74 / ( + 44 ) )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT CAST( 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT CAST ( 39 AS INTEGER )
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4312
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + 55 DIV + - CASE COALESCE ( + 88, + 82 ) WHEN + + 30 * - 40 + - 45 THEN + 95 - 25 ELSE 68 END
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4312
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + 55 / + - CASE COALESCE ( + 88, + 82 ) WHEN + + 30 * - 40 + - 45 THEN + 95 - 25 ELSE 68 END
----
NULL
0

query I rowsort
SELECT DISTINCT - 95 + 91
----
-4

query I rowsort
SELECT - - 44 + + + 12
----
56

query II rowsort
SELECT + - 0 AS col0, - 68 AS col1
----
0
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT ALL - + 76 DIV - + 40 - 88 DIV - ( + 62 )
----
2

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL - + 76 / - + 40 - 88 / - ( + 62 )
----
2

query I rowsort
SELECT + 91 * - - 26 * - 19 AS col0
----
-44954

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - 8 * - COUNT( * ) + 71 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4318
SELECT - 8 * - COUNT ( * ) + 71 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4319
SELECT ALL + + 75 AS col1, - CAST( NULL AS SIGNED ) col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-4319
SELECT ALL + + 75 AS col1, - CAST ( NULL AS INTEGER ) col1
----
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT ALL + 28 DIV + - ( - ( - 81 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + 28 / + - ( - ( - 81 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4321
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, - 22 + - 49 AS col0
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-4321
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, - 22 + - 49 AS col0
----
NULL
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4322
SELECT DISTINCT COUNT( * ) DIV + COALESCE ( - + 99, ( - + COUNT( * ) ), - 57 ) - - 15 - - 97 * + NULLIF ( + 85, 53 ) * - COUNT( * )
----
-8230

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT COUNT ( * ) / + COALESCE ( - + 99, ( - + COUNT ( * ) ), - 57 ) - - 15 - - 97 * + NULLIF ( + 85, 53 ) * - COUNT ( * )
----
-8230

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + 80 + - 13 + - COUNT( DISTINCT - - 64 ) * - 52 * + - 97 AS col0
----
-4977

skipif mysql # not compatible
query I rowsort label-4323
SELECT + 80 + - 13 + - COUNT ( DISTINCT - - 64 ) * - 52 * + - 97 AS col0
----
-4977

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4324
SELECT + CASE - CASE + 69 WHEN - CAST( NULL AS DECIMAL ) * - + 96 + + 69 THEN - 95 + - - 52 ELSE NULL END WHEN 95 / - 19 THEN ( + 8 ) WHEN NULLIF ( 83, 32 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT + CASE - CASE + 69 WHEN - CAST ( NULL AS REAL ) * - + 96 + + 69 THEN - 95 + - - 52 ELSE NULL END WHEN 95 / - 19 THEN ( + 8 ) WHEN NULLIF ( 83, 32 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4325
SELECT ALL + MIN( - + NULLIF ( - - 88, - + 30 + + - 5 ) ) * + CASE + CAST( + 23 AS SIGNED ) WHEN 9 * - 65 THEN NULL WHEN - 67 THEN 92 + COUNT( * ) * 14 ELSE 91 DIV 53 END AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL + MIN ( - + NULLIF ( - - 88, - + 30 + + - 5 ) ) * + CASE + CAST ( + 23 AS INTEGER ) WHEN 9 * - 65 THEN NULL WHEN - 67 THEN 92 + COUNT ( * ) * 14 ELSE 91 / 53 END AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT - 24 DIV - 20 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4326
SELECT - 24 / - 20 AS col2
----
1

query I rowsort
SELECT - 38 * + + 39 col0
----
-1482

onlyif mysql # aggregate syntax: 
query II rowsort label-4328
SELECT 32 AS col0, SUM( ALL + - 62 )
----
32
-62

skipif mysql # not compatible
query II rowsort label-4328
SELECT 32 AS col0, SUM ( ALL + - 62 )
----
32
-62

query I rowsort
SELECT DISTINCT - 43 * - + 91 AS col1
----
3913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT 84 * + CAST( - 5 AS SIGNED ) * - + COUNT( * ) * + - 55 col0
----
-23100

skipif mysql # not compatible
query I rowsort label-4330
SELECT 84 * + CAST ( - 5 AS INTEGER ) * - + COUNT ( * ) * + - 55 col0
----
-23100

query I rowsort
SELECT DISTINCT 33 + - 75
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - 6 * + - 56 + + ( - + COUNT( * ) ) + - + NULLIF ( - NULLIF ( MIN( 90 ), 37 * 48 ), 55 ) AS col1
----
425

skipif mysql # not compatible
query I rowsort label-4332
SELECT - 6 * + - 56 + + ( - + COUNT ( * ) ) + - + NULLIF ( - NULLIF ( MIN ( 90 ), 37 * 48 ), 55 ) AS col1
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT 97 + - + COALESCE ( + - NULLIF ( + + COUNT( * ), + 51 * - 2 * 39 * + + 0 ), - 75 * - 30 ) * + 99
----
196

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT 97 + - + COALESCE ( + - NULLIF ( + + COUNT ( * ), + 51 * - 2 * 39 * + + 0 ), - 75 * - 30 ) * + 99
----
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT - 24 * 3 + - 7 + + COALESCE ( 82, - 89 + - 67 - - COUNT( * ) ) DIV - 44
----
-80

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 24 * 3 + - 7 + + COALESCE ( 82, - 89 + - 67 - - COUNT ( * ) ) / - 44
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL COUNT( * ) + - 85
----
-84

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL COUNT ( * ) + - 85
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT DISTINCT 61 + + + 16 DIV - + 95 * + 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT 61 + + + 16 / - + 95 * + 60 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL COUNT( ALL - 50 ) + 83
----
84

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL COUNT ( ALL - 50 ) + 83
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT CAST( NULL AS SIGNED ) * + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT CAST ( NULL AS INTEGER ) * + 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4339
SELECT DISTINCT + 36 DIV COUNT( DISTINCT - 55 )
----
36

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + 36 / COUNT ( DISTINCT - 55 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT ALL - CAST( + 54 AS SIGNED ) - + 65 AS col1
----
-119

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL - CAST ( + 54 AS INTEGER ) - + 65 AS col1
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( + MAX( + - 92 ), + 29, + + 16 * - - NULLIF ( 1, + 97 ) * - 2 ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( + MAX ( + - 92 ), + 29, + + 16 * - - NULLIF ( 1, + 97 ) * - 2 ) * 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT 50 + + CAST( - + 93 AS SIGNED ) * 91 AS col2
----
-8413

skipif mysql # not compatible
query I rowsort label-4342
SELECT 50 + + CAST ( - + 93 AS INTEGER ) * 91 AS col2
----
-8413

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT DISTINCT + 51 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + 51 / - 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT 25 * + MIN( + + 15 ) col2
----
375

skipif mysql # not compatible
query I rowsort label-4344
SELECT 25 * + MIN ( + + 15 ) col2
----
375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT - ( CAST( NULL AS SIGNED ) ) - - 47 + 35 + - 51 * - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT - ( CAST ( NULL AS INTEGER ) ) - - 47 + 35 + - 51 * - 66 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT 18 - - NULLIF ( 7, - 4 - 88 ) - - + COALESCE ( - 30, - 68 ) * - CAST( - 76 AS SIGNED ) * + 36 + - MIN( + 2 ) AS col2
----
-82057

skipif mysql # not compatible
query I rowsort label-4346
SELECT 18 - - NULLIF ( 7, - 4 - 88 ) - - + COALESCE ( - 30, - 68 ) * - CAST ( - 76 AS INTEGER ) * + 36 + - MIN ( + 2 ) AS col2
----
-82057

query I rowsort
SELECT ALL - - 89 * + 33 + + 99
----
3036

query I rowsort
SELECT ( - + 41 ) * + 17 - 75 AS col0
----
-772

query I rowsort
SELECT ALL + + 73 * - - 99 * - ( 53 )
----
-383031

query I rowsort
SELECT DISTINCT + 99 * + 66 AS col2
----
6534

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL - - MAX( ALL + + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL - - MAX ( ALL + + 93 ) AS col2
----
93

query I rowsort
SELECT - 56 * - + 11 AS col1
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL + + 98 * - + MAX( + - 59 ) AS col2
----
5782

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + + 98 * - + MAX ( + - 59 ) AS col2
----
5782

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT 28 * + - CASE - 61 WHEN 70 / - 75 / - - COUNT( * ) + + - 41 THEN NULL WHEN - COUNT( * ) + - 64 + - 28 * 22 THEN NULL WHEN 63 THEN NULL ELSE 54 * - 56 + COALESCE ( 17, 52 ) END - 69 AS col0
----
84127

skipif mysql # not compatible
query I rowsort label-4354
SELECT 28 * + - CASE - 61 WHEN 70 / - 75 / - - COUNT ( * ) + + - 41 THEN NULL WHEN - COUNT ( * ) + - 64 + - 28 * 22 THEN NULL WHEN 63 THEN NULL ELSE 54 * - 56 + COALESCE ( 17, 52 ) END - 69 AS col0
----
84127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4355
SELECT + + NULLIF ( + 96, - 16 ) / + CAST( NULL AS SIGNED ) * + - ( 87 ) + + COUNT( * ) - 55 + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT + + NULLIF ( + 96, - 16 ) / + CAST ( NULL AS INTEGER ) * + - ( 87 ) + + COUNT ( * ) - 55 + + 2 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT 87 - - CAST( NULL AS SIGNED ) / - 73 + - ( + - 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT 87 - - CAST ( NULL AS INTEGER ) / - 73 + - ( + - 29 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT + MAX( 5 )
----
5

skipif mysql # not compatible
query I rowsort label-4357
SELECT + MAX ( 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT 64 * - ( + COUNT( DISTINCT + 86 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-4358
SELECT 64 * - ( + COUNT ( DISTINCT + 86 ) )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + 31 * + 87 * - COUNT( * )
----
-2697

skipif mysql # not compatible
query I rowsort label-4359
SELECT + 31 * + 87 * - COUNT ( * )
----
-2697

query I rowsort
SELECT 66 + 15
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4361
SELECT 43 DIV - + 53 AS col0, 23 + 31 AS col0
----
0
54

skipif mysql # not compatible
query II rowsort label-4361
SELECT 43 / - + 53 AS col0, 23 + 31 AS col0
----
0
54

query I rowsort
SELECT ALL + 39 + - 41 - + 88
----
-90

query I rowsort
SELECT DISTINCT - - 43 + - ( 73 )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT DISTINCT + 3 DIV + SUM( 74 )
----
0

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + 3 / + SUM ( 74 )
----
0

query I rowsort
SELECT ALL 92 + + - 58
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL + 85 * SUM( ALL CAST( NULL AS SIGNED ) ) * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + 85 * SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT 74 DIV - - ( + ( - 83 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT 74 / - - ( + ( - 83 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4368
SELECT COALESCE ( - + 26, + - 7 ) DIV + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4368
SELECT COALESCE ( - + 26, + - 7 ) / + COUNT ( * )
----
-26

query II rowsort
SELECT + 47 AS col1, - 37 AS col2
----
47
-37

query I rowsort
SELECT ALL 56 + - 10 + + 52 + 20 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT COUNT( * ) * + + 88 - - 49 * 25 col2
----
1313

skipif mysql # not compatible
query I rowsort label-4371
SELECT COUNT ( * ) * + + 88 - - 49 * 25 col2
----
1313

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT COUNT( * ) + - 39 - 13
----
-51

skipif mysql # not compatible
query I rowsort label-4372
SELECT COUNT ( * ) + - 39 - 13
----
-51

query I rowsort
SELECT ALL + 13 + - 75 * + + 88 - + - 96
----
-6491

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4374
SELECT ALL 12 AS col2, + 88 * + ( - COALESCE ( - 17, CAST( NULL AS SIGNED ), + NULLIF ( 49, ( 72 ) ) + 34 ) )
----
12
1496

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL 12 AS col2, + 88 * + ( - COALESCE ( - 17, CAST ( NULL AS INTEGER ), + NULLIF ( 49, ( 72 ) ) + 34 ) )
----
12
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL - CASE - - CASE 18 WHEN - - 80 / + COUNT( * ) * - 71 THEN NULL WHEN + + 50 THEN 76 END WHEN - - 70 / + + 55 THEN 87 + + 43 * 92 WHEN 6 THEN NULL END + 4 * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - CASE - - CASE 18 WHEN - - 80 / + COUNT ( * ) * - 71 THEN NULL WHEN + + 50 THEN 76 END WHEN - - 70 / + + 55 THEN 87 + + 43 * 92 WHEN 6 THEN NULL END + 4 * + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT COUNT( ALL - - 37 ) - 3 + + - 2
----
-4

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT COUNT ( ALL - - 37 ) - 3 + + - 2
----
-4

query II rowsort
SELECT ALL 23 AS col0, 96 + 93
----
23
189

query I rowsort
SELECT 44 - 45 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT ALL CAST( NULL AS SIGNED ) * + 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL CAST ( NULL AS INTEGER ) * + 53 col1
----
NULL

query I rowsort
SELECT NULLIF ( 16, + + 18 + 87 ) + 74
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT CAST( + 40 AS SIGNED ) * CAST( 90 AS SIGNED ) - - 87 AS col0
----
3687

skipif mysql # not compatible
query I rowsort label-4381
SELECT CAST ( + 40 AS INTEGER ) * CAST ( 90 AS INTEGER ) - - 87 AS col0
----
3687

query I rowsort
SELECT + 90 + - + 38 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4383
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) + - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - 31 AS col0
----
NULL

query I rowsort
SELECT - 13 * - 67 * 71 + - 3
----
61838

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT COUNT( * ) + - + 94 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4385
SELECT COUNT ( * ) + - + 94 AS col2
----
-93

query II rowsort
SELECT + 73 AS col1, 33 * - 87 col1
----
73
-2871

query I rowsort
SELECT - 40 + + 31
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT ALL - 53, - 3 * + NULLIF ( COUNT( * ), - MIN( DISTINCT - 56 ) + - + 17 + + 14 + - - 59 + - + 15 * + NULLIF ( 81, - 43 ) ) * 62 + 56 AS col2
----
-53
-130

skipif mysql # not compatible
query II rowsort label-4388
SELECT ALL - 53, - 3 * + NULLIF ( COUNT ( * ), - MIN ( DISTINCT - 56 ) + - + 17 + + 14 + - - 59 + - + 15 * + NULLIF ( 81, - 43 ) ) * 62 + 56 AS col2
----
-53
-130

query I rowsort
SELECT DISTINCT - CASE + + 54 WHEN - 80 THEN - 42 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ( - - COUNT( * ) ) * - 84 + - - 56 * COUNT( * ) * + + ( + - CASE ( + 61 ) WHEN - ( 16 ) / + CASE + 58 / - COALESCE ( 62 * ( + 34 ), - ( COUNT( * ) ) + 4 ) + COUNT( * ) WHEN + 34 + COUNT( * ) * 34 THEN + 37 END THEN 98 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT ( - - COUNT ( * ) ) * - 84 + - - 56 * COUNT ( * ) * + + ( + - CASE ( + 61 ) WHEN - ( 16 ) / + CASE + 58 / - COALESCE ( 62 * ( + 34 ), - ( COUNT ( * ) ) + 4 ) + COUNT ( * ) WHEN + 34 + COUNT ( * ) * 34 THEN + 37 END THEN 98 END ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + 62 * + 69 + - 2 + + COUNT( * ) + 16 * 30 * - + CASE - 66 WHEN ( + 76 ) THEN NULL WHEN 67 + - 71 THEN NULLIF ( - 51, 11 + AVG ( - ( + 1 ) - - 76 ) ) + 64 END * ( - 34 * - ( ( + 67 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT + 62 * + 69 + - 2 + + COUNT ( * ) + 16 * 30 * - + CASE - 66 WHEN ( + 76 ) THEN NULL WHEN 67 + - 71 THEN NULLIF ( - 51, 11 + AVG ( - ( + 1 ) - - 76 ) ) + 64 END * ( - 34 * - ( ( + 67 ) ) )
----
NULL

query I rowsort
SELECT ALL 45 * 99 + - 50 * + 29 * + 10
----
-10045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4393
SELECT ALL - 46 DIV + CAST( - COUNT( * ) AS SIGNED ) + - 33 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - 46 / + CAST ( - COUNT ( * ) AS INTEGER ) + - 33 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4394
SELECT COALESCE ( + 74, + - 2, - 1 * + 89 * - + 28 + - - CASE + + 67 WHEN + 8 THEN NULL WHEN - 91 THEN 1 ELSE NULL END + + 35 ) DIV 1 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4394
SELECT COALESCE ( + 74, + - 2, - 1 * + 89 * - + 28 + - - CASE + + 67 WHEN + 8 THEN NULL WHEN - 91 THEN 1 ELSE NULL END + + 35 ) / 1 AS col2
----
74

query I rowsort
SELECT 19 + + 8
----
27

query I rowsort
SELECT + ( + 49 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL + 54 * - + 35 + + + ( - COUNT( * ) )
----
-1891

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL + 54 * - + 35 + + + ( - COUNT ( * ) )
----
-1891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4398
SELECT + - COUNT( * ) * - 21 + + ( - - 49 ) + + COALESCE ( + - COUNT( * ), - 81, CAST( + + 14 AS SIGNED ) ) + + 32
----
101

skipif mysql # not compatible
query I rowsort label-4398
SELECT + - COUNT ( * ) * - 21 + + ( - - 49 ) + + COALESCE ( + - COUNT ( * ), - 81, CAST ( + + 14 AS INTEGER ) ) + + 32
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL - + 10 * - - 7 + - 48 + 99 * + MAX( + + 75 ) AS col2
----
7307

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - + 10 * - - 7 + - 48 + 99 * + MAX ( + + 75 ) AS col2
----
7307

query I rowsort
SELECT ALL + 94 * + + ( - 77 )
----
-7238

query I rowsort
SELECT - + ( 42 ) + - + 63 AS col0
----
-105

query II rowsort
SELECT + 34, 23 AS col1
----
34
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4403
SELECT ALL MAX( ALL CAST( NULL AS SIGNED ) ) * 77 / + 60 + 49 + - COUNT( * ) + - - 81 + CAST( NULL AS SIGNED ) * - + 86 / - - 76 * + - 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL MAX ( ALL CAST ( NULL AS INTEGER ) ) * 77 / + 60 + 49 + - COUNT ( * ) + - - 81 + CAST ( NULL AS INTEGER ) * - + 86 / - - 76 * + - 63 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT COUNT( * ) AS col1, 67 + - ( + 38 ) + - 53
----
1
-24

skipif mysql # not compatible
query II rowsort label-4404
SELECT COUNT ( * ) AS col1, 67 + - ( + 38 ) + - 53
----
1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT - 73 * + - 86 * + MIN( + 6 ) * 6 + + 41 + + 62 col0
----
226111

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 73 * + - 86 * + MIN ( + 6 ) * 6 + + 41 + + 62 col0
----
226111

query II rowsort
SELECT ALL + ( + - 86 ) * 92 * + 58 + + + 77 + + + 52 - 62 * + - ( 39 ), 79 AS col1
----
-456349
79

query I rowsort
SELECT + 98 * + - 54 + + - 50
----
-5342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4408
SELECT - COALESCE ( - 37, - COUNT( * ) * + - CAST( NULL AS SIGNED ) - - - 67 * - 15 ) + + 18 + 4 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT - COALESCE ( - 37, - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) - - - 67 * - 15 ) + + 18 + 4 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4409
SELECT DISTINCT + CASE - - COUNT( * ) WHEN 2 THEN NULL WHEN 69 THEN - - 77 WHEN - - 28 THEN - CAST( NULL AS SIGNED ) ELSE + 13 END
----
13

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT + CASE - - COUNT ( * ) WHEN 2 THEN NULL WHEN 69 THEN - - 77 WHEN - - 28 THEN - CAST ( NULL AS INTEGER ) ELSE + 13 END
----
13

query I rowsort
SELECT 18 * - 3 * 37 + + 61 AS col0
----
-1937

query I rowsort
SELECT ALL 23 * - - 6 * 75 - - ( 46 )
----
10396

query II rowsort
SELECT + 57, 14 col2
----
57
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL CASE 16 WHEN + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN 97 ELSE + + 3 END
----
3

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL CASE 16 WHEN + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN 97 ELSE + + 3 END
----
3

query II rowsort
SELECT - 68, 71 * 74 + + 57 + - + 16 * 72 AS col1
----
-68
4159

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT - 49 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-4415
SELECT - 49 / + 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4416
SELECT + 54 DIV NULLIF ( 42, - 10 + COUNT( + - 26 ) + 17 + - CAST( NULL AS SIGNED ) * 23 * - ( MAX( + 57 ) ) + 94 * + ( 48 ) * + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-4416
SELECT + 54 / NULLIF ( 42, - 10 + COUNT ( + - 26 ) + 17 + - CAST ( NULL AS INTEGER ) * 23 * - ( MAX ( + 57 ) ) + 94 * + ( 48 ) * + 39 )
----
1

query II rowsort
SELECT ALL 33, 61 col1
----
33
61

query I rowsort
SELECT DISTINCT + - 56 * + 59 AS col1
----
-3304

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT COALESCE ( + COALESCE ( 58, + - COUNT( * ) * - - 34 + + COUNT( + 80 ) ), COUNT( * ) * + ( - 37 ) )
----
58

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT COALESCE ( + COALESCE ( 58, + - COUNT ( * ) * - - 34 + + COUNT ( + 80 ) ), COUNT ( * ) * + ( - 37 ) )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4420
SELECT ALL COUNT( * ) col0, 89
----
1
89

skipif mysql # not compatible
query II rowsort label-4420
SELECT ALL COUNT ( * ) col0, 89
----
1
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4421
SELECT DISTINCT CASE WHEN NOT 45 <= + 25 * + 59 + - - 84 THEN NULL ELSE - + COUNT( * ) - - 31 + + ( - COALESCE ( - COALESCE ( ( 73 ), - 63 DIV 67 ), + 7 * 75 ) ) * - 52 END * - 26
----
97916

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT CASE WHEN NOT 45 <= + 25 * + 59 + - - 84 THEN NULL ELSE - + COUNT ( * ) - - 31 + + ( - COALESCE ( - COALESCE ( ( 73 ), - 63 / 67 ), + 7 * 75 ) ) * - 52 END * - 26
----
97916

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL + 75 + + 26 + COUNT( * ) + - - 8 * 35 AS col2
----
382

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + 75 + + 26 + COUNT ( * ) + - - 8 * 35 AS col2
----
382

query II rowsort
SELECT - 3 col1, + 29 + 58
----
-3
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT - 14, COUNT( * ) - + 28 AS col2
----
-14
-27

skipif mysql # not compatible
query II rowsort label-4424
SELECT - 14, COUNT ( * ) - + 28 AS col2
----
-14
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4425
SELECT + 4 - + CAST( NULL AS DECIMAL ) * COUNT( * ) + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT + 4 - + CAST ( NULL AS REAL ) * COUNT ( * ) + + 52
----
NULL

query I rowsort
SELECT ALL ( - + 65 ) * + + ( + - 8 ) AS col1
----
520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4427
SELECT + COUNT( * ) DIV - - SUM( ALL - ( + - 19 ) ) + 40 col1
----
40

skipif mysql # not compatible
query I rowsort label-4427
SELECT + COUNT ( * ) / - - SUM ( ALL - ( + - 19 ) ) + 40 col1
----
40

query I rowsort
SELECT DISTINCT + ( - 49 ) + - + 31
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL 87 + - COUNT( * ) - - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL 87 + - COUNT ( * ) - - COUNT ( * )
----
87

query I rowsort
SELECT DISTINCT - 56 * + + 80 AS col1
----
-4480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT DISTINCT - + 32 DIV - + 98 * 4 + + + COUNT( * ) + + 88 - - COUNT( * ) * + COUNT( * ) + - + COUNT( * ) + - 70
----
19

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT - + 32 / - + 98 * 4 + + + COUNT ( * ) + + 88 - - COUNT ( * ) * + COUNT ( * ) + - + COUNT ( * ) + - 70
----
19

query I rowsort
SELECT ALL + + ( ( - 52 ) ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4433
SELECT DISTINCT - CASE - ( + 80 ) WHEN CAST( - COALESCE ( 0, - + 63 ) AS SIGNED ) THEN + + 53 DIV + COUNT( + 70 ) + 44 WHEN AVG ( - ( - 96 ) ) THEN + 95 WHEN 44 THEN NULL ELSE SUM( ALL 40 ) END DIV COALESCE ( ( + 15 ), 2 + + 61, 91 ) + - 42 * MIN( 96 * 6 ) AS col2
----
-24194

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT - CASE - ( + 80 ) WHEN CAST ( - COALESCE ( 0, - + 63 ) AS INTEGER ) THEN + + 53 / + COUNT ( + 70 ) + 44 WHEN AVG ( - ( - 96 ) ) THEN + 95 WHEN 44 THEN NULL ELSE SUM ( ALL 40 ) END / COALESCE ( ( + 15 ), 2 + + 61, 91 ) + - 42 * MIN ( 96 * 6 ) AS col2
----
-24194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + + 37 * - 9
----
-333

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT ALL 26 DIV + 28 + 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL 26 / + 28 + 69 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT ALL + 73 DIV - + 55
----
-1

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + 73 / - + 55
----
-1

query I rowsort
SELECT + ( - NULLIF ( - 59, + 71 ) ) AS col2
----
59

query III rowsort
SELECT ( + 5 ) AS col0, 75 + - + 95 - - + 13 AS col1, + 79 + - 9 AS col2
----
5
-7
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - 9 * COUNT( ALL - 36 )
----
-9

skipif mysql # not compatible
query I rowsort label-4440
SELECT - 9 * COUNT ( ALL - 36 )
----
-9

query II rowsort
SELECT - 44 * + 4 * - + COALESCE ( - - 40, + 29 ) AS col1, NULLIF ( - 29, 97 ) + + 35
----
7040
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT + 73 * + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4442
SELECT + 73 * + COUNT ( * )
----
73

query I rowsort
SELECT - 49 - 11 AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT COALESCE ( - 31, COALESCE ( 94, 14 DIV - - 71 * + 68 - COUNT( * ) ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4444
SELECT COALESCE ( - 31, COALESCE ( 94, 14 / - - 71 * + 68 - COUNT ( * ) ) )
----
-31

query I rowsort
SELECT 87 * - 96 + - 8 + - + 61
----
-8421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT NULLIF ( 12, + - 17 / - ( + CASE - CAST( NULL AS SIGNED ) WHEN 28 THEN + 65 ELSE CAST( NULL AS SIGNED ) END ) )
----
12

skipif mysql # not compatible
query I rowsort label-4446
SELECT NULLIF ( 12, + - 17 / - ( + CASE - CAST ( NULL AS INTEGER ) WHEN 28 THEN + 65 ELSE CAST ( NULL AS INTEGER ) END ) )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4447
SELECT - COUNT( * ) + 81 AS col0, + 1
----
80
1

skipif mysql # not compatible
query II rowsort label-4447
SELECT - COUNT ( * ) + 81 AS col0, + 1
----
80
1

query I rowsort
SELECT DISTINCT COALESCE ( 71, NULLIF ( 10, - + 94 ), + 23, - - 46 * + 43 ) AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT ALL - - 66 DIV - 4
----
-16

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - - 66 / - 4
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT ALL + + 49 * ( 42 ) + - - 81 * + - ( COUNT( ALL - 92 ) ) + 76 + 90 DIV COUNT( DISTINCT - 57 ) AS col1
----
2143

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL + + 49 * ( 42 ) + - - 81 * + - ( COUNT ( ALL - 92 ) ) + 76 + 90 / COUNT ( DISTINCT - 57 ) AS col1
----
2143

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT - 48 * CASE - - 40 WHEN - + NULLIF ( - + CASE - MIN( + + 58 ) WHEN 10 THEN NULL ELSE - 13 / - 82 END, + 50 ) THEN - 0 * + SUM( ALL - 96 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT - 48 * CASE - - 40 WHEN - + NULLIF ( - + CASE - MIN ( + + 58 ) WHEN 10 THEN NULL ELSE - 13 / - 82 END, + 50 ) THEN - 0 * + SUM ( ALL - 96 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT - + 90 + CASE + 87 WHEN - ( 50 ) THEN - + 92 WHEN + 95 THEN + COUNT( * ) END - - 23 * 61 + CAST( NULL AS SIGNED ) + - + 60 + - 66 * SUM( ALL + 90 * + 96 ) * - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT - + 90 + CASE + 87 WHEN - ( 50 ) THEN - + 92 WHEN + 95 THEN + COUNT ( * ) END - - 23 * 61 + CAST ( NULL AS INTEGER ) + - + 60 + - 66 * SUM ( ALL + 90 * + 96 ) * - 38 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT - + 84 + + 7 * - 83 - - 10 + - CAST( NULL AS SIGNED ) * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT - + 84 + + 7 * - 83 - - 10 + - CAST ( NULL AS INTEGER ) * + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT + - 9 + + COUNT( * ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-4454
SELECT + - 9 + + COUNT ( * ) col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4455
SELECT - 75 + 54 + + - 83 / - CAST( NULL AS SIGNED ) / - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4455
SELECT - 75 + 54 + + - 83 / - CAST ( NULL AS INTEGER ) / - 68 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT + CAST( NULL AS SIGNED ) / - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT + CAST ( NULL AS INTEGER ) / - 50
----
NULL

query I rowsort
SELECT 72 + ( 91 )
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-4458
SELECT DISTINCT COUNT( * ) + - 17 AS col0, + 33 * - 76 + + 91
----
-16
-2417

skipif mysql # not compatible
query II rowsort label-4458
SELECT DISTINCT COUNT ( * ) + - 17 AS col0, + 33 * - 76 + + 91
----
-16
-2417

query I rowsort
SELECT - 2 + - ( - 5 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL - + COUNT( * ) + - + 55 * - 26
----
1429

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL - + COUNT ( * ) + - + 55 * - 26
----
1429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4461
SELECT ALL + COALESCE ( - NULLIF ( + + 82, - 83 ), - + CASE + 91 WHEN - - 78 + + - 23 * ( + CASE + - NULLIF ( 26, + 12 ) WHEN AVG ( DISTINCT 22 ) THEN NULL ELSE + 64 END ) THEN + 64 * 82 + + CAST( COUNT( * ) AS SIGNED ) DIV - COUNT( * ) END )
----
-82

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + COALESCE ( - NULLIF ( + + 82, - 83 ), - + CASE + 91 WHEN - - 78 + + - 23 * ( + CASE + - NULLIF ( 26, + 12 ) WHEN AVG ( DISTINCT 22 ) THEN NULL ELSE + 64 END ) THEN + 64 * 82 + + CAST ( COUNT ( * ) AS INTEGER ) / - COUNT ( * ) END )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4462
SELECT - 77 + COUNT( 69 ) AS col1, - 12 * SUM( 62 ) * 97 * - - 94 * + 45 + - 0 + 80
----
-76
-305270560

skipif mysql # not compatible
query II rowsort label-4462
SELECT - 77 + COUNT ( 69 ) AS col1, - 12 * SUM ( 62 ) * 97 * - - 94 * + 45 + - 0 + 80
----
-76
-305270560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4463
SELECT DISTINCT 17 + - NULLIF ( COUNT( * ), 14 ) + + 87 * 22 - - 73 DIV 80
----
1930

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT 17 + - NULLIF ( COUNT ( * ), 14 ) + + 87 * 22 - - 73 / 80
----
1930

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT + 44 * - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT + 44 * - COUNT ( * )
----
-44

query I rowsort
SELECT 21 * + 32 * - - 40 AS col0
----
26880

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT ALL 33 * - COUNT( DISTINCT + - 94 ), + 5 AS col1
----
-33
5

skipif mysql # not compatible
query II rowsort label-4466
SELECT ALL 33 * - COUNT ( DISTINCT + - 94 ), + 5 AS col1
----
-33
5

query I rowsort
SELECT 99 + + 25 AS col2
----
124

query I rowsort
SELECT - 65 * 10 + - 77
----
-727

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4469
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - + CASE - - 40 WHEN - 71 + + + SUM( - 60 ) * - 60 THEN 64 ELSE NULL END - - 56 AS col2, - 43 AS col2
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-4469
SELECT DISTINCT CAST ( NULL AS REAL ) - - + CASE - - 40 WHEN - 71 + + + SUM ( - 60 ) * - 60 THEN 64 ELSE NULL END - - 56 AS col2, - 43 AS col2
----
NULL
-43

query I rowsort
SELECT ALL 97 * + 38
----
3686

query I rowsort
SELECT 34 + 77 AS col0
----
111

query I rowsort
SELECT DISTINCT 91 - + 57
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT COUNT( * ) * + - 13
----
-13

skipif mysql # not compatible
query I rowsort label-4473
SELECT COUNT ( * ) * + - 13
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT DISTINCT CASE + - 42 WHEN - MIN( DISTINCT - + 66 ) * - - 47 THEN 86 END / + 23 + + - 94 + - 29 - - 29 + - 48 + + CAST( + + 51 AS SIGNED ) / - SUM( 41 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT CASE + - 42 WHEN - MIN ( DISTINCT - + 66 ) * - - 47 THEN 86 END / + 23 + + - 94 + - 29 - - 29 + - 48 + + CAST ( + + 51 AS INTEGER ) / - SUM ( 41 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 24 + + + 62
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT NULLIF ( - 98, + 14 + - 9 * - 24 ) DIV + 83
----
-1

skipif mysql # not compatible
query I rowsort label-4476
SELECT NULLIF ( - 98, + 14 + - 9 * - 24 ) / + 83
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT NULLIF ( - 53, - COUNT( * ) ) + + 5 + 51 * - MAX( + + 71 ) * - - 81 * - - 67 + COALESCE ( + 30, - - COUNT( ALL + 87 ) ) * + 9
----
-19650945

skipif mysql # not compatible
query I rowsort label-4477
SELECT NULLIF ( - 53, - COUNT ( * ) ) + + 5 + 51 * - MAX ( + + 71 ) * - - 81 * - - 67 + COALESCE ( + 30, - - COUNT ( ALL + 87 ) ) * + 9
----
-19650945

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT DISTINCT - COUNT( * ) AS col1, 44 AS col2
----
-1
44

skipif mysql # not compatible
query II rowsort label-4478
SELECT DISTINCT - COUNT ( * ) AS col1, 44 AS col2
----
-1
44

query I rowsort
SELECT ALL - 19 * + + 68
----
-1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT ALL ( + 93 ) + - CAST( + 54 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL ( + 93 ) + - CAST ( + 54 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + 7 * 47 + - 69 - + - ( - ( MIN( - 53 ) ) ) + - 7 * + + 6 + + 97 * 27 * + + ( + 10 ) * 19
----
497881

skipif mysql # not compatible
query I rowsort label-4481
SELECT + 7 * 47 + - 69 - + - ( - ( MIN ( - 53 ) ) ) + - 7 * + + 6 + + 97 * 27 * + + ( + 10 ) * 19
----
497881

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL MAX( DISTINCT - 17 ) + + 23
----
6

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL MAX ( DISTINCT - 17 ) + + 23
----
6

query I rowsort
SELECT DISTINCT + 41 + 94 col1
----
135

query I rowsort
SELECT ALL 62 * - + 5
----
-310

query I rowsort
SELECT ( - NULLIF ( + 43, + + 28 * 10 ) )
----
-43

query I rowsort
SELECT - 6 + + - 38
----
-44

query I rowsort
SELECT ALL + - 51 + + 15
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT DISTINCT 70, + 78 * COUNT( * ) AS col0
----
70
78

skipif mysql # not compatible
query II rowsort label-4488
SELECT DISTINCT 70, + 78 * COUNT ( * ) AS col0
----
70
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL + + 76 + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + + 76 + COUNT ( * ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4491
SELECT DISTINCT - COUNT( * ), + 96 * + CASE - - NULLIF ( 77, ( - 89 ) + - 60 ) WHEN - 97 THEN NULL WHEN - CAST( - 20 AS SIGNED ) THEN - 3 + + 66 ELSE NULL END + - 21 col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4491
SELECT DISTINCT - COUNT ( * ), + 96 * + CASE - - NULLIF ( 77, ( - 89 ) + - 60 ) WHEN - 97 THEN NULL WHEN - CAST ( - 20 AS INTEGER ) THEN - 3 + + 66 ELSE NULL END + - 21 col1
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4492
SELECT 87 * + 56 + - - CAST( + - 45 AS SIGNED ) + - - SUM( ALL - 84 )
----
4743

skipif mysql # not compatible
query I rowsort label-4492
SELECT 87 * + 56 + - - CAST ( + - 45 AS INTEGER ) + - - SUM ( ALL - 84 )
----
4743

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT - 48, COALESCE ( COUNT( * ), + 20 ) AS col0
----
-48
1

skipif mysql # not compatible
query II rowsort label-4493
SELECT - 48, COALESCE ( COUNT ( * ), + 20 ) AS col0
----
-48
1

query I rowsort
SELECT - + NULLIF ( 72, 11 )
----
-72

query I rowsort
SELECT ALL - + ( 73 ) + 93 AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4496
SELECT ALL + + 71 * - 91 + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) + - - 16
----
NULL
17

skipif mysql # not compatible
query II rowsort label-4496
SELECT ALL + + 71 * - 91 + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) + - - 16
----
NULL
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4497
SELECT + 71 AS col1, - 32 - + 44 + - CASE - CASE - - 25 WHEN + 34 THEN NULL WHEN - 68 THEN 84 WHEN + COUNT( - - 68 ) * + 13 - + ( 73 ) THEN NULL END WHEN + ( 18 ) - + 62 THEN 53 + COUNT( DISTINCT 29 ) ELSE NULL END + CASE + CAST( NULL AS SIGNED ) WHEN 69 THEN 26 * SUM( ALL 0 ) WHEN CAST( + 99 AS SIGNED ) * - 7 THEN 66 + + COUNT( * ) ELSE NULL END
----
71
NULL

skipif mysql # not compatible
query II rowsort label-4497
SELECT + 71 AS col1, - 32 - + 44 + - CASE - CASE - - 25 WHEN + 34 THEN NULL WHEN - 68 THEN 84 WHEN + COUNT ( - - 68 ) * + 13 - + ( 73 ) THEN NULL END WHEN + ( 18 ) - + 62 THEN 53 + COUNT ( DISTINCT 29 ) ELSE NULL END + CASE + CAST ( NULL AS INTEGER ) WHEN 69 THEN 26 * SUM ( ALL 0 ) WHEN CAST ( + 99 AS INTEGER ) * - 7 THEN 66 + + COUNT ( * ) ELSE NULL END
----
71
NULL

query I rowsort
SELECT ALL - 31 - + 18 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT + 73 * + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT + 73 * + COUNT ( * ) AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT - ( 81 ) DIV - 50 - - NULLIF ( + 84, - + ( + 42 ) + 61 )
----
85

skipif mysql # not compatible
query I rowsort label-4500
SELECT - ( 81 ) / - 50 - - NULLIF ( + 84, - + ( + 42 ) + 61 )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4501
SELECT + 58 * + MAX( DISTINCT - 67 ) * + 56 + + + 45 DIV + 91 + - 77 * - 95 AS col2
----
-210301

skipif mysql # not compatible
query I rowsort label-4501
SELECT + 58 * + MAX ( DISTINCT - 67 ) * + 56 + + + 45 / + 91 + - 77 * - 95 AS col2
----
-210301

query II rowsort
SELECT DISTINCT + 24 - - 91 + 95 col2, + 33
----
210
33

query I rowsort
SELECT DISTINCT + 40 * 12
----
480

query I rowsort
SELECT DISTINCT - 77 * 54 * - 44
----
182952

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL - MIN( DISTINCT + - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - MIN ( DISTINCT + - 57 )
----
57

query I rowsort
SELECT 28 * + 53 AS col1
----
1484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT DISTINCT - CAST( 96 AS SIGNED ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - CAST ( 96 AS INTEGER ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT - 98 * + + 57 + COUNT( * )
----
-5585

skipif mysql # not compatible
query I rowsort label-4508
SELECT - 98 * + + 57 + COUNT ( * )
----
-5585

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT - 16 * + + 92 - COUNT( * ) + + 53
----
-1420

skipif mysql # not compatible
query I rowsort label-4509
SELECT - 16 * + + 92 - COUNT ( * ) + + 53
----
-1420

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT MAX( DISTINCT - + 55 ) * - + 11 AS col1
----
605

skipif mysql # not compatible
query I rowsort label-4510
SELECT MAX ( DISTINCT - + 55 ) * - + 11 AS col1
----
605

query I rowsort
SELECT ALL NULLIF ( + 29, + - COALESCE ( - 66, - 34 ) * 26 ) * - - 34 * - 92 AS col1
----
-90712

query I rowsort
SELECT DISTINCT 79 * - 68 * - 48
----
257856

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT COUNT( * ) + 68 * + 32
----
2177

skipif mysql # not compatible
query I rowsort label-4513
SELECT COUNT ( * ) + 68 * + 32
----
2177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT ALL + ( - - 61 ) DIV + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + ( - - 61 ) / + + COUNT ( * )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4515
SELECT ALL - CAST( MAX( - 60 ) AS SIGNED ) + 79 * + ( - COUNT( * ) ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - CAST ( MAX ( - 60 ) AS INTEGER ) + 79 * + ( - COUNT ( * ) ) col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT DISTINCT ( + COALESCE ( + CAST( NULL AS SIGNED ), - 23 ) ) + - + COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT ( + COALESCE ( + CAST ( NULL AS INTEGER ), - 23 ) ) + - + COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT + SUM( ALL + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-4517
SELECT + SUM ( ALL + 80 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4518
SELECT ( + 78 ) * + - NULLIF ( COUNT( * ), + COUNT( * ) / + - NULLIF ( - + 33, + SUM( + - 50 ) ) * 34 * COUNT( * ) ) + - 22, - COUNT( * ) + + 4 + - CASE + 1 WHEN + 96 - COUNT( * ) * 24 THEN - 45 WHEN - CAST( NULL AS DECIMAL ) + + ( 70 ) THEN NULL WHEN + 77 THEN NULL END * 12 AS col1
----
-100
NULL

skipif mysql # not compatible
query II rowsort label-4518
SELECT ( + 78 ) * + - NULLIF ( COUNT ( * ), + COUNT ( * ) / + - NULLIF ( - + 33, + SUM ( + - 50 ) ) * 34 * COUNT ( * ) ) + - 22, - COUNT ( * ) + + 4 + - CASE + 1 WHEN + 96 - COUNT ( * ) * 24 THEN - 45 WHEN - CAST ( NULL AS REAL ) + + ( 70 ) THEN NULL WHEN + 77 THEN NULL END * 12 AS col1
----
-100
NULL

query I rowsort
SELECT 43 + - + 95 * - + 50 AS col1
----
4793

query I rowsort
SELECT ALL + 62 + + + 29
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4521
SELECT CASE - - 3 WHEN - - 42 THEN + + 96 WHEN - + COUNT( * ) THEN NULL END + - AVG ( - 90 ) + + - 93 * - CAST( NULL AS SIGNED ) / + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT CASE - - 3 WHEN - - 42 THEN + + 96 WHEN - + COUNT ( * ) THEN NULL END + - AVG ( - 90 ) + + - 93 * - CAST ( NULL AS INTEGER ) / + + 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4522
SELECT + + 51 * - 15 AS col0, COUNT( * ) AS col1
----
-765
1

skipif mysql # not compatible
query II rowsort label-4522
SELECT + + 51 * - 15 AS col0, COUNT ( * ) AS col1
----
-765
1

query I rowsort
SELECT 82 * 70 + - 4 + ( - 96 ) * 37 AS col1
----
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL - 76 + CAST( 22 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - 76 + CAST ( 22 AS INTEGER )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT DISTINCT - 18 DIV - 91 * + + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT - 18 / - 91 * + + 27 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + + COUNT( * ) + 84 - + + 79 - + 34 * - 31 AS col0
----
1060

skipif mysql # not compatible
query I rowsort label-4526
SELECT + + COUNT ( * ) + 84 - + + 79 - + 34 * - 31 AS col0
----
1060

query I rowsort
SELECT ALL + - 23 + 37 - + - 20
----
34

query I rowsort
SELECT DISTINCT + 38 * - 99 AS col0
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT + - 32 + 98 * COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4529
SELECT + - 32 + 98 * COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT - COUNT( DISTINCT + - 31 ) - + 9 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT - COUNT ( DISTINCT + - 31 ) - + 9 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4531
SELECT DISTINCT + 94 - COUNT( * ) + + COUNT( * ) DIV COUNT( * ) col1, - 97 * + 5 * + 68 * + COALESCE ( - - 84, - + 5 + + MAX( + 15 ) ), + NULLIF ( - 44, MIN( DISTINCT - 69 ) ) * 61 AS col0
----
94
-2770320
-2684

skipif mysql # not compatible
query III rowsort label-4531
SELECT DISTINCT + 94 - COUNT ( * ) + + COUNT ( * ) / COUNT ( * ) col1, - 97 * + 5 * + 68 * + COALESCE ( - - 84, - + 5 + + MAX ( + 15 ) ), + NULLIF ( - 44, MIN ( DISTINCT - 69 ) ) * 61 AS col0
----
94
-2770320
-2684

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT 81 * + NULLIF ( - - COUNT( * ), - 93 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT 81 * + NULLIF ( - - COUNT ( * ), - 93 ) AS col1
----
81

query I rowsort
SELECT + + 55 * 91
----
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + - MIN( ALL - + 50 ) + + 99 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-4534
SELECT + - MIN ( ALL - + 50 ) + + 99 AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT + + 5 + 29 + - 63 * + - CASE + - 77 WHEN + 25 * + - 23 + - MIN( + - 87 ) THEN CASE 62 WHEN - 85 THEN NULL ELSE - + 76 END WHEN + + 17 THEN + NULLIF ( - 6, - 89 ) END * 90 - + 43 * 12 * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT + + 5 + 29 + - 63 * + - CASE + - 77 WHEN + 25 * + - 23 + - MIN ( + - 87 ) THEN CASE 62 WHEN - 85 THEN NULL ELSE - + 76 END WHEN + + 17 THEN + NULLIF ( - 6, - 89 ) END * 90 - + 43 * 12 * COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL ( ( 35 ) )
----
35

query I rowsort
SELECT - 95 * - + 82 AS col0
----
7790

query I rowsort
SELECT - - 31 + - - ( - 56 ) * - 72 col2
----
4063

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT - 68 DIV - + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4539
SELECT - 68 / - + 61 AS col2
----
1

query I rowsort
SELECT - ( + + 3 ) col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4541
SELECT - NULLIF ( + + 96, + COALESCE ( 39, MAX( + + 98 ) ) + - 48 / + 68 + COUNT( * ) + + 77 * - AVG ( 16 ) ) + + + 78, - COUNT( * ) - 84 AS col0
----
-18
-85

skipif mysql # not compatible
query II rowsort label-4541
SELECT - NULLIF ( + + 96, + COALESCE ( 39, MAX ( + + 98 ) ) + - 48 / + 68 + COUNT ( * ) + + 77 * - AVG ( 16 ) ) + + + 78, - COUNT ( * ) - 84 AS col0
----
-18
-85

query I rowsort
SELECT - 50 + - + 32 + 23 AS col0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4543
SELECT - COUNT( * ) * + 19 DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT - COUNT ( * ) * + 19 / + 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT DISTINCT - MIN( DISTINCT 52 ) * - - ( ( - + COUNT( * ) ) ) + - - 8 * 9 * 39 AS col1
----
2860

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - MIN ( DISTINCT 52 ) * - - ( ( - + COUNT ( * ) ) ) + - - 8 * 9 * 39 AS col1
----
2860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT DISTINCT 80 * + 76 + + CAST( 90 AS SIGNED )
----
6170

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT 80 * + 76 + + CAST ( 90 AS INTEGER )
----
6170

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT - 47 * MAX( ALL + + 27 ) + - 16
----
-1285

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT - 47 * MAX ( ALL + + 27 ) + - 16
----
-1285

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - 72 + - 59 + + + COALESCE ( - + 81, 51 + + + 28 + - COUNT( * ) ) * 6 AS col1
----
-617

skipif mysql # not compatible
query I rowsort label-4547
SELECT - 72 + - 59 + + + COALESCE ( - + 81, 51 + + + 28 + - COUNT ( * ) ) * 6 AS col1
----
-617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL CASE - + NULLIF ( + 68, 30 ) WHEN + 87 + - 19 THEN 83 WHEN ( CAST( NULL AS SIGNED ) ) THEN - 93 ELSE NULL END * + 58 + + MAX( ALL + 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL CASE - + NULLIF ( + 68, 30 ) WHEN + 87 + - 19 THEN 83 WHEN ( CAST ( NULL AS INTEGER ) ) THEN - 93 ELSE NULL END * + 58 + + MAX ( ALL + 14 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT NULLIF ( + + 6, - + COUNT( * ) ) * + 91 + - 81 AS col0
----
465

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT NULLIF ( + + 6, - + COUNT ( * ) ) * + 91 + - 81 AS col0
----
465

query I rowsort
SELECT NULLIF ( 84, - 46 / + - 20 - - 72 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL 92 * - CASE - ( + - 4 ) WHEN - ( - 80 ) * + + 81 * + - COUNT( * ) THEN - 52 * - 77 WHEN - 64 * + 17 THEN - ( + 11 ) END / + 14 * + 61 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL 92 * - CASE - ( + - 4 ) WHEN - ( - 80 ) * + + 81 * + - COUNT ( * ) THEN - 52 * - 77 WHEN - 64 * + 17 THEN - ( + 11 ) END / + 14 * + 61 + + 64
----
NULL

query I rowsort
SELECT DISTINCT 21 * - 85 + + - 46
----
-1831

query II rowsort
SELECT - 54 AS col0, 88 * ( - - 22 ) AS col2
----
-54
1936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT - ( 33 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT - ( 33 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 80 AS col0, 98 AS col0
----
80
98

query II rowsort
SELECT ALL + 27 AS col2, 37 * 36 AS col2
----
27
1332

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT COUNT( * ) * + 3 - 40 * + COUNT( * ) * - 26 * 22 AS col2
----
22883

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT COUNT ( * ) * + 3 - 40 * + COUNT ( * ) * - 26 * 22 AS col2
----
22883

query I rowsort
SELECT ALL + 39 * - + 30 AS col2
----
-1170

query I rowsort
SELECT ALL + ( 13 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + CASE SUM( + 14 ) WHEN 21 THEN - - 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT + CASE SUM ( + 14 ) WHEN 21 THEN - - 17 END AS col1
----
NULL

query I rowsort
SELECT + - 95 + - 56 + 69
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT - - COUNT( 90 ) DIV + 97 - - 73
----
73

skipif mysql # not compatible
query I rowsort label-4562
SELECT - - COUNT ( 90 ) / + 97 - - 73
----
73

query I rowsort
SELECT + 13 * + + 54 AS col0
----
702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4564
SELECT ALL ( - ( + CASE 44 WHEN - 63 + + COUNT( * ) + + 57 * - 37 * - 0 THEN + COUNT( * ) + - - ( + - 59 ) * 38 DIV - COUNT( * ) DIV - - 3 + 78 * + 5 WHEN + 3 + + 26 DIV + 32 THEN NULL ELSE - 16 - 82 END ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL ( - ( + CASE 44 WHEN - 63 + + COUNT ( * ) + + 57 * - 37 * - 0 THEN + COUNT ( * ) + - - ( + - 59 ) * 38 / - COUNT ( * ) / - - 3 + 78 * + 5 WHEN + 3 + + 26 / + 32 THEN NULL ELSE - 16 - 82 END ) ) AS col2
----
98

query I rowsort
SELECT + 57 * 67
----
3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT + ( - 35 ) * + + 51 * + CAST( - NULLIF ( + NULLIF ( 24, - 78 ), + 24 / 55 + - + 43 + - 43 + 49 * 79 * + 42 * 84 + 68 ) AS SIGNED )
----
42840

skipif mysql # not compatible
query I rowsort label-4566
SELECT + ( - 35 ) * + + 51 * + CAST ( - NULLIF ( + NULLIF ( 24, - 78 ), + 24 / 55 + - + 43 + - 43 + 49 * 79 * + 42 * 84 + 68 ) AS INTEGER )
----
42840

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + - 46 * - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4567
SELECT + - 46 * - COUNT ( * ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT ALL COUNT( * ) * + NULLIF ( 54, + ( - CAST( + ( + + 97 ) AS SIGNED ) ) ) col2
----
54

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL COUNT ( * ) * + NULLIF ( 54, + ( - CAST ( + ( + + 97 ) AS INTEGER ) ) ) col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4569
SELECT + 80 * 27 * - 87 + MAX( + 68 ) AS col1, 50 + + CAST( + 32 AS SIGNED ) * 16 AS col2
----
-187852
562

skipif mysql # not compatible
query II rowsort label-4569
SELECT + 80 * 27 * - 87 + MAX ( + 68 ) AS col1, 50 + + CAST ( + 32 AS INTEGER ) * 16 AS col2
----
-187852
562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT DISTINCT + 13 / + - CAST( NULL AS SIGNED ) + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT + 13 / + - CAST ( NULL AS INTEGER ) + 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT + - NULLIF ( + 68, 88 ) * 68 + - + COUNT( * ), CASE 71 WHEN + 98 THEN NULL WHEN - ( 36 ) THEN NULL ELSE + 11 * - 64 END * - 66 col2
----
-4625
46464

skipif mysql # not compatible
query II rowsort label-4571
SELECT + - NULLIF ( + 68, 88 ) * 68 + - + COUNT ( * ), CASE 71 WHEN + 98 THEN NULL WHEN - ( 36 ) THEN NULL ELSE + 11 * - 64 END * - 66 col2
----
-4625
46464

query I rowsort
SELECT DISTINCT - 32 * - 12 AS col2
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL + ( + MAX( DISTINCT - 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL + ( + MAX ( DISTINCT - 29 ) )
----
-29

query II rowsort
SELECT 57, - 93 - - 78 AS col2
----
57
-15

query I rowsort
SELECT + 39 + 84 + + 82 * ( + 42 ) col1
----
3567

query I rowsort
SELECT ALL ( + - 7 ) * 52 AS col2
----
-364

query I rowsort
SELECT + 56 * + - 67 * 86
----
-322672

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT DISTINCT ( + - ( 16 ) ) + 33 AS col1, + CASE WHEN NULL NOT BETWEEN 9 AND ( NULL ) THEN ( - 56 ) END / + + ( - - AVG ( ALL + + 32 ) ) + + COUNT( * ) * + 64 col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4578
SELECT DISTINCT ( + - ( 16 ) ) + 33 AS col1, + CASE WHEN NULL NOT BETWEEN 9 AND ( NULL ) THEN ( - 56 ) END / + + ( - - AVG ( ALL + + 32 ) ) + + COUNT ( * ) * + 64 col2
----
17
NULL

query I rowsort
SELECT - ( + + ( - - 6 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT + 9 - + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4580
SELECT + 9 - + COUNT ( * )
----
8

query II rowsort
SELECT - 96 AS col0, - COALESCE ( 79, - 39 * + - ( + 91 ) + + 0 )
----
-96
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4582
SELECT ALL CASE 57 WHEN + 17 * + 22 * - + 41 + + MAX( DISTINCT - 7 ) - + 95 * + COUNT( DISTINCT - 70 ) * + 61 * - + CAST( NULL AS SIGNED ) - - 74 THEN 49 + + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL CASE 57 WHEN + 17 * + 22 * - + 41 + + MAX ( DISTINCT - 7 ) - + 95 * + COUNT ( DISTINCT - 70 ) * + 61 * - + CAST ( NULL AS INTEGER ) - - 74 THEN 49 + + 20 END
----
NULL

query I rowsort
SELECT ALL 67 + + - 74 + + 2 + + ( 74 )
----
69

query II rowsort
SELECT - 7 AS col1, 42
----
-7
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT ALL + SUM( + 92 ) AS col0, + 41
----
92
41

skipif mysql # not compatible
query II rowsort label-4585
SELECT ALL + SUM ( + 92 ) AS col0, + 41
----
92
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - 31 - - + SUM( ALL + 33 )
----
2

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 31 - - + SUM ( ALL + 33 )
----
2

query II rowsort
SELECT ALL - 70 * + 29, 19 * - 37 AS col2
----
-2030
-703

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT - 49 DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT - 49 / - 76 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT ALL COUNT( * ) DIV - 36 + 83 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL COUNT ( * ) / - 36 + 83 AS col2
----
83

query I rowsort
SELECT ALL + 97 * 47
----
4559

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT DISTINCT - COUNT( * ) AS col0, 18 + + NULLIF ( 95, - COUNT( * ) + - + 50 + + - 96 * COUNT( + 98 ) )
----
-1
113

skipif mysql # not compatible
query II rowsort label-4591
SELECT DISTINCT - COUNT ( * ) AS col0, 18 + + NULLIF ( 95, - COUNT ( * ) + - + 50 + + - 96 * COUNT ( + 98 ) )
----
-1
113

onlyif mysql # aggregate syntax: 
query II rowsort label-4592
SELECT DISTINCT - COUNT( * ) AS col2, - 19 + - 52 AS col1
----
-1
-71

skipif mysql # not compatible
query II rowsort label-4592
SELECT DISTINCT - COUNT ( * ) AS col2, - 19 + - 52 AS col1
----
-1
-71

query II rowsort
SELECT DISTINCT - 64 AS col0, + 61 AS col0
----
-64
61

query I rowsort
SELECT + 52 * + 96
----
4992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT 72 + + COUNT( * ) + + + 5 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT 72 + + COUNT ( * ) + + + 5 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL - MIN( - - 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL - MIN ( - - 47 ) AS col0
----
-47

query I rowsort
SELECT + 19 + + + 7
----
26

query II rowsort
SELECT 0 col0, 64
----
0
64

query I rowsort
SELECT 64 * 80 + 94
----
5214

query I rowsort
SELECT - 11 * 49 AS col1
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL - + 52 * - + SUM( 11 ) col0
----
572

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - + 52 * - + SUM ( 11 ) col0
----
572

query I rowsort
SELECT DISTINCT - + ( 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-4603
SELECT ALL COUNT( * ), 36 AS col2
----
1
36

skipif mysql # not compatible
query II rowsort label-4603
SELECT ALL COUNT ( * ), 36 AS col2
----
1
36

query I rowsort
SELECT ALL 99 * - 82
----
-8118

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT COALESCE ( + 31, - + 74 * + MIN( 64 ), + 85 ) + + 93 * + 62 + 65
----
5862

skipif mysql # not compatible
query I rowsort label-4605
SELECT COALESCE ( + 31, - + 74 * + MIN ( 64 ), + 85 ) + + 93 * + 62 + 65
----
5862

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT - - 51, + CASE + 14 WHEN 23 * + - 55 * - 14 - MAX( - COALESCE ( + ( 22 ), 79, 65 + + 31 ) ) * 27 THEN - 51 + + 13 WHEN - NULLIF ( 16, SUM( + 38 ) ) THEN NULL END * 56 AS col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-4606
SELECT - - 51, + CASE + 14 WHEN 23 * + - 55 * - 14 - MAX ( - COALESCE ( + ( 22 ), 79, 65 + + 31 ) ) * 27 THEN - 51 + + 13 WHEN - NULLIF ( 16, SUM ( + 38 ) ) THEN NULL END * 56 AS col1
----
51
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT 44 DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT 44 / - 89 AS col2
----
0

query I rowsort
SELECT DISTINCT 68 + - 35 * - - 67 col0
----
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL ( - COUNT( * ) ) + - - 93
----
92

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL ( - COUNT ( * ) ) + - - 93
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ALL COUNT( * ) + - 24
----
-23

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL COUNT ( * ) + - 24
----
-23

query I rowsort
SELECT 27 + 24 - - 10
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4612
SELECT ALL COUNT( * ) DIV + - NULLIF ( - 35, - + ( + 45 ) + - NULLIF ( - COUNT( * ), + 87 * + ( + 47 ) * + 76 * - - 68 ) ) col2, + 85
----
0
85

skipif mysql # not compatible
query II rowsort label-4612
SELECT ALL COUNT ( * ) / + - NULLIF ( - 35, - + ( + 45 ) + - NULLIF ( - COUNT ( * ), + 87 * + ( + 47 ) * + 76 * - - 68 ) ) col2, + 85
----
0
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT 34 / - CASE + 21 WHEN + 13 * + 68 THEN - 44 WHEN + 33 - MIN( DISTINCT + - 58 ) * + 4 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT 34 / - CASE + 21 WHEN + 13 * + 68 THEN - 44 WHEN + 33 - MIN ( DISTINCT + - 58 ) * + 4 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 91 + - 95 * + 11
----
-1136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT DISTINCT 56 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT 56 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT COUNT( * ) + 30 - + + 86
----
-55

skipif mysql # not compatible
query I rowsort label-4616
SELECT COUNT ( * ) + 30 - + + 86
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL SUM( ALL - 77 ) + + + 26 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL SUM ( ALL - 77 ) + + + 26 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT 33 + + NULLIF ( 33, - COUNT( * ) * 56 - + 50 * CASE + NULLIF ( 13, + MAX( - 64 ) + NULLIF ( + 15, + 6 ) ) WHEN - + 85 * 86 * - - 36 + 16 * 86 THEN NULL WHEN MIN( - ( 33 ) ) THEN - 48 * 0 END ) * 18 col1
----
627

skipif mysql # not compatible
query I rowsort label-4618
SELECT 33 + + NULLIF ( 33, - COUNT ( * ) * 56 - + 50 * CASE + NULLIF ( 13, + MAX ( - 64 ) + NULLIF ( + 15, + 6 ) ) WHEN - + 85 * 86 * - - 36 + 16 * 86 THEN NULL WHEN MIN ( - ( 33 ) ) THEN - 48 * 0 END ) * 18 col1
----
627

query I rowsort
SELECT 69 * - ( 57 ) AS col0
----
-3933

query I rowsort
SELECT DISTINCT 96 * + - 14 AS col1
----
-1344

query I rowsort
SELECT ALL 55 + + 38
----
93

query I rowsort
SELECT ALL 13 + + - 96
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT DISTINCT 60 * - - COALESCE ( - CASE + NULLIF ( + SUM( DISTINCT 30 ), + + 90 ) WHEN 8 THEN + 46 DIV + + 84 * + - 38 END, + 71 )
----
4260

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT 60 * - - COALESCE ( - CASE + NULLIF ( + SUM ( DISTINCT 30 ), + + 90 ) WHEN 8 THEN + 46 / + + 84 * + - 38 END, + 71 )
----
4260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4624
SELECT ( - + 21 ) DIV - COUNT( * ) + COUNT( * ) + 67 * - COUNT( * ) + - 58 AS col1, - 37 + + 10
----
-103
-27

skipif mysql # not compatible
query II rowsort label-4624
SELECT ( - + 21 ) / - COUNT ( * ) + COUNT ( * ) + 67 * - COUNT ( * ) + - 58 AS col1, - 37 + + 10
----
-103
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT ALL - 30 - - - ( + + ( COUNT( * ) ) ) * - 43 + NULLIF ( + 35, + CASE + 82 WHEN COUNT( * ) / - - 21 THEN NULL WHEN + + 22 * ( - 74 ) THEN - 22 WHEN + 31 - + ( 56 ) THEN 59 ELSE + 24 END ) - CAST( NULLIF ( - ( - COUNT( * ) ), + ( - 49 ) + 26 * + 61 ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - 30 - - - ( + + ( COUNT ( * ) ) ) * - 43 + NULLIF ( + 35, + CASE + 82 WHEN COUNT ( * ) / - - 21 THEN NULL WHEN + + 22 * ( - 74 ) THEN - 22 WHEN + 31 - + ( 56 ) THEN 59 ELSE + 24 END ) - CAST ( NULLIF ( - ( - COUNT ( * ) ), + ( - 49 ) + 26 * + 61 ) AS INTEGER )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT + 8 DIV + + 85 + + 27 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4626
SELECT + 8 / + + 85 + + 27 AS col0
----
27

query II rowsort
SELECT + 50 * - 10 AS col1, - 25 - 92
----
-500
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT - 6 * - COUNT( * ) + 39 + - CASE + 32 WHEN + 3 + + COUNT( DISTINCT 75 ) / + + MIN( DISTINCT + ( 76 ) ) THEN CASE 96 WHEN 42 THEN 4 END / 20 END + + 50 - NULLIF ( + 80, COUNT( * ) - COUNT( * ) * COUNT( * ) ) * + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT - 6 * - COUNT ( * ) + 39 + - CASE + 32 WHEN + 3 + + COUNT ( DISTINCT 75 ) / + + MIN ( DISTINCT + ( 76 ) ) THEN CASE 96 WHEN 42 THEN 4 END / 20 END + + 50 - NULLIF ( + 80, COUNT ( * ) - COUNT ( * ) * COUNT ( * ) ) * + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT - + MIN( + - 35 ) * - 72 + - ( - 28 )
----
-2492

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - + MIN ( + - 35 ) * - 72 + - ( - 28 )
----
-2492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4630
SELECT ALL - CASE - MIN( ALL CAST( + 1 AS SIGNED ) ) WHEN + ( - 63 ) THEN NULL WHEN + 8 THEN 3 ELSE - NULLIF ( - 40, + 33 - - - 79 ) END * - 78 * 28
----
87360

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - CASE - MIN ( ALL CAST ( + 1 AS INTEGER ) ) WHEN + ( - 63 ) THEN NULL WHEN + 8 THEN 3 ELSE - NULLIF ( - 40, + 33 - - - 79 ) END * - 78 * 28
----
87360

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ( + COALESCE ( - 93, + - 24 ) ) * + 67 - ( + 73 ) * + MAX( DISTINCT 61 ) * + - ( + 15 ) * 71 - 25 AS col1
----
4736189

skipif mysql # not compatible
query I rowsort label-4631
SELECT ( + COALESCE ( - 93, + - 24 ) ) * + 67 - ( + 73 ) * + MAX ( DISTINCT 61 ) * + - ( + 15 ) * 71 - 25 AS col1
----
4736189

onlyif mysql # aggregate syntax: 
query II rowsort label-4632
SELECT ALL - 13 * 49 col1, COUNT( * ) AS col2
----
-637
1

skipif mysql # not compatible
query II rowsort label-4632
SELECT ALL - 13 * 49 col1, COUNT ( * ) AS col2
----
-637
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + 66 * 30 + - 9 - - COUNT( * )
----
1972

skipif mysql # not compatible
query I rowsort label-4633
SELECT + 66 * 30 + - 9 - - COUNT ( * )
----
1972

onlyif mysql # aggregate syntax: 
query II rowsort label-4634
SELECT ALL - + 49 + - + 42 * COUNT( * ) * + + 12 * + 29 * - MIN( - + 96 ) AS col0, 93
----
-1403185
93

skipif mysql # not compatible
query II rowsort label-4634
SELECT ALL - + 49 + - + 42 * COUNT ( * ) * + + 12 * + 29 * - MIN ( - + 96 ) AS col0, 93
----
-1403185
93

query I rowsort
SELECT DISTINCT - 5 + 77
----
72

query I rowsort
SELECT - ( 64 ) * 27 * - 27 AS col1
----
46656

query I rowsort
SELECT 25 * - 78 + 42 + + + 96 + 93
----
-1719

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT - ( ( - - COUNT( * ) ) ) + - - 37 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT - ( ( - - COUNT ( * ) ) ) + - - 37 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL COUNT( - 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL COUNT ( - 89 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4640
SELECT 37 * - ( CAST( + ( + 87 ) AS SIGNED ) ) col2
----
-3219

skipif mysql # not compatible
query I rowsort label-4640
SELECT 37 * - ( CAST ( + ( + 87 ) AS INTEGER ) ) col2
----
-3219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4641
SELECT ALL - ( + MAX( 35 ) ) + - 65 + + SUM( ALL 37 ) * - 13 + 42 AS col0, 98 / + 61 + - + CAST( NULL AS SIGNED ) - + ( 8 ) AS col1
----
-539
NULL

skipif mysql # not compatible
query II rowsort label-4641
SELECT ALL - ( + MAX ( 35 ) ) + - 65 + + SUM ( ALL 37 ) * - 13 + 42 AS col0, 98 / + 61 + - + CAST ( NULL AS INTEGER ) - + ( 8 ) AS col1
----
-539
NULL

query II rowsort
SELECT - 91, 93 + - - 8 AS col1
----
-91
101

query I rowsort
SELECT ALL + COALESCE ( - 5, 44, 73 * 45 ) + - 40 * - 50 AS col1
----
1995

query I rowsort
SELECT ALL 74 + - NULLIF ( 93, + 2 ) AS col1
----
-19

query II rowsort
SELECT - 94 col0, 57 AS col0
----
-94
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4646
SELECT ALL COUNT( ALL - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL COUNT ( ALL - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL - ( 42 ) * + + 3 * COALESCE ( 48, - - COUNT( * ) ) * NULLIF ( MAX( DISTINCT - + 28 ), - + 43 ) + - 29 col2
----
169315

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - ( 42 ) * + + 3 * COALESCE ( 48, - - COUNT ( * ) ) * NULLIF ( MAX ( DISTINCT - + 28 ), - + 43 ) + - 29 col2
----
169315

query I rowsort
SELECT 37 + - 49
----
-12

query I rowsort
SELECT 78 + - 70
----
8

query I rowsort
SELECT ALL 14 - 95 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT - COUNT( * ) * + CASE - 5 WHEN - 60 THEN 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT - COUNT ( * ) * + CASE - 5 WHEN - 60 THEN 18 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT + COALESCE ( - - ( NULLIF ( + - 99, + NULLIF ( + 27, + 25 ) * - - ( + - 95 ) ) ), + COUNT( * ) ) * + 21 + + + 43 AS col1
----
-2036

skipif mysql # not compatible
query I rowsort label-4652
SELECT + COALESCE ( - - ( NULLIF ( + - 99, + NULLIF ( + 27, + 25 ) * - - ( + - 95 ) ) ), + COUNT ( * ) ) * + 21 + + + 43 AS col1
----
-2036

query II rowsort
SELECT - 62 AS col2, 52 + + 24 AS col2
----
-62
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT DISTINCT 66 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT 66 / 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL COUNT( * ) * - + 46
----
-46

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL COUNT ( * ) * - + 46
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT DISTINCT + 25 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + 25 / 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL + MAX( DISTINCT 45 ) col1
----
45

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + MAX ( DISTINCT 45 ) col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4658
SELECT ALL + + COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4658
SELECT ALL + + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + COUNT( - + 4 ) * 38 + - + 53 * + 47 col1
----
-2453

skipif mysql # not compatible
query I rowsort label-4659
SELECT + COUNT ( - + 4 ) * 38 + - + 53 * + 47 col1
----
-2453

query II rowsort
SELECT 54 col2, - 2 AS col0
----
54
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT ALL + 77 * - + 10 * - COUNT( ALL 19 ) * - + 87 * + 70 - - COUNT( * ) + + 32 + + - CAST( NULL AS SIGNED ) * - - COUNT( * ) / + + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + 77 * - + 10 * - COUNT ( ALL 19 ) * - + 87 * + 70 - - COUNT ( * ) + + 32 + + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / + + 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT + MAX( - + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-4662
SELECT + MAX ( - + 15 )
----
-15

query I rowsort
SELECT ALL 93 * + 98 AS col0
----
9114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4664
SELECT ALL + 12 AS col1, - COUNT( * ) DIV + COALESCE ( + - 84, - 22 * + 42 ) * - - 46 + - + 43
----
12
-43

skipif mysql # not compatible
query II rowsort label-4664
SELECT ALL + 12 AS col1, - COUNT ( * ) / + COALESCE ( + - 84, - 22 * + 42 ) * - - 46 + - + 43
----
12
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT ALL + - ( - 72 ) DIV + 46 + 12 DIV - + 96 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + - ( - 72 ) / + 46 + 12 / - + 96 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4666
SELECT - COUNT( * ) * + SUM( - - 79 ) * 41 - CASE + - 56 WHEN - 96 * - 23 THEN - 63 * COALESCE ( 0, + - 48 ) - + 58 END, 95 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-4666
SELECT - COUNT ( * ) * + SUM ( - - 79 ) * 41 - CASE + - 56 WHEN - 96 * - 23 THEN - 63 * COALESCE ( 0, + - 48 ) - + 58 END, 95 AS col2
----
NULL
95

query II rowsort
SELECT + 53, + 99 AS col1
----
53
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT + 3 + + ( - - COALESCE ( 67, + 66, + COUNT( * ) * + 21 + - + 66 ) ) + 20
----
90

skipif mysql # not compatible
query I rowsort label-4668
SELECT + 3 + + ( - - COALESCE ( 67, + 66, + COUNT ( * ) * + 21 + - + 66 ) ) + 20
----
90

query I rowsort
SELECT ALL - - 58 * + 73 + 19 * + COALESCE ( 53, - 41 ) AS col0
----
5241

query I rowsort
SELECT ALL - 9 * 20 col2
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT ALL COALESCE ( - 6, 86 * + COUNT( * ) * - CASE - COALESCE ( - COUNT( * ), - 99 * + 0 * 34 * - + CASE 0 WHEN - ( - 60 ) * + ( + CAST( - 5 AS SIGNED ) ) - - - 33 * - COUNT( * ) THEN ( + 40 ) * - 42 WHEN - 51 + - 0 THEN NULL END, 5 * 34 ) WHEN 36 * 58 THEN + 46 WHEN - 11 / 40 THEN NULL ELSE NULL END ) * - 92 + - CASE - 55 WHEN SUM( ( 27 ) ) * + ( 30 ) THEN 89 * 9 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL COALESCE ( - 6, 86 * + COUNT ( * ) * - CASE - COALESCE ( - COUNT ( * ), - 99 * + 0 * 34 * - + CASE 0 WHEN - ( - 60 ) * + ( + CAST ( - 5 AS INTEGER ) ) - - - 33 * - COUNT ( * ) THEN ( + 40 ) * - 42 WHEN - 51 + - 0 THEN NULL END, 5 * 34 ) WHEN 36 * 58 THEN + 46 WHEN - 11 / 40 THEN NULL ELSE NULL END ) * - 92 + - CASE - 55 WHEN SUM ( ( 27 ) ) * + ( 30 ) THEN 89 * 9 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT ALL + 71 * MIN( 4 ) + + 95 DIV + - 85 AS col0
----
283

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + 71 * MIN ( 4 ) + + 95 / + - 85 AS col0
----
283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT - 62 + + 42 * + 74 + + CAST( - 55 AS SIGNED ) + + ( - + 59 ) AS col0
----
2932

skipif mysql # not compatible
query I rowsort label-4673
SELECT - 62 + + 42 * + 74 + + CAST ( - 55 AS INTEGER ) + + ( - + 59 ) AS col0
----
2932

query I rowsort
SELECT ALL - 73 + 36 col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT DISTINCT + 19 DIV - + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + 19 / - + 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL COUNT( + + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL COUNT ( + + 79 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - ( + + 85 ) + + MAX( + - 14 ) * + SUM( DISTINCT 86 ) AS col2
----
-1289

skipif mysql # not compatible
query I rowsort label-4677
SELECT - ( + + 85 ) + + MAX ( + - 14 ) * + SUM ( DISTINCT 86 ) AS col2
----
-1289

onlyif mysql # aggregate syntax: 
query II rowsort label-4678
SELECT - 8 + + 95 AS col2, COALESCE ( + 23, - COUNT( * ), - + COALESCE ( 99, COALESCE ( + COALESCE ( 21, - 59 ), + 28 ) ) ) AS col1
----
87
23

skipif mysql # not compatible
query II rowsort label-4678
SELECT - 8 + + 95 AS col2, COALESCE ( + 23, - COUNT ( * ), - + COALESCE ( 99, COALESCE ( + COALESCE ( 21, - 59 ), + 28 ) ) ) AS col1
----
87
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL - 11 - ( COUNT( * ) ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - 11 - ( COUNT ( * ) ) col0
----
-12

query I rowsort
SELECT ALL ( + ( - 93 ) )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT ALL + 38 * CAST( + + 58 AS SIGNED ) AS col2
----
2204

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + 38 * CAST ( + + 58 AS INTEGER ) AS col2
----
2204

query I rowsort
SELECT ALL - 11 - 88 + + + 83
----
-16

query I rowsort
SELECT DISTINCT NULLIF ( - - 80, - + 4 )
----
80

query I rowsort
SELECT - 54 + + 5 + - 63
----
-112

query I rowsort
SELECT + 18 + COALESCE ( - 76, 19 + 5 ) AS col2
----
-58

query I rowsort
SELECT - - 17 * + - 20 * - 85 AS col1
----
28900

query I rowsort
SELECT + - 12 * - 33 AS col0
----
396

onlyif mysql # aggregate syntax: 
query II rowsort label-4688
SELECT - ( - 34 ) AS col2, - COUNT( * )
----
34
-1

skipif mysql # not compatible
query II rowsort label-4688
SELECT - ( - 34 ) AS col2, - COUNT ( * )
----
34
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT ALL - 68 DIV - 30 + - 53
----
-51

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL - 68 / - 30 + - 53
----
-51

query I rowsort
SELECT - 94 + 71
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4691
SELECT ALL 38 DIV + - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL 38 / + - COUNT ( * )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4692
SELECT - 62 * CASE - + 8 WHEN + 15 THEN - COUNT( - 47 ) * - - CAST( - 4 AS SIGNED ) WHEN 32 THEN 19 * + 10 + 73 + - NULLIF ( - 66, + 60 ) + - ( 51 ) * + - 61 - - 81 * + 36 * + 73 WHEN + COUNT( * ) * CAST( - 20 AS SIGNED ) + - 0 THEN 15 ELSE NULLIF ( + 11, - 83 ) END * + 54 + 44 * + 90 AS col1
----
-32868

skipif mysql # not compatible
query I rowsort label-4692
SELECT - 62 * CASE - + 8 WHEN + 15 THEN - COUNT ( - 47 ) * - - CAST ( - 4 AS INTEGER ) WHEN 32 THEN 19 * + 10 + 73 + - NULLIF ( - 66, + 60 ) + - ( 51 ) * + - 61 - - 81 * + 36 * + 73 WHEN + COUNT ( * ) * CAST ( - 20 AS INTEGER ) + - 0 THEN 15 ELSE NULLIF ( + 11, - 83 ) END * + 54 + 44 * + 90 AS col1
----
-32868

query I rowsort
SELECT - - ( - 86 ) * - 50 * 48
----
206400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT + - 10 + - CAST( - 43 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-4694
SELECT + - 10 + - CAST ( - 43 AS INTEGER )
----
33

query I rowsort
SELECT DISTINCT - 72 * 41 col1
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL - + AVG ( ALL + - 89 ) * 35 + - + 16 + - ( + 77 ) + - COUNT( * ) * + + MAX( DISTINCT + - 81 ) * - - CASE WHEN NULL IS NULL THEN NULL ELSE - 37 END - + 35 + + 88 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL - + AVG ( ALL + - 89 ) * 35 + - + 16 + - ( + 77 ) + - COUNT ( * ) * + + MAX ( DISTINCT + - 81 ) * - - CASE WHEN NULL IS NULL THEN NULL ELSE - 37 END - + 35 + + 88 * + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + ( - - 89 ) * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4697
SELECT + ( - - 89 ) * COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT 40 * - 50 + - 6 * - COALESCE ( + 77, ( - + 6 ) ) + MAX( - - 55 )
----
-1483

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT 40 * - 50 + - 6 * - COALESCE ( + 77, ( - + 6 ) ) + MAX ( - - 55 )
----
-1483

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL COUNT( * ) * + - 15 * 36 - - COUNT( * ) - 46 AS col0
----
-585

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL COUNT ( * ) * + - 15 * 36 - - COUNT ( * ) - 46 AS col0
----
-585

query I rowsort
SELECT + ( + - 91 ) col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT + ( - - CASE - 37 WHEN - COUNT( * ) - - CAST( NULL AS SIGNED ) THEN NULL WHEN - 37 THEN + 11 - - 33 + - + 7 + 93 * - CAST( NULL AS SIGNED ) / - 23 ELSE NULL END ) / - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT + ( - - CASE - 37 WHEN - COUNT ( * ) - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 37 THEN + 11 - - 33 + - + 7 + 93 * - CAST ( NULL AS INTEGER ) / - 23 ELSE NULL END ) / - 52 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4702
SELECT ALL 38 - - - 17 * - CAST( 0 AS SIGNED ) + - 14, 66 AS col2
----
24
66

skipif mysql # not compatible
query II rowsort label-4702
SELECT ALL 38 - - - 17 * - CAST ( 0 AS INTEGER ) + - 14, 66 AS col2
----
24
66

query I rowsort
SELECT ( - 74 ) * - 92 col2
----
6808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT 78 * + 50 * + 20 * + 70 / + 64 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT 78 * + 50 * + 20 * + 70 / + 64 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4705
SELECT ALL 91 * 61 * + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL 91 * 61 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 62 - + COALESCE ( 96, - 33 + + ( + + 65 ) + 4 ) / CASE + - 65 WHEN + 74 THEN NULL WHEN + - 44 * + 56 * 2 THEN + + 60 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT ALL 2 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL 2 / - 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT 68 * + CAST( - 58 AS SIGNED )
----
-3944

skipif mysql # not compatible
query I rowsort label-4708
SELECT 68 * + CAST ( - 58 AS INTEGER )
----
-3944

query I rowsort
SELECT DISTINCT 37 * - 55 * - ( - + 16 )
----
-32560

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT 87 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-4710
SELECT 87 / - 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4711
SELECT CASE ( - CASE - + ( + 60 ) WHEN - COALESCE ( - 43, + 42 ) + - - 23 THEN + - COUNT( * ) ELSE - 44 * + 52 END ) WHEN - 44 THEN - 73 END + + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) * + 82 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4711
SELECT CASE ( - CASE - + ( + 60 ) WHEN - COALESCE ( - 43, + 42 ) + - - 23 THEN + - COUNT ( * ) ELSE - 44 * + 52 END ) WHEN - 44 THEN - 73 END + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * + 82 AS col0
----
NULL
NULL

query I rowsort
SELECT ( + 51 ) * - - 12
----
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT 3 + - 12 * + ( + ( - 4 ) ) * - CASE - NULLIF ( 9, + CAST( NULL AS SIGNED ) ) WHEN - 63 THEN + 38 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT 3 + - 12 * + ( + ( - 4 ) ) * - CASE - NULLIF ( 9, + CAST ( NULL AS INTEGER ) ) WHEN - 63 THEN + 38 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 24 AS col2, 95 * - 43 * - 11 * + + 26
----
-24
1168310

query I rowsort
SELECT ALL + - 18 + 64 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT + 28 + 99 * + COUNT( + 14 )
----
127

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + 28 + 99 * + COUNT ( + 14 )
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT - 96 + - COUNT( * ) - + 41 AS col1, 48 * + COUNT( * ) AS col0
----
-138
48

skipif mysql # not compatible
query II rowsort label-4717
SELECT - 96 + - COUNT ( * ) - + 41 AS col1, 48 * + COUNT ( * ) AS col0
----
-138
48

query I rowsort
SELECT ALL + - 43 * + - 77
----
3311

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL + - 26 + + + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + - 26 + + + COUNT ( * )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4720
SELECT ALL 3 AS col1, - MIN( ALL - + 34 ) + - 24 + - 36 * + 58 * - CASE COUNT( - 26 ) WHEN + + 91 * ( - COUNT( * ) ) * + SUM( ALL + ( - 3 ) ) + 38 * 33 THEN + 11 + 4 ELSE + CASE + CAST( 60 AS SIGNED ) WHEN - MAX( - 74 ) * 31 THEN 31 WHEN AVG ( DISTINCT 41 ) + + 98 THEN NULL ELSE NULL END + - 25 END AS col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL 3 AS col1, - MIN ( ALL - + 34 ) + - 24 + - 36 * + 58 * - CASE COUNT ( - 26 ) WHEN + + 91 * ( - COUNT ( * ) ) * + SUM ( ALL + ( - 3 ) ) + 38 * 33 THEN + 11 + 4 ELSE + CASE + CAST ( 60 AS INTEGER ) WHEN - MAX ( - 74 ) * 31 THEN 31 WHEN AVG ( DISTINCT 41 ) + + 98 THEN NULL ELSE NULL END + - 25 END AS col1
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT CAST( NULL AS SIGNED ) / 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT CAST ( NULL AS INTEGER ) / 25
----
NULL

query I rowsort
SELECT 85 * 64 AS col0
----
5440

query I rowsort
SELECT ALL - 34 + + 75
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - NULLIF ( + - 88, - 18 ) * - COUNT( * ) * AVG ( + 66 ) - + 74 - CASE - 9 WHEN - + 4 THEN + - 64 END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT - NULLIF ( + - 88, - 18 ) * - COUNT ( * ) * AVG ( + 66 ) - + 74 - CASE - 9 WHEN - + 4 THEN + - 64 END + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT - NULLIF ( + 46, + COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT - NULLIF ( + 46, + COUNT ( * ) )
----
-46

query I rowsort
SELECT ALL - 73 + - - 29
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL + ( + 73 ) - + 11 + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL + ( + 73 ) - + 11 + + COUNT ( * )
----
63

query I rowsort
SELECT + NULLIF ( - 39, + + ( - + 56 ) ) * - - ( 89 ) - 50
----
-3521

query I rowsort
SELECT DISTINCT ( - + 12 ) * + 4 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4730
SELECT - 82 * + CAST( COUNT( * ) AS SIGNED ) * - ( - + ( 59 ) ) + + + 68
----
-4770

skipif mysql # not compatible
query I rowsort label-4730
SELECT - 82 * + CAST ( COUNT ( * ) AS INTEGER ) * - ( - + ( 59 ) ) + + + 68
----
-4770

query II rowsort
SELECT 37 + - + 47 AS col2, 63 AS col2
----
-10
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4732
SELECT + 34 AS col0, 0 * CAST( NULL AS SIGNED )
----
34
NULL

skipif mysql # not compatible
query II rowsort label-4732
SELECT + 34 AS col0, 0 * CAST ( NULL AS INTEGER )
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL 38 - - - SUM( - - 99 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL 38 - - - SUM ( - - 99 ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4734
SELECT DISTINCT 97 * + - CAST( - - 0 AS SIGNED ) * - ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT 97 * + - CAST ( - - 0 AS INTEGER ) * - ( - COUNT ( * ) )
----
0

query II rowsort
SELECT DISTINCT 32 * - 40 AS col0, - 90 * - + 20 AS col1
----
-1280
1800

query I rowsort
SELECT DISTINCT + 56 * 77
----
4312

query I rowsort
SELECT ( 6 ) + + 49 * 72
----
3534

query I rowsort
SELECT 78 * + 14
----
1092

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT 84 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT 84 / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT COUNT( * ) + - 29 + + 74 * - 42 AS col1
----
-3136

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT COUNT ( * ) + - 29 + + 74 * - 42 AS col1
----
-3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT ALL 18 + + + 89 + 88 / CASE 31 WHEN - 98 * - 29 THEN + 41 / - 66 + - 72 + + + 33 + + 86 * - 5 + - 16 / - 56 + + + 3 * - NULLIF ( - CASE ( - 65 ) WHEN + 84 - + 29 THEN + CAST( 18 AS SIGNED ) WHEN MAX( 58 ) - 79 THEN NULL ELSE NULL END, - COUNT( * ) ) + + 62 / - 69 + + 69 * - 0 END * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL 18 + + + 89 + 88 / CASE 31 WHEN - 98 * - 29 THEN + 41 / - 66 + - 72 + + + 33 + + 86 * - 5 + - 16 / - 56 + + + 3 * - NULLIF ( - CASE ( - 65 ) WHEN + 84 - + 29 THEN + CAST ( 18 AS INTEGER ) WHEN MAX ( 58 ) - 79 THEN NULL ELSE NULL END, - COUNT ( * ) ) + + 62 / - 69 + + 69 * - 0 END * 14
----
NULL

query I rowsort
SELECT DISTINCT 36 * + + 8
----
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4743
SELECT COUNT( * ) * + 28 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT COUNT ( * ) * + 28 / + 57
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4744
SELECT - - 30 AS col2, COUNT( * ) col2
----
30
1

skipif mysql # not compatible
query II rowsort label-4744
SELECT - - 30 AS col2, COUNT ( * ) col2
----
30
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL - COALESCE ( + - NULLIF ( 63, - NULLIF ( - + 33, + CAST( CASE - CAST( NULL AS SIGNED ) WHEN + - COUNT( + + 22 ) THEN + - 91 * 76 - - MIN( ALL - 99 ) * - - 31 END AS SIGNED ) * - + COALESCE ( 79, + 8 ) - + - 89 * + + 9 + + - 95 ) ), - 37 * + 18, 77 + - 42, 5 ) + 27
----
90

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL - COALESCE ( + - NULLIF ( 63, - NULLIF ( - + 33, + CAST ( CASE - CAST ( NULL AS INTEGER ) WHEN + - COUNT ( + + 22 ) THEN + - 91 * 76 - - MIN ( ALL - 99 ) * - - 31 END AS INTEGER ) * - + COALESCE ( 79, + 8 ) - + - 89 * + + 9 + + - 95 ) ), - 37 * + 18, 77 + - 42, 5 ) + 27
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL - ( COUNT( * ) ) + + - 71 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - ( COUNT ( * ) ) + + - 71 AS col0
----
-72

query I rowsort
SELECT ALL + + 90 + + ( 61 ) + + 0 col1
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT 7 - - + CAST( + + 24 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-4748
SELECT 7 - - + CAST ( + + 24 AS INTEGER )
----
31

query I rowsort
SELECT DISTINCT 82 + - - 3 col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4750
SELECT - COUNT( * ) + + + MAX( ALL 9 ) * + + 19 AS col0, COUNT( * ) + - + ( + 27 ) DIV 57
----
170
1

skipif mysql # not compatible
query II rowsort label-4750
SELECT - COUNT ( * ) + + + MAX ( ALL 9 ) * + + 19 AS col0, COUNT ( * ) + - + ( + 27 ) / 57
----
170
1

query II rowsort
SELECT - 71 AS col0, + 38 col0
----
-71
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4752
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, - 75 + + - 49 + 69
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-4752
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, - 75 + + - 49 + 69
----
NULL
-55

query I rowsort
SELECT ALL - 88 + + 6 * - 16 AS col2
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT 87 + 13 * + + MIN( 20 )
----
347

skipif mysql # not compatible
query I rowsort label-4754
SELECT 87 + 13 * + + MIN ( 20 )
----
347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT + 92 + - + CAST( + MAX( + 36 ) AS SIGNED ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4755
SELECT + 92 + - + CAST ( + MAX ( + 36 ) AS INTEGER ) AS col0
----
56

query I rowsort
SELECT + + ( 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT DISTINCT - + COUNT( * ) * + ( + - 18 ) - + 21 * 8
----
-150

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT - + COUNT ( * ) * + ( + - 18 ) - + 21 * 8
----
-150

query I rowsort
SELECT + 33 * - - 24
----
792

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT - 42 + + 98 AS col2, + 6 * COUNT( * ) AS col2
----
56
6

skipif mysql # not compatible
query II rowsort label-4759
SELECT - 42 + + 98 AS col2, + 6 * COUNT ( * ) AS col2
----
56
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL + - NULLIF ( + - 71, ( + 7 ) * - - MIN( 36 ) + COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL + - NULLIF ( + - 71, ( + 7 ) * - - MIN ( 36 ) + COUNT ( * ) )
----
71

query I rowsort
SELECT ALL - 24 * + 66
----
-1584

query I rowsort
SELECT - 3 * - 81 AS col1
----
243

query I rowsort
SELECT 51 * ( + 48 ) + 50 + + + 14
----
2512

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4764
SELECT - COUNT( * ) DIV 56 AS col1, - 89 AS col0
----
0
-89

skipif mysql # not compatible
query II rowsort label-4764
SELECT - COUNT ( * ) / 56 AS col1, - 89 AS col0
----
0
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT COUNT( DISTINCT 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4765
SELECT COUNT ( DISTINCT 28 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4766
SELECT - MIN( - CAST( 2 AS SIGNED ) ) DIV - + 47 * + 7 + ( - CAST( + ( - COUNT( * ) ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4766
SELECT - MIN ( - CAST ( 2 AS INTEGER ) ) / - + 47 * + 7 + ( - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT 2 * - 28
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT DISTINCT + 98 DIV + ( + 19 )
----
5

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + 98 / + ( + 19 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT - COUNT( * ) * - - 87
----
-87

skipif mysql # not compatible
query I rowsort label-4769
SELECT - COUNT ( * ) * - - 87
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4770
SELECT ALL + 80 DIV COUNT( * ) * 95
----
7600

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + 80 / COUNT ( * ) * 95
----
7600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT - MIN( + 89 ) DIV 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4771
SELECT - MIN ( + 89 ) / 63 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4772
SELECT - CASE - 84 WHEN 15 - + 15 THEN - + CASE CASE - 76 WHEN + - 93 THEN - + 59 * - 49 * COUNT( * ) WHEN AVG ( DISTINCT + - 72 ) THEN AVG ( ALL + 71 ) + 1 + - 21 * + NULLIF ( + - CAST( NULL AS SIGNED ), + CAST( NULL AS DECIMAL ) ) * + + 37 + + CAST( - ( - 4 ) AS SIGNED ) ELSE NULL END WHEN CASE - 88 WHEN + 7 THEN + COALESCE ( 41, - 29 / COUNT( * ) ) END THEN NULL ELSE COUNT( + 75 ) * 30 END * 38 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT - CASE - 84 WHEN 15 - + 15 THEN - + CASE CASE - 76 WHEN + - 93 THEN - + 59 * - 49 * COUNT ( * ) WHEN AVG ( DISTINCT + - 72 ) THEN AVG ( ALL + 71 ) + 1 + - 21 * + NULLIF ( + - CAST ( NULL AS INTEGER ), + CAST ( NULL AS REAL ) ) * + + 37 + + CAST ( - ( - 4 ) AS INTEGER ) ELSE NULL END WHEN CASE - 88 WHEN + 7 THEN + COALESCE ( 41, - 29 / COUNT ( * ) ) END THEN NULL ELSE COUNT ( + 75 ) * 30 END * 38 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL 78 + + 10 + - 60 * 16 * - COUNT( * ) AS col0
----
1048

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL 78 + + 10 + - 60 * 16 * - COUNT ( * ) AS col0
----
1048

query I rowsort
SELECT - 83 - + 58 * 20 AS col1
----
-1243

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT CASE + SUM( ALL 45 ) WHEN - 20 * - - 39 + - 60 * 93 / + 23 THEN - ( + 95 ) ELSE 85 - + 12 * ( + 4 ) * MIN( DISTINCT - 30 ) * + - 16 END
----
-22955

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT CASE + SUM ( ALL 45 ) WHEN - 20 * - - 39 + - 60 * 93 / + 23 THEN - ( + 95 ) ELSE 85 - + 12 * ( + 4 ) * MIN ( DISTINCT - 30 ) * + - 16 END
----
-22955

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT - 8 + - COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - 8 + - COUNT ( * ) AS col2
----
-9

query I rowsort
SELECT - NULLIF ( 13, - 50 + + + 53 + - + 31 ) AS col2
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4778
SELECT + + 79 + - - AVG ( - 29 ) - 52 + - CAST( NULL AS DECIMAL ) + - 17 * + 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT + + 79 + - - AVG ( - 29 ) - 52 + - CAST ( NULL AS REAL ) + - 17 * + 94 col1
----
NULL

query I rowsort
SELECT ALL + 68 * + - 53 * - + 59
----
212636

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT + 56 + - + COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4780
SELECT + 56 + - + COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4781
SELECT + COUNT( * ) * MAX( DISTINCT - 75 ) AS col2, 77 AS col1
----
-75
77

skipif mysql # not compatible
query II rowsort label-4781
SELECT + COUNT ( * ) * MAX ( DISTINCT - 75 ) AS col2, 77 AS col1
----
-75
77

query I rowsort
SELECT + CASE - 28 WHEN + 47 THEN NULL ELSE + - 81 END
----
-81

query I rowsort
SELECT - 86 * + 59 * + 81
----
-410994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4784
SELECT ( + - COUNT( * ) ) DIV - - 30 - + 30
----
-30

skipif mysql # not compatible
query I rowsort label-4784
SELECT ( + - COUNT ( * ) ) / - - 30 - + 30
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT ALL + COUNT( * ) AS col1, 94
----
1
94

skipif mysql # not compatible
query II rowsort label-4785
SELECT ALL + COUNT ( * ) AS col1, 94
----
1
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT - MIN( + + 49 ) * 51 + + + 71 AS col0, 95 * - COUNT( * ) * + COUNT( * ) + - COUNT( * ) * - MIN( - 71 )
----
-2428
-166

skipif mysql # not compatible
query II rowsort label-4786
SELECT - MIN ( + + 49 ) * 51 + + + 71 AS col0, 95 * - COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) * - MIN ( - 71 )
----
-2428
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4787
SELECT ( - COALESCE ( MIN( 18 ), - 28 DIV - + 88 + 6 + - 70 - - 50, - - 72 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-4787
SELECT ( - COALESCE ( MIN ( 18 ), - 28 / - + 88 + 6 + - 70 - - 50, - - 72 ) )
----
-18

query I rowsort
SELECT ALL 73 * + 43 AS col1
----
3139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4789
SELECT + COUNT( * ) * + + 21 - 23 DIV 68 * + + COALESCE ( + 89, + - 31 * + - 38 + 75 + + - COUNT( * ) * + NULLIF ( 77, 66 + - 60 ) * 19, + 76 * + 93, - 34 ) AS col1, - 44 + + - CAST( NULL AS SIGNED ) DIV 37 * + CASE NULLIF ( + 60, - 12 * + COUNT( 9 ) ) WHEN 56 THEN - CASE - 68 WHEN + 56 * + 28 THEN 39 * - COALESCE ( 19, 56 ) ELSE NULL END WHEN COALESCE ( 82, - 87 * + COUNT( * ) + 1 * COALESCE ( 45, - 6 * 67, - 19 ) ) THEN NULL ELSE - 50 - + COUNT( * ) END * + 31 AS col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-4789
SELECT + COUNT ( * ) * + + 21 - 23 / 68 * + + COALESCE ( + 89, + - 31 * + - 38 + 75 + + - COUNT ( * ) * + NULLIF ( 77, 66 + - 60 ) * 19, + 76 * + 93, - 34 ) AS col1, - 44 + + - CAST ( NULL AS INTEGER ) / 37 * + CASE NULLIF ( + 60, - 12 * + COUNT ( 9 ) ) WHEN 56 THEN - CASE - 68 WHEN + 56 * + 28 THEN 39 * - COALESCE ( 19, 56 ) ELSE NULL END WHEN COALESCE ( 82, - 87 * + COUNT ( * ) + 1 * COALESCE ( 45, - 6 * 67, - 19 ) ) THEN NULL ELSE - 50 - + COUNT ( * ) END * + 31 AS col0
----
21
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT DISTINCT 98 * 65 DIV + - 42 + + - 86 * + 67
----
-5913

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT 98 * 65 / + - 42 + + - 86 * + 67
----
-5913

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - - ( - - COUNT( * ) ) + + 43
----
44

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - - ( - - COUNT ( * ) ) + + 43
----
44

query I rowsort
SELECT ALL - 86 * + 31 + + 65 AS col1
----
-2601

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT - 7 + 92 DIV + 60 + 29
----
23

skipif mysql # not compatible
query I rowsort label-4793
SELECT - 7 + 92 / + 60 + 29
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + 91 * - 78 + - + 36 + + 99 + MAX( DISTINCT - 39 ) * + 79 AS col0
----
-10116

skipif mysql # not compatible
query I rowsort label-4794
SELECT + 91 * - 78 + - + 36 + + 99 + MAX ( DISTINCT - 39 ) * + 79 AS col0
----
-10116

query I rowsort
SELECT ALL + CASE + 88 WHEN - 68 + 7 THEN + 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT - 60 + 40 * + + 90 * - COUNT( * ) AS col0
----
-3660

skipif mysql # not compatible
query I rowsort label-4796
SELECT - 60 + 40 * + + 90 * - COUNT ( * ) AS col0
----
-3660

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT NULLIF ( + COUNT( * ), + 34 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4797
SELECT NULLIF ( + COUNT ( * ), + 34 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT - 36 + CAST( NULL AS SIGNED ) + 6 + 39 * + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT - 36 + CAST ( NULL AS INTEGER ) + 6 + 39 * + 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL - 71 * - + COUNT( 11 ) + + + 90 col2
----
161

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL - 71 * - + COUNT ( 11 ) + + + 90 col2
----
161

query I rowsort
SELECT - 54 * - 36 col0
----
1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4801
SELECT ALL + COUNT( * ) DIV + 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + COUNT ( * ) / + 15 AS col0
----
0

query I rowsort
SELECT - 16 * 44 AS col2
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - - MAX( - + 43 ) * 83
----
-3569

skipif mysql # not compatible
query I rowsort label-4803
SELECT - - MAX ( - + 43 ) * 83
----
-3569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT + - 52 * 13 - + CAST( - 20 AS SIGNED )
----
-656

skipif mysql # not compatible
query I rowsort label-4804
SELECT + - 52 * 13 - + CAST ( - 20 AS INTEGER )
----
-656

query I rowsort
SELECT + - 94 + - 63 col1
----
-157

query I rowsort
SELECT - + 83 * ( + 21 ) + - - 79 * 44 * + - 16 AS col0
----
-57359

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT - + 85 AS col0, - ( + - COUNT( * ) ) * MAX( DISTINCT 98 ) AS col0
----
-85
98

skipif mysql # not compatible
query II rowsort label-4807
SELECT - + 85 AS col0, - ( + - COUNT ( * ) ) * MAX ( DISTINCT 98 ) AS col0
----
-85
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4808
SELECT ALL + 72, ( SUM( DISTINCT + 34 ) ) * + 20 AS col0
----
72
680

skipif mysql # not compatible
query II rowsort label-4808
SELECT ALL + 72, ( SUM ( DISTINCT + 34 ) ) * + 20 AS col0
----
72
680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4809
SELECT ALL + + 65 - + 9 + 34 * + + 24 + 7 * 89 DIV + COUNT( * ) + - 66, 43 AS col0
----
1429
43

skipif mysql # not compatible
query II rowsort label-4809
SELECT ALL + + 65 - + 9 + 34 * + + 24 + 7 * 89 / + COUNT ( * ) + - 66, 43 AS col0
----
1429
43

query I rowsort
SELECT ALL 32 - + + 10 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT - + COUNT( * ) + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4811
SELECT - + COUNT ( * ) + 84 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4812
SELECT NULLIF ( + COUNT( * ), MIN( ALL - 89 ) + + 94 * + 47 ) + - 38 * - + CAST( - 35 AS SIGNED ) * - - COUNT( * ) + 73 + + SUM( ( + 44 ) ) + 48 + 44
----
-1120

skipif mysql # not compatible
query I rowsort label-4812
SELECT NULLIF ( + COUNT ( * ), MIN ( ALL - 89 ) + + 94 * + 47 ) + - 38 * - + CAST ( - 35 AS INTEGER ) * - - COUNT ( * ) + 73 + + SUM ( ( + 44 ) ) + 48 + 44
----
-1120

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT - COALESCE ( - - ( - 59 ), - 85 * + 80 ) DIV - + 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4813
SELECT - COALESCE ( - - ( - 59 ), - 85 * + 80 ) / - + 45 AS col0
----
-1

query I rowsort
SELECT + 54 * + - 45 col2
----
-2430

query I rowsort
SELECT + 24 + - 51
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT - CAST( - 51 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4816
SELECT - CAST ( - 51 AS INTEGER ) AS col1
----
51

query II rowsort
SELECT 18 + 4 * + 68 * + 40 AS col0, 59
----
10898
59

query I rowsort
SELECT + NULLIF ( - 39, + 65 ) AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4819
SELECT DISTINCT - NULLIF ( - COUNT( ALL 34 ), 66 ) + + - 69 DIV 21, - 15 * + 41 col1
----
-2
-615

skipif mysql # not compatible
query II rowsort label-4819
SELECT DISTINCT - NULLIF ( - COUNT ( ALL 34 ), 66 ) + + - 69 / 21, - 15 * + 41 col1
----
-2
-615

query I rowsort
SELECT DISTINCT 9 * - 79
----
-711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4821
SELECT DISTINCT 38 * - 66 * 3 DIV - ( + COUNT( - CAST( 12 AS SIGNED ) ) )
----
7524

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT 38 * - 66 * 3 / - ( + COUNT ( - CAST ( 12 AS INTEGER ) ) )
----
7524

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT + 69 DIV + + 10 + + 65 - + 98 * + + 32 * + 49
----
-153593

skipif mysql # not compatible
query I rowsort label-4822
SELECT + 69 / + + 10 + + 65 - + 98 * + + 32 * + 49
----
-153593

query I rowsort
SELECT DISTINCT 73 * + ( + 35 ) AS col0
----
2555

query I rowsort
SELECT ALL 32 + - 21 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT MIN( DISTINCT - 90 ) + 66 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4825
SELECT MIN ( DISTINCT - 90 ) + 66 AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT - 81 * + + ( - - 8 ) + + CASE + 75 WHEN - 8 THEN NULL WHEN 32 THEN NULL ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT - 81 * + + ( - - 8 ) + + CASE + 75 WHEN - 8 THEN NULL WHEN 32 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL COUNT( * ) + - 31 + 34 * - ( + - 80 )
----
2690

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL COUNT ( * ) + - 31 + 34 * - ( + - 80 )
----
2690

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT 31 + + COUNT( * ) + - + 14
----
18

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT 31 + + COUNT ( * ) + - + 14
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL - MIN( ALL + NULLIF ( - + 68, + 67 / + ( - 86 ) ) )
----
68

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL - MIN ( ALL + NULLIF ( - + 68, + 67 / + ( - 86 ) ) )
----
68

query I rowsort
SELECT COALESCE ( - 92, + 66 ) * - + 33
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL 66 + - 58 * - MAX( ALL 37 ) AS col2
----
2212

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL 66 + - 58 * - MAX ( ALL 37 ) AS col2
----
2212

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4832
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 36, 3 + - - 59 * + 29 AS col2
----
NULL
1714

skipif mysql # not compatible
query II rowsort label-4832
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 36, 3 + - - 59 * + 29 AS col2
----
NULL
1714

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL - MIN( 43 ) - 79
----
-122

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - MIN ( 43 ) - 79
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ( - - COUNT( * ) ) - 80 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4834
SELECT ( - - COUNT ( * ) ) - 80 AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT + NULLIF ( - 91, + + 39 * CAST( NULL AS SIGNED ) - + 22 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4835
SELECT + NULLIF ( - 91, + + 39 * CAST ( NULL AS INTEGER ) - + 22 ) AS col0
----
-91

query I rowsort
SELECT - 36 - - - 94 + + 81 col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT DISTINCT + 90 * + + CAST( - - 80 AS SIGNED )
----
7200

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + 90 * + + CAST ( - - 80 AS INTEGER )
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + 72 * COUNT( * ) * + SUM( NULLIF ( + - 74, 13 ) )
----
-5328

skipif mysql # not compatible
query I rowsort label-4838
SELECT + 72 * COUNT ( * ) * + SUM ( NULLIF ( + - 74, 13 ) )
----
-5328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4839
SELECT ALL + - 91 DIV + NULLIF ( - + COUNT( * ), - - 35 * + COALESCE ( 8, - + COUNT( * ) + + - SUM( + CAST( NULL AS SIGNED ) ) + - 46 + + - CAST( NULL AS DECIMAL ) * + + 15 * + 81 * - ( - 3 ), 0 - - - 12 ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + - 91 / + NULLIF ( - + COUNT ( * ), - - 35 * + COALESCE ( 8, - + COUNT ( * ) + + - SUM ( + CAST ( NULL AS INTEGER ) ) + - 46 + + - CAST ( NULL AS REAL ) * + + 15 * + 81 * - ( - 3 ), 0 - - - 12 ) ) AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT + CAST( - 61 AS SIGNED ) * - 25 AS col2
----
1525

skipif mysql # not compatible
query I rowsort label-4840
SELECT + CAST ( - 61 AS INTEGER ) * - 25 AS col2
----
1525

query I rowsort
SELECT ALL NULLIF ( 58, ( - ( + 90 ) ) * - ( - 92 ) )
----
58

query I rowsort
SELECT + 30 + ( 29 ) AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT + 39 DIV - - 22 + - + ( 68 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4843
SELECT + 39 / - - 22 + - + ( 68 ) AS col1
----
-67

query I rowsort
SELECT ALL - + ( - 7 ) * + + 18 - - + 0 + + 6 AS col1
----
132

query I rowsort
SELECT - 52 * - 17
----
884

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT - COUNT( DISTINCT 48 ) AS col2, 42 AS col2
----
-1
42

skipif mysql # not compatible
query II rowsort label-4846
SELECT - COUNT ( DISTINCT 48 ) AS col2, 42 AS col2
----
-1
42

query I rowsort
SELECT DISTINCT + + 87 * - 9
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL - + 24 + - 20 + - COUNT( * ) + - 97 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - + 24 + - 20 + - COUNT ( * ) + - 97 AS col1
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-4849
SELECT ALL - COUNT( * ) + 98 + - 18 + + 4, - 29 + + 11 col1
----
83
-18

skipif mysql # not compatible
query II rowsort label-4849
SELECT ALL - COUNT ( * ) + 98 + - 18 + + 4, - 29 + + 11 col1
----
83
-18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4850
SELECT ALL + 33 + 93 + - - CASE - + 88 WHEN - - 4 + - CAST( NULL AS SIGNED ) THEN + + 84 WHEN + - 22 * - - AVG ( ALL 60 ) * - CAST( CASE - 24 WHEN 79 + + 22 THEN + - 45 WHEN + 74 THEN NULL END AS DECIMAL ) + + + ( - 44 ) + + CAST( NULL AS SIGNED ) * - + 33 * + + 67 + - + 2 - - - 61 + - 20 THEN NULL WHEN + CAST( - ( + 80 ) AS SIGNED ) - 0 * + 56 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + 33 + 93 + - - CASE - + 88 WHEN - - 4 + - CAST ( NULL AS INTEGER ) THEN + + 84 WHEN + - 22 * - - AVG ( ALL 60 ) * - CAST ( CASE - 24 WHEN 79 + + 22 THEN + - 45 WHEN + 74 THEN NULL END AS REAL ) + + + ( - 44 ) + + CAST ( NULL AS INTEGER ) * - + 33 * + + 67 + - + 2 - - - 61 + - 20 THEN NULL WHEN + CAST ( - ( + 80 ) AS INTEGER ) - 0 * + 56 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL 62 + - CASE + 19 WHEN - 59 THEN COUNT( - + ( + + 95 ) ) + + + 57 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL 62 + - CASE + 19 WHEN - 59 THEN COUNT ( - + ( + + 95 ) ) + + + 57 END AS col0
----
NULL

query I rowsort
SELECT 62 + + 59
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT MAX( ( - 47 ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4853
SELECT MAX ( ( - 47 ) ) AS col1
----
-47

query I rowsort
SELECT ALL 21 * 4 + - 22 + - 98 * 41 * 76 AS col2
----
-305306

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT COUNT( - - 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4855
SELECT COUNT ( - - 22 ) AS col1
----
1

query I rowsort
SELECT + 39 * + 31 - - - 3 AS col0
----
1206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT ALL + COUNT( * ) + + 28 + + 56 + CAST( + NULLIF ( - + 28, - + 61 ) AS SIGNED ) + - 25 * + 12 * - + COALESCE ( 84, + ( CAST( + - 74 AS SIGNED ) ) + - + 31 ) AS col1
----
25257

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + COUNT ( * ) + + 28 + + 56 + CAST ( + NULLIF ( - + 28, - + 61 ) AS INTEGER ) + - 25 * + 12 * - + COALESCE ( 84, + ( CAST ( + - 74 AS INTEGER ) ) + - + 31 ) AS col1
----
25257

query I rowsort
SELECT ALL 55 * + 19 AS col2
----
1045

query I rowsort
SELECT ALL 72 - 90 + + 48
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT 13 * + - COUNT( - 53 ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-4860
SELECT 13 * + - COUNT ( - 53 ) col1
----
-13

query I rowsort
SELECT DISTINCT 84 * 10 * + ( + 49 ) col1
----
41160

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT SUM( + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4862
SELECT SUM ( + 24 ) AS col0
----
24

query I rowsort
SELECT 25 * 28 col1
----
700

query I rowsort
SELECT 96 + - 39 + - 5 + 81 - + 27 AS col2
----
106

query II rowsort
SELECT 2 * 31 * - 3 AS col0, + 11 AS col2
----
-186
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT COUNT( * ) + + 6 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4866
SELECT COUNT ( * ) + + 6 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ( - MIN( + 75 ) ) - + 19 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4867
SELECT ( - MIN ( + 75 ) ) - + 19 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT + CASE COALESCE ( COUNT( - + 49 ), - COUNT( * ) ) WHEN + 57 THEN 5 + + 81 WHEN + 64 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT + CASE COALESCE ( COUNT ( - + 49 ), - COUNT ( * ) ) WHEN + 57 THEN 5 + + 81 WHEN + 64 THEN NULL END
----
NULL

query I rowsort
SELECT - 81 * 41 + - 6 * - - 74 col1
----
-3765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4870
SELECT ALL - 61 - - 86 * 99 + - + 87 + - COUNT( * ) DIV 32
----
8366

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - 61 - - 86 * 99 + - + 87 + - COUNT ( * ) / 32
----
8366

query I rowsort
SELECT + 43 * + 82
----
3526

query I rowsort
SELECT ALL + 5 * + 60 AS col0
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT - CASE + 97 WHEN + - ( CAST( 9 AS SIGNED ) ) THEN - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT - CASE + 97 WHEN + - ( CAST ( 9 AS INTEGER ) ) THEN - + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 9 + + 31 * - 26
----
-797

query I rowsort
SELECT DISTINCT 49 * - 20
----
-980

query I rowsort
SELECT - 97 + 50
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL CASE + - 52 WHEN - 66 THEN + - 85 WHEN - 46 * + 64 + 36 * ( 1 ) THEN NULL ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL CASE + - 52 WHEN - 66 THEN + - 85 WHEN - 46 * + 64 + 36 * ( 1 ) THEN NULL ELSE NULL END * - COUNT ( * )
----
NULL

query II rowsort
SELECT - + 71 AS col2, ( - - 27 )
----
-71
27

query I rowsort
SELECT + + 48 + - + 16
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL + 84 * MAX( ALL - 28 ) * + CASE - 94 WHEN 67 - - - 0 - - - 98 + 87 THEN NULL WHEN - - 47 THEN + 70 * - 2 * + COALESCE ( - 6, - 99 ) + - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + 84 * MAX ( ALL - 28 ) * + CASE - 94 WHEN 67 - - - 0 - - - 98 + 87 THEN NULL WHEN - - 47 THEN + 70 * - 2 * + COALESCE ( - 6, - 99 ) + - - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT - - COUNT( + CAST( NULL AS SIGNED ) ) + 53 * + 40 AS col2
----
2120

skipif mysql # not compatible
query I rowsort label-4881
SELECT - - COUNT ( + CAST ( NULL AS INTEGER ) ) + 53 * + 40 AS col2
----
2120

query I rowsort
SELECT DISTINCT - 62 + 10 AS col0
----
-52

query I rowsort
SELECT + 21 - + - 68 AS col0
----
89

query I rowsort
SELECT DISTINCT - 52 + 28 AS col1
----
-24

query I rowsort
SELECT - 21 + - 80 AS col2
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4886
SELECT ALL - COUNT( * ) * + COUNT( * ) DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL - COUNT ( * ) * + COUNT ( * ) / + 47
----
0

query II rowsort
SELECT 9, 32 * + 67 AS col1
----
9
2144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4888
SELECT - COUNT( * ) + - 29 * - - 14 + + + COUNT( * ) * CAST( + 38 AS SIGNED ) AS col0, CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
-369
-1

skipif mysql # not compatible
query II rowsort label-4888
SELECT - COUNT ( * ) + - 29 * - - 14 + + + COUNT ( * ) * CAST ( + 38 AS INTEGER ) AS col0, CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
-369
-1

query II rowsort
SELECT - 91 AS col1, ( - 74 ) AS col1
----
-91
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4890
SELECT ALL CAST( 33 AS SIGNED ) * + - 19 - + + NULLIF ( + 15, + 0 ) + - 55 AS col2
----
-697

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL CAST ( 33 AS INTEGER ) * + - 19 - + + NULLIF ( + 15, + 0 ) + - 55 AS col2
----
-697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4891
SELECT 62 DIV + - NULLIF ( + + COUNT( * ), 80 * - + NULLIF ( 66, - - 26 DIV - CAST( NULL AS SIGNED ) ) + - COUNT( * ) DIV + MIN( DISTINCT + + 31 ) ) + - 6 - COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-4891
SELECT 62 / + - NULLIF ( + + COUNT ( * ), 80 * - + NULLIF ( 66, - - 26 / - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) / + MIN ( DISTINCT + + 31 ) ) + - 6 - COUNT ( * ) AS col1
----
-69

query I rowsort
SELECT ALL - 63 * - 96 AS col1
----
6048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4893
SELECT 90 DIV 71 + + 64 + + - COALESCE ( 67, 54 + + + ( - 27 ) + - NULLIF ( - CASE + 23 WHEN + 93 THEN NULL ELSE 77 DIV + - 20 * 53 + + CAST( NULL AS SIGNED ) * - + CAST( + - ( 18 ) AS SIGNED ) * - 46 END, + 81 - 4 ) + COUNT( * ) DIV - + 43 * + - 75 ) * - + 92 AS col2
----
6229

skipif mysql # not compatible
query I rowsort label-4893
SELECT 90 / 71 + + 64 + + - COALESCE ( 67, 54 + + + ( - 27 ) + - NULLIF ( - CASE + 23 WHEN + 93 THEN NULL ELSE 77 / + - 20 * 53 + + CAST ( NULL AS INTEGER ) * - + CAST ( + - ( 18 ) AS INTEGER ) * - 46 END, + 81 - 4 ) + COUNT ( * ) / - + 43 * + - 75 ) * - + 92 AS col2
----
6229

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT + 31 + ( COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-4894
SELECT + 31 + ( COUNT ( * ) )
----
32

query I rowsort
SELECT + 24 * + 81
----
1944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT COALESCE ( - COUNT( * ), - + CAST( NULL AS SIGNED ) * - 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4896
SELECT COALESCE ( - COUNT ( * ), - + CAST ( NULL AS INTEGER ) * - 53 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4897
SELECT ALL + 24 AS col1, 8 * - CAST( NULL AS SIGNED ) AS col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4897
SELECT ALL + 24 AS col1, 8 * - CAST ( NULL AS INTEGER ) AS col0
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT + SUM( - - 99 ) * 2
----
198

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT + SUM ( - - 99 ) * 2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT + + COUNT( * ) * + + 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4899
SELECT + + COUNT ( * ) * + + 64 AS col1
----
64

query I rowsort
SELECT ALL - - 58 * + 24 + + 50
----
1442

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT - ( + - 41 ) - + + SUM( + 43 ) * - 14 * + 98 AS col0
----
59037

skipif mysql # not compatible
query I rowsort label-4901
SELECT - ( + - 41 ) - + + SUM ( + 43 ) * - 14 * + 98 AS col0
----
59037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4902
SELECT - 94 DIV - 14, + 59 * + CAST( COUNT( * ) AS SIGNED ) + + ( - CAST( NULL AS SIGNED ) ) + + - 97 AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-4902
SELECT - 94 / - 14, + 59 * + CAST ( COUNT ( * ) AS INTEGER ) + + ( - CAST ( NULL AS INTEGER ) ) + + - 97 AS col0
----
6
NULL

query I rowsort
SELECT - ( + 16 ) * - 48 + - 5 AS col1
----
763

query II rowsort
SELECT - 58 AS col1, - 97
----
-58
-97

query I rowsort
SELECT ALL 37 * COALESCE ( 97, 38, + 91 )
----
3589

query I rowsort
SELECT - + 43 * + 90 * - 38
----
147060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4907
SELECT + + ( + - COUNT( CAST( + 62 AS SIGNED ) ) ) + + MIN( ALL - 54 )
----
-55

skipif mysql # not compatible
query I rowsort label-4907
SELECT + + ( + - COUNT ( CAST ( + 62 AS INTEGER ) ) ) + + MIN ( ALL - 54 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4908
SELECT ALL + 37 * - 11 + ( COUNT( * ) ) + - + 57 * 32 * + 78 * + - SUM( DISTINCT - - 15 ) * COUNT( DISTINCT + 17 ) + + - 14 + + NULLIF ( + COUNT( * ), + 48 * + CAST( 20 AS SIGNED ) / 70 * + + COUNT( * ) )
----
2133661

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL + 37 * - 11 + ( COUNT ( * ) ) + - + 57 * 32 * + 78 * + - SUM ( DISTINCT - - 15 ) * COUNT ( DISTINCT + 17 ) + + - 14 + + NULLIF ( + COUNT ( * ), + 48 * + CAST ( 20 AS INTEGER ) / 70 * + + COUNT ( * ) )
----
2133661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT DISTINCT - - 70 * - 64 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT - - 70 * - 64 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT + - COUNT( * ) - - 9
----
8

skipif mysql # not compatible
query I rowsort label-4910
SELECT + - COUNT ( * ) - - 9
----
8

query I rowsort
SELECT + + 44 - 2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL 1 * + COUNT( ALL - + 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL 1 * + COUNT ( ALL - + 34 ) AS col2
----
1

query II rowsort
SELECT - - 63 AS col1, + 17 AS col1
----
63
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT - COUNT( - 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4914
SELECT - COUNT ( - 58 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - NULLIF ( 24, 19 / - 97 ) + + - 29
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT ALL 9 * - + CAST( NULL AS SIGNED ) * ( - + 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL 9 * - + CAST ( NULL AS INTEGER ) * ( - + 87 ) AS col1
----
NULL

query I rowsort
SELECT - 80 - - + 42 AS col0
----
-38

query I rowsort
SELECT DISTINCT 44 * 75 * + - 99
----
-326700

query I rowsort
SELECT DISTINCT 14 - - 37
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT COALESCE ( - MAX( DISTINCT - 33 ), - - ( + + 88 ) * 36 - - 44, - 10 )
----
33

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT COALESCE ( - MAX ( DISTINCT - 33 ), - - ( + + 88 ) * 36 - - 44, - 10 )
----
33

query II rowsort
SELECT - 37 * - - 56 AS col2, + 65
----
-2072
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT DISTINCT MIN( - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT MIN ( - 13 ) AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4923
SELECT - 49 * - CAST( NULL AS SIGNED ) + + COUNT( * ) * - - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT - 49 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - - 11
----
NULL

query I rowsort
SELECT + 19 - + - 24 * + - 28 * 85 AS col0
----
-57101

query II rowsort
SELECT DISTINCT + 86 * - 37, 79 AS col2
----
-3182
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT DISTINCT COUNT( * ) DIV - COUNT( + ( + - 73 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT COUNT ( * ) / - COUNT ( + ( + - 73 ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT - 99 DIV 47 + + 20 col2
----
18

skipif mysql # not compatible
query I rowsort label-4927
SELECT - 99 / 47 + + 20 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT + COUNT( ALL - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT + COUNT ( ALL - 74 )
----
1

query I rowsort
SELECT DISTINCT - 22 + 96 + 92 - 64 + + + 27 + + - 42 * 68 AS col1
----
-2727

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT + - 26 * - COUNT( * ) - - ( + 49 ) * 29 + 7 + + 24 * - - 65 AS col0
----
3014

skipif mysql # not compatible
query I rowsort label-4930
SELECT + - 26 * - COUNT ( * ) - - ( + 49 ) * 29 + 7 + + 24 * - - 65 AS col0
----
3014

query I rowsort
SELECT - 82 + + + 54
----
-28

query I rowsort
SELECT 31 + 34 + + 54 AS col1
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT + CASE - ( - - NULLIF ( + ( CAST( NULL AS SIGNED ) ), + + ( + CAST( 47 AS SIGNED ) ) ) ) WHEN - 12 + + 32 + - 91 * 62 + 54 / - 23 THEN NULL ELSE + 73 END + 72 * - - 22
----
1657

skipif mysql # not compatible
query I rowsort label-4933
SELECT + CASE - ( - - NULLIF ( + ( CAST ( NULL AS INTEGER ) ), + + ( + CAST ( 47 AS INTEGER ) ) ) ) WHEN - 12 + + 32 + - 91 * 62 + 54 / - 23 THEN NULL ELSE + 73 END + 72 * - - 22
----
1657

query I rowsort
SELECT + ( 20 ) col2
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4935
SELECT DISTINCT + 87 + - + 19 + + + 8 DIV 29 * + COALESCE ( ( 37 ), - + CAST( NULL AS SIGNED ) * 79 + - 78 ) col0
----
68

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT + 87 + - + 19 + + + 8 / 29 * + COALESCE ( ( 37 ), - + CAST ( NULL AS INTEGER ) * 79 + - 78 ) col0
----
68

query I rowsort
SELECT 23 * + 44 * + 69 + - ( 89 ) - - 86 + - 2 col1
----
69823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4937
SELECT + 34 * - MIN( 55 ) + + 27 * - NULLIF ( + - COUNT( * ), + COALESCE ( + 83, + + 4 ) ) + - 30 DIV + - 78 * + 87 * + + 84 AS col2, - CAST( NULL AS SIGNED ) DIV - AVG ( - + 82 ) * + 0 + 32 AS col2
----
-1843
NULL

skipif mysql # not compatible
query II rowsort label-4937
SELECT + 34 * - MIN ( 55 ) + + 27 * - NULLIF ( + - COUNT ( * ), + COALESCE ( + 83, + + 4 ) ) + - 30 / + - 78 * + 87 * + + 84 AS col2, - CAST ( NULL AS INTEGER ) / - AVG ( - + 82 ) * + 0 + 32 AS col2
----
-1843
NULL

query I rowsort
SELECT DISTINCT - + 6 col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT - 26 + - ( COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT - 26 + - ( COUNT ( * ) )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT + MAX( DISTINCT + 3 ) AS col1, - 90
----
3
-90

skipif mysql # not compatible
query II rowsort label-4940
SELECT + MAX ( DISTINCT + 3 ) AS col1, - 90
----
3
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT + 46 + - - 28 + + COUNT( * ) - CASE 85 WHEN + + 0 THEN NULL ELSE 61 * - 47 END AS col2
----
2942

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT + 46 + - - 28 + + COUNT ( * ) - CASE 85 WHEN + + 0 THEN NULL ELSE 61 * - 47 END AS col2
----
2942

query I rowsort
SELECT DISTINCT + 35 + 76 * - 6 * 32 + ( - 29 ) col0
----
-14586

onlyif mysql # DIV for integer division: 
query II rowsort label-4943
SELECT 80 DIV 70, 7 AS col0
----
1
7

skipif mysql # not compatible
query II rowsort label-4943
SELECT 80 / 70, 7 AS col0
----
1
7

query I rowsort
SELECT + 82 + - + 74 + - 22
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL + COUNT( * ) * + 91 * - 72
----
-6552

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + COUNT ( * ) * + 91 * - 72
----
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT + 21 * - 33 * - 62 + + COUNT( * )
----
42967

skipif mysql # not compatible
query I rowsort label-4946
SELECT + 21 * - 33 * - 62 + + COUNT ( * )
----
42967

query I rowsort
SELECT 70 + + 61
----
131

query II rowsort
SELECT - 25, ( 51 ) AS col2
----
-25
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4949
SELECT 87 + - COUNT( * ) - SUM( DISTINCT + 59 ) AS col0, - COALESCE ( - - CAST( - 29 AS SIGNED ), + 7 * - 85 + + 50, + 93 )
----
27
29

skipif mysql # not compatible
query II rowsort label-4949
SELECT 87 + - COUNT ( * ) - SUM ( DISTINCT + 59 ) AS col0, - COALESCE ( - - CAST ( - 29 AS INTEGER ), + 7 * - 85 + + 50, + 93 )
----
27
29

query I rowsort
SELECT DISTINCT - 89 - 40 AS col1
----
-129

query I rowsort
SELECT 6 + + 59 * - 92 AS col1
----
-5422

onlyif mysql # aggregate syntax: 
query II rowsort label-4952
SELECT ALL 37, MIN( 79 ) AS col2
----
37
79

skipif mysql # not compatible
query II rowsort label-4952
SELECT ALL 37, MIN ( 79 ) AS col2
----
37
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT DISTINCT 43 AS col0, 37 * + - COUNT( ALL 69 ) * - - ( 48 ) - + 88 + + COUNT( * )
----
43
-1863

skipif mysql # not compatible
query II rowsort label-4953
SELECT DISTINCT 43 AS col0, 37 * + - COUNT ( ALL 69 ) * - - ( 48 ) - + 88 + + COUNT ( * )
----
43
-1863

query I rowsort
SELECT 12 + 71 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT COUNT( * ) * + MIN( DISTINCT + - 87 ) * 82
----
-7134

skipif mysql # not compatible
query I rowsort label-4955
SELECT COUNT ( * ) * + MIN ( DISTINCT + - 87 ) * 82
----
-7134

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT COALESCE ( + 37, 70, COUNT( * ) ) + - 19 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4956
SELECT COALESCE ( + 37, 70, COUNT ( * ) ) + - 19 AS col0
----
18

query I rowsort
SELECT 31 + + 38
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT DISTINCT 95 + - - ( - + CAST( 53 AS SIGNED ) ) * 46 + 22 + 87 + - 46 * + + COUNT( * ) AS col0
----
-2280

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT 95 + - - ( - + CAST ( 53 AS INTEGER ) ) * 46 + 22 + 87 + - 46 * + + COUNT ( * ) AS col0
----
-2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT DISTINCT + 55 + - + COUNT( * ) + 15 DIV + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT + 55 + - + COUNT ( * ) + 15 / + COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT 88 + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT 88 + - COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ( + COUNT( * ) ) + 45 * - - 89
----
4006

skipif mysql # not compatible
query I rowsort label-4961
SELECT ( + COUNT ( * ) ) + 45 * - - 89
----
4006

query I rowsort
SELECT + 80 * 74 col2
----
5920

query I rowsort
SELECT 38 * + 51 - - + 26 + + 25 * + 49
----
3189

query II rowsort
SELECT - 53 AS col1, 94 * - 79
----
-53
-7426

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT + ( + 54 ) DIV - - 79 * + 27 + + 14
----
14

skipif mysql # not compatible
query I rowsort label-4965
SELECT + ( + 54 ) / - - 79 * + 27 + + 14
----
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4966
SELECT ALL + - 91 + + COALESCE ( - 58, + COUNT( * ), + COUNT( * ) ) * + 20 * - + 32 * + MIN( - + 96 ) + - 46 * + CAST( NULL AS DECIMAL ) * + - 77 / + 83 * - 78 * - + 41 + + 93 + - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + - 91 + + COALESCE ( - 58, + COUNT ( * ), + COUNT ( * ) ) * + 20 * - + 32 * + MIN ( - + 96 ) + - 46 * + CAST ( NULL AS REAL ) * + - 77 / + 83 * - 78 * - + 41 + + 93 + - 19 AS col2
----
NULL

query I rowsort
SELECT 77 * - 62 + + 80 AS col0
----
-4694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4968
SELECT 23 * - MIN( + + 17 ) * 67 - - 56 DIV - MAX( + 37 )
----
-26198

skipif mysql # not compatible
query I rowsort label-4968
SELECT 23 * - MIN ( + + 17 ) * 67 - - 56 / - MAX ( + 37 )
----
-26198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4969
SELECT DISTINCT - 26 AS col2, 12 * - + 6 * + - ( - CASE 42 WHEN - NULLIF ( - COUNT( ALL + 58 ), CAST( NULL AS SIGNED ) ) * - 65 * + 93 / + 71 * - CAST( 56 AS SIGNED ) - ( - 37 ) + + 17 THEN - ( + 93 ) + + - 38 WHEN - 53 THEN + MIN( ALL - 16 ) END )
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-4969
SELECT DISTINCT - 26 AS col2, 12 * - + 6 * + - ( - CASE 42 WHEN - NULLIF ( - COUNT ( ALL + 58 ), CAST ( NULL AS INTEGER ) ) * - 65 * + 93 / + 71 * - CAST ( 56 AS INTEGER ) - ( - 37 ) + + 17 THEN - ( + 93 ) + + - 38 WHEN - 53 THEN + MIN ( ALL - 16 ) END )
----
-26
NULL

query I rowsort
SELECT ALL - 97 + + 99 * + 96 * - + 56 AS col1
----
-532321

query I rowsort
SELECT ALL + + 86 * - - 19 AS col0
----
1634

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT - MAX( ALL + 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4972
SELECT - MAX ( ALL + 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT NULLIF ( 89, - COUNT( * ) - + - 37 + ( - MIN( + 45 ) ) ) * - COUNT( * ) + + 93
----
4

skipif mysql # not compatible
query I rowsort label-4973
SELECT NULLIF ( 89, - COUNT ( * ) - + - 37 + ( - MIN ( + 45 ) ) ) * - COUNT ( * ) + + 93
----
4

query II rowsort
SELECT 80, + 72 AS col0
----
80
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4975
SELECT 23 + + + 68 + MIN( DISTINCT - ( 86 ) ) * - - COUNT( * ) * + MIN( ALL - 46 ) col0, - CAST( NULL AS SIGNED ) / - ( 28 ) AS col1
----
4047
NULL

skipif mysql # not compatible
query II rowsort label-4975
SELECT 23 + + + 68 + MIN ( DISTINCT - ( 86 ) ) * - - COUNT ( * ) * + MIN ( ALL - 46 ) col0, - CAST ( NULL AS INTEGER ) / - ( 28 ) AS col1
----
4047
NULL

query I rowsort
SELECT - 88 * + 31 + 45 AS col1
----
-2683

query I rowsort
SELECT 72 - + 91
----
-19

query I rowsort
SELECT 0 - ( + ( - ( - 28 ) ) ) * - 62 AS col2
----
1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT ALL CASE + - 15 WHEN - COUNT( * ) THEN - + ( + CAST( - 31 AS SIGNED ) ) / - - 78 WHEN - + 43 THEN + + 32 + - + CAST( NULL AS SIGNED ) + + + 71 * - MIN( + - 38 ) + 61 END * + 90 * MIN( 62 ) * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL CASE + - 15 WHEN - COUNT ( * ) THEN - + ( + CAST ( - 31 AS INTEGER ) ) / - - 78 WHEN - + 43 THEN + + 32 + - + CAST ( NULL AS INTEGER ) + + + 71 * - MIN ( + - 38 ) + 61 END * + 90 * MIN ( 62 ) * - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT COUNT( * ) * + - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4980
SELECT COUNT ( * ) * + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4981
SELECT NULLIF ( COUNT( * ), - 64 ) DIV - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4981
SELECT NULLIF ( COUNT ( * ), - 64 ) / - 64 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT 96 * 97 AS col1, + MAX( ALL 52 ) AS col2
----
9312
52

skipif mysql # not compatible
query II rowsort label-4982
SELECT 96 * 97 AS col1, + MAX ( ALL 52 ) AS col2
----
9312
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT 35 - + 46 DIV 69
----
35

skipif mysql # not compatible
query I rowsort label-4983
SELECT 35 - + 46 / 69
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4984
SELECT 15 DIV - - CASE + 27 WHEN 69 THEN + - 5 WHEN + 35 THEN NULL ELSE + + NULLIF ( - - 97, 77 * - 95 + 52 ) * + 70 * - + COUNT( * ) + + 68 + 60 * + 39 END
----
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT 15 / - - CASE + 27 WHEN 69 THEN + - 5 WHEN + 35 THEN NULL ELSE + + NULLIF ( - - 97, 77 * - 95 + 52 ) * + 70 * - + COUNT ( * ) + + 68 + 60 * + 39 END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT 51 DIV - - 18 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4985
SELECT 51 / - - 18 AS col1
----
2

query I rowsort
SELECT 22 * - - 53
----
1166

query I rowsort
SELECT DISTINCT - 86 + + 62 + - 31 - + 45 * + 16
----
-775

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT ALL 42 DIV 44 col0
----
0

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL 42 / 44 col0
----
0

query II rowsort
SELECT DISTINCT 1 + - + 5 AS col0, + 41 * + 89 AS col0
----
-4
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT DISTINCT NULLIF ( - 9, + + 49 - + ( - 98 ) + - COUNT( * ) ) + + 7 * + + 28
----
187

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT NULLIF ( - 9, + + 49 - + ( - 98 ) + - COUNT ( * ) ) + + 7 * + + 28
----
187

query I rowsort
SELECT - 36 + + 12 * - 84
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT - MIN( - 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4992
SELECT - MIN ( - 70 ) AS col0
----
70

query I rowsort
SELECT - 12 + - 71
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + 34 * - - 86 * + - NULLIF ( - MAX( DISTINCT - 37 ), 62 + - 66 * - 71 ) AS col2
----
-108188

skipif mysql # not compatible
query I rowsort label-4994
SELECT + 34 * - - 86 * + - NULLIF ( - MAX ( DISTINCT - 37 ), 62 + - 66 * - 71 ) AS col2
----
-108188

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT ALL - 46 * - - 55 * - 33 + + COUNT( * ) AS col1, + 30 * - 9 + + 74
----
83491
-196

skipif mysql # not compatible
query II rowsort label-4995
SELECT ALL - 46 * - - 55 * - 33 + + COUNT ( * ) AS col1, + 30 * - 9 + + 74
----
83491
-196

query I rowsort
SELECT ALL 61 * 76 + - 61 * + + 96 AS col1
----
-1220

query I rowsort
SELECT + + 6 + - 80 * - + 4 + 88 * - 44
----
-3546

query I rowsort
SELECT + - 31 + + 43 * 90
----
3839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4999
SELECT DISTINCT + - CAST( 42 AS SIGNED ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT + - CAST ( 42 AS INTEGER ) AS col0
----
-42

query I rowsort
SELECT 40 * + - COALESCE ( - 19, - 2 ) - 8 AS col0
----
752

query I rowsort
SELECT + + 71 + + 45 AS col0
----
116

query I rowsort
SELECT ALL - ( + - 11 ) * - 81 - - - CASE CASE + + 19 WHEN 79 THEN NULL WHEN - 92 THEN - 54 WHEN + 59 THEN NULL END WHEN - - 60 THEN NULL WHEN - + 76 THEN NULL ELSE + 74 END AS col1
----
-965

query I rowsort
SELECT - + 74 * - 30 col2
----
2220

query I rowsort
SELECT + 75 * - + 57 + + 57 + 66 + - 40 * + 32 * - - 81 - + 84 * + 75 + - 85 AS col0
----
-114217

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL + 94 * - + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL + 94 * - + COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5006
SELECT + + MAX( DISTINCT 63 ) AS col2, + ( - SUM( - - 70 ) ) AS col1
----
63
-70

skipif mysql # not compatible
query II rowsort label-5006
SELECT + + MAX ( DISTINCT 63 ) AS col2, + ( - SUM ( - - 70 ) ) AS col1
----
63
-70

query I rowsort
SELECT - 21 + - 67 * - 53 AS col2
----
3530

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL COUNT( * ) * + 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL COUNT ( * ) * + 48 AS col2
----
48

query I rowsort
SELECT - 38 * + + 27
----
-1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT + ( - - CAST( COUNT( * ) AS SIGNED ) ) + 49 + - + 64
----
-14

skipif mysql # not compatible
query I rowsort label-5010
SELECT + ( - - CAST ( COUNT ( * ) AS INTEGER ) ) + 49 + - + 64
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5011
SELECT 35 * - 72 + + ( - 2 ) + COUNT( * ), ( + - COUNT( * ) ) * + 8 col0
----
-2521
-8

skipif mysql # not compatible
query II rowsort label-5011
SELECT 35 * - 72 + + ( - 2 ) + COUNT ( * ), ( + - COUNT ( * ) ) * + 8 col0
----
-2521
-8

query I rowsort
SELECT - 2 * - - 58
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5013
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) / + ( 55 ) * ( ( + 80 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + ( 55 ) * ( ( + 80 ) )
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 44, - 78 )
----
-44

query I rowsort
SELECT - 72 + + - 64
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT ALL - COALESCE ( - 24, - 40 ) + - 23 DIV + + 72
----
24

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - COALESCE ( - 24, - 40 ) + - 23 / + + 72
----
24

query I rowsort
SELECT - 42 + 96 - 46 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - SUM( - + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5018
SELECT - SUM ( - + 39 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT DISTINCT - ( - SUM( + 73 ) ) + 20 + 70 * + - 97 + 36 + 24
----
-6637

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT - ( - SUM ( + 73 ) ) + 20 + 70 * + - 97 + 36 + 24
----
-6637

query I rowsort
SELECT + 94 + 50
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT ALL - 41 DIV COUNT( * ) col0
----
-41

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - 41 / COUNT ( * ) col0
----
-41

query I rowsort
SELECT ALL - - 7 - 8 * + + NULLIF ( 17, - 26 * 94 * 13 )
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT ALL - 98 DIV - + 14 - + COALESCE ( - COUNT( * ), + + 12 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL - 98 / - + 14 - + COALESCE ( - COUNT ( * ), + + 12 ) AS col2
----
8

query I rowsort
SELECT + 7 * + 5 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT + CAST( NULL AS SIGNED ) + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT + CAST ( NULL AS INTEGER ) + + 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5026
SELECT ALL + 42 AS col1, - CAST( NULL AS SIGNED )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-5026
SELECT ALL + 42 AS col1, - CAST ( NULL AS INTEGER )
----
42
NULL

query I rowsort
SELECT + 34 + 54 AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5028
SELECT - + 83 * - 51 * + 86 AS col1, - COUNT( ALL + - 90 ) * COUNT( * ) + - - MIN( - 20 ) DIV - 88 AS col1
----
364038
-1

skipif mysql # not compatible
query II rowsort label-5028
SELECT - + 83 * - 51 * + 86 AS col1, - COUNT ( ALL + - 90 ) * COUNT ( * ) + - - MIN ( - 20 ) / - 88 AS col1
----
364038
-1

query I rowsort
SELECT DISTINCT 22 * + - 57 AS col0
----
-1254

query I rowsort
SELECT DISTINCT + - 66 col0
----
-66

query I rowsort
SELECT DISTINCT 79 * - 44 AS col0
----
-3476

query II rowsort
SELECT + + 84 * + 76 + + 38 AS col1, - 74 * + + 46 + - 9 * + 21
----
6422
-3593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT ALL + - CAST( - ( + + 4 ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + - CAST ( - ( + + 4 ) AS INTEGER )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5034
SELECT + COUNT( * ) DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT + COUNT ( * ) / - 91
----
0

query I rowsort
SELECT + ( + + 55 ) + + 75
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT 49 * + 58 + - + 13 + - - COUNT( * ) * + 47 col0
----
2876

skipif mysql # not compatible
query I rowsort label-5036
SELECT 49 * + 58 + - + 13 + - - COUNT ( * ) * + 47 col0
----
2876

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT NULLIF ( ( + - 79 ), + 96 * + + COUNT( 48 ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5037
SELECT NULLIF ( ( + - 79 ), + 96 * + + COUNT ( 48 ) ) AS col2
----
-79

query I rowsort
SELECT + ( - 12 ) col1
----
-12

query I rowsort
SELECT ALL + 58 * 64 + + 23 col2
----
3735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5040
SELECT + CAST( - 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-5040
SELECT + CAST ( - 70 AS INTEGER )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT - 14 * + COUNT( * ) + 99 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT - 14 * + COUNT ( * ) + 99 AS col1
----
85

query I rowsort
SELECT ALL - ( - 94 ) * + 53 AS col0
----
4982

query I rowsort
SELECT ALL + 64 * - - 84 + - 67 AS col0
----
5309

query I rowsort
SELECT ALL - 68 + + + 68
----
0

query I rowsort
SELECT DISTINCT 72 * + 87
----
6264

onlyif mysql # aggregate syntax: 
query II rowsort label-5046
SELECT ALL 54 AS col0, 79 * + MAX( DISTINCT + 89 )
----
54
7031

skipif mysql # not compatible
query II rowsort label-5046
SELECT ALL 54 AS col0, 79 * + MAX ( DISTINCT + 89 )
----
54
7031

onlyif mysql # aggregate syntax: 
query II rowsort label-5047
SELECT - 56 AS col1, - COUNT( * )
----
-56
-1

skipif mysql # not compatible
query II rowsort label-5047
SELECT - 56 AS col1, - COUNT ( * )
----
-56
-1

query I rowsort
SELECT 66 * - 48
----
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5049
SELECT ALL - 69 + - + 46 * - + 32 * - 12 + - CASE + + 18 WHEN - 11 + - 49 - - 30 + + + AVG ( DISTINCT + CAST( + 97 AS SIGNED ) ) THEN - COUNT( ALL + 61 ) DIV 73 * + 81 * - 99 + 66 DIV 79 WHEN MAX( + 60 ) + - 56 + + 7 THEN + + 52 * + COUNT( * ) DIV - 66 ELSE - 10 END * - 4 * - - MAX( 14 )
----
-18293

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - 69 + - + 46 * - + 32 * - 12 + - CASE + + 18 WHEN - 11 + - 49 - - 30 + + + AVG ( DISTINCT + CAST ( + 97 AS INTEGER ) ) THEN - COUNT ( ALL + 61 ) / 73 * + 81 * - 99 + 66 / 79 WHEN MAX ( + 60 ) + - 56 + + 7 THEN + + 52 * + COUNT ( * ) / - 66 ELSE - 10 END * - 4 * - - MAX ( 14 )
----
-18293

query II rowsort
SELECT 30 col1, 97 * + + 34
----
30
3298

query I rowsort
SELECT 47 - - - 31
----
16

query I rowsort
SELECT ALL 71 * + + 25 AS col2
----
1775

query I rowsort
SELECT 56 * - - ( 9 ) * - 52 * - ( - ( - ( 7 ) ) )
----
183456

query I rowsort
SELECT ALL 25 - - 98
----
123

query III rowsort
SELECT + 10, - 96 AS col1, + 93 + 73 AS col1
----
10
-96
166

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL + 59 - - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + 59 - - COUNT ( * )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT ALL COALESCE ( 73, + 23 DIV - 23 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL COALESCE ( 73, + 23 / - 23 ) AS col0
----
73

query I rowsort
SELECT ALL - + 71 - 1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5059
SELECT DISTINCT - MIN( + + 23 ) DIV - 99 col0
----
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT - MIN ( + + 23 ) / - 99 col0
----
0

query II rowsort
SELECT - 45 AS col2, - 55
----
-45
-55

query I rowsort
SELECT + NULLIF ( - 46, - 6 ) + - - 23
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT ALL - COUNT( * ) * - ( - 92 ) + 64 - - + CAST( NULL AS SIGNED ) / - - 84 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - COUNT ( * ) * - ( - 92 ) + 64 - - + CAST ( NULL AS INTEGER ) / - - 84 * + 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT + COUNT( * ) * + 1 * - - COUNT( * ) * + + CASE + 7 WHEN ( + + 58 ) * ( + + 38 ) THEN NULL ELSE - CAST( + - 34 AS SIGNED ) END + - 50 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5063
SELECT + COUNT ( * ) * + 1 * - - COUNT ( * ) * + + CASE + 7 WHEN ( + + 58 ) * ( + + 38 ) THEN NULL ELSE - CAST ( + - 34 AS INTEGER ) END + - 50 AS col2
----
-16

query I rowsort
SELECT + 83 * + + 66 * 56 + + 48 + 69
----
306885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5065
SELECT + SUM( + + 63 ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-5065
SELECT + SUM ( + + 63 ) / 92
----
0

query I rowsort
SELECT DISTINCT - 16 * - - 59 + - 74
----
-1018

query I rowsort
SELECT - 99 + 45
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT DISTINCT - + CAST( - ( - 81 ) AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT - + CAST ( - ( - 81 ) AS INTEGER )
----
-81

query II rowsort
SELECT 49 AS col2, + 47 * + + 70 * + 5 * + + 55
----
49
904750

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL - + COUNT( * ) + - 52 + - 37 * + + SUM( - 57 ) * 4
----
8383

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL - + COUNT ( * ) + - 52 + - 37 * + + SUM ( - 57 ) * 4
----
8383

query I rowsort
SELECT 22 * 37 * + + 2 + - + 25 AS col2
----
1603

onlyif mysql # aggregate syntax: 
query II rowsort label-5072
SELECT 96 * - COUNT( * ) AS col2, ( + 82 ) col2
----
-96
82

skipif mysql # not compatible
query II rowsort label-5072
SELECT 96 * - COUNT ( * ) AS col2, ( + 82 ) col2
----
-96
82

query I rowsort
SELECT DISTINCT 38 + 13 AS col2
----
51

query I rowsort
SELECT 45 + - 64 AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5075
SELECT ALL - CAST( + 68 AS SIGNED ), + 50 DIV + + 16 col1
----
-68
3

skipif mysql # not compatible
query II rowsort label-5075
SELECT ALL - CAST ( + 68 AS INTEGER ), + 50 / + + 16 col1
----
-68
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT COUNT( * ) + - + 52 * 82 + + NULLIF ( + 51, + + 18 ) AS col1
----
-4212

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT COUNT ( * ) + - + 52 * 82 + + NULLIF ( + 51, + + 18 ) AS col1
----
-4212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5077
SELECT 35 + 93 col0, + CASE ( + ( + COUNT( * ) ) ) WHEN + ( - + 65 ) THEN + + CAST( MAX( ALL 83 ) AS SIGNED ) WHEN 75 + + + MIN( ALL 62 ) + + + 12 THEN NULL ELSE MAX( - 26 ) * - NULLIF ( + - 80, + 45 ) END AS col1
----
128
-2080

skipif mysql # not compatible
query II rowsort label-5077
SELECT 35 + 93 col0, + CASE ( + ( + COUNT ( * ) ) ) WHEN + ( - + 65 ) THEN + + CAST ( MAX ( ALL 83 ) AS INTEGER ) WHEN 75 + + + MIN ( ALL 62 ) + + + 12 THEN NULL ELSE MAX ( - 26 ) * - NULLIF ( + - 80, + 45 ) END AS col1
----
128
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL SUM( DISTINCT + ( - 79 ) ) + - - COUNT( * ) * + + 3
----
-76

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL SUM ( DISTINCT + ( - 79 ) ) + - - COUNT ( * ) * + + 3
----
-76

onlyif mysql # aggregate syntax: 
query III rowsort label-5079
SELECT ALL 19 + + 26 AS col0, NULLIF ( MIN( ALL + 38 ), + AVG ( 1 ) * - 72 ) col1, + + COALESCE ( + 88, COALESCE ( - + 77, MIN( - - 75 ) + + 18 - + + COUNT( * ) * - 84, - 78 ) )
----
45
38
88

skipif mysql # not compatible
query III rowsort label-5079
SELECT ALL 19 + + 26 AS col0, NULLIF ( MIN ( ALL + 38 ), + AVG ( 1 ) * - 72 ) col1, + + COALESCE ( + 88, COALESCE ( - + 77, MIN ( - - 75 ) + + 18 - + + COUNT ( * ) * - 84, - 78 ) )
----
45
38
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT - 79 * - - 37 + - MAX( + 93 )
----
-3016

skipif mysql # not compatible
query I rowsort label-5080
SELECT - 79 * - - 37 + - MAX ( + 93 )
----
-3016

onlyif mysql # aggregate syntax: 
query II rowsort label-5081
SELECT DISTINCT ( 30 ) - + - CASE - - 16 WHEN - COUNT( * ) * + + 22 - + 47 THEN 59 ELSE + - 76 END * - + 56 AS col0, + 9 + + + 12 AS col0
----
4286
21

skipif mysql # not compatible
query II rowsort label-5081
SELECT DISTINCT ( 30 ) - + - CASE - - 16 WHEN - COUNT ( * ) * + + 22 - + 47 THEN 59 ELSE + - 76 END * - + 56 AS col0, + 9 + + + 12 AS col0
----
4286
21

query I rowsort
SELECT 66 + + 43 + 61
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5083
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - 72 AS col2, 35
----
NULL
35

skipif mysql # not compatible
query II rowsort label-5083
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - 72 AS col2, 35
----
NULL
35

query I rowsort
SELECT 44 + - 89
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL - COUNT( * ) * + 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL - COUNT ( * ) * + 18 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT 46 * MIN( 24 ) + + COUNT( * ) + - 32 * + ( - COUNT( * ) ) * + 97
----
4209

skipif mysql # not compatible
query I rowsort label-5086
SELECT 46 * MIN ( 24 ) + + COUNT ( * ) + - 32 * + ( - COUNT ( * ) ) * + 97
----
4209

query I rowsort
SELECT ALL + 38 * - - 81 AS col1
----
3078

query I rowsort
SELECT 13 + - 17
----
-4

query I rowsort
SELECT 92 * - + 52 + 70 AS col0
----
-4714

query I rowsort
SELECT ALL + 6 * + + 43 + - 89
----
169

query I rowsort
SELECT DISTINCT - ( + + ( 53 ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL + 17 * + 2 + SUM( ALL 38 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL + 17 * + 2 + SUM ( ALL 38 ) AS col0
----
72

query II rowsort
SELECT + ( - 89 ), - 88 col2
----
-89
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT 84 DIV - 97 + 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5094
SELECT 84 / - 97 + 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL - + 96 * - 8 + + MAX( ALL 28 ) - + + 62 + - 8 AS col2
----
726

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - + 96 * - 8 + + MAX ( ALL 28 ) - + + 62 + - 8 AS col2
----
726

query I rowsort
SELECT DISTINCT + 12 * + 76 * - 64 - 91 col0
----
-58459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5097
SELECT 9 DIV - COALESCE ( + 22, + + COUNT( * ), - ( - + 22 ) * CAST( + COUNT( * ) AS SIGNED ) ) * 94
----
0

skipif mysql # not compatible
query I rowsort label-5097
SELECT 9 / - COALESCE ( + 22, + + COUNT ( * ), - ( - + 22 ) * CAST ( + COUNT ( * ) AS INTEGER ) ) * 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5098
SELECT COUNT( * ) * + CAST( - 82 AS SIGNED ), + NULLIF ( CASE NULLIF ( + 25, - 40 ) WHEN + 8 THEN + - 72 END, - - 15 * + 71 * 14 * - 66 ) AS col0
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-5098
SELECT COUNT ( * ) * + CAST ( - 82 AS INTEGER ), + NULLIF ( CASE NULLIF ( + 25, - 40 ) WHEN + 8 THEN + - 72 END, - - 15 * + 71 * 14 * - 66 ) AS col0
----
-82
NULL

query I rowsort
SELECT DISTINCT 63 * - 20 + + 70 * + + 49
----
2170

query I rowsort
SELECT ALL - ( - + 90 ) AS col1
----
90

query I rowsort
SELECT DISTINCT + 59 * - 25 * + 52 AS col0
----
-76700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5102
SELECT - COUNT( * ) DIV - COUNT( ALL + + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-5102
SELECT - COUNT ( * ) / - COUNT ( ALL + + 41 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT ALL 43 DIV 45 * + - SUM( DISTINCT + + 61 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL 43 / 45 * + - SUM ( DISTINCT + + 61 ) col0
----
0

query I rowsort
SELECT ALL + ( + 91 ) col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL - COALESCE ( COUNT( * ), 10 + 53 ) * - + 87 + - 98 + + 1 * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL - COALESCE ( COUNT ( * ), 10 + 53 ) * - + 87 + - 98 + + 1 * - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT + 40 AS col2, COUNT( * ) + 90 AS col1
----
40
91

skipif mysql # not compatible
query II rowsort label-5106
SELECT + 40 AS col2, COUNT ( * ) + 90 AS col1
----
40
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT COUNT( ALL - + 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5107
SELECT COUNT ( ALL - + 13 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + COUNT( DISTINCT 75 ) * + - MAX( ALL + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5108
SELECT + COUNT ( DISTINCT 75 ) * + - MAX ( ALL + 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL + COALESCE ( - 22, + SUM( ALL - + 72 ) * + + MIN( - - ( + 78 ) ) + + + COUNT( * ) * + 32 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL + COALESCE ( - 22, + SUM ( ALL - + 72 ) * + + MIN ( - - ( + 78 ) ) + + + COUNT ( * ) * + 32 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5110
SELECT DISTINCT + 8, + NULLIF ( - 26, + CAST( + COUNT( * ) AS SIGNED ) * + 79 * + 59 ) col0
----
8
-26

skipif mysql # not compatible
query II rowsort label-5110
SELECT DISTINCT + 8, + NULLIF ( - 26, + CAST ( + COUNT ( * ) AS INTEGER ) * + 79 * + 59 ) col0
----
8
-26

query I rowsort
SELECT DISTINCT + 69 - 61 + + 77 AS col0
----
85

query II rowsort
SELECT ALL + 21 AS col1, + CASE WHEN NULL = 48 THEN NULL ELSE - 67 END AS col2
----
21
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT ALL 36 * - 40 * + + COUNT( * ), - COALESCE ( NULLIF ( 15, + 29 / - 30 ), - 37 ) AS col2
----
-1440
-15

skipif mysql # not compatible
query II rowsort label-5113
SELECT ALL 36 * - 40 * + + COUNT ( * ), - COALESCE ( NULLIF ( 15, + 29 / - 30 ), - 37 ) AS col2
----
-1440
-15

query I rowsort
SELECT DISTINCT COALESCE ( + ( 16 ), + 9 + - 67 ) AS col1
----
16

query I rowsort
SELECT DISTINCT + 33 * - 72
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT DISTINCT 0 * - ( - COUNT( + + ( 12 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT 0 * - ( - COUNT ( + + ( 12 ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5117
SELECT - CAST( NULL AS SIGNED ) AS col1, + 93 col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-5117
SELECT - CAST ( NULL AS INTEGER ) AS col1, + 93 col1
----
NULL
93

query I rowsort
SELECT + 31 * 80 * + 37 * 14 AS col2
----
1284640

onlyif mysql # DIV for integer division: 
query I rowsort label-5119
SELECT + COALESCE ( - + 95, - ( - 16 ) + 50 * + - 24 DIV + + 74, + 63 + + 82 + + - NULLIF ( - 81, + 91 ) * + NULLIF ( 54, + 62 ), 50 ) - - 24 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5119
SELECT + COALESCE ( - + 95, - ( - 16 ) + 50 * + - 24 / + + 74, + 63 + + 82 + + - NULLIF ( - 81, + 91 ) * + NULLIF ( 54, + 62 ), 50 ) - - 24 AS col1
----
-71

query I rowsort
SELECT ALL 84 + - - 10 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + + 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5122
SELECT ALL COALESCE ( - - CAST( + + 57 AS SIGNED ), + 33 ) / - 64 * + + CASE + ( - - 0 ) WHEN + NULLIF ( + MIN( ( 38 ) ), + 66 ) THEN - 10 END + - 83 * - + CAST( - + 5 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL COALESCE ( - - CAST ( + + 57 AS INTEGER ), + 33 ) / - 64 * + + CASE + ( - - 0 ) WHEN + NULLIF ( + MIN ( ( 38 ) ), + 66 ) THEN - 10 END + - 83 * - + CAST ( - + 5 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT ALL - 35 * + CAST( - 79 AS SIGNED )
----
2765

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL - 35 * + CAST ( - 79 AS INTEGER )
----
2765

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL - 77 * COALESCE ( - 6, ( - - SUM( DISTINCT 6 ) ) * 95 + - + 39 + - - 85 )
----
462

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - 77 * COALESCE ( - 6, ( - - SUM ( DISTINCT 6 ) ) * 95 + - + 39 + - - 85 )
----
462

query I rowsort
SELECT ALL - 66 + 54
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - + ( - CASE COUNT( * ) WHEN - ( 60 ) * 1 * - 74 + - + 3 THEN - - 49 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT - + ( - CASE COUNT ( * ) WHEN - ( 60 ) * 1 * - 74 + - + 3 THEN - - 49 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + - 86 + 43 * + + 56 + 36 + + 22 + 3 * COUNT( * ) col0
----
2383

skipif mysql # not compatible
query I rowsort label-5127
SELECT + - 86 + 43 * + + 56 + 36 + + 22 + 3 * COUNT ( * ) col0
----
2383

query I rowsort
SELECT - 3 - - COALESCE ( - + 26, - 5 )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-5129
SELECT 36 DIV + - 87 + + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5129
SELECT 36 / + - 87 + + 30 AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5130
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) / + 80 + - COUNT( ALL - 93 ) * + 29 * - + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) / + 80 + - COUNT ( ALL - 93 ) * + 29 * - + 23 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5131
SELECT - 53 DIV - - 36 + - 29 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5131
SELECT - 53 / - - 36 + - 29 AS col2
----
-30

query I rowsort
SELECT ( + 65 ) col2
----
65

query I rowsort
SELECT + 20 * + 32 * - 52 * + + 97 * 99 AS col0
----
-319587840

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5134
SELECT DISTINCT - 66 * 34 - + 6 + + 4 col0, - ( - 47 ) + + + CAST( NULL AS DECIMAL ), + 2 AS col0
----
-2246
NULL
2

skipif mysql # not compatible
query III rowsort label-5134
SELECT DISTINCT - 66 * 34 - + 6 + + 4 col0, - ( - 47 ) + + + CAST ( NULL AS REAL ), + 2 AS col0
----
-2246
NULL
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5135
SELECT + NULLIF ( + 86, 1 ) / + + ( CAST( NULL AS SIGNED ) ) * COALESCE ( 58, + 71, + AVG ( 34 ) ) * - + CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT + NULLIF ( + 86, 1 ) / + + ( CAST ( NULL AS INTEGER ) ) * COALESCE ( 58, + 71, + AVG ( 34 ) ) * - + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 10 * + - 40 AS col0
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5137
SELECT DISTINCT - COUNT( DISTINCT 25 ) * + 44 - - - 28 - + ( + CAST( NULL AS SIGNED ) ) - + NULLIF ( 79, + 41 ) AS col0, - NULLIF ( + 28, - - 44 * + 94 + - 48 / - 34 )
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-5137
SELECT DISTINCT - COUNT ( DISTINCT 25 ) * + 44 - - - 28 - + ( + CAST ( NULL AS INTEGER ) ) - + NULLIF ( 79, + 41 ) AS col0, - NULLIF ( + 28, - - 44 * + 94 + - 48 / - 34 )
----
NULL
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT COUNT( * ) * + - 18 - + 66 + - + 2
----
-86

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT COUNT ( * ) * + - 18 - + 66 + - + 2
----
-86

query I rowsort
SELECT ALL + ( CASE 63 WHEN - + 35 THEN + 91 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT - COUNT( * ) + + + 10 + - 37 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5140
SELECT - COUNT ( * ) + + + 10 + - 37 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT DISTINCT + COALESCE ( - ( - MAX( 47 ) ), 90 * 77 + - + 56 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + COALESCE ( - ( - MAX ( 47 ) ), 90 * 77 + - + 56 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - 24 + + MIN( DISTINCT 83 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5142
SELECT - 24 + + MIN ( DISTINCT 83 ) AS col0
----
59

query I rowsort
SELECT - 30 - 3 + + 91
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT + COUNT( - - 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT + COUNT ( - - 70 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT ALL - COUNT( DISTINCT + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL - COUNT ( DISTINCT + 95 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5146
SELECT - + SUM( ALL - + ( + 45 ) ) + CAST( NULL AS SIGNED ), 11 AS col1
----
NULL
11

skipif mysql # not compatible
query II rowsort label-5146
SELECT - + SUM ( ALL - + ( + 45 ) ) + CAST ( NULL AS INTEGER ), 11 AS col1
----
NULL
11

query I rowsort
SELECT - COALESCE ( - 54, - + 90 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT + 28 + MAX( - 22 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT + 28 + MAX ( - 22 ) AS col1
----
6

query I rowsort
SELECT + + NULLIF ( + + 22, 23 ) * + 17 * 62
----
23188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT + 74 + + + CAST( NULL AS SIGNED ) * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT + 74 + + + CAST ( NULL AS INTEGER ) * + 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT + 1 + - 64 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT + 1 + - 64 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT ALL + CAST( + + 75 AS SIGNED ) + 1 * - 35
----
40

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + CAST ( + + 75 AS INTEGER ) + 1 * - 35
----
40

query I rowsort
SELECT + 58 * - 26 AS col0
----
-1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5154
SELECT ALL COALESCE ( 63, + + 62, + MIN( - 44 ) + - + 47 + - 93 * COUNT( DISTINCT + 68 ) + + COUNT( * ) + + 40 - + 96 + CAST( + 49 AS SIGNED ) * - CASE - - 17 WHEN + + 41 * - 48 + + - 54 + 25 * - - 96 THEN + 25 END * + 93 * + 52 + + + 79 DIV + + 55 * 68, 82 ) * - 89 AS col2
----
-5607

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL COALESCE ( 63, + + 62, + MIN ( - 44 ) + - + 47 + - 93 * COUNT ( DISTINCT + 68 ) + + COUNT ( * ) + + 40 - + 96 + CAST ( + 49 AS INTEGER ) * - CASE - - 17 WHEN + + 41 * - 48 + + - 54 + 25 * - - 96 THEN + 25 END * + 93 * + 52 + + + 79 / + + 55 * 68, 82 ) * - 89 AS col2
----
-5607

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT DISTINCT 79 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT 79 / + 95
----
0

query I rowsort
SELECT ALL COALESCE ( - 76, - 30 ) - - + 60
----
-16

query I rowsort
SELECT ALL 3 * + 65
----
195

query I rowsort
SELECT DISTINCT 61 * + 66
----
4026

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT 51 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5159
SELECT 51 / 65 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT ALL CAST( NULL AS SIGNED ) * 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL CAST ( NULL AS INTEGER ) * 56 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT + 37 AS col1, COUNT( * ) AS col0
----
37
1

skipif mysql # not compatible
query II rowsort label-5161
SELECT + 37 AS col1, COUNT ( * ) AS col0
----
37
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5162
SELECT CAST( + + AVG ( ALL - 6 ) AS SIGNED ) - + MIN( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT CAST ( + + AVG ( ALL - 6 ) AS INTEGER ) - + MIN ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT DISTINCT - 89, + COUNT( * ) AS col0
----
-89
1

skipif mysql # not compatible
query II rowsort label-5163
SELECT DISTINCT - 89, + COUNT ( * ) AS col0
----
-89
1

query I rowsort
SELECT 75 * 91 * - 60 AS col0
----
-409500

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ALL - MIN( DISTINCT - + 79 ) * + 98 * + - 37 + 48 * 73 * + COUNT( * ) AS col1
----
-282950

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL - MIN ( DISTINCT - + 79 ) * + 98 * + - 37 + 48 * 73 * + COUNT ( * ) AS col1
----
-282950

query II rowsort
SELECT 1 + - 41 + 90 AS col0, + 12
----
50
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT ALL + + 33 + + - 94 DIV + 62
----
32

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL + + 33 + + - 94 / + 62
----
32

query I rowsort
SELECT ALL - + 70 + + 85
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL - CASE 86 WHEN + 14 + + 18 * COALESCE ( 34, + 30 - - 48, - 4 ) + + 59 THEN + MIN( + 48 ) ELSE MIN( + - 63 ) END * - 29 * - CASE - - 87 WHEN - 91 THEN + - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - CASE 86 WHEN + 14 + + 18 * COALESCE ( 34, + 30 - - 48, - 4 ) + + 59 THEN + MIN ( + 48 ) ELSE MIN ( + - 63 ) END * - 29 * - CASE - - 87 WHEN - 91 THEN + - 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT - ( - MAX( - 98 ) ) + - 34 AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - ( - MAX ( - 98 ) ) + - 34 AS col2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT + COUNT( * ) + - + 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5171
SELECT + COUNT ( * ) + - + 71 AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5172
SELECT ALL 81 AS col1, + CAST( NULL AS SIGNED )
----
81
NULL

skipif mysql # not compatible
query II rowsort label-5172
SELECT ALL 81 AS col1, + CAST ( NULL AS INTEGER )
----
81
NULL

query I rowsort
SELECT ALL + 99 + - 98
----
1

query I rowsort
SELECT ALL - 41 + - - 76
----
35

query I rowsort
SELECT DISTINCT + 77 + + 97 + - 97 + + ( + 2 ) - - 68 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT COUNT( * ) - - 62 + + 31
----
94

skipif mysql # not compatible
query I rowsort label-5176
SELECT COUNT ( * ) - - 62 + + 31
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5177
SELECT + 81, ( + + 43 ) * - COUNT( * ) - - 45 AS col1
----
81
2

skipif mysql # not compatible
query II rowsort label-5177
SELECT + 81, ( + + 43 ) * - COUNT ( * ) - - 45 AS col1
----
81
2

query I rowsort
SELECT 21 * - + 28 AS col0
----
-588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5179
SELECT ALL - + MIN( ALL + 38 ) DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL - + MIN ( ALL + 38 ) / + 54
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5180
SELECT CAST( + + 75 AS SIGNED ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5180
SELECT CAST ( + + 75 AS INTEGER ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5181
SELECT ALL + - SUM( - 9 ) + 82 col1, 45
----
91
45

skipif mysql # not compatible
query II rowsort label-5181
SELECT ALL + - SUM ( - 9 ) + 82 col1, 45
----
91
45

query I rowsort
SELECT 0 - - - 13 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5183
SELECT 70 AS col0, + MAX( + + 68 ) AS col0
----
70
68

skipif mysql # not compatible
query II rowsort label-5183
SELECT 70 AS col0, + MAX ( + + 68 ) AS col0
----
70
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT SUM( + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT SUM ( + 19 )
----
19

query I rowsort
SELECT ALL 96 * - 93 + + ( + + 47 )
----
-8881

onlyif mysql # aggregate syntax: 
query II rowsort label-5186
SELECT ALL - - 73 - + COALESCE ( + 26, COUNT( * ) ) - + + 44 AS col1, + 28 AS col2
----
3
28

skipif mysql # not compatible
query II rowsort label-5186
SELECT ALL - - 73 - + COALESCE ( + 26, COUNT ( * ) ) - + + 44 AS col1, + 28 AS col2
----
3
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT DISTINCT - CAST( + + 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT - CAST ( + + 59 AS INTEGER )
----
-59

query I rowsort
SELECT 15 + + 1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT MAX( - + 16 ) - - 29 * + 42 + + MAX( - ( + 99 ) ) col2
----
1103

skipif mysql # not compatible
query I rowsort label-5189
SELECT MAX ( - + 16 ) - - 29 * + 42 + + MAX ( - ( + 99 ) ) col2
----
1103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5190
SELECT 25 + - - 58 + + + 13 DIV + SUM( - + 39 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5190
SELECT 25 + - - 58 + + + 13 / + SUM ( - + 39 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5191
SELECT 31 * SUM( DISTINCT + ( - 95 ) ) AS col1, - MAX( ALL - + ( + 86 ) ) + - 80 AS col0
----
-2945
6

skipif mysql # not compatible
query II rowsort label-5191
SELECT 31 * SUM ( DISTINCT + ( - 95 ) ) AS col1, - MAX ( ALL - + ( + 86 ) ) + - 80 AS col0
----
-2945
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5192
SELECT COUNT( * ) + - - COUNT( * ) AS col1, COUNT( DISTINCT + NULLIF ( + 59, 27 * - 84 ) ) * + ( + 8 ) * - 24 - - 54 AS col2
----
2
-138

skipif mysql # not compatible
query II rowsort label-5192
SELECT COUNT ( * ) + - - COUNT ( * ) AS col1, COUNT ( DISTINCT + NULLIF ( + 59, 27 * - 84 ) ) * + ( + 8 ) * - 24 - - 54 AS col2
----
2
-138

onlyif mysql # DIV for integer division: 
query II rowsort label-5193
SELECT ALL 81, - 12 DIV 21 AS col1
----
81
0

skipif mysql # not compatible
query II rowsort label-5193
SELECT ALL 81, - 12 / 21 AS col1
----
81
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT 42 AS col0, 51 * + MIN( DISTINCT + 70 ) + - 28 * MAX( - + ( + - 71 ) ) * - - 84
----
42
-163422

skipif mysql # not compatible
query II rowsort label-5194
SELECT 42 AS col0, 51 * + MIN ( DISTINCT + 70 ) + - 28 * MAX ( - + ( + - 71 ) ) * - - 84
----
42
-163422

query II rowsort
SELECT + 83 col0, - 51 AS col2
----
83
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5196
SELECT ALL 61 / + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL 61 / + - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5197
SELECT AVG ( + 75 ) * + CAST( NULL AS SIGNED ) * + 39 * MAX( - + ( + + 85 ) ) + + CASE - 82 WHEN + COUNT( * ) THEN 32 WHEN + COUNT( * ) * COUNT( * ) THEN - - 81 * - ( + 5 ) + 61 / - 17 END + - 54 + + 46 * - 94 * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT AVG ( + 75 ) * + CAST ( NULL AS INTEGER ) * + 39 * MAX ( - + ( + + 85 ) ) + + CASE - 82 WHEN + COUNT ( * ) THEN 32 WHEN + COUNT ( * ) * COUNT ( * ) THEN - - 81 * - ( + 5 ) + 61 / - 17 END + - 54 + + 46 * - 94 * 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT + 94 col1, - MIN( ALL 18 ) - - + COUNT( * )
----
94
-17

skipif mysql # not compatible
query II rowsort label-5198
SELECT + 94 col1, - MIN ( ALL 18 ) - - + COUNT ( * )
----
94
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT ALL 25 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL 25 / - 35
----
0

query II rowsort
SELECT DISTINCT - 8 AS col1, - 89
----
-8
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT CAST( + COALESCE ( - 51, - 84 * - 66, + - ( 34 ) * - 73 + 52 - 60 ) AS SIGNED ) * - ( 28 ) + 35
----
1463

skipif mysql # not compatible
query I rowsort label-5201
SELECT CAST ( + COALESCE ( - 51, - 84 * - 66, + - ( 34 ) * - 73 + 52 - 60 ) AS INTEGER ) * - ( 28 ) + 35
----
1463

query I rowsort
SELECT DISTINCT 60 * - + 28
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT 56 * - NULLIF ( - + COUNT( * ), - ( 99 ) )
----
56

skipif mysql # not compatible
query I rowsort label-5203
SELECT 56 * - NULLIF ( - + COUNT ( * ), - ( 99 ) )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT + CAST( - 19 AS SIGNED ) * 78 + + + COUNT( * ) * - - CAST( + + MAX( DISTINCT 61 ) AS SIGNED ) + - - 18 + + 45 + + - 51
----
-1409

skipif mysql # not compatible
query I rowsort label-5204
SELECT + CAST ( - 19 AS INTEGER ) * 78 + + + COUNT ( * ) * - - CAST ( + + MAX ( DISTINCT 61 ) AS INTEGER ) + - - 18 + + 45 + + - 51
----
-1409

query I rowsort
SELECT ALL 71 * + 48 AS col2
----
3408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5206
SELECT + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, 68 AS col1
----
0
68

skipif mysql # not compatible
query II rowsort label-5206
SELECT + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, 68 AS col1
----
0
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT + MIN( DISTINCT 39 ) + - 39 + - 23 * + 19 + + 24 col2
----
-413

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + MIN ( DISTINCT 39 ) + - 39 + - 23 * + 19 + + 24 col2
----
-413

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT + 48 AS col0, - ( + 53 ) + - MIN( + 32 ) + 87
----
48
2

skipif mysql # not compatible
query II rowsort label-5208
SELECT + 48 AS col0, - ( + 53 ) + - MIN ( + 32 ) + 87
----
48
2

query I rowsort
SELECT ALL + 28 + + - 40 AS col0
----
-12

query I rowsort
SELECT ALL 94 + - 5 AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT + CAST( - 77 AS SIGNED ) + + 80
----
3

skipif mysql # not compatible
query I rowsort label-5211
SELECT + CAST ( - 77 AS INTEGER ) + + 80
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT - - ( - - SUM( ALL ( + 61 ) ) ) col1
----
61

skipif mysql # not compatible
query I rowsort label-5212
SELECT - - ( - - SUM ( ALL ( + 61 ) ) ) col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5213
SELECT - - COUNT( * ) AS col2, + 49 * CAST( NULL AS SIGNED ) + + + 8 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5213
SELECT - - COUNT ( * ) AS col2, + 49 * CAST ( NULL AS INTEGER ) + + + 8 AS col1
----
1
NULL

query I rowsort
SELECT ALL - + 51 * + + 58 AS col0
----
-2958

query I rowsort
SELECT + 13 * + 93 * 77 AS col1
----
93093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5216
SELECT ALL ( 72 ) DIV + COALESCE ( + 75, - 81 + - 42 ) * + COUNT( * ) * - 14 + - 78 + 48 - - 94 * + + 84 AS col0
----
7866

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL ( 72 ) / + COALESCE ( + 75, - 81 + - 42 ) * + COUNT ( * ) * - 14 + - 78 + 48 - - 94 * + + 84 AS col0
----
7866

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT - 22 + - - 88 + COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5217
SELECT - 22 + - - 88 + COUNT ( * ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5218
SELECT DISTINCT - 85 * - CAST( NULL AS SIGNED ) / 95 * - + CASE 86 WHEN - 57 / ( 17 ) THEN NULL WHEN - COUNT( * ) THEN - + 14 * + 11 * + 62 ELSE + - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT - 85 * - CAST ( NULL AS INTEGER ) / 95 * - + CASE 86 WHEN - 57 / ( 17 ) THEN NULL WHEN - COUNT ( * ) THEN - + 14 * + 11 * + 62 ELSE + - 28 END
----
NULL

query I rowsort
SELECT - 49 + 99 + + 71 AS col1
----
121

query I rowsort
SELECT ALL - 52 * 98 * - + 93
----
473928

onlyif mysql # DIV for integer division: 
query II rowsort label-5221
SELECT DISTINCT 24 - + - ( + 79 ) DIV + ( 94 ) + 56 AS col1, - 40 AS col2
----
80
-40

skipif mysql # not compatible
query II rowsort label-5221
SELECT DISTINCT 24 - + - ( + 79 ) / + ( 94 ) + 56 AS col1, - 40 AS col2
----
80
-40

query I rowsort
SELECT DISTINCT - NULLIF ( + - 33, - + 56 )
----
33

query I rowsort
SELECT - + 66 + ( ( 76 ) )
----
10

query I rowsort
SELECT DISTINCT COALESCE ( + 14, + 18 )
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-5225
SELECT - + 41, 85 DIV 53 AS col2
----
-41
1

skipif mysql # not compatible
query II rowsort label-5225
SELECT - + 41, 85 / 53 AS col2
----
-41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT - COUNT( * ) + - MIN( ALL 99 ) - + + 17 * - 20 AS col2
----
240

skipif mysql # not compatible
query I rowsort label-5226
SELECT - COUNT ( * ) + - MIN ( ALL 99 ) - + + 17 * - 20 AS col2
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL NULLIF ( - MIN( ALL + ( 78 ) ), 15 + + + 19 )
----
-78

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL NULLIF ( - MIN ( ALL + ( 78 ) ), 15 + + + 19 )
----
-78

query I rowsort
SELECT - 91 * - 35 AS col2
----
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT COUNT( DISTINCT 20 )
----
1

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT COUNT ( DISTINCT 20 )
----
1

query I rowsort
SELECT DISTINCT 72 * + 80 AS col1
----
5760

query I rowsort
SELECT DISTINCT - 6 * 15
----
-90

query I rowsort
SELECT ALL - 88 * + 72 * + ( + 97 )
----
-614592

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL 64 * + - 64 + 58 - CASE - SUM( ALL - - 97 ) WHEN - 43 THEN - - 67 + + 74 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL 64 * + - 64 + 58 - CASE - SUM ( ALL - - 97 ) WHEN - 43 THEN - - 67 + + 74 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT COUNT( * ) * - 61 + - 11 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT COUNT ( * ) * - 61 + - 11 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + 65 * + - SUM( ALL 2 ) AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-5235
SELECT + 65 * + - SUM ( ALL 2 ) AS col1
----
-130

query I rowsort
SELECT ALL COALESCE ( - 69, + COALESCE ( 68, - - 52 + - - 68 ) ) * 50 + - - 28
----
-3422

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT ALL + 88 * - 44 AS col2, - COUNT( * )
----
-3872
-1

skipif mysql # not compatible
query II rowsort label-5237
SELECT ALL + 88 * - 44 AS col2, - COUNT ( * )
----
-3872
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5238
SELECT ALL 1 * + + 34 + - 3 DIV COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL 1 * + + 34 + - 3 / COUNT ( * ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT - 53 - + 35 + - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-5239
SELECT - 53 - + 35 + - COUNT ( * )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5240
SELECT DISTINCT + NULLIF ( - - COUNT( * ), + - 55 ), + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5240
SELECT DISTINCT + NULLIF ( - - COUNT ( * ), + - 55 ), + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT DISTINCT 76 * - 20 + 22 AS col0
----
-1498

query II rowsort
SELECT ALL + ( 71 ) AS col1, + 76 AS col2
----
71
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT + 97 * - COALESCE ( 92, + 76 * 45 + + 1 ) + + COALESCE ( - 73, + 59 * + 90, CASE COUNT( * ) WHEN - CASE + 7 WHEN + 69 - - 9 THEN + ( 47 ) ELSE NULL END * + COUNT( DISTINCT - 20 ) + - ( - ( - ( + 61 ) ) ) THEN - 46 END )
----
-8997

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT + 97 * - COALESCE ( 92, + 76 * 45 + + 1 ) + + COALESCE ( - 73, + 59 * + 90, CASE COUNT ( * ) WHEN - CASE + 7 WHEN + 69 - - 9 THEN + ( 47 ) ELSE NULL END * + COUNT ( DISTINCT - 20 ) + - ( - ( - ( + 61 ) ) ) THEN - 46 END )
----
-8997

onlyif mysql # aggregate syntax: 
query II rowsort label-5244
SELECT + - 13 * + NULLIF ( COUNT( - 82 ), - SUM( + 10 ) / + COALESCE ( + - 16, - + MAX( ALL 7 ) + + 41, + COUNT( * ) * + - 35 + - 10 + - 17 + + 31 ) ) * - + 31 * 38 col1, - 46
----
15314
-46

skipif mysql # not compatible
query II rowsort label-5244
SELECT + - 13 * + NULLIF ( COUNT ( - 82 ), - SUM ( + 10 ) / + COALESCE ( + - 16, - + MAX ( ALL 7 ) + + 41, + COUNT ( * ) * + - 35 + - 10 + - 17 + + 31 ) ) * - + 31 * 38 col1, - 46
----
15314
-46

query I rowsort
SELECT ALL - 8 * - + ( - 1 ) * - ( - 86 ) * - 94 * - 68
----
-4397696

query I rowsort
SELECT + 54 + 22
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL + 60 * + COUNT( ALL + 64 ) * 67 - 52 * + CAST( - - 42 AS SIGNED ) col0
----
1836

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + 60 * + COUNT ( ALL + 64 ) * 67 - 52 * + CAST ( - - 42 AS INTEGER ) col0
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT ALL + 25 * COUNT( * ) + + NULLIF ( + 23, COUNT( * ) ) - - 27 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL + 25 * COUNT ( * ) + + NULLIF ( + 23, COUNT ( * ) ) - - 27 AS col0
----
75

query I rowsort
SELECT DISTINCT - 0 * 71 + + 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + COUNT( * ) * - 11 * - 46
----
506

skipif mysql # not compatible
query I rowsort label-5250
SELECT + COUNT ( * ) * - 11 * - 46
----
506

query I rowsort
SELECT ALL - 56 * - - ( - 12 ) AS col1
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL NULLIF ( NULLIF ( - 77, + - 63 ), + - COUNT( * ) + + + 60 )
----
-77

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL NULLIF ( NULLIF ( - 77, + - 63 ), + - COUNT ( * ) + + + 60 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL CASE + 35 WHEN 72 THEN + + COALESCE ( + 10, COUNT( * ) - 35 ) * + 52 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL CASE + 35 WHEN 72 THEN + + COALESCE ( + 10, COUNT ( * ) - 35 ) * + 52 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + - COUNT( * ) * 31 + - COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-5254
SELECT + - COUNT ( * ) * 31 + - COUNT ( * ) AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT MIN( DISTINCT + CAST( 55 AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-5255
SELECT MIN ( DISTINCT + CAST ( 55 AS INTEGER ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT - CASE 58 WHEN - ( ( + 83 ) ) THEN ( + + 46 ) ELSE - - ( COUNT( * ) ) + - 89 + + 33 END
----
55

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT - CASE 58 WHEN - ( ( + 83 ) ) THEN ( + + 46 ) ELSE - - ( COUNT ( * ) ) + - 89 + + 33 END
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-5257
SELECT + 14 * - 40, + ( + 45 ) + + + ( + + 4 ) DIV + 80 - - 34 AS col0
----
-560
79

skipif mysql # not compatible
query II rowsort label-5257
SELECT + 14 * - 40, + ( + 45 ) + + + ( + + 4 ) / + 80 - - 34 AS col0
----
-560
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT - CASE - 61 WHEN - 45 * 25 + - ( - + COUNT( * ) ) THEN 34 ELSE - - 43 + + MIN( 33 ) END * + 10
----
-760

skipif mysql # not compatible
query I rowsort label-5258
SELECT - CASE - 61 WHEN - 45 * 25 + - ( - + COUNT ( * ) ) THEN 34 ELSE - - 43 + + MIN ( 33 ) END * + 10
----
-760

query I rowsort
SELECT ALL 85 * - 46
----
-3910

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT + MIN( - + 37 ) - - 91
----
54

skipif mysql # not compatible
query I rowsort label-5260
SELECT + MIN ( - + 37 ) - - 91
----
54

query I rowsort
SELECT - ( - - 86 )
----
-86

query II rowsort
SELECT ALL 22 AS col0, 30 * 86 col0
----
22
2580

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5263
SELECT DISTINCT ( + 49 ) DIV - NULLIF ( 13, - CAST( NULL AS SIGNED ) ) + - + 81
----
-84

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT ( + 49 ) / - NULLIF ( 13, - CAST ( NULL AS INTEGER ) ) + - + 81
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL + 64 + + COUNT( * ) - + + 10
----
55

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL + 64 + + COUNT ( * ) - + + 10
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5265
SELECT ALL CAST( NULL AS DECIMAL ) * - AVG ( DISTINCT 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL CAST ( NULL AS REAL ) * - AVG ( DISTINCT 64 )
----
NULL

query I rowsort
SELECT DISTINCT + 47 + + - NULLIF ( - 28, + 8 ) + 50
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT DISTINCT 84 * - + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT 84 * - + COUNT ( * ) AS col2
----
-84

query II rowsort
SELECT 77 AS col1, + 67
----
77
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5269
SELECT - ( - + CAST( NULL AS SIGNED ) ) DIV + 79 AS col0, ( - 39 ) * - + MAX( ALL 92 ) * + 56 + - + COUNT( * ) DIV 89 + - 87 + + - 85 AS col0
----
NULL
200756

skipif mysql # not compatible
query II rowsort label-5269
SELECT - ( - + CAST ( NULL AS INTEGER ) ) / + 79 AS col0, ( - 39 ) * - + MAX ( ALL 92 ) * + 56 + - + COUNT ( * ) / 89 + - 87 + + - 85 AS col0
----
NULL
200756

onlyif mysql # aggregate syntax: 
query II rowsort label-5270
SELECT ALL 2 + - COUNT( * ) * 62 AS col2, + COUNT( - 80 )
----
-60
1

skipif mysql # not compatible
query II rowsort label-5270
SELECT ALL 2 + - COUNT ( * ) * 62 AS col2, + COUNT ( - 80 )
----
-60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + NULLIF ( - 88, - - 80 / + 9 * + 85 - + - MAX( DISTINCT 82 ) ) + + + COUNT( * ) * 2 - + 51 * - 55
----
2719

skipif mysql # not compatible
query I rowsort label-5271
SELECT + NULLIF ( - 88, - - 80 / + 9 * + 85 - + - MAX ( DISTINCT 82 ) ) + + + COUNT ( * ) * 2 - + 51 * - 55
----
2719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5272
SELECT - CAST( NULL AS SIGNED ) - - + CASE - COUNT( * ) WHEN - - 61 THEN 97 WHEN 84 THEN NULL ELSE + + 84 / - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT - CAST ( NULL AS INTEGER ) - - + CASE - COUNT ( * ) WHEN - - 61 THEN 97 WHEN 84 THEN NULL ELSE + + 84 / - 73 END
----
NULL

query I rowsort
SELECT ALL - 2 + + + 76
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT DISTINCT + 47 + + - COUNT( * ) - ( + + 34 )
----
12

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT + 47 + + - COUNT ( * ) - ( + + 34 )
----
12

query I rowsort
SELECT - 66 - + 67
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL - COUNT( * ) + + 63 + 57 + - 24 + 87 * - 77 AS col0
----
-6604

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - COUNT ( * ) + + 63 + 57 + - 24 + 87 * - 77 AS col0
----
-6604

query II rowsort
SELECT DISTINCT + 46 AS col1, + 94
----
46
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT DISTINCT 97 DIV + 70 + + 16 - + + 8 + - 70 col1
----
-61

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT 97 / + 70 + + 16 - + + 8 + - 70 col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5279
SELECT ALL - 15 DIV 29 * - COUNT( * ) + - - 93
----
93

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL - 15 / 29 * - COUNT ( * ) + - - 93
----
93

query I rowsort
SELECT - 30 + - + COALESCE ( + 38, - 4 ) * + - 28 AS col1
----
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL 72 / + 73 + - - COUNT( * ) + COUNT( * ) * - - CASE - COUNT( - 72 ) WHEN + - 42 THEN + 91 END + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL 72 / + 73 + - - COUNT ( * ) + COUNT ( * ) * - - CASE - COUNT ( - 72 ) WHEN + - 42 THEN + 91 END + + 6
----
NULL

query I rowsort
SELECT - 6 + - + 69
----
-75

query I rowsort
SELECT ALL + 30 * + 20
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5284
SELECT ALL MIN( DISTINCT + + 67 ) DIV 61 + 49 + - + COUNT( - 86 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL MIN ( DISTINCT + + 67 ) / 61 + 49 + - + COUNT ( - 86 ) AS col1
----
49

query II rowsort
SELECT + 99 AS col2, - 45
----
99
-45

query I rowsort
SELECT - 67 * 64 + 27 + + 35
----
-4226

query I rowsort
SELECT - 68 * + 85 col1
----
-5780

query I rowsort
SELECT + COALESCE ( + - 5, - 9, + 28 * - 26 ) + + - 43 - + 96 AS col1
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5289
SELECT ALL + ( COUNT( ALL - 83 ) ) DIV - 37 - + 75 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL + ( COUNT ( ALL - 83 ) ) / - 37 - + 75 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT DISTINCT + 18 * - ( - - COUNT( * ) ) * - - 68 - + - 36 AS col0
----
-1188

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + 18 * - ( - - COUNT ( * ) ) * - - 68 - + - 36 AS col0
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT - MAX( DISTINCT + 87 ) - ( + 85 ) AS col1
----
-172

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - MAX ( DISTINCT + 87 ) - ( + 85 ) AS col1
----
-172

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT ALL + 96 DIV + - 16
----
-6

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + 96 / + - 16
----
-6

query II rowsort
SELECT ALL - + 79, 3 + - 59 col0
----
-79
-56

query II rowsort
SELECT DISTINCT - 86 AS col0, + CASE - + 84 WHEN + - 15 THEN - - 66 + 86 + 52 + + 67 * - 56 * - 49 END
----
-86
NULL

query I rowsort
SELECT 45 * 4 col1
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-5296
SELECT ALL - + 67 DIV + + 31
----
-2

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL - + 67 / + + 31
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5297
SELECT - MAX( ALL - 37 ) + - MAX( ALL + + 80 ) + COALESCE ( + - 51, 41 + 36, + - COUNT( 26 ) * + 75 + 4 ) DIV 20 + 13 - - 4 + 44
----
16

skipif mysql # not compatible
query I rowsort label-5297
SELECT - MAX ( ALL - 37 ) + - MAX ( ALL + + 80 ) + COALESCE ( + - 51, 41 + 36, + - COUNT ( 26 ) * + 75 + 4 ) / 20 + 13 - - 4 + 44
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT - 45 * + COUNT( * ) * - COALESCE ( + 74, + - 21, + 10 + + - ( - 18 ), + 48 * 9 - - 10 + + - 38 * + 36 )
----
3330

skipif mysql # not compatible
query I rowsort label-5298
SELECT - 45 * + COUNT ( * ) * - COALESCE ( + 74, + - 21, + 10 + + - ( - 18 ), + 48 * 9 - - 10 + + - 38 * + 36 )
----
3330

onlyif mysql # aggregate syntax: 
query II rowsort label-5299
SELECT + + 78 AS col2, COUNT( DISTINCT + 64 )
----
78
1

skipif mysql # not compatible
query II rowsort label-5299
SELECT + + 78 AS col2, COUNT ( DISTINCT + 64 )
----
78
1

query I rowsort
SELECT - 54 + 51 + + + 85 + - 77 + - 45 * + 90 AS col0
----
-4045

query I rowsort
SELECT DISTINCT + 44 * + 90 AS col2
----
3960

query I rowsort
SELECT ALL ( + 17 ) * - - 3 + - 42 + + 93 AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5303
SELECT COUNT( * ) DIV + - 1 - - - 60 + - + CAST( - 2 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-5303
SELECT COUNT ( * ) / + - 1 - - - 60 + - + CAST ( - 2 AS INTEGER )
----
-59

query I rowsort
SELECT ALL 42 * - ( 19 )
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT SUM( DISTINCT 80 ) + + 23
----
103

skipif mysql # not compatible
query I rowsort label-5305
SELECT SUM ( DISTINCT 80 ) + + 23
----
103

query I rowsort
SELECT ALL 38 + + 57
----
95

query I rowsort
SELECT 60 + 58 * - 71
----
-4058

query I rowsort
SELECT ALL 50 + 34 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5309
SELECT ALL CAST( NULL AS SIGNED ) * - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL CAST ( NULL AS INTEGER ) * - + 59
----
NULL

query I rowsort
SELECT DISTINCT 67 + - 60 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL COUNT( * ) + + 11
----
12

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL COUNT ( * ) + + 11
----
12

query II rowsort
SELECT ALL 2 + 4 AS col2, - 24 AS col0
----
6
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-5313
SELECT DISTINCT 61 + + 60 * COUNT( * ) * - 38 AS col0, 60 + - 93
----
-2219
-33

skipif mysql # not compatible
query II rowsort label-5313
SELECT DISTINCT 61 + + 60 * COUNT ( * ) * - 38 AS col0, 60 + - 93
----
-2219
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT CAST( + - 93 AS SIGNED ) + + 16
----
-77

skipif mysql # not compatible
query I rowsort label-5314
SELECT CAST ( + - 93 AS INTEGER ) + + 16
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT 4 + + 88 + - CASE + + COUNT( * ) WHEN - + COALESCE ( 74, 93 * + CASE + 1 WHEN - 83 THEN - 28 * 92 WHEN + MIN( ALL - 72 ) THEN 17 / - + ( - COUNT( * ) ) WHEN + + 32 + MIN( - - 95 ) THEN NULL ELSE NULL END, 22 + 5 * + - 97 ) THEN CAST( NULL AS SIGNED ) WHEN - 46 - + + 94 THEN 58 * + 86 * - + 38 + + 57 + 86 ELSE NULL END - + - ( CAST( COUNT( * ) AS SIGNED ) ) - - ( - 88 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT 4 + + 88 + - CASE + + COUNT ( * ) WHEN - + COALESCE ( 74, 93 * + CASE + 1 WHEN - 83 THEN - 28 * 92 WHEN + MIN ( ALL - 72 ) THEN 17 / - + ( - COUNT ( * ) ) WHEN + + 32 + MIN ( - - 95 ) THEN NULL ELSE NULL END, 22 + 5 * + - 97 ) THEN CAST ( NULL AS INTEGER ) WHEN - 46 - + + 94 THEN 58 * + 86 * - + 38 + + 57 + 86 ELSE NULL END - + - ( CAST ( COUNT ( * ) AS INTEGER ) ) - - ( - 88 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT DISTINCT COUNT( * ) * 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT COUNT ( * ) * 38 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT ALL 42 DIV + 20
----
2

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL 42 / + 20
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT DISTINCT - NULLIF ( - + CASE - 34 WHEN 21 THEN - 88 + + + 30 + 47 + - 2 + - 89 - 36 + CASE + + NULLIF ( + 77, - 64 ) WHEN - MAX( DISTINCT - ( 53 ) ) * - - 44 + 53 + - AVG ( ALL 75 ) + - - CAST( + COUNT( * ) AS SIGNED ) * + 19 + - + 59 THEN + COUNT( * ) + - - 11 - - + 54 * + - SUM( ALL - 63 ) END * + 70 END, 82 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT - NULLIF ( - + CASE - 34 WHEN 21 THEN - 88 + + + 30 + 47 + - 2 + - 89 - 36 + CASE + + NULLIF ( + 77, - 64 ) WHEN - MAX ( DISTINCT - ( 53 ) ) * - - 44 + 53 + - AVG ( ALL 75 ) + - - CAST ( + COUNT ( * ) AS INTEGER ) * + 19 + - + 59 THEN + COUNT ( * ) + - - 11 - - + 54 * + - SUM ( ALL - 63 ) END * + 70 END, 82 ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 95 * - 28 AS col0
----
-2660

query II rowsort
SELECT 75 - + 55 + + ( - + 73 ) AS col0, 29 AS col0
----
-53
29

query I rowsort
SELECT 10 * - 64 AS col0
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + COUNT( * ) * 96 - + 25
----
71

skipif mysql # not compatible
query I rowsort label-5322
SELECT + COUNT ( * ) * 96 - + 25
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5323
SELECT COUNT( * ) / AVG ( - - 92 ) * - CASE CAST( NULL AS DECIMAL ) WHEN 73 + - + MAX( 22 ) * - 37 * - + COUNT( * ) + + 68 THEN COUNT( * ) WHEN + + 48 THEN NULL END + 28 + - COUNT( * ) + - SUM( ALL + + 73 ) + MIN( + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT COUNT ( * ) / AVG ( - - 92 ) * - CASE CAST ( NULL AS REAL ) WHEN 73 + - + MAX ( 22 ) * - 37 * - + COUNT ( * ) + + 68 THEN COUNT ( * ) WHEN + + 48 THEN NULL END + 28 + - COUNT ( * ) + - SUM ( ALL + + 73 ) + MIN ( + 67 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT ALL - + CAST( NULL AS SIGNED ) / - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - + CAST ( NULL AS INTEGER ) / - 80 AS col0
----
NULL

query I rowsort
SELECT 42 + 34
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT - ( - 3 ) * 15 - - COUNT( * ) + + 77
----
123

skipif mysql # not compatible
query I rowsort label-5326
SELECT - ( - 3 ) * 15 - - COUNT ( * ) + + 77
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL + CASE - 40 WHEN + COUNT( ALL + - 8 ) THEN NULL WHEN + - 71 + + 30 + - 82 * ( + ( + 71 ) ) THEN + 38 WHEN 3 THEN - AVG ( ALL - COALESCE ( + - 9, + 86 ) ) ELSE NULL END - - - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL + CASE - 40 WHEN + COUNT ( ALL + - 8 ) THEN NULL WHEN + - 71 + + 30 + - 82 * ( + ( + 71 ) ) THEN + 38 WHEN 3 THEN - AVG ( ALL - COALESCE ( + - 9, + 86 ) ) ELSE NULL END - - - 77
----
NULL

query I rowsort
SELECT ALL + - 31 * + 66 / 21 * + CASE WHEN NULL IS NOT NULL THEN + 58 END * 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT - NULLIF ( + 40, + 64 ) * + 89 * COUNT( * )
----
-3560

skipif mysql # not compatible
query I rowsort label-5329
SELECT - NULLIF ( + 40, + 64 ) * + 89 * COUNT ( * )
----
-3560

query I rowsort
SELECT ALL + + 64 * - 14
----
-896

query I rowsort
SELECT - 60 + + 99 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5332
SELECT MAX( DISTINCT ( - 21 ) ) * - 55 + - - 63 * 74 + 74 + - CAST( + + COUNT( * ) AS SIGNED )
----
5890

skipif mysql # not compatible
query I rowsort label-5332
SELECT MAX ( DISTINCT ( - 21 ) ) * - 55 + - - 63 * 74 + 74 + - CAST ( + + COUNT ( * ) AS INTEGER )
----
5890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT DISTINCT - 73 * CAST( - 60 AS SIGNED ) AS col0
----
4380

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT - 73 * CAST ( - 60 AS INTEGER ) AS col0
----
4380

query I rowsort
SELECT + - ( + + 38 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL - 23 + - MIN( + 13 )
----
-36

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - 23 + - MIN ( + 13 )
----
-36

query I rowsort
SELECT 70 * 39 * + - 94 AS col2
----
-256620

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5337
SELECT - ( - NULLIF ( - CAST( NULL AS DECIMAL ), - 83 + SUM( + 97 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT - ( - NULLIF ( - CAST ( NULL AS REAL ), - 83 + SUM ( + 97 ) ) )
----
NULL

query I rowsort
SELECT ALL 14 * + 14
----
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5339
SELECT 69 DIV COUNT( * ) col0
----
69

skipif mysql # not compatible
query I rowsort label-5339
SELECT 69 / COUNT ( * ) col0
----
69

query I rowsort
SELECT ALL - 65 + - 6 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5341
SELECT + 53 * 41 * - 72 + + - 0 + CASE + 39 WHEN - MAX( - + 75 ) - + COUNT( * ) + - 51 + 46 * - ( + - 0 ) THEN NULL WHEN + COALESCE ( - 38, - + 56, - 31 ) + 70 THEN + 12 DIV - + 1 ELSE - 99 * - 37 END
----
-152793

skipif mysql # not compatible
query I rowsort label-5341
SELECT + 53 * 41 * - 72 + + - 0 + CASE + 39 WHEN - MAX ( - + 75 ) - + COUNT ( * ) + - 51 + 46 * - ( + - 0 ) THEN NULL WHEN + COALESCE ( - 38, - + 56, - 31 ) + 70 THEN + 12 / - + 1 ELSE - 99 * - 37 END
----
-152793

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT MAX( - + 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT MAX ( - + 29 ) AS col2
----
-29

query I rowsort
SELECT 59 + + 16 + + + 61 AS col1
----
136

query I rowsort
SELECT ALL 96 + - - 42 + - 15 AS col1
----
123

query I rowsort
SELECT DISTINCT 13 * - 61 AS col1
----
-793

query I rowsort
SELECT DISTINCT - 47 + 87 + + + ( 52 )
----
92

query I rowsort
SELECT ALL 48 + - 26 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL + 75 * - CAST( NULL AS SIGNED ) / 59 * - - 1 * 79 * 20 * - ( - - 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + 75 * - CAST ( NULL AS INTEGER ) / 59 * - - 1 * 79 * 20 * - ( - - 16 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ( 79 ) + 35 + 67 * + COUNT( * ) * 28
----
1990

skipif mysql # not compatible
query I rowsort label-5349
SELECT ( 79 ) + 35 + 67 * + COUNT ( * ) * 28
----
1990

onlyif mysql # DIV for integer division: 
query II rowsort label-5350
SELECT ALL 99 AS col1, 38 DIV 24 AS col2
----
99
1

skipif mysql # not compatible
query II rowsort label-5350
SELECT ALL 99 AS col1, 38 / 24 AS col2
----
99
1

query I rowsort
SELECT DISTINCT - 57 * + + 81 col2
----
-4617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT 75 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT 75 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT - COUNT( * ), 26 col2
----
-1
26

skipif mysql # not compatible
query II rowsort label-5353
SELECT - COUNT ( * ), 26 col2
----
-1
26

query I rowsort
SELECT 84 + + + ( + 3 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT 20 - + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5355
SELECT 20 - + COUNT ( * ) AS col0
----
19

query I rowsort
SELECT ( + - 21 ) - - 71
----
50

query I rowsort
SELECT DISTINCT 41 * - 20
----
-820

query I rowsort
SELECT + + 51 + + - ( + ( + + 26 ) ) - 41
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT DISTINCT + - 38 - + - COUNT( * ) + + 11 + - 45 * COUNT( * ) * + 6 * - 63 * 31 AS col1
----
527284

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT + - 38 - + - COUNT ( * ) + + 11 + - 45 * COUNT ( * ) * + 6 * - 63 * 31 AS col1
----
527284

query I rowsort
SELECT DISTINCT 90 * NULLIF ( + 8, 96 ) + 23 AS col1
----
743

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT + COUNT( * ) * - 92 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT + COUNT ( * ) * - 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT + 1 * COUNT( * ) * + + 27 * + + 79
----
2133

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT + 1 * COUNT ( * ) * + + 27 * + + 79
----
2133

query I rowsort
SELECT + 77 + + + 65 col0
----
142

query II rowsort
SELECT DISTINCT + 64 AS col2, 63
----
64
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT - 91 * - + 63 + + COUNT( * ) * - 65
----
5668

skipif mysql # not compatible
query I rowsort label-5365
SELECT - 91 * - + 63 + + COUNT ( * ) * - 65
----
5668

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT - COUNT( * ) * - 68
----
68

skipif mysql # not compatible
query I rowsort label-5366
SELECT - COUNT ( * ) * - 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT + - COUNT( * ) * - 95 col1
----
95

skipif mysql # not compatible
query I rowsort label-5367
SELECT + - COUNT ( * ) * - 95 col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5368
SELECT ALL 87 * + - CAST( NULL AS SIGNED ) - + - MAX( ALL 85 ) + + 88 + - COALESCE ( - 60, - - 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL 87 * + - CAST ( NULL AS INTEGER ) - + - MAX ( ALL 85 ) + + 88 + - COALESCE ( - 60, - - 32 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + MIN( ALL + - ( + 82 ) ) + + - 30
----
-112

skipif mysql # not compatible
query I rowsort label-5369
SELECT + MIN ( ALL + - ( + 82 ) ) + + - 30
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT + - MAX( - 64 ) * + 91 + + + 68 AS col2
----
5892

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + - MAX ( - 64 ) * + 91 + + + 68 AS col2
----
5892

onlyif mysql # aggregate syntax: 
query II rowsort label-5371
SELECT DISTINCT + + CASE - 87 WHEN - 82 THEN NULL WHEN + 61 THEN COUNT( * ) END AS col1, 33 + - 80 AS col2
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-5371
SELECT DISTINCT + + CASE - 87 WHEN - 82 THEN NULL WHEN + 61 THEN COUNT ( * ) END AS col1, 33 + - 80 AS col2
----
NULL
-47

query I rowsort
SELECT + NULLIF ( - 40, + + 97 * 94 * 75 * - 29 + - 76 * - 3 * - 20 ) AS col0
----
-40

query I rowsort
SELECT + 8 + + + 5
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5374
SELECT - 14 + - COALESCE ( + 3, COUNT( * ) ) DIV 9 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5374
SELECT - 14 + - COALESCE ( + 3, COUNT ( * ) ) / 9 AS col1
----
-14

query I rowsort
SELECT DISTINCT - 60 * + 75 AS col2
----
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL + COALESCE ( - 18, + MAX( ALL 56 ) * + 29 + + 82 * - 88 * - - 27 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL + COALESCE ( - 18, + MAX ( ALL 56 ) * + 29 + + 82 * - 88 * - - 27 ) col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5377
SELECT - CAST( 98 AS SIGNED ) + - + COUNT( * ) + + + COUNT( * ) * - 91 * 39 * - + 90 * 43 AS col1
----
13734531

skipif mysql # not compatible
query I rowsort label-5377
SELECT - CAST ( 98 AS INTEGER ) + - + COUNT ( * ) + + + COUNT ( * ) * - 91 * 39 * - + 90 * 43 AS col1
----
13734531

query I rowsort
SELECT - 49 * + + 32 * + + 48
----
-75264

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL - 43 * - SUM( ALL - - 23 ) AS col0
----
989

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - 43 * - SUM ( ALL - - 23 ) AS col0
----
989

query I rowsort
SELECT 70 * + 15 * - - 13 + - + 19 AS col0
----
13631

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL - COUNT( * ) + - COUNT( DISTINCT - + 10 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL - COUNT ( * ) + - COUNT ( DISTINCT - + 10 ) AS col0
----
-2

query I rowsort
SELECT ALL + 98 - + + 91 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5383
SELECT DISTINCT MAX( DISTINCT - + 71 ) col2, + COUNT( * ) + - - COUNT( * ) col2
----
-71
2

skipif mysql # not compatible
query II rowsort label-5383
SELECT DISTINCT MAX ( DISTINCT - + 71 ) col2, + COUNT ( * ) + - - COUNT ( * ) col2
----
-71
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT COUNT( + 38 ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT COUNT ( + 38 ) * + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5385
SELECT 7 AS col1, + COUNT( * ) AS col2
----
7
1

skipif mysql # not compatible
query II rowsort label-5385
SELECT 7 AS col1, + COUNT ( * ) AS col2
----
7
1

query I rowsort
SELECT - 83 * - 87 * - 76 AS col1
----
-548796

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT DISTINCT ( + COUNT( * ) ) AS col1, - 60
----
1
-60

skipif mysql # not compatible
query II rowsort label-5387
SELECT DISTINCT ( + COUNT ( * ) ) AS col1, - 60
----
1
-60

query II rowsort
SELECT ALL + 98 * 93, - 35 AS col1
----
9114
-35

query I rowsort
SELECT - 47 * + 66
----
-3102

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5390
SELECT + 53 + CAST( + 49 AS SIGNED ) - + 39 DIV 86 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-5390
SELECT + 53 + CAST ( + 49 AS INTEGER ) - + 39 / 86 AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5391
SELECT ALL CASE 9 WHEN - 35 THEN NULL WHEN + ( ( + 3 ) ) * + + 45 + + - 50 THEN NULL WHEN + 5 THEN + 12 + - MIN( + 10 ) / CAST( 46 AS SIGNED ) END * - 91 + - 75, COALESCE ( - ( - + 43 ), - + 84, 37, + 78 + - 55 ) AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-5391
SELECT ALL CASE 9 WHEN - 35 THEN NULL WHEN + ( ( + 3 ) ) * + + 45 + + - 50 THEN NULL WHEN + 5 THEN + 12 + - MIN ( + 10 ) / CAST ( 46 AS INTEGER ) END * - 91 + - 75, COALESCE ( - ( - + 43 ), - + 84, 37, + 78 + - 55 ) AS col1
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL + MIN( ALL + 36 ) * + 97
----
3492

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL + MIN ( ALL + 36 ) * + 97
----
3492

query I rowsort
SELECT ALL - 89 * + 50 - - 90
----
-4360

query I rowsort
SELECT DISTINCT - 72 * 15
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT + 75 * 80 DIV - 5 AS col0
----
-1200

skipif mysql # not compatible
query I rowsort label-5395
SELECT + 75 * 80 / - 5 AS col0
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT - - 34 - - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-5396
SELECT - - 34 - - COUNT ( * )
----
35

query II rowsort
SELECT ALL + 40 AS col2, 83 * + 55
----
40
4565

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT DISTINCT + COALESCE ( - CASE - 32 WHEN 89 THEN + + 61 WHEN + - 50 THEN COUNT( DISTINCT + 27 ) WHEN - COUNT( * ) + 42 - - 69 * - 68 THEN NULL END, 29, - 26 )
----
29

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT + COALESCE ( - CASE - 32 WHEN 89 THEN + + 61 WHEN + - 50 THEN COUNT ( DISTINCT + 27 ) WHEN - COUNT ( * ) + 42 - - 69 * - 68 THEN NULL END, 29, - 26 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT NULLIF ( - - 11, + 5 + 60 * - 51 + + 86 ) DIV + NULLIF ( 53, - AVG ( DISTINCT - 72 ) ) + + ( NULLIF ( 24, + - MIN( DISTINCT + + 34 ) ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT NULLIF ( - - 11, + 5 + 60 * - 51 + + 86 ) / + NULLIF ( 53, - AVG ( DISTINCT - 72 ) ) + + ( NULLIF ( 24, + - MIN ( DISTINCT + + 34 ) ) ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5400
SELECT ALL - 71 DIV + + 6 + - 47 + + 11 * + 18 + - - COUNT( * ) + + 70 * NULLIF ( + 1, CASE - COUNT( + - 49 ) WHEN - + 75 THEN SUM( DISTINCT - CAST( NULL AS SIGNED ) ) END DIV + 34 - + 69 * + + 6 ) + - - NULLIF ( 68, - MIN( ALL - 0 ) * 46 ) * NULLIF ( - COUNT( * ), + 16 * + 13 )
----
143

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - 71 / + + 6 + - 47 + + 11 * + 18 + - - COUNT ( * ) + + 70 * NULLIF ( + 1, CASE - COUNT ( + - 49 ) WHEN - + 75 THEN SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) END / + 34 - + 69 * + + 6 ) + - - NULLIF ( 68, - MIN ( ALL - 0 ) * 46 ) * NULLIF ( - COUNT ( * ), + 16 * + 13 )
----
143

query I rowsort
SELECT + 78 - 47 AS col2
----
31

query I rowsort
SELECT ALL + 7 * + NULLIF ( 7, + 62 * 83 )
----
49

query II rowsort
SELECT ALL + + 31, 37 AS col1
----
31
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL + 42 * - 86 + COUNT( * )
----
-3611

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + 42 * - 86 + COUNT ( * )
----
-3611

query I rowsort
SELECT + + 57 * + + 8
----
456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5406
SELECT + + CAST( NULL AS SIGNED ) AS col1, + ( - ( 79 ) ) + 63 + + 58 AS col1
----
NULL
42

skipif mysql # not compatible
query II rowsort label-5406
SELECT + + CAST ( NULL AS INTEGER ) AS col1, + ( - ( 79 ) ) + 63 + + 58 AS col1
----
NULL
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT + - 83 + - MIN( ALL + 4 )
----
-87

skipif mysql # not compatible
query I rowsort label-5407
SELECT + - 83 + - MIN ( ALL + 4 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5408
SELECT - ( - CAST( NULL AS SIGNED ) ) - - ( - + 44 ) + ( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT - ( - CAST ( NULL AS INTEGER ) ) - - ( - + 44 ) + ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5409
SELECT + CASE + - 27 WHEN - + COALESCE ( + + 16, + 4 * 88 ) THEN - - COUNT( - ( + + 45 ) ) + - - 56 ELSE NULL END * - COUNT( * ) * - 87 AS col1, MAX( - 53 )
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-5409
SELECT + CASE + - 27 WHEN - + COALESCE ( + + 16, + 4 * 88 ) THEN - - COUNT ( - ( + + 45 ) ) + - - 56 ELSE NULL END * - COUNT ( * ) * - 87 AS col1, MAX ( - 53 )
----
NULL
-53

query I rowsort
SELECT ALL 13 * - 30 - + 57
----
-447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT + CAST( NULL AS SIGNED ) / + CASE + 61 WHEN - + CAST( + - CAST( - 26 AS SIGNED ) AS SIGNED ) THEN + + 21 + - 60 * - + COUNT( * ) + - ( - 17 ) ELSE - - 25 / 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT + CAST ( NULL AS INTEGER ) / + CASE + 61 WHEN - + CAST ( + - CAST ( - 26 AS INTEGER ) AS INTEGER ) THEN + + 21 + - 60 * - + COUNT ( * ) + - ( - 17 ) ELSE - - 25 / 55 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT ALL + CASE + COUNT( * ) WHEN + + 84 THEN - 47 WHEN - 58 * 10 * 88 THEN + 72 WHEN - + 90 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + CASE + COUNT ( * ) WHEN + + 84 THEN - 47 WHEN - 58 * 10 * 88 THEN + 72 WHEN - + 90 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5413
SELECT ALL - 11 * + + COUNT( * ) AS col0, + COUNT( * )
----
-11
1

skipif mysql # not compatible
query II rowsort label-5413
SELECT ALL - 11 * + + COUNT ( * ) AS col0, + COUNT ( * )
----
-11
1

query I rowsort
SELECT NULLIF ( - - 44, - + 40 ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5415
SELECT + CAST( - - COUNT( - 72 ) AS SIGNED ) + - 77 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5415
SELECT + CAST ( - - COUNT ( - 72 ) AS INTEGER ) + - 77 AS col2
----
-76

query I rowsort
SELECT ALL CASE + - 39 WHEN 29 THEN NULL ELSE - 23 END
----
-23

query I rowsort
SELECT 10 - - - 97 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT ALL COUNT( * ) * 37, 45 AS col1
----
37
45

skipif mysql # not compatible
query II rowsort label-5418
SELECT ALL COUNT ( * ) * 37, 45 AS col1
----
37
45

query I rowsort
SELECT 19 + + - 50
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT + 1 + + COUNT( * ) + + 56 + + MIN( 7 ) - + 13 * ( + 54 ) * + 63 * + 29 AS col0
----
-1282489

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT + 1 + + COUNT ( * ) + + 56 + + MIN ( 7 ) - + 13 * ( + 54 ) * + 63 * + 29 AS col0
----
-1282489

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL + MIN( 80 ) * 64 - + 83 AS col2
----
5037

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL + MIN ( 80 ) * 64 - + 83 AS col2
----
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL + - 33 + - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + - 33 + - COUNT ( * )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT CAST( - 32 AS SIGNED ) + + 95 + - 82 col0
----
-19

skipif mysql # not compatible
query I rowsort label-5423
SELECT CAST ( - 32 AS INTEGER ) + + 95 + - 82 col0
----
-19

query I rowsort
SELECT - 12 + + 4 AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT 65 - + - 27 DIV - 36 * + 9 + - ( + 39 ) * + ( + + 59 ) AS col0
----
-2236

skipif mysql # not compatible
query I rowsort label-5425
SELECT 65 - + - 27 / - 36 * + 9 + - ( + 39 ) * + ( + + 59 ) AS col0
----
-2236

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL + - 58 + 39 + - 27 * + + 51 * - COUNT( * ) AS col2
----
1358

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + - 58 + 39 + - 27 * + + 51 * - COUNT ( * ) AS col2
----
1358

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL - - 45 + - COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - - 45 + - COUNT ( * ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5428
SELECT + + 60 DIV - 34 + - ( COUNT( * ) ) + - - 15 + - CAST( + 4 AS SIGNED ) * - 91 - + 43 AS col1
----
334

skipif mysql # not compatible
query I rowsort label-5428
SELECT + + 60 / - 34 + - ( COUNT ( * ) ) + - - 15 + - CAST ( + 4 AS INTEGER ) * - 91 - + 43 AS col1
----
334

query I rowsort
SELECT ALL + 78 + - 0 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL - + COUNT( DISTINCT - 49 ) + + - 99 + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - + COUNT ( DISTINCT - 49 ) + + - 99 + COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT + + MAX( DISTINCT + - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-5431
SELECT + + MAX ( DISTINCT + - 11 )
----
-11

query I rowsort
SELECT - 32 * - NULLIF ( + + 5, - 48 * + 4 + + 27 ) + + - 12 + + 78
----
226

query I rowsort
SELECT 16 * + 16
----
256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5434
SELECT + COALESCE ( + - 23, - + 45 + CASE + + 49 WHEN - 97 THEN NULL WHEN + 8 THEN - 85 WHEN + MIN( DISTINCT + 64 ) THEN NULL ELSE ( - SUM( + + 77 ) ) END * - 97 ) DIV 72 * + NULLIF ( + 93, - 95 ) + - 39 * 61 AS col2
----
-2379

skipif mysql # not compatible
query I rowsort label-5434
SELECT + COALESCE ( + - 23, - + 45 + CASE + + 49 WHEN - 97 THEN NULL WHEN + 8 THEN - 85 WHEN + MIN ( DISTINCT + 64 ) THEN NULL ELSE ( - SUM ( + + 77 ) ) END * - 97 ) / 72 * + NULLIF ( + 93, - 95 ) + - 39 * 61 AS col2
----
-2379

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL COUNT( * ) - - 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL COUNT ( * ) - - 33 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT DISTINCT CASE + 71 WHEN 93 THEN 65 / - CASE WHEN 58 BETWEEN 17 AND CASE + 70 WHEN + COUNT( * ) THEN - - CASE - 52 WHEN - 36 THEN - - 30 ELSE 60 - + COUNT( * ) END WHEN - COUNT( * ) THEN - + 46 - - 96 ELSE 94 END THEN + - ( 96 ) END WHEN 70 * - 98 * + 75 THEN NULL END * + SUM( 67 ) * - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT CASE + 71 WHEN 93 THEN 65 / - CASE WHEN 58 BETWEEN 17 AND CASE + 70 WHEN + COUNT ( * ) THEN - - CASE - 52 WHEN - 36 THEN - - 30 ELSE 60 - + COUNT ( * ) END WHEN - COUNT ( * ) THEN - + 46 - - 96 ELSE 94 END THEN + - ( 96 ) END WHEN 70 * - 98 * + 75 THEN NULL END * + SUM ( 67 ) * - 5 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT COUNT( * ) * - + 87 + 0 + + - 16 * + 90 * - + COUNT( * ) / CAST( NULL AS SIGNED ) + + - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT COUNT ( * ) * - + 87 + 0 + + - 16 * + 90 * - + COUNT ( * ) / CAST ( NULL AS INTEGER ) + + - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL 96 * - 39 * + - MAX( + 23 ) * - 58 * + 37
----
-184796352

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL 96 * - 39 * + - MAX ( + 23 ) * - 58 * + 37
----
-184796352

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ( - - COUNT( * ) ) + + ( - - COALESCE ( - 12, - 30 * + + 62 ) ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-5439
SELECT ( - - COUNT ( * ) ) + + ( - - COALESCE ( - 12, - 30 * + + 62 ) ) col2
----
-11

query II rowsort
SELECT + 36 AS col2, + 47 AS col1
----
36
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5441
SELECT ALL - 49 AS col0, + 15 - + + 13 + + ( - 12 ) - - COUNT( * ) + - + 36 * 98 * - 4 AS col1
----
-49
14103

skipif mysql # not compatible
query II rowsort label-5441
SELECT ALL - 49 AS col0, + 15 - + + 13 + + ( - 12 ) - - COUNT ( * ) + - + 36 * 98 * - 4 AS col1
----
-49
14103

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT COUNT( * ) + + CASE + 24 WHEN + - 67 THEN NULL WHEN - + ( + COUNT( ALL - + 65 ) ) THEN + 62 * - ( - - SUM( 33 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT COUNT ( * ) + + CASE + 24 WHEN + - 67 THEN NULL WHEN - + ( + COUNT ( ALL - + 65 ) ) THEN + 62 * - ( - - SUM ( 33 ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT CAST( NULL AS SIGNED ) / - CAST( COALESCE ( - + 95, - 93 + - 9 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT CAST ( NULL AS INTEGER ) / - CAST ( COALESCE ( - + 95, - 93 + - 9 ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( - 59 ) * + 21 * - - 0 * 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL - COUNT( DISTINCT - 71 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL - COUNT ( DISTINCT - 71 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT ALL 50 AS col2, - COALESCE ( + 80, COUNT( * ) )
----
50
-80

skipif mysql # not compatible
query II rowsort label-5446
SELECT ALL 50 AS col2, - COALESCE ( + 80, COUNT ( * ) )
----
50
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-5447
SELECT COUNT( * ) + 0 * + 28, 62 * - + 41 AS col1
----
1
-2542

skipif mysql # not compatible
query II rowsort label-5447
SELECT COUNT ( * ) + 0 * + 28, 62 * - + 41 AS col1
----
1
-2542

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT 13 DIV 7 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5448
SELECT 13 / 7 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5449
SELECT DISTINCT - ( + CAST( - + 68 AS SIGNED ) ) + - 23 + - - 50 * + 13 AS col0
----
695

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT - ( + CAST ( - + 68 AS INTEGER ) ) + - 23 + - - 50 * + 13 AS col0
----
695

query II rowsort
SELECT 99, 37 AS col2
----
99
37

query II rowsort
SELECT 26, + 20 col1
----
26
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5452
SELECT 90 * - CAST( NULL AS SIGNED ) - + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT 90 * - CAST ( NULL AS INTEGER ) - + + 55
----
NULL

query I rowsort
SELECT COALESCE ( 53, + - 75, 69 ) + - + 89
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL - - 93 + - 65 / - COUNT( * ) * CASE - CASE 30 WHEN 80 THEN 94 * SUM( + 43 ) * + 12 + 58 * + 80 * + + MIN( ALL - + 42 ) - 20 + - 78 WHEN + + 12 + - COUNT( * ) * - 39 * 98 * + 59 / 25 THEN + 69 * - 13 WHEN + COUNT( * ) * + 17 - 9 THEN - 89 - - - 97 END WHEN - 38 * 73 THEN + + MIN( ALL + 84 ) END + - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - - 93 + - 65 / - COUNT ( * ) * CASE - CASE 30 WHEN 80 THEN 94 * SUM ( + 43 ) * + 12 + 58 * + 80 * + + MIN ( ALL - + 42 ) - 20 + - 78 WHEN + + 12 + - COUNT ( * ) * - 39 * 98 * + 59 / 25 THEN + 69 * - 13 WHEN + COUNT ( * ) * + 17 - 9 THEN - 89 - - - 97 END WHEN - 38 * 73 THEN + + MIN ( ALL + 84 ) END + - + 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5455
SELECT - + CASE + + COUNT( * ) WHEN + ( - - 9 ) * + + 58 * + CAST( COUNT( ALL 66 ) AS DECIMAL ) THEN NULL WHEN - COUNT( * ) THEN - 90 * + - NULLIF ( + + 78, 62 * - 26 ) * - - 11 + - 52 END, - CAST( - COALESCE ( + 35, + ( - 54 ) ) AS SIGNED ) + 21 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-5455
SELECT - + CASE + + COUNT ( * ) WHEN + ( - - 9 ) * + + 58 * + CAST ( COUNT ( ALL 66 ) AS REAL ) THEN NULL WHEN - COUNT ( * ) THEN - 90 * + - NULLIF ( + + 78, 62 * - 26 ) * - - 11 + - 52 END, - CAST ( - COALESCE ( + 35, + ( - 54 ) ) AS INTEGER ) + 21 AS col0
----
NULL
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5456
SELECT 13 * - MIN( + 34 ) / - 65 + - + CAST( + + 93 AS SIGNED ) + + + COUNT( * ) * - 7 * NULLIF ( AVG ( - 72 ), 97 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT 13 * - MIN ( + 34 ) / - 65 + - + CAST ( + + 93 AS INTEGER ) + + + COUNT ( * ) * - 7 * NULLIF ( AVG ( - 72 ), 97 ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( - - 74 ) + + 62 AS col1
----
136

query II rowsort
SELECT ALL 93, + 13 AS col0
----
93
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5459
SELECT + 60 / 10 / + CASE - + 62 WHEN - 71 THEN + SUM( DISTINCT + + 18 ) WHEN - 3 * + + 80 * + + 35 * - 89 * - 43 + + MIN( - 68 ) * - 68 * - COUNT( ALL + 67 ) * + 57 / + COUNT( * ) + - MAX( - - 23 ) THEN NULL ELSE NULL END AS col2, + 57 AS col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-5459
SELECT + 60 / 10 / + CASE - + 62 WHEN - 71 THEN + SUM ( DISTINCT + + 18 ) WHEN - 3 * + + 80 * + + 35 * - 89 * - 43 + + MIN ( - 68 ) * - 68 * - COUNT ( ALL + 67 ) * + 57 / + COUNT ( * ) + - MAX ( - - 23 ) THEN NULL ELSE NULL END AS col2, + 57 AS col2
----
NULL
57

query I rowsort
SELECT ALL + 96 + + - 26
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT + MAX( + + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT + MAX ( + + 60 )
----
60

query II rowsort
SELECT - - 52 AS col2, 27 + - 76
----
52
-49

query II rowsort
SELECT - - 82 AS col0, + 41 col1
----
82
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT ALL - 46 DIV 75 * - 86 * 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL - 46 / 75 * - 86 * 74 AS col1
----
0

query I rowsort
SELECT 28 * - 98 AS col2
----
-2744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT DISTINCT - - CAST( + ( + 53 ) AS SIGNED ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT - - CAST ( + ( + 53 ) AS INTEGER ) AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5467
SELECT + 42 DIV + 95 * + COUNT( * ) + 29 + 76 + - 36 * 55 AS col1
----
-1875

skipif mysql # not compatible
query I rowsort label-5467
SELECT + 42 / + 95 * + COUNT ( * ) + 29 + 76 + - 36 * 55 AS col1
----
-1875

query I rowsort
SELECT - 9 * - - NULLIF ( 26, 40 )
----
-234

query II rowsort
SELECT ALL - 18 AS col1, ( - + 40 ) - + 67 AS col2
----
-18
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5470
SELECT ALL + COUNT( * ) * + - CASE - + 0 WHEN - ( + 79 ) THEN CASE - 64 WHEN 11 THEN - 47 END ELSE - COUNT( * ) * - 51 * 90 DIV 33 END - + COUNT( * ) AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL + COUNT ( * ) * + - CASE - + 0 WHEN - ( + 79 ) THEN CASE - 64 WHEN 11 THEN - 47 END ELSE - COUNT ( * ) * - 51 * 90 / 33 END - + COUNT ( * ) AS col1
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5471
SELECT ( + ( COUNT( * ) ) ) DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT ( + ( COUNT ( * ) ) ) / + 87
----
0

query II rowsort
SELECT DISTINCT - 2 * + 62, - 39 AS col1
----
-124
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT + 30 * - COUNT( * ) * - + 59
----
1770

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT + 30 * - COUNT ( * ) * - + 59
----
1770

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT COALESCE ( + 96, - - 69, - - 32 * COUNT( * ) * - + 20 ) * - 83
----
-7968

skipif mysql # not compatible
query I rowsort label-5474
SELECT COALESCE ( + 96, - - 69, - - 32 * COUNT ( * ) * - + 20 ) * - 83
----
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT DISTINCT - MIN( ALL - 96 ) col2
----
96

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT - MIN ( ALL - 96 ) col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT NULLIF ( COUNT( + 11 ), - - 42 ) * + - 91 + 34 * ( COUNT( * ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5476
SELECT NULLIF ( COUNT ( + 11 ), - - 42 ) * + - 91 + 34 * ( COUNT ( * ) ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5477
SELECT MAX( + 79 ) col2, - 18 AS col0
----
79
-18

skipif mysql # not compatible
query II rowsort label-5477
SELECT MAX ( + 79 ) col2, - 18 AS col0
----
79
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + COUNT( * ) - + - SUM( - ( + + 9 ) ) + + 49 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5478
SELECT + COUNT ( * ) - + - SUM ( - ( + + 9 ) ) + + 49 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5479
SELECT ALL + 12 + - 16 DIV - - 87 - + + COALESCE ( + 16, - COUNT( * ) ) * + 51 + + 7 AS col2
----
-797

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL + 12 + - 16 / - - 87 - + + COALESCE ( + 16, - COUNT ( * ) ) * + 51 + + 7 AS col2
----
-797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT DISTINCT CAST( - 89 AS SIGNED ) * - 20 * - + 99 AS col0
----
-176220

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT CAST ( - 89 AS INTEGER ) * - 20 * - + 99 AS col0
----
-176220

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL COUNT( * ) + + - COUNT( - 37 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL COUNT ( * ) + + - COUNT ( - 37 ) AS col0
----
0

query I rowsort
SELECT ALL + 40 + + - 45 AS col1
----
-5

query I rowsort
SELECT ALL 30 + 51 + - 49
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5484
SELECT DISTINCT 41 * + CAST( NULL AS DECIMAL ) / + - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT 41 * + CAST ( NULL AS REAL ) / + - 39 AS col2
----
NULL

query I rowsort
SELECT - 53 * - 62 + - 60
----
3226

query II rowsort
SELECT + 12 - - 62 AS col1, 92 col1
----
74
92

query I rowsort
SELECT - NULLIF ( 78, + 6 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - - COALESCE ( 69, - - 67 ) + - 1 + - - ( + + COUNT( * ) ) + 77 * - + CASE - NULLIF ( + 18, - 11 ) WHEN 11 THEN - ( + - 87 ) / + COUNT( * ) / 49 * - - 43 END + - ( + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT - - COALESCE ( 69, - - 67 ) + - 1 + - - ( + + COUNT ( * ) ) + 77 * - + CASE - NULLIF ( + 18, - 11 ) WHEN 11 THEN - ( + - 87 ) / + COUNT ( * ) / 49 * - - 43 END + - ( + 58 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT + + 72 + + 3 + + 1 + + MIN( DISTINCT - 29 )
----
47

skipif mysql # not compatible
query I rowsort label-5489
SELECT + + 72 + + 3 + + 1 + + MIN ( DISTINCT - 29 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL - MIN( - + 66 ) + + 99 * + 88
----
8778

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL - MIN ( - + 66 ) + + 99 * + 88
----
8778

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + ( + 70 ) + + + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5491
SELECT + ( + 70 ) + + + COUNT ( * ) AS col2
----
71

query I rowsort
SELECT ALL 0 + - 63 col2
----
-63

query I rowsort
SELECT ALL 74 * 38 col2
----
2812

query I rowsort
SELECT + ( - 44 ) + + 21 AS col1
----
-23

query I rowsort
SELECT ALL - + 65 * 59
----
-3835

query II rowsort
SELECT + 58 + - 89 + 9 * + - 44 AS col1, + 76 * 62 - - 28 AS col1
----
-427
4740

query I rowsort
SELECT + - 45 + - 17 - - + 29 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT - + COUNT( DISTINCT 73 ) + + + 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5498
SELECT - + COUNT ( DISTINCT 73 ) + + + 0 AS col0
----
-1

query I rowsort
SELECT + 33 * + - 88
----
-2904

query I rowsort
SELECT ALL + - ( + 12 ) AS col1
----
-12

query I rowsort
SELECT - 32 * - 93 * 15 AS col1
----
44640

query II rowsort
SELECT - ( + 44 ) + - 53 col2, - 74 AS col1
----
-97
-74

query II rowsort
SELECT ALL + 49 col0, + 26
----
49
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5504
SELECT CAST( NULL AS SIGNED ) * 99 + + + COUNT( * ) + + ( 27 ) col2, - 54 AS col0
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-5504
SELECT CAST ( NULL AS INTEGER ) * 99 + + + COUNT ( * ) + + ( 27 ) col2, - 54 AS col0
----
NULL
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5505
SELECT DISTINCT - 71 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - 71 / - 98
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT + ( - + 72 ) DIV + 23 + - 1 * - - ( + - NULLIF ( + 34, + - 3 ) )
----
31

skipif mysql # not compatible
query I rowsort label-5506
SELECT + ( - + 72 ) / + 23 + - 1 * - - ( + - NULLIF ( + 34, + - 3 ) )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5507
SELECT DISTINCT 81 * + 56 + - + CAST( NULL AS SIGNED ) AS col2, - 19
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-5507
SELECT DISTINCT 81 * + 56 + - + CAST ( NULL AS INTEGER ) AS col2, - 19
----
NULL
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT DISTINCT - ( + COALESCE ( + + 25, + + 43 ) ) * CAST( NULL AS SIGNED ) * 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - ( + COALESCE ( + + 25, + + 43 ) ) * CAST ( NULL AS INTEGER ) * 54 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT - 42 + CAST( - 41 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-5509
SELECT - 42 + CAST ( - 41 AS INTEGER ) AS col2
----
-83

query I rowsort
SELECT ALL - 54 * 55
----
-2970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5511
SELECT 81 * + CAST( - - 35 AS SIGNED ) + - 64 - 25
----
2746

skipif mysql # not compatible
query I rowsort label-5511
SELECT 81 * + CAST ( - - 35 AS INTEGER ) + - 64 - 25
----
2746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT DISTINCT 75 * - - 15 + - 73 DIV - - COUNT( DISTINCT - ( + 27 ) )
----
1052

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT 75 * - - 15 + - 73 / - - COUNT ( DISTINCT - ( + 27 ) )
----
1052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT NULLIF ( - 6, + ( + + 28 ) * + - CAST( 97 AS SIGNED ) ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-5513
SELECT NULLIF ( - 6, + ( + + 28 ) * + - CAST ( 97 AS INTEGER ) ) col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5514
SELECT - 94 + CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5514
SELECT - 94 + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
-95

query I rowsort
SELECT - 6 * + 65 * - 4
----
1560

query II rowsort
SELECT + 58, + 17 AS col2
----
58
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT + MIN( ALL - - 6 ) + - + 37 * 19 - - + 57 AS col0
----
-640

skipif mysql # not compatible
query I rowsort label-5517
SELECT + MIN ( ALL - - 6 ) + - + 37 * 19 - - + 57 AS col0
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT - 88 * - - MIN( 83 )
----
-7304

skipif mysql # not compatible
query I rowsort label-5518
SELECT - 88 * - - MIN ( 83 )
----
-7304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT DISTINCT + + ( CAST( NULL AS SIGNED ) ) * - 83 - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + + ( CAST ( NULL AS INTEGER ) ) * - 83 - + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL COUNT( * ) * 83 * + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL COUNT ( * ) * 83 * + COUNT ( * )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5521
SELECT - CAST( NULL AS SIGNED ) * - 83 * 91 AS col2, ( - 13 )
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-5521
SELECT - CAST ( NULL AS INTEGER ) * - 83 * 91 AS col2, ( - 13 )
----
NULL
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5522
SELECT - COUNT( ALL + + 64 ) * + NULLIF ( - 4, + - COUNT( + + 50 ) + 55 ) DIV 2 DIV + MAX( DISTINCT 29 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5522
SELECT - COUNT ( ALL + + 64 ) * + NULLIF ( - 4, + - COUNT ( + + 50 ) + 55 ) / 2 / + MAX ( DISTINCT 29 ) AS col2
----
0

query II rowsort
SELECT ALL - - 46 * 24 * + + 7 AS col0, 94 AS col2
----
7728
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT - - ( + ( + 87 ) ) DIV + ( 99 ) * - 86 + + 46 + + 68 + + 95 + 53
----
262

skipif mysql # not compatible
query I rowsort label-5524
SELECT - - ( + ( + 87 ) ) / + ( 99 ) * - 86 + + 46 + + 68 + + 95 + 53
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + - 68 * - MAX( + - ( + 14 ) )
----
-952

skipif mysql # not compatible
query I rowsort label-5525
SELECT + - 68 * - MAX ( + - ( + 14 ) )
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL + MAX( 25 )
----
25

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + MAX ( 25 )
----
25

query I rowsort
SELECT - - COALESCE ( - COALESCE ( - 44, 11 * + + 90 + + 26 + - 11 ), + + 11 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT + + CASE - 88 WHEN 82 THEN 55 WHEN - 3 THEN NULL ELSE + 3 END + - 90 + COALESCE ( - 48, + 20, + 99 + 69 * - + CASE - 82 WHEN + + 94 + + CAST( NULL AS SIGNED ) THEN - 5 END ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-5528
SELECT + + CASE - 88 WHEN 82 THEN 55 WHEN - 3 THEN NULL ELSE + 3 END + - 90 + COALESCE ( - 48, + 20, + 99 + 69 * - + CASE - 82 WHEN + + 94 + + CAST ( NULL AS INTEGER ) THEN - 5 END ) AS col1
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5529
SELECT DISTINCT - ( COALESCE ( - 73, - - 45 * - + COUNT( ALL - 59 ) DIV + 53 + - 79 + + CAST( NULL AS SIGNED ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT - ( COALESCE ( - 73, - - 45 * - + COUNT ( ALL - 59 ) / + 53 + - 79 + + CAST ( NULL AS INTEGER ) ) )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT ALL 75 DIV + + 11
----
6

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL 75 / + + 11
----
6

query II rowsort
SELECT - 40 AS col1, 46 AS col0
----
-40
46

query I rowsort
SELECT ALL CASE - 75 WHEN 56 * 88 * + 47 THEN 34 END
----
NULL

query I rowsort
SELECT - + COALESCE ( - 47, + 58, 72 ) col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - ( COUNT( DISTINCT 24 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5534
SELECT - ( COUNT ( DISTINCT 24 ) ) AS col0
----
-1

query I rowsort
SELECT + 8 * + 48 * + + 42 * 13
----
209664

onlyif mysql # aggregate syntax: 
query II rowsort label-5536
SELECT ALL ( - - 96 ) + + 13 * 76, MIN( ALL - 77 ) AS col1
----
1084
-77

skipif mysql # not compatible
query II rowsort label-5536
SELECT ALL ( - - 96 ) + + 13 * 76, MIN ( ALL - 77 ) AS col1
----
1084
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5537
SELECT DISTINCT MIN( ALL - 16 ) + + 71 * - ( - - 92 ) * + COUNT( * ) AS col2, 77
----
-6548
77

skipif mysql # not compatible
query II rowsort label-5537
SELECT DISTINCT MIN ( ALL - 16 ) + + 71 * - ( - - 92 ) * + COUNT ( * ) AS col2, 77
----
-6548
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL - COUNT( * ) + 12 * - NULLIF ( 87, - 71 ) AS col2
----
-1045

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL - COUNT ( * ) + 12 * - NULLIF ( 87, - 71 ) AS col2
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT COUNT( * ) * + 75 * + - 77 AS col0
----
-5775

skipif mysql # not compatible
query I rowsort label-5539
SELECT COUNT ( * ) * + 75 * + - 77 AS col0
----
-5775

query II rowsort
SELECT DISTINCT 66 * - 35 AS col1, + 13
----
-2310
13

query I rowsort
SELECT DISTINCT + 76 + - 79
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT COUNT( * ) * COALESCE ( + + ( 15 ), - 30 * - COALESCE ( - 6, - NULLIF ( - MIN( + 16 ), 9 * + 69 ) + - - 97 + 80, - 11 + - 76 ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5542
SELECT COUNT ( * ) * COALESCE ( + + ( 15 ), - 30 * - COALESCE ( - 6, - NULLIF ( - MIN ( + 16 ), 9 * + 69 ) + - - 97 + 80, - 11 + - 76 ) ) AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT CAST( NULL AS SIGNED ) + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT CAST ( NULL AS INTEGER ) + - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT DISTINCT + COUNT( * ) + - + 39 * + 61
----
-2378

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT + COUNT ( * ) + - + 39 * + 61
----
-2378

query I rowsort
SELECT DISTINCT + 5 * + 26 AS col1
----
130

query I rowsort
SELECT COALESCE ( - + 91, 30 + - + 38 ) * - 91 AS col0
----
8281

query I rowsort
SELECT DISTINCT - + ( + + 6 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5548
SELECT + COUNT( * ) col2, COALESCE ( 90, - + 19 )
----
1
90

skipif mysql # not compatible
query II rowsort label-5548
SELECT + COUNT ( * ) col2, COALESCE ( 90, - + 19 )
----
1
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5549
SELECT DISTINCT - + COUNT( * ) AS col1, 73
----
-1
73

skipif mysql # not compatible
query II rowsort label-5549
SELECT DISTINCT - + COUNT ( * ) AS col1, 73
----
-1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT 98 + 13 + + + 72 * - 48 + - + COUNT( * ) AS col1
----
-3346

skipif mysql # not compatible
query I rowsort label-5550
SELECT 98 + 13 + + + 72 * - 48 + - + COUNT ( * ) AS col1
----
-3346

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT MAX( + 61 ) * COUNT( 30 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5551
SELECT MAX ( + 61 ) * COUNT ( 30 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT + 40 * - NULLIF ( - + COUNT( ALL + - 92 ), 15 * MIN( + 68 ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5552
SELECT + 40 * - NULLIF ( - + COUNT ( ALL + - 92 ), 15 * MIN ( + 68 ) ) AS col2
----
40

query I rowsort
SELECT - 79 + - 66
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-5554
SELECT ALL 51 AS col0, SUM( DISTINCT + 35 ) * + 94 * + + COUNT( * ) - + 22 + + + 30 * + NULLIF ( - 90, + - 99 * + + 40 ) + + + SUM( ALL + 68 )
----
51
636

skipif mysql # not compatible
query II rowsort label-5554
SELECT ALL 51 AS col0, SUM ( DISTINCT + 35 ) * + 94 * + + COUNT ( * ) - + 22 + + + 30 * + NULLIF ( - 90, + - 99 * + + 40 ) + + + SUM ( ALL + 68 )
----
51
636

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT 37 + COUNT( * ) * 81
----
118

skipif mysql # not compatible
query I rowsort label-5555
SELECT 37 + COUNT ( * ) * 81
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT DISTINCT 1, 77 * + MAX( ALL - 48 ) AS col1
----
1
-3696

skipif mysql # not compatible
query II rowsort label-5556
SELECT DISTINCT 1, 77 * + MAX ( ALL - 48 ) AS col1
----
1
-3696

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT - 6 * - - 34 + + COALESCE ( - + SUM( DISTINCT - 38 ), 17 ) * - + COUNT( * ) AS col2, - 75
----
-242
-75

skipif mysql # not compatible
query II rowsort label-5557
SELECT - 6 * - - 34 + + COALESCE ( - + SUM ( DISTINCT - 38 ), 17 ) * - + COUNT ( * ) AS col2, - 75
----
-242
-75

query I rowsort
SELECT ALL COALESCE ( - 78, 29 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + 15 + COUNT( + 61 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 15 + COUNT ( + 61 ) AS col2
----
16

query II rowsort
SELECT ALL 57 AS col0, + ( - 16 )
----
57
-16

query II rowsort
SELECT + ( + 73 ) + NULLIF ( + 31, + 49 + + 28 ) + - 33, 98 AS col2
----
71
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5562
SELECT ALL 18, COUNT( * ) * - - COALESCE ( NULLIF ( + + 91, + 61 * + 38 - - 39 - + 62 ), ( + 82 ) + 6 * - MIN( DISTINCT + 20 ) * + CAST( 62 AS SIGNED ) * COUNT( * ) + 74 + + 27, + 8 ) AS col2
----
18
91

skipif mysql # not compatible
query II rowsort label-5562
SELECT ALL 18, COUNT ( * ) * - - COALESCE ( NULLIF ( + + 91, + 61 * + 38 - - 39 - + 62 ), ( + 82 ) + 6 * - MIN ( DISTINCT + 20 ) * + CAST ( 62 AS INTEGER ) * COUNT ( * ) + 74 + + 27, + 8 ) AS col2
----
18
91

query I rowsort
SELECT ALL - 32 + 55 + - + ( - - 29 ) col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5564
SELECT - + 39 AS col2, - COUNT( + 67 ) + + 55 AS col2
----
-39
54

skipif mysql # not compatible
query II rowsort label-5564
SELECT - + 39 AS col2, - COUNT ( + 67 ) + + 55 AS col2
----
-39
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT 88 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT 88 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 26 + + 63 + + - 8
----
81

query I rowsort
SELECT 33 + 2
----
35

query II rowsort
SELECT ALL ( + 97 ) + 67 AS col1, + 81 * + ( 84 )
----
164
6804

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT COUNT( * ) + - + SUM( + + ( - ( + 38 ) ) ) AS col1, 31 AS col1
----
39
31

skipif mysql # not compatible
query II rowsort label-5569
SELECT COUNT ( * ) + - + SUM ( + + ( - ( + 38 ) ) ) AS col1, 31 AS col1
----
39
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5570
SELECT 26 DIV + + 15 + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5570
SELECT 26 / + + 15 + + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL 25 + - - ( 36 ) + - COUNT( * ) + - + 18 - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL 25 + - - ( 36 ) + - COUNT ( * ) + - + 18 - - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT COUNT( * ) * + COUNT( * ) AS col1, 6
----
1
6

skipif mysql # not compatible
query II rowsort label-5572
SELECT COUNT ( * ) * + COUNT ( * ) AS col1, 6
----
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT COUNT( - ( - 2 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5573
SELECT COUNT ( - ( - 2 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT - 35 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT - 35 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT MIN( - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5575
SELECT MIN ( - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT + 23 * - COUNT( * ) * + + 56 + + - 41 AS col0
----
-1329

skipif mysql # not compatible
query I rowsort label-5576
SELECT + 23 * - COUNT ( * ) * + + 56 + + - 41 AS col0
----
-1329

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL COUNT( * ) - + ( - 99 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL COUNT ( * ) - + ( - 99 ) AS col0
----
100

query I rowsort
SELECT ALL 47 * - NULLIF ( + 12, - 95 )
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + 88 * + COUNT( * ) + + + 90 * + 58 AS col1
----
5308

skipif mysql # not compatible
query I rowsort label-5579
SELECT + 88 * + COUNT ( * ) + + + 90 * + 58 AS col1
----
5308

query I rowsort
SELECT + + 82 * - + 23 + + CASE - - 9 WHEN + + 4 THEN - 5 ELSE NULL END / + 14 * 11 * - - 63 AS col0
----
NULL

query I rowsort
SELECT - 19 + 43
----
24

query I rowsort
SELECT 72 * 61 + + 86 AS col1
----
4478

query I rowsort
SELECT - NULLIF ( - + 52, - 53 ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5584
SELECT + + COALESCE ( - 28, - CAST( + 20 AS SIGNED ) * + 62 ) AS col2, NULLIF ( - 36, COUNT( * ) ) AS col2
----
-28
-36

skipif mysql # not compatible
query II rowsort label-5584
SELECT + + COALESCE ( - 28, - CAST ( + 20 AS INTEGER ) * + 62 ) AS col2, NULLIF ( - 36, COUNT ( * ) ) AS col2
----
-28
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5585
SELECT COUNT( + 41 ) DIV + 7 + + - 23 * + 8 + + + 68
----
-116

skipif mysql # not compatible
query I rowsort label-5585
SELECT COUNT ( + 41 ) / + 7 + + - 23 * + 8 + + + 68
----
-116

onlyif mysql # DIV for integer division: 
query II rowsort label-5586
SELECT ALL 69 DIV + 36 AS col0, 19
----
1
19

skipif mysql # not compatible
query II rowsort label-5586
SELECT ALL 69 / + 36 AS col0, 19
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT 92 + - COUNT( * ) * MIN( DISTINCT - ( + 78 ) ) + + 50 * ( - 54 ) + - 4 AS col0
----
-2534

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT 92 + - COUNT ( * ) * MIN ( DISTINCT - ( + 78 ) ) + + 50 * ( - 54 ) + - 4 AS col0
----
-2534

query I rowsort
SELECT 62 - - 62 AS col0
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-5589
SELECT 21 * + 77 col1, COUNT( * ) + + MAX( ALL + + 16 ) * - 65 + - + 51 AS col2
----
1617
-1090

skipif mysql # not compatible
query II rowsort label-5589
SELECT 21 * + 77 col1, COUNT ( * ) + + MAX ( ALL + + 16 ) * - 65 + - + 51 AS col2
----
1617
-1090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5590
SELECT DISTINCT - + 37 + + 79 + + 23 + - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT - + 37 + + 79 + + 23 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL + CASE 50 WHEN + CAST( NULL AS SIGNED ) THEN 37 * + CAST( NULL AS SIGNED ) WHEN + + 11 THEN NULL WHEN + - MIN( DISTINCT - 63 ) + + + 32 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + CASE 50 WHEN + CAST ( NULL AS INTEGER ) THEN 37 * + CAST ( NULL AS INTEGER ) WHEN + + 11 THEN NULL WHEN + - MIN ( DISTINCT - 63 ) + + + 32 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - ( 69 ) * + ( + 99 ) AS col0
----
-6831

query I rowsort
SELECT DISTINCT 96 + - 57 + - 13 col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT - 25 - COALESCE ( - COUNT( * ), - 5, ( + NULLIF ( - 93, + - 44 ) ), - 8 ) * + ( COUNT( * ) ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-5594
SELECT - 25 - COALESCE ( - COUNT ( * ), - 5, ( + NULLIF ( - 93, + - 44 ) ), - 8 ) * + ( COUNT ( * ) ) col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5595
SELECT DISTINCT MIN( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT MIN ( DISTINCT CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT - 2 * + 23 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5597
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT DISTINCT SUM( - 59 ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT SUM ( - 59 ) col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5599
SELECT ALL - ( - - 61 ) + + COUNT( * ) AS col2, + 1 + - + 40 - + 8 + - 50 + - 3 + - 77 + - 92 * 41
----
-60
-3949

skipif mysql # not compatible
query II rowsort label-5599
SELECT ALL - ( - - 61 ) + + COUNT ( * ) AS col2, + 1 + - + 40 - + 8 + - 50 + - 3 + - 77 + - 92 * 41
----
-60
-3949

onlyif mysql # aggregate syntax: 
query II rowsort label-5600
SELECT + MIN( 99 ) * - 35 AS col2, 44 + 29 * - 84 * + 91 AS col2
----
-3465
-221632

skipif mysql # not compatible
query II rowsort label-5600
SELECT + MIN ( 99 ) * - 35 AS col2, 44 + 29 * - 84 * + 91 AS col2
----
-3465
-221632

query I rowsort
SELECT ALL + ( - NULLIF ( + + 6, 20 ) ) * + 5 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT COALESCE ( - ( + 26 ), - 63 * - + COUNT( * ) ) * - - 95 + + COUNT( * ) + - + 1 * 6 * + 99 * 36 * + 85 + + 65 + + COALESCE ( 77, 17 + - 76 + + + COUNT( * ) * + COUNT( * ) ) + + 37 * + + ( NULLIF ( - 11, 31 ) ) AS col1
----
-1820374

skipif mysql # not compatible
query I rowsort label-5602
SELECT COALESCE ( - ( + 26 ), - 63 * - + COUNT ( * ) ) * - - 95 + + COUNT ( * ) + - + 1 * 6 * + 99 * 36 * + 85 + + 65 + + COALESCE ( 77, 17 + - 76 + + + COUNT ( * ) * + COUNT ( * ) ) + + 37 * + + ( NULLIF ( - 11, 31 ) ) AS col1
----
-1820374

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT ALL 0 DIV - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL 0 / - 18 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT + 5 * 3 * COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5604
SELECT + 5 * 3 * COUNT ( * ) AS col2
----
15

query I rowsort
SELECT - 25 * - - 18 AS col2
----
-450

query I rowsort
SELECT ALL + 1 * - 10 + + + ( - - 39 ) + 35 * + 93 + - 88 AS col2
----
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-5607
SELECT ALL 39 * + 30 + 26 + + 66 - - 41 + - 1 col1, + CASE + - MIN( DISTINCT 72 ) WHEN - ( 61 ) THEN NULL WHEN - 20 THEN + + COUNT( - 27 ) ELSE + - COUNT( * ) END + - 81 * + ( + COUNT( * ) ) col1
----
1302
-82

skipif mysql # not compatible
query II rowsort label-5607
SELECT ALL 39 * + 30 + 26 + + 66 - - 41 + - 1 col1, + CASE + - MIN ( DISTINCT 72 ) WHEN - ( 61 ) THEN NULL WHEN - 20 THEN + + COUNT ( - 27 ) ELSE + - COUNT ( * ) END + - 81 * + ( + COUNT ( * ) ) col1
----
1302
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT + 31 * 74 * + COUNT( * ) - + 49 AS col1, - 76 AS col1
----
2245
-76

skipif mysql # not compatible
query II rowsort label-5608
SELECT + 31 * 74 * + COUNT ( * ) - + 49 AS col1, - 76 AS col1
----
2245
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT + SUM( DISTINCT - 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-5609
SELECT + SUM ( DISTINCT - 83 ) AS col1
----
-83

query I rowsort
SELECT ALL + 57 * - + CASE - 59 WHEN - - 37 THEN ( + 9 ) - - + ( - 1 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT ( + ( - 46 ) ) * 0 * + COUNT( * ) * 11 + 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT ( + ( - 46 ) ) * 0 * + COUNT ( * ) * 11 + 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT ALL + COUNT( * ) * - 44 + + ( 62 ), 61 AS col0
----
18
61

skipif mysql # not compatible
query II rowsort label-5612
SELECT ALL + COUNT ( * ) * - 44 + + ( 62 ), 61 AS col0
----
18
61

query I rowsort
SELECT + + 60 + 92
----
152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5614
SELECT + 24 / + CAST( NULL AS DECIMAL ) + + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT + 24 / + CAST ( NULL AS REAL ) + + 32 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5615
SELECT + - 79 - SUM( + - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT + - 79 - SUM ( + - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + - ( - 30 ) + 1 * + 92 AS col2
----
122

query I rowsort
SELECT ALL - + 59 + 34
----
-25

query I rowsort
SELECT + ( + + 6 ) * 90 AS col2
----
540

query II rowsort
SELECT ALL + 43 AS col0, - 22
----
43
-22

query I rowsort
SELECT ALL + 62 + 68
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT DISTINCT COUNT( * ) + - + 8 * - 85
----
681

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT COUNT ( * ) + - + 8 * - 85
----
681

query II rowsort
SELECT ALL ( 96 ) AS col2, + 56
----
96
56

query I rowsort
SELECT - 54 + + 26
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5624
SELECT - 72 DIV ( - CASE + 7 WHEN NULLIF ( + CAST( AVG ( DISTINCT - - 84 ) AS SIGNED ), + + 14 ) - + NULLIF ( ( - 43 ), COUNT( * ) * 34 - - + CAST( 86 AS SIGNED ) ) THEN + 12 ELSE COUNT( * ) END )
----
72

skipif mysql # not compatible
query I rowsort label-5624
SELECT - 72 / ( - CASE + 7 WHEN NULLIF ( + CAST ( AVG ( DISTINCT - - 84 ) AS INTEGER ), + + 14 ) - + NULLIF ( ( - 43 ), COUNT ( * ) * 34 - - + CAST ( 86 AS INTEGER ) ) THEN + 12 ELSE COUNT ( * ) END )
----
72

query I rowsort
SELECT ALL COALESCE ( - 14, - 56 + 68 ) col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT ALL CASE COUNT( * ) WHEN - - COUNT( * ) * - + 8 + + COUNT( 99 ) / 63 + - 9 THEN + 42 WHEN + 0 - + - 76 THEN + AVG ( - + 32 ) + - + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL CASE COUNT ( * ) WHEN - - COUNT ( * ) * - + 8 + + COUNT ( 99 ) / 63 + - 9 THEN + 42 WHEN + 0 - + - 76 THEN + AVG ( - + 32 ) + - + 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL - 63 - + 20 + + MIN( + COALESCE ( 24, + - 4 * - 54 ) ) + + 12 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL - 63 - + 20 + + MIN ( + COALESCE ( 24, + - 4 * - 54 ) ) + + 12 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT ALL CAST( + + ( - 4 ) AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL CAST ( + + ( - 4 ) AS INTEGER )
----
-4

query I rowsort
SELECT - COALESCE ( + 90, - 86 ) * + 64
----
-5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT ALL + 91 * CAST( + 88 AS SIGNED ) * 36 + - - ( - NULLIF ( + 51, - 11 * - + 17 ) ) + + + 91 AS col1
----
288328

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL + 91 * CAST ( + 88 AS INTEGER ) * 36 + - - ( - NULLIF ( + 51, - 11 * - + 17 ) ) + + + 91 AS col1
----
288328

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT ALL + NULLIF ( + 39, - COUNT( * ) * ( - - 72 ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL + NULLIF ( + 39, - COUNT ( * ) * ( - - 72 ) ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5632
SELECT + 83 * + + 0 * + 54 + + COUNT( * ) - + + 94 + CASE + COUNT( * ) WHEN - COUNT( DISTINCT + 59 ) * + 39 + - - MAX( ALL - CAST( NULL AS SIGNED ) ) THEN + COUNT( 10 ) * - COALESCE ( + + 61, - 80 / + + 94 + 17 / - ( - MIN( + - 83 ) ), - 81, - + 18 + + - 8 ) * 77 + - 87 + - 86 + + 32 WHEN 84 THEN NULL WHEN + COUNT( * ) * + 43 THEN NULL END + - + COUNT( * ) * + ( - MIN( 83 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT + 83 * + + 0 * + 54 + + COUNT ( * ) - + + 94 + CASE + COUNT ( * ) WHEN - COUNT ( DISTINCT + 59 ) * + 39 + - - MAX ( ALL - CAST ( NULL AS INTEGER ) ) THEN + COUNT ( 10 ) * - COALESCE ( + + 61, - 80 / + + 94 + 17 / - ( - MIN ( + - 83 ) ), - 81, - + 18 + + - 8 ) * 77 + - 87 + - 86 + + 32 WHEN 84 THEN NULL WHEN + COUNT ( * ) * + 43 THEN NULL END + - + COUNT ( * ) * + ( - MIN ( 83 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT ALL 87 / - 70 + - + ( + 40 ) + - CASE + 80 WHEN + 75 * 15 * - 70 THEN NULL WHEN 15 + + + 91 * - CAST( - - 5 AS SIGNED ) THEN NULL WHEN COALESCE ( - 95, + + 43 ) THEN 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL 87 / - 70 + - + ( + 40 ) + - CASE + 80 WHEN + 75 * 15 * - 70 THEN NULL WHEN 15 + + + 91 * - CAST ( - - 5 AS INTEGER ) THEN NULL WHEN COALESCE ( - 95, + + 43 ) THEN 59 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL 8 / + - CASE + 16 WHEN COUNT( * ) + - 36 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - + 99 * + 48 THEN + 87 END * - 86 * - + 5 - + - 17 + + MIN( - 21 ) / + 75 * - 34 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL 8 / + - CASE + 16 WHEN COUNT ( * ) + - 36 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - + 99 * + 48 THEN + 87 END * - 86 * - + 5 - + - 17 + + MIN ( - 21 ) / + 75 * - 34 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5635
SELECT ALL COUNT( DISTINCT 68 ) DIV - + 45 + + + 53 * - ( + 86 )
----
-4558

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL COUNT ( DISTINCT 68 ) / - + 45 + + + 53 * - ( + 86 )
----
-4558

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT - COALESCE ( - 55, + 18 + + COUNT( + + 32 ) ) col0
----
55

skipif mysql # not compatible
query I rowsort label-5636
SELECT - COALESCE ( - 55, + 18 + + COUNT ( + + 32 ) ) col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5637
SELECT + COUNT( * ) DIV 25 * 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT + COUNT ( * ) / 25 * 11 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT SUM( - 1 ) * - 58 + 12 + 73 * - 1 * + ( - 47 )
----
3501

skipif mysql # not compatible
query I rowsort label-5638
SELECT SUM ( - 1 ) * - 58 + 12 + 73 * - 1 * + ( - 47 )
----
3501

query II rowsort
SELECT - 31 + - 77, 6 col0
----
-108
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL 14 + - COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL 14 + - COUNT ( * ) AS col2
----
13

query I rowsort
SELECT - 98 * - + 31 * - 37 * - 83
----
9329698

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL COUNT( * ) - + - ( - 9 ) * 23 * - + 15 AS col1
----
3106

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL COUNT ( * ) - + - ( - 9 ) * 23 * - + 15 AS col1
----
3106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5643
SELECT 44, + COUNT( * ) * + + ( + 42 ) + CAST( + COALESCE ( - + ( - - CAST( NULL AS SIGNED ) ), 68 - + 89 * - + 79 * - ( 90 ) * - 83 ) AS SIGNED ) + 95 - + ( 91 ) AS col1
----
44
52521684

skipif mysql # not compatible
query II rowsort label-5643
SELECT 44, + COUNT ( * ) * + + ( + 42 ) + CAST ( + COALESCE ( - + ( - - CAST ( NULL AS INTEGER ) ), 68 - + 89 * - + 79 * - ( 90 ) * - 83 ) AS INTEGER ) + 95 - + ( 91 ) AS col1
----
44
52521684

query II rowsort
SELECT - 17, 17 AS col0
----
-17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5645
SELECT 3 - + ( - 41 ) DIV - - 64 + + 54 * - 60 AS col1
----
-3237

skipif mysql # not compatible
query I rowsort label-5645
SELECT 3 - + ( - 41 ) / - - 64 + + 54 * - 60 AS col1
----
-3237

query I rowsort
SELECT 39 * + 99 AS col2
----
3861

query II rowsort
SELECT 92 AS col2, + 47 AS col0
----
92
47

query I rowsort
SELECT 29 * + 80
----
2320

query I rowsort
SELECT DISTINCT 89 * + - 88 AS col2
----
-7832

query I rowsort
SELECT ALL - 59 * + + 25 * - - 55 AS col2
----
-81125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5651
SELECT MAX( + 69 ) + + CAST( + 62 AS SIGNED )
----
131

skipif mysql # not compatible
query I rowsort label-5651
SELECT MAX ( + 69 ) + + CAST ( + 62 AS INTEGER )
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5652
SELECT DISTINCT COUNT( * ) DIV + 6
----
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT COUNT ( * ) / + 6
----
0

query II rowsort
SELECT ALL 95 AS col1, 60 AS col0
----
95
60

query I rowsort
SELECT 67 * - ( - + 87 )
----
5829

query I rowsort
SELECT DISTINCT 29 * - 12
----
-348

query I rowsort
SELECT ALL 88 * - 14 col2
----
-1232

query I rowsort
SELECT 89 + 52
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT DISTINCT - 87 + + MAX( - 35 ) AS col2, + COUNT( * ) AS col0
----
-122
1

skipif mysql # not compatible
query II rowsort label-5658
SELECT DISTINCT - 87 + + MAX ( - 35 ) AS col2, + COUNT ( * ) AS col0
----
-122
1

query I rowsort
SELECT DISTINCT - COALESCE ( 78, 1 * 64, 11 )
----
-78

query I rowsort
SELECT DISTINCT 87 + - 6 AS col0
----
81

query I rowsort
SELECT ALL + 97 + + 54
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT - COUNT( * ) + 10
----
9

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT - COUNT ( * ) + 10
----
9

query I rowsort
SELECT 25 * ( - 36 * + 74 ) - + 11
----
-66611

query I rowsort
SELECT DISTINCT - 52 * 58
----
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT 78 + 72 * + COUNT( * )
----
150

skipif mysql # not compatible
query I rowsort label-5665
SELECT 78 + 72 * + COUNT ( * )
----
150

query I rowsort
SELECT 81 * 59
----
4779

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT DISTINCT + 80 + 27 DIV - 21 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT + 80 + 27 / - 21 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL - COUNT( * ) + CASE CASE - COALESCE ( - 46, COALESCE ( 75, - 73 ) + 32, + 34 * + 47 ) WHEN 54 + 81 THEN NULL WHEN 15 THEN 82 ELSE NULL END WHEN - 45 + 65 THEN NULL ELSE COALESCE ( 60, - MAX( ALL 48 ) * 30 ) + 50 END
----
109

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - COUNT ( * ) + CASE CASE - COALESCE ( - 46, COALESCE ( 75, - 73 ) + 32, + 34 * + 47 ) WHEN 54 + 81 THEN NULL WHEN 15 THEN 82 ELSE NULL END WHEN - 45 + 65 THEN NULL ELSE COALESCE ( 60, - MAX ( ALL 48 ) * 30 ) + 50 END
----
109

query I rowsort
SELECT DISTINCT - 53 * - 46 AS col0
----
2438

query I rowsort
SELECT 4 - + 77 AS col1
----
-73

query I rowsort
SELECT 7 * 93 AS col0
----
651

query I rowsort
SELECT ALL + 35 * 42
----
1470

query I rowsort
SELECT 97 * + 31
----
3007

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT - ( - COUNT( ALL + 41 ) ) * + 11 + + CASE + 38 WHEN - 9 THEN - 47 + + 0 ELSE NULL END * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT - ( - COUNT ( ALL + 41 ) ) * + 11 + + CASE + 38 WHEN - 9 THEN - 47 + + 0 ELSE NULL END * 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT COUNT( * ) DIV - 6
----
0

skipif mysql # not compatible
query I rowsort label-5675
SELECT COUNT ( * ) / - 6
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5676
SELECT DISTINCT + 90 DIV MAX( ALL - 6 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + 90 / MAX ( ALL - 6 ) AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5677
SELECT 13 + COUNT( * ) DIV 52
----
13

skipif mysql # not compatible
query I rowsort label-5677
SELECT 13 + COUNT ( * ) / 52
----
13

query I rowsort
SELECT 48 - - ( 73 ) * + 44 AS col1
----
3260

query I rowsort
SELECT 22 + 75 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5680
SELECT ALL ( 16 ) - + CASE 3 WHEN - 43 * COALESCE ( CAST( NULL AS DECIMAL ) * 59, CAST( NULL AS SIGNED ), + 19 * AVG ( - 97 * - 75 ), - CAST( + ( - 47 ) AS DECIMAL ) ) THEN + ( - 76 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL ( 16 ) - + CASE 3 WHEN - 43 * COALESCE ( CAST ( NULL AS REAL ) * 59, CAST ( NULL AS INTEGER ), + 19 * AVG ( - 97 * - 75 ), - CAST ( + ( - 47 ) AS REAL ) ) THEN + ( - 76 ) END
----
NULL

query I rowsort
SELECT 32 + 89
----
121

query I rowsort
SELECT DISTINCT 48 * + 37 AS col2
----
1776

query I rowsort
SELECT 57 + - 51
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ( - COUNT( * ) ) + + 47
----
46

skipif mysql # not compatible
query I rowsort label-5684
SELECT ( - COUNT ( * ) ) + + 47
----
46

query I rowsort
SELECT ALL 47 + 96
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5686
SELECT SUM( 63 ) * NULLIF ( - MIN( - 15 ) DIV + 75 + ( 74 ), - 32 ) AS col0
----
4662

skipif mysql # not compatible
query I rowsort label-5686
SELECT SUM ( 63 ) * NULLIF ( - MIN ( - 15 ) / + 75 + ( 74 ), - 32 ) AS col0
----
4662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT ALL - COALESCE ( - 5, - COUNT( * ) ) + 73 * ( 14 / CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL - COALESCE ( - 5, - COUNT ( * ) ) + 73 * ( 14 / CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 13 + 58 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT DISTINCT 6 + - COUNT( DISTINCT ( ( 50 ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT 6 + - COUNT ( DISTINCT ( ( 50 ) ) )
----
5

query I rowsort
SELECT 3 + 77 AS col2
----
80

query I rowsort
SELECT + 55 * + 78
----
4290

query I rowsort
SELECT ALL - 69 * + 75 col2
----
-5175

query I rowsort
SELECT + 32 * 81 + - 10 AS col2
----
2582

onlyif mysql # DIV for integer division: 
query I rowsort label-5694
SELECT + - 78 DIV 69 - - 57 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5694
SELECT + - 78 / 69 - - 57 AS col0
----
56

query I rowsort
SELECT - 91 * 27 AS col0
----
-2457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5696
SELECT + COUNT( * ) DIV 66 + + 74 * + 31 col1
----
2294

skipif mysql # not compatible
query I rowsort label-5696
SELECT + COUNT ( * ) / 66 + + 74 * + 31 col1
----
2294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT - - COUNT( * ) * + ( + CASE COUNT( * ) WHEN + MAX( + 38 ) / - COUNT( * ) THEN 77 / 83 WHEN + SUM( ALL 66 ) * + CAST( NULL AS SIGNED ) THEN + CAST( - COUNT( * ) AS SIGNED ) END ) + + 2 / + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT - - COUNT ( * ) * + ( + CASE COUNT ( * ) WHEN + MAX ( + 38 ) / - COUNT ( * ) THEN 77 / 83 WHEN + SUM ( ALL 66 ) * + CAST ( NULL AS INTEGER ) THEN + CAST ( - COUNT ( * ) AS INTEGER ) END ) + + 2 / + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL - 17 * COUNT( + 30 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - 17 * COUNT ( + 30 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT DISTINCT + MAX( DISTINCT - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT + MAX ( DISTINCT - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT - + COUNT( * ) * - 56 + 68
----
124

skipif mysql # not compatible
query I rowsort label-5700
SELECT - + COUNT ( * ) * - 56 + 68
----
124

query I rowsort
SELECT ALL - 98 * + 78 - - 25
----
-7619

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT + MIN( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT + MIN ( 83 )
----
83

query I rowsort
SELECT ALL + 1 * - 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT - 49 + + NULLIF ( - 64, 69 ) * MAX( + 80 * 68 ) AS col1
----
-348209

skipif mysql # not compatible
query I rowsort label-5704
SELECT - 49 + + NULLIF ( - 64, 69 ) * MAX ( + 80 * 68 ) AS col1
----
-348209

query I rowsort
SELECT ALL + 77 * - 83
----
-6391

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT + CASE + 45 WHEN - COUNT( * ) THEN + 53 WHEN + COUNT( * ) THEN NULL END * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + CASE + 45 WHEN - COUNT ( * ) THEN + 53 WHEN + COUNT ( * ) THEN NULL END * - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT COALESCE ( - + COUNT( * ), ( 49 ), - 64 * 41 + 75, 60 * + 75 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT COALESCE ( - + COUNT ( * ), ( 49 ), - 64 * 41 + 75, 60 * + 75 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 59 + + + 49 AS col1
----
108

query I rowsort
SELECT - 77 - - 60 + 30 AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5710
SELECT - ( 57 ) DIV + 42
----
-1

skipif mysql # not compatible
query I rowsort label-5710
SELECT - ( 57 ) / + 42
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5711
SELECT - CASE - ( COUNT( * ) ) WHEN CASE + 90 WHEN + 88 THEN + 77 * CASE - 27 WHEN 44 * COUNT( * ) THEN NULL WHEN + ( CASE 61 WHEN + 95 THEN + 8 / 20 + - 66 WHEN - 64 * - NULLIF ( + 32 * + 21, - 98 ) THEN + 80 * + 85 END ) THEN 38 END WHEN + 73 THEN NULL END + 96 THEN NULL WHEN 29 THEN ( - CAST( - 84 AS SIGNED ) ) ELSE NULL END - - 54 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5711
SELECT - CASE - ( COUNT ( * ) ) WHEN CASE + 90 WHEN + 88 THEN + 77 * CASE - 27 WHEN 44 * COUNT ( * ) THEN NULL WHEN + ( CASE 61 WHEN + 95 THEN + 8 / 20 + - 66 WHEN - 64 * - NULLIF ( + 32 * + 21, - 98 ) THEN + 80 * + 85 END ) THEN 38 END WHEN + 73 THEN NULL END + 96 THEN NULL WHEN 29 THEN ( - CAST ( - 84 AS INTEGER ) ) ELSE NULL END - - 54 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT + CAST( 44 AS SIGNED ) * 85
----
3740

skipif mysql # not compatible
query I rowsort label-5712
SELECT + CAST ( 44 AS INTEGER ) * 85
----
3740

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT - CASE WHEN ( - 15 ) IS NOT NULL THEN 41 ELSE NULL END DIV - ( 98 * - 91 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5713
SELECT - CASE WHEN ( - 15 ) IS NOT NULL THEN 41 ELSE NULL END / - ( 98 * - 91 ) AS col0
----
0

query I rowsort
SELECT ALL ( - + 75 )
----
-75

query I rowsort
SELECT DISTINCT 0 * - 79
----
0

query I rowsort
SELECT - CASE + + 47 WHEN 76 THEN COALESCE ( + 16, - 8 ) - + 24 END - + 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT ALL + CAST( 52 AS SIGNED ) * - 38
----
-1976

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + CAST ( 52 AS INTEGER ) * - 38
----
-1976

query I rowsort
SELECT DISTINCT + - 51 * - 20
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL + CASE - - COUNT( * ) WHEN + 2 - - 97 THEN 96 + + COUNT( DISTINCT 63 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL + CASE - - COUNT ( * ) WHEN + 2 - - 97 THEN 96 + + COUNT ( DISTINCT 63 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT - 92 + 73 + ( - 15 ) DIV + 33 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5720
SELECT - 92 + 73 + ( - 15 ) / + 33 AS col2
----
-19

query I rowsort
SELECT - NULLIF ( - + 11, 54 ) + 71 * + 85 AS col1
----
6046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5722
SELECT + - COUNT( * ) + + 45 - 29 DIV 93 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5722
SELECT + - COUNT ( * ) + + 45 - 29 / 93 AS col2
----
44

query I rowsort
SELECT ALL + ( - ( + 73 ) ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 10 + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 10 + + 6
----
NULL

query I rowsort
SELECT + + 2 + + 70 AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5726
SELECT ALL COALESCE ( 93, + 38 * 95 - - 54 ) DIV 76 col2
----
1

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL COALESCE ( 93, + 38 * 95 - - 54 ) / 76 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5727
SELECT DISTINCT - 44 DIV + + COUNT( * ) - 19 * - 94 col2
----
1742

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT - 44 / + + COUNT ( * ) - 19 * - 94 col2
----
1742

query I rowsort
SELECT DISTINCT - 64 * - 69 + 17
----
4433

onlyif mysql # DIV for integer division: 
query I rowsort label-5729
SELECT - - 37 * + + 47 + - 21 DIV 10 - + NULLIF ( - 25, 88 - + 62 * + 35 ) AS col2
----
1762

skipif mysql # not compatible
query I rowsort label-5729
SELECT - - 37 * + + 47 + - 21 / 10 - + NULLIF ( - 25, 88 - + 62 * + 35 ) AS col2
----
1762

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT + 21 DIV 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT + 21 / 23 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT DISTINCT 65 * + + CAST( NULL AS SIGNED ) / 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT 65 * + + CAST ( NULL AS INTEGER ) / 30
----
NULL

query I rowsort
SELECT - 4 * + - 49
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT SUM( ALL 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5733
SELECT SUM ( ALL 71 ) AS col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5734
SELECT + 20 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-5734
SELECT + 20 / + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT DISTINCT CASE - 14 WHEN + COUNT( * ) THEN NULL WHEN + 55 + + CASE CASE 65 WHEN 2 THEN 40 * 71 WHEN 48 * ( AVG ( DISTINCT 33 ) ) THEN NULL WHEN + 62 THEN NULL END + + ( 58 ) WHEN + 89 THEN - 8 + + 3 * - 32 WHEN - 10 THEN 34 - 32 WHEN - ( + 6 ) THEN NULL ELSE NULL END * 25 THEN 14 ELSE 16 * COUNT( 96 ) END * - 99 AS col2
----
-1584

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT CASE - 14 WHEN + COUNT ( * ) THEN NULL WHEN + 55 + + CASE CASE 65 WHEN 2 THEN 40 * 71 WHEN 48 * ( AVG ( DISTINCT 33 ) ) THEN NULL WHEN + 62 THEN NULL END + + ( 58 ) WHEN + 89 THEN - 8 + + 3 * - 32 WHEN - 10 THEN 34 - 32 WHEN - ( + 6 ) THEN NULL ELSE NULL END * 25 THEN 14 ELSE 16 * COUNT ( 96 ) END * - 99 AS col2
----
-1584

query I rowsort
SELECT + 96 * ( + + 59 ) * 72
----
407808

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT ALL NULLIF ( - COUNT( * ), - COUNT( * ) * 57 ) * - 54 + 79
----
133

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL NULLIF ( - COUNT ( * ), - COUNT ( * ) * 57 ) * - 54 + 79
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT + 54 + - + COUNT( * ) * + + ( 55 ) + 9 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5738
SELECT + 54 + - + COUNT ( * ) * + + ( 55 ) + 9 AS col2
----
8

query I rowsort
SELECT ALL NULLIF ( - + 64, - 80 )
----
-64

query I rowsort
SELECT + NULLIF ( + 36, - COALESCE ( - ( - 4 ), - 97 + ( ( ( + 59 ) ) ) ) + 2 ) + + 12
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5741
SELECT - CAST( NULL AS DECIMAL ) - COALESCE ( + + 53, - COUNT( * ) ) + ( + NULLIF ( - COUNT( ALL - 23 ), + 47 ) ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT - CAST ( NULL AS REAL ) - COALESCE ( + + 53, - COUNT ( * ) ) + ( + NULLIF ( - COUNT ( ALL - 23 ), + 47 ) ) * 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5742
SELECT ALL 10 * - 15 + 73 + - 73 * NULLIF ( ( 84 ) + ( 19 ), - ( - SUM( COALESCE ( - 27, CAST( ( + 35 ) AS SIGNED ) + 76 ) ) ) + - ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) )
----
-7596

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL 10 * - 15 + 73 + - 73 * NULLIF ( ( 84 ) + ( 19 ), - ( - SUM ( COALESCE ( - 27, CAST ( ( + 35 ) AS INTEGER ) + 76 ) ) ) + - ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) )
----
-7596

query I rowsort
SELECT - 0 + - 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT - CASE - - 87 WHEN 46 * + 15 - COUNT( ALL 16 ) * - 50 THEN 84 END + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT - CASE - - 87 WHEN 46 * + 15 - COUNT ( ALL 16 ) * - 50 THEN 84 END + + 77
----
NULL

query I rowsort
SELECT ALL - - 86 - 51
----
35

query I rowsort
SELECT + ( + 23 ) * 2 * - 50 AS col2
----
-2300

query I rowsort
SELECT ( - - COALESCE ( + 60, 58 * + 6, 11 ) ) * + 5
----
300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5748
SELECT + 85 + + COUNT( * ) + - 89 DIV 20 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5748
SELECT + 85 + + COUNT ( * ) + - 89 / 20 AS col1
----
82

query I rowsort
SELECT 35 * + ( 43 ) * + 11 + + 7
----
16562

query I rowsort
SELECT ALL - NULLIF ( 27, + + 61 ) AS col0
----
-27

query I rowsort
SELECT ALL - - ( 26 ) - - ( 97 ) * - 68 col0
----
-6570

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT 12 * CASE + 97 WHEN 61 THEN 24 WHEN 41 THEN NULL END + MAX( ALL + 2 ) * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT 12 * CASE + 97 WHEN 61 THEN 24 WHEN 41 THEN NULL END + MAX ( ALL + 2 ) * 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT - + COALESCE ( - + 62, - ( 64 ) + MIN( 54 ) * 79 ) - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - + COALESCE ( - + 62, - ( 64 ) + MIN ( 54 ) * 79 ) - COUNT ( * ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5754
SELECT + CAST( NULL AS DECIMAL ) + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT + CAST ( NULL AS REAL ) + - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 75 WHEN 10 THEN - CASE 44 WHEN 11 THEN 51 ELSE NULL END END * 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT + MIN( DISTINCT + 43 ) * + + 64 * - 11 AS col1
----
-30272

skipif mysql # not compatible
query I rowsort label-5756
SELECT + MIN ( DISTINCT + 43 ) * + + 64 * - 11 AS col1
----
-30272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5757
SELECT ( COALESCE ( + COUNT( * ), + 80 / COALESCE ( 60, + MIN( 31 ) * 69 + 59 * 55 ) + - 4, 22 + 6, 22 * + 80 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT ( COALESCE ( + COUNT ( * ), + 80 / COALESCE ( 60, + MIN ( 31 ) * 69 + 59 * 55 ) + - 4, 22 + 6, 22 * + 80 ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL + 34 * - NULLIF ( - MAX( DISTINCT - 21 ), 67 )
----
-714

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + 34 * - NULLIF ( - MAX ( DISTINCT - 21 ), 67 )
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + 1 + - + MAX( ALL + - 41 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5759
SELECT + 1 + - + MAX ( ALL + - 41 ) AS col1
----
42

query I rowsort
SELECT CASE 88 WHEN - + 88 - + 12 THEN 87 END
----
NULL

query I rowsort
SELECT - 85 * - + 2 + - - 89
----
259

query II rowsort
SELECT DISTINCT - 1 AS col1, 8
----
-1
8

query II rowsort
SELECT ALL - + 58 AS col0, 18 * - 61 + 69
----
-58
-1029

query I rowsort
SELECT 60 * - 99 - + ( + 61 ) AS col1
----
-6001

query I rowsort
SELECT 74 * - - 6 * + + 66 + 25 AS col0
----
29329

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT COUNT( * ) + + MIN( ALL + 16 )
----
17

skipif mysql # not compatible
query I rowsort label-5766
SELECT COUNT ( * ) + + MIN ( ALL + 16 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT DISTINCT - CASE - 95 WHEN 55 THEN 69 WHEN 30 - ( 99 ) THEN - 42 ELSE 4 + 80 DIV - 39 END AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT - CASE - 95 WHEN 55 THEN 69 WHEN 30 - ( 99 ) THEN - 42 ELSE 4 + 80 / - 39 END AS col0
----
-2

query I rowsort
SELECT 48 + + + 7 + + - ( 47 ) * 19 col2
----
-838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT DISTINCT 25 * CASE + 43 WHEN - - CAST( + COUNT( * ) AS SIGNED ) * - SUM( ALL 32 ) THEN COUNT( ALL 48 ) + COUNT( * ) WHEN - 52 * + ( 41 ) + - 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT 25 * CASE + 43 WHEN - - CAST ( + COUNT ( * ) AS INTEGER ) * - SUM ( ALL 32 ) THEN COUNT ( ALL 48 ) + COUNT ( * ) WHEN - 52 * + ( 41 ) + - 58 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 37 + + - 48 + 49 col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5771
SELECT ALL 72 + - - MAX( + - 71 ) + COUNT( * ) + + 57 / CAST( NULL AS SIGNED ) / - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL 72 + - - MAX ( + - 71 ) + COUNT ( * ) + + 57 / CAST ( NULL AS INTEGER ) / - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL 66 * - 60 * COALESCE ( COUNT( * ), COUNT( + 99 ) + 84 )
----
-3960

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL 66 * - 60 * COALESCE ( COUNT ( * ), COUNT ( + 99 ) + 84 )
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT 92 + 12 - + COUNT( * ) + + - COUNT( * ) * + 96 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5773
SELECT 92 + 12 - + COUNT ( * ) + + - COUNT ( * ) * + 96 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5774
SELECT DISTINCT CAST( + 87 AS SIGNED ) * 61
----
5307

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT CAST ( + 87 AS INTEGER ) * 61
----
5307

query I rowsort
SELECT DISTINCT 71 + + + 8 AS col2
----
79

query I rowsort
SELECT ALL 30 * + 74 col1
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT DISTINCT + 24 + - - COUNT( * ) + - COUNT( * ) * - + 68 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT + 24 + - - COUNT ( * ) + - COUNT ( * ) * - + 68 AS col1
----
93

query I rowsort
SELECT 63 * - - 49 AS col2
----
3087

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT + 74 - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5779
SELECT + 74 - - COUNT ( * )
----
75

query I rowsort
SELECT 47 * - 4 + - 60
----
-248

query I rowsort
SELECT ALL - 90 * + COALESCE ( - ( 45 ), 97 ) AS col1
----
4050

query I rowsort
SELECT - 83 * - - 62 AS col2
----
-5146

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT DISTINCT + 63 DIV - + 94 * + - 2 col0
----
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT + 63 / - + 94 * + - 2 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5784
SELECT ALL - COUNT( * ) * + CASE + CAST( + + 87 AS SIGNED ) WHEN NULLIF ( + 0, MAX( ALL + 74 ) ) * 72 + 36 * - MIN( DISTINCT + 77 - + 19 ) THEN NULL WHEN 32 THEN - AVG ( DISTINCT - 55 ) * - 11 END - - MIN( - 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - COUNT ( * ) * + CASE + CAST ( + + 87 AS INTEGER ) WHEN NULLIF ( + 0, MAX ( ALL + 74 ) ) * 72 + 36 * - MIN ( DISTINCT + 77 - + 19 ) THEN NULL WHEN 32 THEN - AVG ( DISTINCT - 55 ) * - 11 END - - MIN ( - 80 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT 27 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT 27 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - COALESCE ( 74, - 16 ) - + 57 * - 22 col2
----
1180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT 19 - - CAST( NULL AS SIGNED ) + - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT 19 - - CAST ( NULL AS INTEGER ) + - 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5788
SELECT COUNT( * ) DIV + CASE 47 WHEN + COUNT( * ) THEN NULL ELSE + 35 * COUNT( - 73 ) END col0
----
0

skipif mysql # not compatible
query I rowsort label-5788
SELECT COUNT ( * ) / + CASE 47 WHEN + COUNT ( * ) THEN NULL ELSE + 35 * COUNT ( - 73 ) END col0
----
0

query I rowsort
SELECT NULLIF ( 7, - 15 ) AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5790
SELECT ALL - + 66 DIV - - 32 + - COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - + 66 / - - 32 + - COUNT ( * ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5791
SELECT DISTINCT + 86 DIV 57 * + - MAX( 58 ) - - 42 * + 4 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT + 86 / 57 * + - MAX ( 58 ) - - 42 * + 4 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL + ( + + 43 ) * 88 - + 87 + COUNT( * ) * - 72 col1
----
3625

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL + ( + + 43 ) * 88 - + 87 + COUNT ( * ) * - 72 col1
----
3625

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL - CASE 43 WHEN - 57 * - 34 * - 87 + 45 / + 92 THEN + 99 * COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL - CASE 43 WHEN - 57 * - 34 * - 87 + 45 / + 92 THEN + 99 * COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT COUNT( * ) * 54 * + 43 + + 45 col1
----
2367

skipif mysql # not compatible
query I rowsort label-5794
SELECT COUNT ( * ) * 54 * + 43 + + 45 col1
----
2367

query I rowsort
SELECT ALL 84 * - 55 * - 10 AS col1
----
46200

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT 57 * - COUNT( * ) * + 38 col1, ( + 76 ) + - ( - 78 ) * ( + 46 )
----
-2166
3664

skipif mysql # not compatible
query II rowsort label-5796
SELECT 57 * - COUNT ( * ) * + 38 col1, ( + 76 ) + - ( - 78 ) * ( + 46 )
----
-2166
3664

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5797
SELECT ALL + ( + 77 ) * - + 81 + 15 * 47 + 56 * - SUM( ALL 65 / + 26 - + CAST( NULL AS DECIMAL ) * 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + ( + 77 ) * - + 81 + 15 * 47 + 56 * - SUM ( ALL 65 / + 26 - + CAST ( NULL AS REAL ) * 58 )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 18 ) AS col0
----
18

query I rowsort
SELECT 83 * + 66
----
5478

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT SUM( ALL 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5800
SELECT SUM ( ALL 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + 27 * + NULLIF ( + + COUNT( * ), - 61 * - 48 * 37 ) + 12 col2
----
39

skipif mysql # not compatible
query I rowsort label-5801
SELECT + 27 * + NULLIF ( + + COUNT ( * ), - 61 * - 48 * 37 ) + 12 col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5802
SELECT ALL - 43 * - 6 + + COUNT( * ) + 55 * + + COALESCE ( + 75, 87 * - 20 ) - ( 38 + 72 ) DIV 36
----
4381

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - 43 * - 6 + + COUNT ( * ) + 55 * + + COALESCE ( + 75, 87 * - 20 ) - ( 38 + 72 ) / 36
----
4381

query I rowsort
SELECT DISTINCT - ( - 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL 18 + 41 + + - MIN( 67 ) * - - 53
----
-3492

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL 18 + 41 + + - MIN ( 67 ) * - - 53
----
-3492

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT 74 * - COUNT( * ) - - 34 + SUM( - 35 ) * - 76
----
2620

skipif mysql # not compatible
query I rowsort label-5805
SELECT 74 * - COUNT ( * ) - - 34 + SUM ( - 35 ) * - 76
----
2620

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT COUNT( DISTINCT - ( - 38 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5806
SELECT COUNT ( DISTINCT - ( - 38 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL 71 * + COUNT( * ) col2
----
71

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL 71 * + COUNT ( * ) col2
----
71

query I rowsort
SELECT ALL 82 - 37 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT - SUM( - - 70 ) + - 74 col1
----
-144

skipif mysql # not compatible
query I rowsort label-5809
SELECT - SUM ( - - 70 ) + - 74 col1
----
-144

query I rowsort
SELECT + 29 * 51
----
1479

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT - 33 * - 81 - - 15 DIV - - 45 AS col1
----
2673

skipif mysql # not compatible
query I rowsort label-5811
SELECT - 33 * - 81 - - 15 / - - 45 AS col1
----
2673

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5812
SELECT + + 14 * + 54 + COUNT( * ), - 33 DIV + - 70 AS col2
----
757
0

skipif mysql # not compatible
query II rowsort label-5812
SELECT + + 14 * + 54 + COUNT ( * ), - 33 / + - 70 AS col2
----
757
0

query I rowsort
SELECT + 72 + - 31 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT ALL - COALESCE ( ( - - 90 ), - 72 ) * CASE COALESCE ( COUNT( * ), + 82 + - 99 ) WHEN + COUNT( * ) THEN + 98 ELSE NULL END + 42
----
-8778

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - COALESCE ( ( - - 90 ), - 72 ) * CASE COALESCE ( COUNT ( * ), + 82 + - 99 ) WHEN + COUNT ( * ) THEN + 98 ELSE NULL END + 42
----
-8778

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT + - 90 + + COUNT( * ) + - 55 * + 35
----
-2014

skipif mysql # not compatible
query I rowsort label-5815
SELECT + - 90 + + COUNT ( * ) + - 55 * + 35
----
-2014

onlyif mysql # aggregate syntax: 
query II rowsort label-5816
SELECT + COUNT( * ) * + 6 + - 9, 76 AS col2
----
-3
76

skipif mysql # not compatible
query II rowsort label-5816
SELECT + COUNT ( * ) * + 6 + - 9, 76 AS col2
----
-3
76

query II rowsort
SELECT - - 75 AS col1, CASE 34 WHEN - 82 THEN NULL WHEN - 49 THEN 13 END AS col2
----
75
NULL

query I rowsort
SELECT + - 40 + 17 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT + + NULLIF ( + + 34, - 85 + - 48 + + 71 - + CASE + COUNT( 27 ) WHEN + 75 THEN - 79 WHEN COUNT( * ) + COUNT( * ) * 17 THEN NULL WHEN 86 THEN - CASE WHEN ( NULLIF ( + 67, + 57 ) ) = - 19 + + 79 THEN - COUNT( * ) + + SUM( DISTINCT - 64 ) END * 56 END * COUNT( * ) ) + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-5819
SELECT + + NULLIF ( + + 34, - 85 + - 48 + + 71 - + CASE + COUNT ( 27 ) WHEN + 75 THEN - 79 WHEN COUNT ( * ) + COUNT ( * ) * 17 THEN NULL WHEN 86 THEN - CASE WHEN ( NULLIF ( + 67, + 57 ) ) = - 19 + + 79 THEN - COUNT ( * ) + + SUM ( DISTINCT - 64 ) END * 56 END * COUNT ( * ) ) + + COUNT ( * )
----
35

query I rowsort
SELECT - 57 + + + 63
----
6

query I rowsort
SELECT ALL + ( + 16 ) + - 46 + + + 84 * + 87 AS col1
----
7278

query I rowsort
SELECT ALL + 94 + - - 16 AS col2
----
110

query I rowsort
SELECT - 46 + - - 67
----
21

query I rowsort
SELECT ALL 16 + 39
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT + ( + COALESCE ( + 41, + COUNT( * ), 47 + - COUNT( DISTINCT + 50 ) ) )
----
41

skipif mysql # not compatible
query I rowsort label-5825
SELECT + ( + COALESCE ( + 41, + COUNT ( * ), 47 + - COUNT ( DISTINCT + 50 ) ) )
----
41

query I rowsort
SELECT + 37 * - - 76 AS col1
----
2812

query II rowsort
SELECT ( + 6 ) AS col2, - 59
----
6
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5828
SELECT + SUM( 29 ) DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5828
SELECT + SUM ( 29 ) / + 71 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5829
SELECT ALL 80 * CAST( NULL AS SIGNED ) - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL 80 * CAST ( NULL AS INTEGER ) - - 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5830
SELECT - COALESCE ( - + CAST( NULL AS SIGNED ), + 48 + - 45 * ( - + 68 ) DIV + NULLIF ( 3, + 80 ), 41 + NULLIF ( 84, 25 * 44 + - ( - CASE + COUNT( * ) WHEN 42 THEN 59 WHEN - CAST( - 46 AS SIGNED ) THEN NULL END ) * 10 ) ) * 77
----
-82236

skipif mysql # not compatible
query I rowsort label-5830
SELECT - COALESCE ( - + CAST ( NULL AS INTEGER ), + 48 + - 45 * ( - + 68 ) / + NULLIF ( 3, + 80 ), 41 + NULLIF ( 84, 25 * 44 + - ( - CASE + COUNT ( * ) WHEN 42 THEN 59 WHEN - CAST ( - 46 AS INTEGER ) THEN NULL END ) * 10 ) ) * 77
----
-82236

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT ALL 13 DIV + ( + 36 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL 13 / + ( + 36 ) AS col2
----
0

query I rowsort
SELECT - ( - NULLIF ( 35, + 91 ) ) + + 93 AS col1
----
128

query II rowsort
SELECT + 30 col2, 30 AS col0
----
30
30

query I rowsort
SELECT DISTINCT + NULLIF ( 41, 27 ) AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5835
SELECT + 10 * + + CAST( NULL AS SIGNED ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5835
SELECT + 10 * + + CAST ( NULL AS INTEGER ) + + 56
----
NULL

query I rowsort
SELECT ALL + ( - 76 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT COALESCE ( - NULLIF ( + COALESCE ( + 99, - + 13, - - 23 ), COUNT( * ) ), - 4 + - 83 * 58 )
----
-99

skipif mysql # not compatible
query I rowsort label-5837
SELECT COALESCE ( - NULLIF ( + COALESCE ( + 99, - + 13, - - 23 ), COUNT ( * ) ), - 4 + - 83 * 58 )
----
-99

query I rowsort
SELECT - 47 * - + 53
----
2491

query I rowsort
SELECT NULLIF ( + 89, - - 87 )
----
89

query I rowsort
SELECT NULLIF ( - 11, 79 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5841
SELECT ALL + CAST( NULL AS SIGNED ), - ( + 26 ) DIV - 20 + + ( - ( 80 ) ) * - 40 + - 53 AS col0
----
NULL
3148

skipif mysql # not compatible
query II rowsort label-5841
SELECT ALL + CAST ( NULL AS INTEGER ), - ( + 26 ) / - 20 + + ( - ( 80 ) ) * - 40 + - 53 AS col0
----
NULL
3148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5842
SELECT + 98 AS col1, CAST( NULL AS SIGNED ) AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-5842
SELECT + 98 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
98
NULL

query I rowsort
SELECT + 47 + - 86 + + - 30 * 65 * + + 75 AS col1
----
-146289

query II rowsort
SELECT + 53 AS col1, 92 AS col0
----
53
92

query I rowsort
SELECT DISTINCT + 7 * + 33
----
231

query II rowsort
SELECT DISTINCT + 51, + 66 * 45 AS col0
----
51
2970

query II rowsort
SELECT - + 56, + 10 * 50 col0
----
-56
500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5848
SELECT DISTINCT + - ( - MAX( ALL 12 ) ) DIV + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT + - ( - MAX ( ALL 12 ) ) / + 60 AS col2
----
0

query I rowsort
SELECT + 19 * - 74
----
-1406

query I rowsort
SELECT - 58 - - 65 * - COALESCE ( - 33, - 62 ) + - - ( + 13 )
----
2100

query II rowsort
SELECT - + 33, - 91 AS col1
----
-33
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5852
SELECT ALL - CAST( NULL AS DECIMAL ) * - ( - 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - CAST ( NULL AS REAL ) * - ( - 64 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT - - 42 DIV - + 90 + 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5853
SELECT - - 42 / - + 90 + 54 AS col0
----
54

query I rowsort
SELECT - 72 - - - 21 + - 7 AS col0
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5855
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT + - ( + - COUNT( * ) ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5856
SELECT + - ( + - COUNT ( * ) ) + + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL - 97 + SUM( + 52 ) * + CASE 87 WHEN + + 76 + + 1 THEN COALESCE ( - 16, 38 ) + 22 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL - 97 + SUM ( + 52 ) * + CASE 87 WHEN + + 76 + + 1 THEN COALESCE ( - 16, 38 ) + 22 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5858
SELECT - CAST( NULL AS SIGNED ) col2, SUM( + - CAST( - - 82 AS SIGNED ) )
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-5858
SELECT - CAST ( NULL AS INTEGER ) col2, SUM ( + - CAST ( - - 82 AS INTEGER ) )
----
NULL
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5859
SELECT DISTINCT + 64 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT + 64 / - 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT 87 + + + CASE WHEN NULL BETWEEN ( ( + - MIN( ALL - - 48 ) ) ) AND ( NULL ) THEN + CASE + SUM( + ( - 91 ) ) WHEN + SUM( 48 ) * 22 THEN MAX( ALL + 53 ) WHEN COUNT( * ) THEN + 75 + COUNT( * ) END END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT 87 + + + CASE WHEN NULL BETWEEN ( ( + - MIN ( ALL - - 48 ) ) ) AND ( NULL ) THEN + CASE + SUM ( + ( - 91 ) ) WHEN + SUM ( 48 ) * 22 THEN MAX ( ALL + 53 ) WHEN COUNT ( * ) THEN + 75 + COUNT ( * ) END END / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT + - ( - 10 ) * - SUM( DISTINCT + 80 ) * + 30 + COUNT( * ) * + 32 AS col2
----
-23968

skipif mysql # not compatible
query I rowsort label-5861
SELECT + - ( - 10 ) * - SUM ( DISTINCT + 80 ) * + 30 + COUNT ( * ) * + 32 AS col2
----
-23968

query I rowsort
SELECT + 37 + + + 96 - - 90 AS col2
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT - COALESCE ( 97, - 94, - 0 + + + NULLIF ( COUNT( * ), - 97 ) * 56 ) * 91
----
-8827

skipif mysql # not compatible
query I rowsort label-5863
SELECT - COALESCE ( 97, - 94, - 0 + + + NULLIF ( COUNT ( * ), - 97 ) * 56 ) * 91
----
-8827

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5864
SELECT - CAST( - 72 AS SIGNED ), 7 * 53 AS col0
----
72
371

skipif mysql # not compatible
query II rowsort label-5864
SELECT - CAST ( - 72 AS INTEGER ), 7 * 53 AS col0
----
72
371

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT ALL 43 - - 17 + - 84 * - - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL 43 - - 17 + - 84 * - - COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL + COALESCE ( - 35, - COUNT( * ) * - + 95 )
----
-35

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL + COALESCE ( - 35, - COUNT ( * ) * - + 95 )
----
-35

query II rowsort
SELECT ALL 7 - - - 65 col2, 47 * 3 + + 78 AS col1
----
-58
219

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ( COUNT( * ) ) * + - 14 * - + 73 * 12
----
12264

skipif mysql # not compatible
query I rowsort label-5868
SELECT ( COUNT ( * ) ) * + - 14 * - + 73 * 12
----
12264

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT MIN( DISTINCT + - 51 ) + 2 + - COUNT( * ) * + - ( + - 40 )
----
-89

skipif mysql # not compatible
query I rowsort label-5869
SELECT MIN ( DISTINCT + - 51 ) + 2 + - COUNT ( * ) * + - ( + - 40 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT 20 DIV + ( - - ( 57 ) ) * - + 92 * 16 * ( ( - 31 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5870
SELECT 20 / + ( - - ( 57 ) ) * - + 92 * 16 * ( ( - 31 ) ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5871
SELECT + 81 * CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT + 81 * CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5872
SELECT ALL + 48 DIV 31 AS col2, 16 AS col0
----
1
16

skipif mysql # not compatible
query II rowsort label-5872
SELECT ALL + 48 / 31 AS col2, 16 AS col0
----
1
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5873
SELECT ALL - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ), - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-5873
SELECT ALL - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ), - COUNT ( * ) AS col2
----
0
-1

query I rowsort
SELECT 1 * + 77 col2
----
77

query I rowsort
SELECT DISTINCT + 75 * 37
----
2775

query I rowsort
SELECT ALL - 53 + - 84 AS col1
----
-137

query I rowsort
SELECT ALL - 42 * + 98 / CASE + 97 WHEN + 65 THEN - 9 END AS col2
----
NULL

query II rowsort
SELECT - ( 91 ) * + - 4 AS col0, 13
----
364
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5879
SELECT + 39 * + 74 + - ( + CAST( - CAST( 79 AS SIGNED ) AS SIGNED ) ) AS col2
----
2965

skipif mysql # not compatible
query I rowsort label-5879
SELECT + 39 * + 74 + - ( + CAST ( - CAST ( 79 AS INTEGER ) AS INTEGER ) ) AS col2
----
2965

query I rowsort
SELECT + - NULLIF ( 0, - 44 ) AS col0
----
0

query I rowsort
SELECT ALL + + 72 + + 70 AS col0
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-5882
SELECT 4 + - 77, + COALESCE ( MAX( ALL + NULLIF ( + + 0, 54 ) ), 81 ) AS col2
----
-73
0

skipif mysql # not compatible
query II rowsort label-5882
SELECT 4 + - 77, + COALESCE ( MAX ( ALL + NULLIF ( + + 0, 54 ) ), 81 ) AS col2
----
-73
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + 56 * - - 32 - + 68 * + 49 + + COUNT( * ) AS col0
----
-1539

skipif mysql # not compatible
query I rowsort label-5883
SELECT + 56 * - - 32 - + 68 * + 49 + + COUNT ( * ) AS col0
----
-1539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5884
SELECT DISTINCT + + COUNT( * ) + - 1 / + 19 + - MIN( - 75 ) + 80 + - + 83 - + NULLIF ( + 17, 56 / 72 ) * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT + + COUNT ( * ) + - 1 / + 19 + - MIN ( - 75 ) + 80 + - + 83 - + NULLIF ( + 17, 56 / 72 ) * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - - 60 + - + 81 + - 37 + 82 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5886
SELECT DISTINCT - CAST( - 44 AS SIGNED ), 28 AS col1
----
44
28

skipif mysql # not compatible
query II rowsort label-5886
SELECT DISTINCT - CAST ( - 44 AS INTEGER ), 28 AS col1
----
44
28

query I rowsort
SELECT ALL 36 + + + 31 * + 19 col1
----
625

query I rowsort
SELECT 73 + - 65 + - - 69 col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT CASE + 81 WHEN - 8 THEN NULL WHEN + 36 THEN 6 + - COUNT( * ) * - 69 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT CASE + 81 WHEN - 8 THEN NULL WHEN + 36 THEN 6 + - COUNT ( * ) * - 69 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT 83 + + 62 DIV - - 93 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5890
SELECT 83 + + 62 / - - 93 AS col1
----
83

query II rowsort
SELECT DISTINCT 58 col1, + 56
----
58
56

query I rowsort
SELECT DISTINCT - 96 * + ( - 2 ) AS col0
----
192

query I rowsort
SELECT 82 + - 93
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5894
SELECT 38 AS col2, + 92 - - CAST( NULL AS DECIMAL ) + - NULLIF ( 29, 17 ) / - - 45 * 97 + + 30 AS col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-5894
SELECT 38 AS col2, + 92 - - CAST ( NULL AS REAL ) + - NULLIF ( 29, 17 ) / - - 45 * 97 + + 30 AS col1
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT CASE - NULLIF ( + 55, - - 57 ) WHEN + - 11 + + 92 + - - 22 * - + COUNT( * ) * - 83 THEN + 24 ELSE NULL END + MIN( DISTINCT - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT CASE - NULLIF ( + 55, - - 57 ) WHEN + - 11 + + 92 + - - 22 * - + COUNT ( * ) * - 83 THEN + 24 ELSE NULL END + MIN ( DISTINCT - 76 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5896
SELECT + 65 DIV - 87 - 13 + - ( - + 18 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5896
SELECT + 65 / - 87 - 13 + - ( - + 18 ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT CAST( NULL AS SIGNED ) * + 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT CAST ( NULL AS INTEGER ) * + 49 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5898
SELECT - 15 * COUNT( * ) + - 93 DIV 25 + + - 67 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5898
SELECT - 15 * COUNT ( * ) + - 93 / 25 + + - 67 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5899
SELECT DISTINCT - 24 AS col1, + 19 * + 64 + - ( + + COUNT( * ) ) + + 70 + + - 94
----
-24
1191

skipif mysql # not compatible
query II rowsort label-5899
SELECT DISTINCT - 24 AS col1, + 19 * + 64 + - ( + + COUNT ( * ) ) + + 70 + + - 94
----
-24
1191

query II rowsort
SELECT + 43 AS col1, + 92 * + + ( 55 )
----
43
5060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5901
SELECT CAST( NULL AS SIGNED ) * 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT CAST ( NULL AS INTEGER ) * 78 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT - CASE + + 18 WHEN + 43 THEN - - 10 * 68 * - 42 + + - 5 WHEN - CASE + 90 WHEN + 74 + - 38 THEN ( 84 ) / + 6 END * 18 THEN CASE + 75 WHEN + 20 THEN 40 * 32 END * - 29 WHEN COUNT( * ) THEN NULL END * - COUNT( * ) + 22 * + ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT - CASE + + 18 WHEN + 43 THEN - - 10 * 68 * - 42 + + - 5 WHEN - CASE + 90 WHEN + 74 + - 38 THEN ( 84 ) / + 6 END * 18 THEN CASE + 75 WHEN + 20 THEN 40 * 32 END * - 29 WHEN COUNT ( * ) THEN NULL END * - COUNT ( * ) + 22 * + ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL 93 + MIN( ALL 30 ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL 93 + MIN ( ALL 30 ) AS col2
----
123

query I rowsort
SELECT ALL 52 * - 53 col0
----
-2756

onlyif mysql # DIV for integer division: 
query I rowsort label-5905
SELECT 91 DIV - 80
----
-1

skipif mysql # not compatible
query I rowsort label-5905
SELECT 91 / - 80
----
-1

query II rowsort
SELECT + 64 AS col2, 31 AS col1
----
64
31

query II rowsort
SELECT + + 24 col0, + 36 col2
----
24
36

query I rowsort
SELECT ALL - NULLIF ( 67, - 51 ) + + 43 * 74 AS col2
----
3115

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT - ( - ( - + MAX( ALL + 46 ) ) ) + 42
----
-4

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - ( - ( - + MAX ( ALL + 46 ) ) ) + 42
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5910
SELECT - 10 + + COUNT( * ) + - ( + COALESCE ( ( + 29 ), + 28 DIV + + 10 * 11 + + 25 * - COUNT( * ) ) ) * 18 AS col1
----
-531

skipif mysql # not compatible
query I rowsort label-5910
SELECT - 10 + + COUNT ( * ) + - ( + COALESCE ( ( + 29 ), + 28 / + + 10 * 11 + + 25 * - COUNT ( * ) ) ) * 18 AS col1
----
-531

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5911
SELECT DISTINCT - + COUNT( * ) AS col2, + 63 DIV 55 col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-5911
SELECT DISTINCT - + COUNT ( * ) AS col2, + 63 / 55 col2
----
-1
1

query I rowsort
SELECT ALL 24 + 78
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT COALESCE ( - 22, + 91 + - + ( - + CASE + SUM( ALL - - ( + + 58 ) ) WHEN - 32 THEN NULL ELSE 30 END ) + CASE - 82 WHEN SUM( DISTINCT 93 ) THEN - 57 ELSE NULL END )
----
-22

skipif mysql # not compatible
query I rowsort label-5913
SELECT COALESCE ( - 22, + 91 + - + ( - + CASE + SUM ( ALL - - ( + + 58 ) ) WHEN - 32 THEN NULL ELSE 30 END ) + CASE - 82 WHEN SUM ( DISTINCT 93 ) THEN - 57 ELSE NULL END )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT DISTINCT + 28 + + - CAST( NULL AS SIGNED ) + - COALESCE ( ( + 10 ), - NULLIF ( - + COALESCE ( 0, - 71 ), 72 * - 9 ), 43 * + 88 ) * + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT + 28 + + - CAST ( NULL AS INTEGER ) + - COALESCE ( ( + 10 ), - NULLIF ( - + COALESCE ( 0, - 71 ), 72 * - 9 ), 43 * + 88 ) * + 41 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT ALL - 70 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL - 70 / 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5916
SELECT ALL + 6 * - ( 41 ) DIV - MIN( + 8 ) - - + 49 + + + 39 * 82 + + 11 DIV - 83 AS col0
----
3277

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL + 6 * - ( 41 ) / - MIN ( + 8 ) - - + 49 + + + 39 * 82 + + 11 / - 83 AS col0
----
3277

query I rowsort
SELECT - - ( + + 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT + CAST( - 70 AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5918
SELECT + CAST ( - 70 AS INTEGER ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT MAX( ALL - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-5919
SELECT MAX ( ALL - 7 )
----
-7

query I rowsort
SELECT - NULLIF ( + - 87, - + 18 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT + 56 - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5921
SELECT + 56 - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT - NULLIF ( - + ( + 86 ), + - MIN( DISTINCT + + 86 ) ) * 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT - NULLIF ( - + ( + 86 ), + - MIN ( DISTINCT + + 86 ) ) * 88 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 1 * - - 39 * + COALESCE ( + 80, - - 84 )
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL MIN( - 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL MIN ( - 2 ) AS col0
----
-2

query II rowsort
SELECT 67 * + 70 AS col2, 36
----
4690
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT 54 * - - COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT 54 * - - COUNT ( * ) AS col0
----
54

query I rowsort
SELECT - 60 - 78 AS col1
----
-138

query II rowsort
SELECT - 72 * + - 38 AS col2, 62 + + 5
----
2736
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL CASE - 99 WHEN ( + 89 ) * 57 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL CASE - 99 WHEN ( + 89 ) * 57 THEN + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT - 65 * - + COUNT( * ) * 40 * + - 64 AS col0
----
-166400

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT - 65 * - + COUNT ( * ) * 40 * + - 64 AS col0
----
-166400

query I rowsort
SELECT - 24 + 9 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT + 30 DIV - + 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5932
SELECT + 30 / - + 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT - 42 * 99 * + ( - - COUNT( * ) )
----
-4158

skipif mysql # not compatible
query I rowsort label-5933
SELECT - 42 * 99 * + ( - - COUNT ( * ) )
----
-4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5934
SELECT + 48 * - 16, 15 + + ( 47 ) * - + CAST( ( MIN( ALL 79 ) ) AS SIGNED ) + COALESCE ( - 51 + 7, - 44 ) AS col2
----
-768
-3742

skipif mysql # not compatible
query II rowsort label-5934
SELECT + 48 * - 16, 15 + + ( 47 ) * - + CAST ( ( MIN ( ALL 79 ) ) AS INTEGER ) + COALESCE ( - 51 + 7, - 44 ) AS col2
----
-768
-3742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5935
SELECT DISTINCT - COUNT( * ) * + CAST( - 84 AS SIGNED ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT - COUNT ( * ) * + CAST ( - 84 AS INTEGER ) AS col0
----
84

query I rowsort
SELECT DISTINCT - 66 * - 10 AS col0
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5937
SELECT + 12 * + + CASE + - NULLIF ( - + CAST( + 95 AS SIGNED ), + 15 * NULLIF ( + - 54, + 10 ) ) WHEN + COUNT( * ) + - 49 THEN + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT + 12 * + + CASE + - NULLIF ( - + CAST ( + 95 AS INTEGER ), + 15 * NULLIF ( + - 54, + 10 ) ) WHEN + COUNT ( * ) + - 49 THEN + 42 END
----
NULL

query I rowsort
SELECT DISTINCT - 48 * - 90 AS col1
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL + SUM( 22 ) * - - 81
----
1782

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + SUM ( 22 ) * - - 81
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT DISTINCT - 92 * - COUNT( * ) + 96 * + 71 * - + 2 col0
----
-13540

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT - 92 * - COUNT ( * ) + 96 * + 71 * - + 2 col0
----
-13540

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL + 8 * - 2 * + + 51 + - - 57 + + 54 - 48 + + SUM( ALL 0 )
----
-753

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL + 8 * - 2 * + + 51 + - - 57 + + 54 - 48 + + SUM ( ALL 0 )
----
-753

query I rowsort
SELECT + ( - + 45 ) * - 63 + + 93
----
2928

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT NULLIF ( - CASE COUNT( - + 21 ) WHEN + 13 THEN + 80 + - 24 WHEN - 0 THEN 48 END, + COUNT( * ) * + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT NULLIF ( - CASE COUNT ( - + 21 ) WHEN + 13 THEN + 80 + - 24 WHEN - 0 THEN 48 END, + COUNT ( * ) * + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + NULLIF ( + 78, - 75 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ALL - COUNT( - + 16 ) * 44 - ( 80 ) + + 9 + + - COUNT( * ) * 90
----
-205

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL - COUNT ( - + 16 ) * 44 - ( 80 ) + + 9 + + - COUNT ( * ) * 90
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT + CASE + + COALESCE ( 17, + 66 * - + 17 + + - 27 ) WHEN + - 19 THEN NULL WHEN + ( + - COUNT( ALL 21 ) ) THEN 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + CASE + + COALESCE ( 17, + 66 * - + 17 + + - 27 ) WHEN + - 19 THEN NULL WHEN + ( + - COUNT ( ALL 21 ) ) THEN 76 END AS col2
----
NULL

query I rowsort
SELECT + 25 + + 31 * + 23 AS col1
----
738

query I rowsort
SELECT ALL 68 * 11 * 40
----
29920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT ALL - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - - 8 + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 8 + + 99
----
NULL

query I rowsort
SELECT DISTINCT + 15 * + 42 + 79 * - 82
----
-5848

query I rowsort
SELECT DISTINCT - 68 * - + 60 * - - 37
----
150960

query I rowsort
SELECT - + 29 * - 27 + - ( + ( + + 90 ) ) - - - 25
----
668

query I rowsort
SELECT ALL + + 30 col0
----
30

query I rowsort
SELECT ALL + 41 * + 19 * ( 95 )
----
74005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5955
SELECT + - 30 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT + - 30 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL + - 33 * - + 51 - COUNT( * ) * + + 54 AS col2
----
1629

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL + - 33 * - + 51 - COUNT ( * ) * + + 54 AS col2
----
1629

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT - 92 * 27 + + 32 + - COUNT( * ) * 80
----
-2532

skipif mysql # not compatible
query I rowsort label-5957
SELECT - 92 * 27 + + 32 + - COUNT ( * ) * 80
----
-2532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5958
SELECT 80 * + COUNT( * ) + 56 * - ( + CAST( NULL AS SIGNED ) ) + + 81 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT 80 * + COUNT ( * ) + 56 * - ( + CAST ( NULL AS INTEGER ) ) + + 81 col0
----
NULL

query I rowsort
SELECT - 10 * + + 36
----
-360

query II rowsort
SELECT + 54 + - + 66 AS col2, 71 AS col2
----
-12
71

query I rowsort
SELECT + - 28 * + 23 + 44 + - 6
----
-606

query I rowsort
SELECT - COALESCE ( - + 46, - 66 * 27 * + + 88 + 67 )
----
46

query I rowsort
SELECT + 68 * COALESCE ( + 14, - 43 + - + 16 ) AS col1
----
952

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT + + 3 DIV 69 DIV 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT + + 3 / 69 / 67 AS col0
----
0

query I rowsort
SELECT ALL + - 88 * + 22 * - - ( - 54 )
----
104544

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT DISTINCT 49 DIV + 86 * + + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT 49 / + 86 * + + 40 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5967
SELECT + MAX( + - 71 ) DIV - 47
----
1

skipif mysql # not compatible
query I rowsort label-5967
SELECT + MAX ( + - 71 ) / - 47
----
1

query I rowsort
SELECT ALL 84 * - + 89 AS col1
----
-7476

query I rowsort
SELECT - 54 * - 89
----
4806

query I rowsort
SELECT + 66 + + 3 + + 79
----
148

query I rowsort
SELECT ALL ( - + 54 ) col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT - 18 * - 47 * + NULLIF ( + SUM( DISTINCT + + 14 ), 86 + - 83 )
----
11844

skipif mysql # not compatible
query I rowsort label-5972
SELECT - 18 * - 47 * + NULLIF ( + SUM ( DISTINCT + + 14 ), 86 + - 83 )
----
11844

query I rowsort
SELECT ALL 83 + - - 68
----
151

query II rowsort
SELECT DISTINCT 42 * - 49 * - 43 * - 14 * + - 51 AS col2, 97 + - - 40 AS col2
----
63184716
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL + 89 + 32 * + ( - + 19 ) / 83 * + CASE + 43 WHEN - 14 + - - 79 THEN + + 37 + + MAX( + 38 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL + 89 + 32 * + ( - + 19 ) / 83 * + CASE + 43 WHEN - 14 + - - 79 THEN + + 37 + + MAX ( + 38 ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 36, - 52 AS col1
----
-36
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL NULLIF ( - + 96, + + ( - + COUNT( * ) ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL NULLIF ( - + 96, + + ( - + COUNT ( * ) ) ) AS col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5978
SELECT DISTINCT + 7 + + - CAST( + 69 AS SIGNED ) + + 67 + + 32 + + 35 + - - 96 + - 97 * + 5 - + 16 DIV - 85 * - 32
----
-317

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT + 7 + + - CAST ( + 69 AS INTEGER ) + + 67 + + 32 + + 35 + - - 96 + - 97 * + 5 - + 16 / - 85 * - 32
----
-317

query I rowsort
SELECT - 64 + - 6
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5980
SELECT ALL - 35 + - + CASE - COUNT( * ) WHEN - ( - SUM( ALL - - 15 ) ) THEN - 44 * COALESCE ( - 19, + + 91, 84 ) + 67 WHEN 78 + COALESCE ( + 76, CAST( COUNT( * ) AS SIGNED ) * COUNT( 82 ) - - ( 3 ) ) THEN CASE - 64 WHEN 49 THEN + 7 * CASE 64 WHEN 62 THEN NULL ELSE + 51 END + 40 * 30 WHEN 19 THEN + 82 ELSE NULL END + + 72 ELSE NULL END + COALESCE ( + 87, - MIN( + 59 ), - 62 * - 95 + 64 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - 35 + - + CASE - COUNT ( * ) WHEN - ( - SUM ( ALL - - 15 ) ) THEN - 44 * COALESCE ( - 19, + + 91, 84 ) + 67 WHEN 78 + COALESCE ( + 76, CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( 82 ) - - ( 3 ) ) THEN CASE - 64 WHEN 49 THEN + 7 * CASE 64 WHEN 62 THEN NULL ELSE + 51 END + 40 * 30 WHEN 19 THEN + 82 ELSE NULL END + + 72 ELSE NULL END + COALESCE ( + 87, - MIN ( + 59 ), - 62 * - 95 + 64 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 33, + + 13, + 47 ) * - 26 * - - 31
----
-26598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5982
SELECT + CAST( NULL AS SIGNED ) * + - 57 + + 18 - + 9 * - - COUNT( * ) + + 84 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT + CAST ( NULL AS INTEGER ) * + - 57 + + 18 - + 9 * - - COUNT ( * ) + + 84 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL + 30 * - ( - + COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL + 30 * - ( - + COUNT ( * ) )
----
30

query I rowsort
SELECT DISTINCT - 72 * ( + 67 ) AS col0
----
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT + - 24 * - 78 * - MIN( ALL - 26 )
----
48672

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT + - 24 * - 78 * - MIN ( ALL - 26 )
----
48672

query I rowsort
SELECT - 45 * 99 + - 12 * - - 93 AS col0
----
-5571

query I rowsort
SELECT ALL - 28 * CASE + 64 WHEN + + 58 * - 30 THEN NULL WHEN + 12 THEN + 49 END
----
NULL

query I rowsort
SELECT DISTINCT - - 11 * - 6 AS col0
----
-66

query I rowsort
SELECT + + 25 col1
----
25

query I rowsort
SELECT - 11 * + 38
----
-418

query II rowsort
SELECT DISTINCT + 30 AS col1, ( - 38 )
----
30
-38

query II rowsort
SELECT ALL + + 64 AS col0, 78 AS col0
----
64
78

query I rowsort
SELECT + + 7 * + ( + 77 ) AS col0
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT DISTINCT 87 * - 91 + 83 * + CASE + ( + + COUNT( * ) ) WHEN + 65 THEN NULL ELSE 23 - - COUNT( * ) END
----
-5925

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT 87 * - 91 + 83 * + CASE + ( + + COUNT ( * ) ) WHEN + 65 THEN NULL ELSE 23 - - COUNT ( * ) END
----
-5925

onlyif mysql # aggregate syntax: 
query II rowsort label-5995
SELECT ALL - - 31, - 16 * - + COUNT( * ) AS col0
----
31
16

skipif mysql # not compatible
query II rowsort label-5995
SELECT ALL - - 31, - 16 * - + COUNT ( * ) AS col0
----
31
16

query I rowsort
SELECT ALL + 63 * - 98
----
-6174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5997
SELECT DISTINCT - CAST( + CAST( + CASE - 48 WHEN + 88 + 45 THEN + + 93 WHEN + + COUNT( * ) * + 34 / 15 - 72 / 4 THEN NULL END AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT - CAST ( + CAST ( + CASE - 48 WHEN + 88 + 45 THEN + + 93 WHEN + + COUNT ( * ) * + 34 / 15 - 72 / 4 THEN NULL END AS REAL ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 35 * 96
----
-3360

onlyif mysql # DIV for integer division: 
query II rowsort label-5999
SELECT - 5 col1, - 39 DIV - 77
----
-5
0

skipif mysql # not compatible
query II rowsort label-5999
SELECT - 5 col1, - 39 / - 77
----
-5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6000
SELECT DISTINCT 84 + - + CAST( + 77 AS SIGNED ) + - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT 84 + - + CAST ( + 77 AS INTEGER ) + - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT MIN( - 46 ) - - 68
----
22

skipif mysql # not compatible
query I rowsort label-6001
SELECT MIN ( - 46 ) - - 68
----
22

query I rowsort
SELECT 76 + - 90 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT ALL 7 + - 32 * 50 DIV + SUM( DISTINCT 55 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL 7 + - 32 * 50 / + SUM ( DISTINCT 55 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-6004
SELECT DISTINCT 71 + 9 * - COUNT( * ) * + 69, 10 AS col2
----
-550
10

skipif mysql # not compatible
query II rowsort label-6004
SELECT DISTINCT 71 + 9 * - COUNT ( * ) * + 69, 10 AS col2
----
-550
10

query II rowsort
SELECT - 25, 53 - - + 40 AS col0
----
-25
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6006
SELECT ALL + COALESCE ( + + 51, - NULLIF ( COUNT( * ), + + 58 ) + - CASE 62 WHEN CAST( - + CASE - + 30 WHEN - 98 * ( - 17 + + 93 ) + - 67 THEN NULL ELSE 50 END AS SIGNED ) THEN NULL ELSE 25 - + 18 * + COUNT( * ) END ) + 98
----
149

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL + COALESCE ( + + 51, - NULLIF ( COUNT ( * ), + + 58 ) + - CASE 62 WHEN CAST ( - + CASE - + 30 WHEN - 98 * ( - 17 + + 93 ) + - 67 THEN NULL ELSE 50 END AS INTEGER ) THEN NULL ELSE 25 - + 18 * + COUNT ( * ) END ) + 98
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT CAST( NULL AS SIGNED ) - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT CAST ( NULL AS INTEGER ) - - 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6008
SELECT ALL MAX( + 92 ) DIV + + 39
----
2

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL MAX ( + 92 ) / + + 39
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT CASE - + COUNT( * ) WHEN + 38 * - CASE + SUM( DISTINCT - 45 ) WHEN - - 46 THEN NULL WHEN - 32 THEN NULL WHEN - 70 THEN 50 * - + CASE 13 WHEN 87 * 20 + + 49 THEN - 41 WHEN - COUNT( * ) THEN + ( - 1 ) ELSE NULL END + - 37 * - 67 ELSE NULL END THEN 29 - + 5 WHEN + 9 THEN NULL ELSE NULL END + SUM( ( - 4 ) ) / - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT CASE - + COUNT ( * ) WHEN + 38 * - CASE + SUM ( DISTINCT - 45 ) WHEN - - 46 THEN NULL WHEN - 32 THEN NULL WHEN - 70 THEN 50 * - + CASE 13 WHEN 87 * 20 + + 49 THEN - 41 WHEN - COUNT ( * ) THEN + ( - 1 ) ELSE NULL END + - 37 * - 67 ELSE NULL END THEN 29 - + 5 WHEN + 9 THEN NULL ELSE NULL END + SUM ( ( - 4 ) ) / - 96 AS col0
----
NULL

query II rowsort
SELECT - 36 AS col1, - 27 AS col2
----
-36
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6011
SELECT ALL 70 + + MAX( + + 21 ) - + - CAST( NULL AS DECIMAL ) * - + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL 70 + + MAX ( + + 21 ) - + - CAST ( NULL AS REAL ) * - + 75 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT CAST( NULL AS SIGNED ) * CASE 42 WHEN 57 * 56 * - AVG ( DISTINCT - 10 ) THEN NULL ELSE - - 99 - 77 + + - 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT CAST ( NULL AS INTEGER ) * CASE 42 WHEN 57 * 56 * - AVG ( DISTINCT - 10 ) THEN NULL ELSE - - 99 - 77 + + - 83 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT COUNT( * ) + + 73 + - - 7 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6013
SELECT COUNT ( * ) + + 73 + - - 7 AS col2
----
81

query II rowsort
SELECT DISTINCT 53 AS col1, - 39 AS col0
----
53
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-6015
SELECT DISTINCT COUNT( * ) AS col2, 0 + - ( - ( + NULLIF ( - SUM( ALL - 83 ), + 57 ) ) ) + - ( + 96 ) AS col1
----
1
-13

skipif mysql # not compatible
query II rowsort label-6015
SELECT DISTINCT COUNT ( * ) AS col2, 0 + - ( - ( + NULLIF ( - SUM ( ALL - 83 ), + 57 ) ) ) + - ( + 96 ) AS col1
----
1
-13

query I rowsort
SELECT DISTINCT - + 51 - 0 + - + 90
----
-141

query I rowsort
SELECT ALL - - ( 88 ) col0
----
88

query I rowsort
SELECT - 87 * 91
----
-7917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6019
SELECT 24 * + CAST( NULL AS SIGNED ) * - + 62 * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT 24 * + CAST ( NULL AS INTEGER ) * - + 62 * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6020
SELECT DISTINCT + 91 DIV + - 6, + 80 AS col1
----
-15
80

skipif mysql # not compatible
query II rowsort label-6020
SELECT DISTINCT + 91 / + - 6, + 80 AS col1
----
-15
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT + 9 + + NULLIF ( + 83, + COUNT( ALL - 40 ) * - 17 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6021
SELECT + 9 + + NULLIF ( + 83, + COUNT ( ALL - 40 ) * - 17 ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6022
SELECT ALL + 47 DIV 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL + 47 / 52 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6023
SELECT DISTINCT - 32 col2, 84 + + + CAST( NULL AS SIGNED ) * SUM( ALL - 28 )
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-6023
SELECT DISTINCT - 32 col2, 84 + + + CAST ( NULL AS INTEGER ) * SUM ( ALL - 28 )
----
-32
NULL

query II rowsort
SELECT ALL - - 76 AS col1, + 66 + 31 - - 38
----
76
135

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT + 73 AS col0, CASE 56 WHEN - CASE - + 31 WHEN ( + 37 ) THEN NULL ELSE + 9 END * + - 95 * CASE + ( + 65 ) WHEN 77 + 80 * + 66 THEN COALESCE ( 43, - 64, - 39 - + 43, + CASE 77 WHEN - 31 THEN 8 + 89 WHEN 28 THEN NULL END ) * 55 ELSE NULL END * - COUNT( * ) + + 14 THEN + MIN( DISTINCT + 90 ) END + + 85
----
73
NULL

skipif mysql # not compatible
query II rowsort label-6025
SELECT + 73 AS col0, CASE 56 WHEN - CASE - + 31 WHEN ( + 37 ) THEN NULL ELSE + 9 END * + - 95 * CASE + ( + 65 ) WHEN 77 + 80 * + 66 THEN COALESCE ( 43, - 64, - 39 - + 43, + CASE 77 WHEN - 31 THEN 8 + 89 WHEN 28 THEN NULL END ) * 55 ELSE NULL END * - COUNT ( * ) + + 14 THEN + MIN ( DISTINCT + 90 ) END + + 85
----
73
NULL

query I rowsort
SELECT ALL + 97 * - 61 AS col1
----
-5917

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT + + 4 + - 64 + - 13 * + - COUNT( * ) * + - COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT + + 4 + - 64 + - 13 * + - COUNT ( * ) * + - COUNT ( * ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT ALL - + 41 * - CAST( NULL AS SIGNED ) / 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL - + 41 * - CAST ( NULL AS INTEGER ) / 86
----
NULL

query I rowsort
SELECT ALL - 31 + 72 AS col2
----
41

query I rowsort
SELECT DISTINCT - - 60 col1
----
60

query II rowsort
SELECT 82 * 83 col0, + ( - + 29 ) * 31
----
6806
-899

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT DISTINCT MIN( + 65 ) + - - COALESCE ( - 41, 50 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT MIN ( + 65 ) + - - COALESCE ( - 41, 50 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT SUM( - 79 ) * COALESCE ( ( - COUNT( * ) ), + COUNT( * ) + + 11 ) + + 4 * + ( 22 ) * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-6033
SELECT SUM ( - 79 ) * COALESCE ( ( - COUNT ( * ) ), + COUNT ( * ) + + 11 ) + + 4 * + ( 22 ) * - COUNT ( * )
----
-9

query I rowsort
SELECT ALL CASE + 75 WHEN - 89 - - - 65 THEN + + NULLIF ( - 59, - 39 + ( - - 61 ) ) ELSE NULL END + + 36 * + 86 * - + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL MAX( - 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL MAX ( - 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL - 7 + SUM( 91 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL - 7 + SUM ( 91 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6037
SELECT 85 * COUNT( * ), + 25 * - + 16 AS col0
----
85
-400

skipif mysql # not compatible
query II rowsort label-6037
SELECT 85 * COUNT ( * ), + 25 * - + 16 AS col0
----
85
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL CASE + 10 WHEN - + 35 THEN 41 / COUNT( * ) ELSE - 50 END + - + CASE 23 WHEN 80 THEN NULL WHEN + 79 THEN 6 * + 28 END + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL CASE + 10 WHEN - + 35 THEN 41 / COUNT ( * ) ELSE - 50 END + - + CASE 23 WHEN 80 THEN NULL WHEN + 79 THEN 6 * + 28 END + 83 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL 29 + + 37 - - 39 + - - CAST( NULL AS SIGNED ) * + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL 29 + + 37 - - 39 + - - CAST ( NULL AS INTEGER ) * + 74 AS col0
----
NULL

query I rowsort
SELECT 7 + + 47 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT NULLIF ( + COUNT( * ), + - AVG ( + - 24 ) + + 77 * 44 + + 10 ) * 17 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6041
SELECT NULLIF ( + COUNT ( * ), + - AVG ( + - 24 ) + + 77 * 44 + + 10 ) * 17 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT CAST( NULL AS SIGNED ) * + 98 * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT CAST ( NULL AS INTEGER ) * + 98 * + 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT NULLIF ( + 78, + - 23 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT NULLIF ( + 78, + - 23 ) + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 26 * + 62, + 18 AS col1
----
1612
18

query I rowsort
SELECT ALL 76 - + + 8 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6046
SELECT 70 + + + CAST( NULL AS SIGNED ), 13 AS col0
----
NULL
13

skipif mysql # not compatible
query II rowsort label-6046
SELECT 70 + + + CAST ( NULL AS INTEGER ), 13 AS col0
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT - COUNT( * ) * + 25 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6047
SELECT - COUNT ( * ) * + 25 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL - MIN( + + 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL - MIN ( + + 88 ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6049
SELECT + 27 + - - COUNT( * ) + 20 * + + CASE 8 WHEN SUM( - CAST( NULL AS SIGNED ) ) THEN ( + + 20 ) + + SUM( ALL - NULLIF ( 45, - 1 - - 73 ) ) + CASE 92 + COALESCE ( ( 77 ), NULLIF ( - 28, SUM( ALL 57 ) * + 13 - 18 ) ) * 12 WHEN + NULLIF ( 4, - COUNT( * ) ) + - 42 THEN NULL WHEN + 69 THEN NULL WHEN - ( 91 ) THEN 72 END * - 21 * - 9 WHEN - COUNT( * ) THEN NULL END * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT + 27 + - - COUNT ( * ) + 20 * + + CASE 8 WHEN SUM ( - CAST ( NULL AS INTEGER ) ) THEN ( + + 20 ) + + SUM ( ALL - NULLIF ( 45, - 1 - - 73 ) ) + CASE 92 + COALESCE ( ( 77 ), NULLIF ( - 28, SUM ( ALL 57 ) * + 13 - 18 ) ) * 12 WHEN + NULLIF ( 4, - COUNT ( * ) ) + - 42 THEN NULL WHEN + 69 THEN NULL WHEN - ( 91 ) THEN 72 END * - 21 * - 9 WHEN - COUNT ( * ) THEN NULL END * 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT ALL 1 DIV - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL 1 / - 26 AS col2
----
0

query I rowsort
SELECT 19 * - 48
----
-912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6052
SELECT 62 + + NULLIF ( - CAST( NULL AS SIGNED ), + CASE + 10 WHEN + - 96 * + ( + MAX( + 46 ) ) THEN 34 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT 62 + + NULLIF ( - CAST ( NULL AS INTEGER ), + CASE + 10 WHEN + - 96 * + ( + MAX ( + 46 ) ) THEN 34 END ) AS col1
----
NULL

query I rowsort
SELECT ( 84 ) * + 79 AS col2
----
6636

query I rowsort
SELECT ALL + 62 * + + 78 * - ( + - 58 ) AS col2
----
280488

query I rowsort
SELECT 39 + + 20 + 32 + + NULLIF ( + 84, + ( + + AVG ( + 35 ) ) )
----
175

query I rowsort
SELECT + ( + 66 ) col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT + - 44 * - COUNT( * ) * + 68 AS col1
----
2992

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT + - 44 * - COUNT ( * ) * + 68 AS col1
----
2992

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6058
SELECT DISTINCT - ( + - 87 ) * + - 96 * + + 35 * - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * - 52 + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - ( + - 87 ) * + - 96 * + + 35 * - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * - 52 + + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT + - ( + 53 ) * + - 51 * + COUNT( - 13 ) + + - 86 * - 73 col1
----
8981

skipif mysql # not compatible
query I rowsort label-6059
SELECT + - ( + 53 ) * + - 51 * + COUNT ( - 13 ) + + - 86 * - 73 col1
----
8981

query I rowsort
SELECT - - 41 * + ( - 0 ) AS col2
----
0

query I rowsort
SELECT ALL - 72 * + 37 - 84 + 63 + + 41 * - 16
----
-3341

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT - CASE - 17 WHEN + + 65 * - COALESCE ( + + 12, 98 + COUNT( * ) + - 9 * - + 44 ) THEN NULL ELSE 23 END AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6062
SELECT - CASE - 17 WHEN + + 65 * - COALESCE ( + + 12, 98 + COUNT ( * ) + - 9 * - + 44 ) THEN NULL ELSE 23 END AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6063
SELECT + - 55 - CAST( - CASE + 9 WHEN + 96 THEN - + 55 * 70 END AS SIGNED ) + - 50 + 72 * + + CAST( 43 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT + - 55 - CAST ( - CASE + 9 WHEN + 96 THEN - + 55 * 70 END AS INTEGER ) + - 50 + 72 * + + CAST ( 43 AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT - - 91 DIV 31 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6064
SELECT - - 91 / 31 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT ALL COALESCE ( 79, - 11 * 90, + + CAST( NULL AS SIGNED ) ) * + + COUNT( * ) - + + 85 + - 35 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL COALESCE ( 79, - 11 * 90, + + CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) - + + 85 + - 35 AS col2
----
-41

query I rowsort
SELECT - COALESCE ( + 26, - + 45 ) * + ( + 73 ) * + - 3 * 10
----
56940

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT - 93 * - 86, COUNT( * ) * 67 * - 95 AS col2
----
7998
-6365

skipif mysql # not compatible
query II rowsort label-6067
SELECT - 93 * - 86, COUNT ( * ) * 67 * - 95 AS col2
----
7998
-6365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6068
SELECT DISTINCT + 9 * + 54 + + NULLIF ( COALESCE ( 35, - - CAST( 26 AS SIGNED ), + + 46 ), - SUM( ALL + - 74 ) * + 34 ) * - + 19
----
-179

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT + 9 * + 54 + + NULLIF ( COALESCE ( 35, - - CAST ( 26 AS INTEGER ), + + 46 ), - SUM ( ALL + - 74 ) * + 34 ) * - + 19
----
-179

query I rowsort
SELECT ALL - 25 * 55 + - 88 AS col1
----
-1463

onlyif mysql # aggregate syntax: 
query II rowsort label-6070
SELECT ALL + 76 * + 20 + + 66 AS col1, 75 * - COUNT( * ) * - 97 * - + 11 * + 59
----
1586
-4721475

skipif mysql # not compatible
query II rowsort label-6070
SELECT ALL + 76 * + 20 + + 66 AS col1, 75 * - COUNT ( * ) * - 97 * - + 11 * + 59
----
1586
-4721475

query I rowsort
SELECT - 95 * + 70
----
-6650

query I rowsort
SELECT ALL - 30 * + - 9
----
270

onlyif mysql # aggregate syntax: 
query II rowsort label-6073
SELECT DISTINCT - 21 + - 61 - + COUNT( * ) AS col2, 44
----
-83
44

skipif mysql # not compatible
query II rowsort label-6073
SELECT DISTINCT - 21 + - 61 - + COUNT ( * ) AS col2, 44
----
-83
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6074
SELECT - 89 + - 89 DIV + ( + 17 )
----
-94

skipif mysql # not compatible
query I rowsort label-6074
SELECT - 89 + - 89 / + ( + 17 )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6075
SELECT ALL - COUNT( * ) + - 71 DIV 42
----
-2

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - COUNT ( * ) + - 71 / 42
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT - 59 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT - 59 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT - 36 + - - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-6077
SELECT - 36 + - - COUNT ( * ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT - MAX( - + 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6078
SELECT - MAX ( - + 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL CASE - - 15 WHEN + - 77 THEN - 66 + + MAX( + 38 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL CASE - - 15 WHEN + - 77 THEN - 66 + + MAX ( + 38 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6080
SELECT ALL - 76 DIV + 2
----
-38

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL - 76 / + 2
----
-38

query I rowsort
SELECT - 12 + 1 + 93 AS col2
----
82

query I rowsort
SELECT - 88 + - - 75
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6083
SELECT ALL + NULLIF ( 47, - + ( + 96 ) * + - 45 * + + MIN( DISTINCT - 92 ) + + 95 + + 72 * 7 * - 56 * - 77 ) - + + COUNT( * ) + - 83 * CASE - CAST( NULL AS SIGNED ) WHEN 64 THEN NULL WHEN 4 - - 54 / 35 THEN + ( 39 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + NULLIF ( 47, - + ( + 96 ) * + - 45 * + + MIN ( DISTINCT - 92 ) + + 95 + + 72 * 7 * - 56 * - 77 ) - + + COUNT ( * ) + - 83 * CASE - CAST ( NULL AS INTEGER ) WHEN 64 THEN NULL WHEN 4 - - 54 / 35 THEN + ( 39 ) END AS col0
----
NULL

query II rowsort
SELECT DISTINCT COALESCE ( - 16, - 84, 58 ) AS col0, 93 + + - 34 * ( + 1 ) AS col2
----
-16
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6085
SELECT ALL CASE 2 WHEN - COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) * - 35 + - CAST( NULL AS SIGNED ) THEN 35 * + + 13 * - 1 + - MIN( ALL - 82 ) / + ( 49 ) - 88 ELSE 87 END col1
----
87

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL CASE 2 WHEN - COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - 35 + - CAST ( NULL AS INTEGER ) THEN 35 * + + 13 * - 1 + - MIN ( ALL - 82 ) / + ( 49 ) - 88 ELSE 87 END col1
----
87

query I rowsort
SELECT DISTINCT 35 * - - 58 AS col2
----
2030

query I rowsort
SELECT DISTINCT ( + + 85 )
----
85

query I rowsort
SELECT ALL 70 * + 69
----
4830

query II rowsort
SELECT 60, 37 col2
----
60
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL MIN( DISTINCT + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL MIN ( DISTINCT + 3 ) AS col1
----
3

query I rowsort
SELECT - 64 - - - 91
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT - - 2 DIV - 75 * - 50 + - + 18 + - 63
----
-81

skipif mysql # not compatible
query I rowsort label-6092
SELECT - - 2 / - 75 * - 50 + - + 18 + - 63
----
-81

query I rowsort
SELECT + 38 * + - ( - + 68 ) AS col2
----
2584

query I rowsort
SELECT ALL 8 * + - 43
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT - COUNT( - 81 ) * + + 32
----
-32

skipif mysql # not compatible
query I rowsort label-6095
SELECT - COUNT ( - 81 ) * + + 32
----
-32

query I rowsort
SELECT - + ( - 39 ) + 22 + + 49
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT ALL - 13, COUNT( - 35 ) * - NULLIF ( + 89, 14 + + ( - - 44 ) ) col0
----
-13
-89

skipif mysql # not compatible
query II rowsort label-6097
SELECT ALL - 13, COUNT ( - 35 ) * - NULLIF ( + 89, 14 + + ( - - 44 ) ) col0
----
-13
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6098
SELECT + COUNT( * ) DIV - 87 * - CAST( - + 18 AS SIGNED ) * - + ( + 64 ) + - CAST( NULLIF ( 22, - + CAST( + AVG ( ALL 43 ) AS SIGNED ) ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-6098
SELECT + COUNT ( * ) / - 87 * - CAST ( - + 18 AS INTEGER ) * - + ( + 64 ) + - CAST ( NULLIF ( 22, - + CAST ( + AVG ( ALL 43 ) AS INTEGER ) ) AS INTEGER )
----
-22

query I rowsort
SELECT ALL - - 62 + - + 16 + - - 21 - + + 25
----
42

query II rowsort
SELECT + + 19 - + 54 * + 92, 31 * + + NULLIF ( + 80, - 97 * + 30 ) * - - 42 + + - 39 col1
----
-4949
104121

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT DISTINCT 53 DIV 81 col2
----
0

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT 53 / 81 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL + + MAX( ALL 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL + + MAX ( ALL 43 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT + + SUM( DISTINCT + - 99 ) * - 95 AS col0
----
9405

skipif mysql # not compatible
query I rowsort label-6103
SELECT + + SUM ( DISTINCT + - 99 ) * - 95 AS col0
----
9405

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6104
SELECT ALL 62 / 51 + + + 5 + - 42 / CAST( NULL AS DECIMAL ) + - + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL 62 / 51 + + + 5 + - 42 / CAST ( NULL AS REAL ) + - + 99 AS col0
----
NULL

query I rowsort
SELECT + 7 + 1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6106
SELECT 4 * + - 95 - + CAST( + 58 AS SIGNED ) - - MAX( ALL + 16 ) * 0 * - + 27 AS col1, 72 - 96 * + ( + 14 )
----
-438
-1272

skipif mysql # not compatible
query II rowsort label-6106
SELECT 4 * + - 95 - + CAST ( + 58 AS INTEGER ) - - MAX ( ALL + 16 ) * 0 * - + 27 AS col1, 72 - 96 * + ( + 14 )
----
-438
-1272

query I rowsort
SELECT + 91 * + ( + 57 ) + 65 * + 95 AS col0
----
11362

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6108
SELECT - ( - - COUNT( + - 97 ) ) AS col2, + NULLIF ( CAST( - COUNT( DISTINCT - 44 ) AS DECIMAL ), - NULLIF ( + COUNT( * ), + - 63 + 77 * - + 26 ) ) + - AVG ( 78 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6108
SELECT - ( - - COUNT ( + - 97 ) ) AS col2, + NULLIF ( CAST ( - COUNT ( DISTINCT - 44 ) AS REAL ), - NULLIF ( + COUNT ( * ), + - 63 + 77 * - + 26 ) ) + - AVG ( 78 )
----
-1
NULL

query I rowsort
SELECT DISTINCT 25 * + - 66 AS col1
----
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT ALL 53 * 23 * + - CAST( NULL AS SIGNED ) * + + 70 + + 89 / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL 53 * 23 * + - CAST ( NULL AS INTEGER ) * + + 70 + + 89 / 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL + 82 * + + COUNT( * ) + 65
----
147

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + 82 * + + COUNT ( * ) + 65
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6112
SELECT ALL 78 * + 20, 54 + + - ( + 26 ) + 58 * - COALESCE ( 28, 31 + + CAST( NULL AS SIGNED ) ) + 68 * - ( + + COUNT( * ) ) AS col1
----
1560
-1664

skipif mysql # not compatible
query II rowsort label-6112
SELECT ALL 78 * + 20, 54 + + - ( + 26 ) + 58 * - COALESCE ( 28, 31 + + CAST ( NULL AS INTEGER ) ) + 68 * - ( + + COUNT ( * ) ) AS col1
----
1560
-1664

query I rowsort
SELECT - 48 + + 34 + - + 8
----
-22

query I rowsort
SELECT + 36 * - - 38 AS col0
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT - 40 * + COUNT( * ) + 90 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6115
SELECT - 40 * + COUNT ( * ) + 90 AS col1
----
50

query II rowsort
SELECT ALL - 72 * - + 76 AS col2, - 29 * 45 + 66 AS col2
----
5472
-1239

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL 12 DIV + + COALESCE ( + - ( - - 45 ), + 95, - - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL 12 / + + COALESCE ( + - ( - - 45 ), + 95, - - 15 )
----
0

query II rowsort
SELECT DISTINCT - 54 * + 48 AS col0, - COALESCE ( + 51, 81, 9 * - 18 - + 50 + 84 )
----
-2592
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT DISTINCT - MIN( 64 ) * 80 * - + COUNT( * ) col2
----
5120

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT - MIN ( 64 ) * 80 * - + COUNT ( * ) col2
----
5120

query II rowsort
SELECT + 70 * - 48, - COALESCE ( - ( 67 ), + 6 * 61 ) AS col2
----
-3360
67

query I rowsort
SELECT - 46 * - 51
----
2346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6122
SELECT - COUNT( * ) DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-6122
SELECT - COUNT ( * ) / 48
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6123
SELECT - - 15 + - 87 + 34 + + COUNT( * ) DIV - 32 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6123
SELECT - - 15 + - 87 + 34 + + COUNT ( * ) / - 32 AS col0
----
-38

query I rowsort
SELECT - + ( - 51 ) * - - 74 AS col0
----
3774

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT - + 2 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT - + 2 + - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL - CASE - - 41 WHEN - 59 * + 35 + - ( - - 2 ) - 50 THEN NULL ELSE + COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - CASE - - 41 WHEN - 59 * + 35 + - ( - - 2 ) - 50 THEN NULL ELSE + COUNT ( * ) END AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + NULLIF ( + COUNT( * ), + + 53 * 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6127
SELECT + NULLIF ( + COUNT ( * ), + + 53 * 29 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT DISTINCT - COALESCE ( CAST( NULL AS SIGNED ), + 65 ) + + - 43
----
-108

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT - COALESCE ( CAST ( NULL AS INTEGER ), + 65 ) + + - 43
----
-108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6129
SELECT ALL COALESCE ( 62, + ( + + COUNT( * ) ) * - - COUNT( * ) ) + - + CASE - - 59 WHEN CAST( NULL AS DECIMAL ) THEN 6 + + - 25 / + NULLIF ( NULLIF ( - CASE - COUNT( * ) WHEN + 31 - - 56 * ( - 71 ) THEN - 23 END, 8 ), COUNT( * ) * - 63 ) + - 6 WHEN + 26 * 62 THEN NULL END * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL COALESCE ( 62, + ( + + COUNT ( * ) ) * - - COUNT ( * ) ) + - + CASE - - 59 WHEN CAST ( NULL AS REAL ) THEN 6 + + - 25 / + NULLIF ( NULLIF ( - CASE - COUNT ( * ) WHEN + 31 - - 56 * ( - 71 ) THEN - 23 END, 8 ), COUNT ( * ) * - 63 ) + - 6 WHEN + 26 * 62 THEN NULL END * + 67
----
NULL

query I rowsort
SELECT 2 + 46 AS col0
----
48

query I rowsort
SELECT 48 + 28 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT + MAX( DISTINCT - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6132
SELECT + MAX ( DISTINCT - 84 ) AS col0
----
-84

query I rowsort
SELECT ALL - 19 + - ( - - 1 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT + 48 + - 24 + - 53 + 8 * - COUNT( * ) + + 92
----
55

skipif mysql # not compatible
query I rowsort label-6134
SELECT + 48 + - 24 + - 53 + 8 * - COUNT ( * ) + + 92
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL - - NULLIF ( + SUM( DISTINCT - + 9 ), COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL - - NULLIF ( + SUM ( DISTINCT - + 9 ), COUNT ( * ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT + - SUM( DISTINCT 28 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-6136
SELECT + - SUM ( DISTINCT 28 ) col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT ALL - 53 + + + 79 + - 44 DIV - + 10 + + 76 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL - 53 + + + 79 + - 44 / - + 10 + + 76 AS col1
----
106

query I rowsort
SELECT - 14 * 12 col0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT - - COUNT( * ) * - + 60 + + 22 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - - COUNT ( * ) * - + 60 + + 22 AS col2
----
-38

query I rowsort
SELECT DISTINCT - - ( + 30 ) AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT DISTINCT + + 93 - - - 5 + ( - CAST( + + 90 AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT + + 93 - - - 5 + ( - CAST ( + + 90 AS INTEGER ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT 66 * - COALESCE ( + + 99, - COUNT( * ), 42 ) * 42 + - - 13 / COUNT( * ) / - ( - 5 ) / 4 * 80 + COUNT( * ) * + CASE 25 WHEN + 72 + 59 THEN NULL WHEN 23 / - 90 + - COUNT( * ) THEN - 99 ELSE NULL END + - 35 * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6142
SELECT 66 * - COALESCE ( + + 99, - COUNT ( * ), 42 ) * 42 + - - 13 / COUNT ( * ) / - ( - 5 ) / 4 * 80 + COUNT ( * ) * + CASE 25 WHEN + 72 + 59 THEN NULL WHEN 23 / - 90 + - COUNT ( * ) THEN - 99 ELSE NULL END + - 35 * - 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT COUNT( * ) DIV - + COUNT( - - 63 ) * + + COUNT( ALL - 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-6143
SELECT COUNT ( * ) / - + COUNT ( - - 63 ) * + + COUNT ( ALL - 35 )
----
-1

query I rowsort
SELECT ALL 78 - - 67
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-6145
SELECT 47, MIN( + 34 ) AS col2
----
47
34

skipif mysql # not compatible
query II rowsort label-6145
SELECT 47, MIN ( + 34 ) AS col2
----
47
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT ALL COUNT( * ) * - - 98 col0
----
98

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL COUNT ( * ) * - - 98 col0
----
98

query I rowsort
SELECT ALL 24 * + 12 AS col0
----
288

query I rowsort
SELECT ALL ( + + 35 ) - + + 51
----
-16

query I rowsort
SELECT DISTINCT 59 * + 17 AS col1
----
1003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT ALL - COALESCE ( ( - CAST( NULL AS SIGNED ) ), + 46, - + 72 ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL - COALESCE ( ( - CAST ( NULL AS INTEGER ) ), + 46, - + 72 ) col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6151
SELECT CAST( NULL AS SIGNED ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT CAST ( NULL AS INTEGER ) - + + COUNT ( * )
----
NULL

query II rowsort
SELECT 19 + 36 + - NULLIF ( - - 86, + 35 ) AS col0, + 88 + - 82 AS col1
----
-31
6

query II rowsort
SELECT DISTINCT 93 AS col2, + COALESCE ( + ( - + 10 ), COALESCE ( - 47, + 88 ) ) AS col2
----
93
-10

query I rowsort
SELECT DISTINCT + 50 + + - 17 AS col1
----
33

query I rowsort
SELECT ALL + 75 * - 15 + + 9 * + 55
----
-630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT 48 DIV + - 42 + - 64 * - MIN( ALL 58 ) + - + ( + 46 )
----
3665

skipif mysql # not compatible
query I rowsort label-6156
SELECT 48 / + - 42 + - 64 * - MIN ( ALL 58 ) + - + ( + 46 )
----
3665

query I rowsort
SELECT ALL + CASE + 82 WHEN - 18 THEN + 31 * + 76 * - 4 * - - 78 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT + + 37 + - + NULLIF ( + + 72, COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT + + 37 + - + NULLIF ( + + 72, COUNT ( * ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL + 8 + + CASE + + 99 WHEN + 68 THEN NULL WHEN + - 58 * 59 * + 94 THEN + + MAX( DISTINCT + 26 ) WHEN + 12 THEN NULL END - + - 81 * - ( + + NULLIF ( - 96, - 80 / MIN( DISTINCT 63 + + 58 ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL + 8 + + CASE + + 99 WHEN + 68 THEN NULL WHEN + - 58 * 59 * + 94 THEN + + MAX ( DISTINCT + 26 ) WHEN + 12 THEN NULL END - + - 81 * - ( + + NULLIF ( - 96, - 80 / MIN ( DISTINCT 63 + + 58 ) ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 97 + 47
----
144

query I rowsort
SELECT DISTINCT + - ( - + 75 ) * 50 col0
----
3750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( + + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( + + 36 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6163
SELECT 96 * + 83 + - - ( - COUNT( * ) ) DIV + 13 col2, - 80
----
7968
-80

skipif mysql # not compatible
query II rowsort label-6163
SELECT 96 * + 83 + - - ( - COUNT ( * ) ) / + 13 col2, - 80
----
7968
-80

query I rowsort
SELECT DISTINCT - 56 + - - 45
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT - MIN( DISTINCT - - 11 ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-6165
SELECT - MIN ( DISTINCT - - 11 ) col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL + + COALESCE ( 95, + + ( + 32 ) ) + - 27 + 9 + 54 * 20 * 69 * - + COUNT( * ) col0
----
-74443

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL + + COALESCE ( 95, + + ( + 32 ) ) + - 27 + 9 + 54 * 20 * 69 * - + COUNT ( * ) col0
----
-74443

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT DISTINCT + MIN( + - ( - 89 ) ) - + + 46
----
43

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT + MIN ( + - ( - 89 ) ) - + + 46
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT ALL 3 * + MAX( - - 82 ) - + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL 3 * + MAX ( - - 82 ) - + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 44 AS col0, + 3
----
44
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6170
SELECT COUNT( * ) AS col1, 21
----
1
21

skipif mysql # not compatible
query II rowsort label-6170
SELECT COUNT ( * ) AS col1, 21
----
1
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6171
SELECT 7 DIV - COUNT( * ) + + 19 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6171
SELECT 7 / - COUNT ( * ) + + 19 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6172
SELECT DISTINCT - 78 AS col2, + MIN( - - 98 ) * ( + - CAST( NULL AS SIGNED ) )
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-6172
SELECT DISTINCT - 78 AS col2, + MIN ( - - 98 ) * ( + - CAST ( NULL AS INTEGER ) )
----
-78
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6173
SELECT 81 * - COUNT( DISTINCT - ( + - CAST( NULL AS SIGNED ) ) ) + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6173
SELECT 81 * - COUNT ( DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) ) + - - COUNT ( * )
----
1

query II rowsort
SELECT ALL - 55 AS col1, - 21 col1
----
-55
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6175
SELECT DISTINCT - 94 AS col2, SUM( ALL - NULLIF ( CAST( - 41 AS SIGNED ), - 82 ) ) + CASE AVG ( DISTINCT - 96 ) WHEN 56 THEN NULL ELSE + 92 END
----
-94
133

skipif mysql # not compatible
query II rowsort label-6175
SELECT DISTINCT - 94 AS col2, SUM ( ALL - NULLIF ( CAST ( - 41 AS INTEGER ), - 82 ) ) + CASE AVG ( DISTINCT - 96 ) WHEN 56 THEN NULL ELSE + 92 END
----
-94
133

query II rowsort
SELECT ALL - 0 AS col0, - 39 + - 6
----
0
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT - 32 * 64 + 74 + ( + 12 ) * + - ( - - COUNT( * ) )
----
-1986

skipif mysql # not compatible
query I rowsort label-6177
SELECT - 32 * 64 + 74 + ( + 12 ) * + - ( - - COUNT ( * ) )
----
-1986

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL - ( - MAX( DISTINCT - 60 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - ( - MAX ( DISTINCT - 60 ) )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT 45 DIV 70 + + 22 * 73 * + COUNT( * ) AS col2
----
1606

skipif mysql # not compatible
query I rowsort label-6179
SELECT 45 / 70 + + 22 * 73 * + COUNT ( * ) AS col2
----
1606

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL - SUM( + ( 74 ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL - SUM ( + ( 74 ) ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6181
SELECT + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6181
SELECT + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT DISTINCT COUNT( ALL - 31 ) + + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT COUNT ( ALL - 31 ) + + 83 AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6183
SELECT ( 41 ) DIV - - 3 * - ( + COUNT( * ) ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-6183
SELECT ( 41 ) / - - 3 * - ( + COUNT ( * ) ) col2
----
-13

query I rowsort
SELECT DISTINCT 76 * 60
----
4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT DISTINCT 69 + - COALESCE ( 45, + - CAST( NULL AS SIGNED ) ) * + - 67 AS col0
----
3084

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT 69 + - COALESCE ( 45, + - CAST ( NULL AS INTEGER ) ) * + - 67 AS col0
----
3084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6186
SELECT + 75 * NULLIF ( COUNT( * ), - CAST( 33 AS SIGNED ) )
----
75

skipif mysql # not compatible
query I rowsort label-6186
SELECT + 75 * NULLIF ( COUNT ( * ), - CAST ( 33 AS INTEGER ) )
----
75

query II rowsort
SELECT + 19 AS col1, 66 AS col1
----
19
66

query I rowsort
SELECT ALL 97 + + - 27 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ALL COUNT( * ) + + + MAX( ALL + 50 ) * - 45
----
-2249

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL COUNT ( * ) + + + MAX ( ALL + 50 ) * - 45
----
-2249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6190
SELECT + - COUNT( * ) + - CAST( - MIN( 9 ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-6190
SELECT + - COUNT ( * ) + - CAST ( - MIN ( 9 ) AS INTEGER )
----
8

query I rowsort
SELECT + 85 * + - 26 - + 62 AS col1
----
-2272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6192
SELECT ALL SUM( ALL + 28 ) * CAST( - + 36 AS SIGNED ) * + + CAST( + SUM( - ( - ( 34 ) ) ) AS SIGNED ) + - 11 col2
----
-34283

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL SUM ( ALL + 28 ) * CAST ( - + 36 AS INTEGER ) * + + CAST ( + SUM ( - ( - ( 34 ) ) ) AS INTEGER ) + - 11 col2
----
-34283

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT - + COUNT( DISTINCT + 8 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6193
SELECT - + COUNT ( DISTINCT + 8 ) AS col1
----
-1

query I rowsort
SELECT ALL ( - ( - - 28 ) ) AS col2
----
-28

query I rowsort
SELECT + 47 + - - 37 * 65 + + 39 * + - 0
----
2452

query I rowsort
SELECT + - 13 - + 25 * - 93 AS col2
----
2312

query II rowsort
SELECT 86 AS col0, 17 * - 96
----
86
-1632

query I rowsort
SELECT - 30 - 81 * + 61 AS col2
----
-4971

query I rowsort
SELECT DISTINCT + 69 * 41 - - NULLIF ( + + 26, - 14 ) AS col0
----
2855

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6200
SELECT + - CAST( NULL AS DECIMAL ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT + - CAST ( NULL AS REAL ) + - 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6201
SELECT DISTINCT - 25 DIV - 64 + + COUNT( ALL + + 83 ) * 70
----
70

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - 25 / - 64 + + COUNT ( ALL + + 83 ) * 70
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6202
SELECT ALL CAST( 11 AS SIGNED ) * 56 AS col0
----
616

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL CAST ( 11 AS INTEGER ) * 56 AS col0
----
616

query I rowsort
SELECT ALL + 75 * - - ( + - 16 ) + - 74
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL SUM( + 77 ) col0
----
77

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL SUM ( + 77 ) col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT - 43 + + COUNT( * ) + COUNT( * ) + + 44 + + - COUNT( * ), 4 AS col1
----
2
4

skipif mysql # not compatible
query II rowsort label-6205
SELECT - 43 + + COUNT ( * ) + COUNT ( * ) + + 44 + + - COUNT ( * ), 4 AS col1
----
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT - 13 * + COUNT( * ) * + COUNT( - - 49 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6206
SELECT - 13 * + COUNT ( * ) * + COUNT ( - - 49 ) AS col2
----
-13

query I rowsort
SELECT 76 * + 24 + 82
----
1906

onlyif mysql # aggregate syntax: 
query II rowsort label-6208
SELECT ( COUNT( * ) ) AS col1, 71 AS col1
----
1
71

skipif mysql # not compatible
query II rowsort label-6208
SELECT ( COUNT ( * ) ) AS col1, 71 AS col1
----
1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL + COUNT( + + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL + COUNT ( + + 4 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6210
SELECT ( COUNT( * ) ) AS col2, 99 + + 15 AS col1
----
1
114

skipif mysql # not compatible
query II rowsort label-6210
SELECT ( COUNT ( * ) ) AS col2, 99 + + 15 AS col1
----
1
114

query I rowsort
SELECT ( + + 38 ) col1
----
38

query I rowsort
SELECT ( + ( - - 73 ) ) AS col1
----
73

query II rowsort
SELECT ALL - 80 * 43 + - 31, 46 AS col2
----
-3471
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT - COUNT( * ) - COUNT( - 5 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6214
SELECT - COUNT ( * ) - COUNT ( - 5 ) AS col1
----
-2

query I rowsort
SELECT ALL + 41 * - 31 AS col0
----
-1271

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL + 53 * NULLIF ( - + ( - COUNT( * ) ), + 89 ) + 90 * + ( - - 93 )
----
8423

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL + 53 * NULLIF ( - + ( - COUNT ( * ) ), + 89 ) + 90 * + ( - - 93 )
----
8423

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT DISTINCT + MIN( DISTINCT 34 ) AS col0, 2
----
34
2

skipif mysql # not compatible
query II rowsort label-6217
SELECT DISTINCT + MIN ( DISTINCT 34 ) AS col0, 2
----
34
2

query I rowsort
SELECT DISTINCT 77 * - - 87 + + - 95 AS col1
----
6604

query I rowsort
SELECT COALESCE ( + 39, + 88 + + 9 ) col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT + + 3 - SUM( DISTINCT - 7 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6220
SELECT + + 3 - SUM ( DISTINCT - 7 ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT DISTINCT - 1 * + 88 + ( 50 ) + + CAST( + 88 AS SIGNED ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT - 1 * + 88 + ( 50 ) + + CAST ( + 88 AS INTEGER ) AS col0
----
50

query I rowsort
SELECT ALL 41 * - + 24 + - 45 col0
----
-1029

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6223
SELECT - 35 + + CAST( ( + + 47 ) AS SIGNED ) + - + 75 * - + 2 * 70 AS col0, ( - 86 ) AS col1
----
10512
-86

skipif mysql # not compatible
query II rowsort label-6223
SELECT - 35 + + CAST ( ( + + 47 ) AS INTEGER ) + - + 75 * - + 2 * 70 AS col0, ( - 86 ) AS col1
----
10512
-86

query I rowsort
SELECT ALL 75 * 37 * - 62
----
-172050

query I rowsort
SELECT + 49 + - - 43 + + 22 - + - 9 + - + 28 + 61 * + 6 * + 69 col0
----
25349

query I rowsort
SELECT ALL 88 * - 60 * 30 + - 36
----
-158436

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT - SUM( DISTINCT - + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6227
SELECT - SUM ( DISTINCT - + 94 ) AS col0
----
94

query I rowsort
SELECT ALL 15 - + - 36 + + + 5 + - 36 * - 78
----
2864

query I rowsort
SELECT + + ( + + 24 ) * - 72 * - ( 73 )
----
126144

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL + 96 * + COALESCE ( + 74, + 20 + + 91 * - ( 8 ), + COUNT( * ) + ( 55 ) * - 33, - 44 * + 77 ) AS col0
----
7104

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL + 96 * + COALESCE ( + 74, + 20 + + 91 * - ( 8 ), + COUNT ( * ) + ( 55 ) * - 33, - 44 * + 77 ) AS col0
----
7104

query I rowsort
SELECT + - 41 * + - 34
----
1394

query I rowsort
SELECT + 21 * 25 AS col1
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT + MAX( + 14 ) + - COUNT( * ) + - ( + + 26 ) - + + 26 - - 41
----
2

skipif mysql # not compatible
query I rowsort label-6233
SELECT + MAX ( + 14 ) + - COUNT ( * ) + - ( + + 26 ) - + + 26 - - 41
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6234
SELECT DISTINCT SUM( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT + 13 + - - 9 + + + 10 DIV + 47 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6235
SELECT + 13 + - - 9 + + + 10 / + 47 AS col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT ALL 84 DIV - - 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL 84 / - - 40 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + 90 * - 86 * + MIN( 80 ) * - - 66
----
-40867200

skipif mysql # not compatible
query I rowsort label-6237
SELECT + 90 * - 86 * + MIN ( 80 ) * - - 66
----
-40867200

query I rowsort
SELECT ALL - 44 * + + 87
----
-3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6239
SELECT DISTINCT 9 AS col2, ( - MIN( DISTINCT + 43 ) ) * + - 41 + + 29 + CAST( NULL AS SIGNED ) AS col2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-6239
SELECT DISTINCT 9 AS col2, ( - MIN ( DISTINCT + 43 ) ) * + - 41 + + 29 + CAST ( NULL AS INTEGER ) AS col2
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL + 81 + COUNT( * ) + 12
----
94

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL + 81 + COUNT ( * ) + 12
----
94

query I rowsort
SELECT DISTINCT ( + 42 ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6242
SELECT DISTINCT + 19 / - + ( - + AVG ( ALL CAST( NULL AS SIGNED ) ) ) + + COUNT( * ) + + 76 AS col0, 82 + COUNT( + CAST( NULL AS SIGNED ) ) + 98 + + CAST( NULL AS SIGNED ) * + - 97 + - + 23 + + 66
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6242
SELECT DISTINCT + 19 / - + ( - + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) + + COUNT ( * ) + + 76 AS col0, 82 + COUNT ( + CAST ( NULL AS INTEGER ) ) + 98 + + CAST ( NULL AS INTEGER ) * + - 97 + - + 23 + + 66
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6243
SELECT - 12 DIV - + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6243
SELECT - 12 / - + COUNT ( * ) AS col2
----
12

query I rowsort
SELECT - 29 * 50
----
-1450

onlyif mysql # DIV for integer division: 
query I rowsort label-6245
SELECT ALL NULLIF ( - + 99, + 40 + CASE 35 WHEN ( 24 ) + - COALESCE ( - 95, 41 ) THEN NULL ELSE 96 * - 24 * + NULLIF ( 42, - 36 ) * 70 END ) DIV + - 73 + - ( 28 ) + + 83 * - 82 * 59 AS col1
----
-401581

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL NULLIF ( - + 99, + 40 + CASE 35 WHEN ( 24 ) + - COALESCE ( - 95, 41 ) THEN NULL ELSE 96 * - 24 * + NULLIF ( 42, - 36 ) * 70 END ) / + - 73 + - ( 28 ) + + 83 * - 82 * 59 AS col1
----
-401581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT CAST( NULL AS SIGNED ) + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT CAST ( NULL AS INTEGER ) + + 71
----
NULL

query III rowsort
SELECT 1 AS col0, + NULLIF ( - 76, + 84 ) + - - 54 - 78 AS col1, 61 * - 53
----
1
-100
-3233

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT ALL - 82 + + 14 - COUNT( 65 ) AS col2, 21 - MAX( - 66 ) col1
----
-69
87

skipif mysql # not compatible
query II rowsort label-6248
SELECT ALL - 82 + + 14 - COUNT ( 65 ) AS col2, 21 - MAX ( - 66 ) col1
----
-69
87

query I rowsort
SELECT 61 * - + 79
----
-4819

onlyif mysql # aggregate syntax: 
query II rowsort label-6250
SELECT ALL - 96 AS col1, ( + - MAX( ALL - - 12 ) )
----
-96
-12

skipif mysql # not compatible
query II rowsort label-6250
SELECT ALL - 96 AS col1, ( + - MAX ( ALL - - 12 ) )
----
-96
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6251
SELECT ALL + 19 + CAST( NULL AS SIGNED ) + + + 76 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + 19 + CAST ( NULL AS INTEGER ) + + + 76 * 64
----
NULL

query I rowsort
SELECT + ( + 71 ) * + 20 + - ( - + 4 ) - + 34
----
1390

query I rowsort
SELECT DISTINCT + 37 + + 47
----
84

query I rowsort
SELECT - 6 * + 48 + 66 + + 6 + - 24 AS col1
----
-240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6255
SELECT + + 61 * 77 * - - 63 + - 23 + + COUNT( * ) * + 21 AS col0, 90 DIV 19 AS col2
----
295909
4

skipif mysql # not compatible
query II rowsort label-6255
SELECT + + 61 * 77 * - - 63 + - 23 + + COUNT ( * ) * + 21 AS col0, 90 / 19 AS col2
----
295909
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL - MIN( DISTINCT + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL - MIN ( DISTINCT + 25 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6257
SELECT ALL - 91 - CAST( CAST( - + 16 AS SIGNED ) AS SIGNED ), - 80 AS col0
----
-75
-80

skipif mysql # not compatible
query II rowsort label-6257
SELECT ALL - 91 - CAST ( CAST ( - + 16 AS INTEGER ) AS INTEGER ), - 80 AS col0
----
-75
-80

query II rowsort
SELECT DISTINCT - + 81 AS col1, 55 * 20
----
-81
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL + + 13 - + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL + + 13 - + + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6260
SELECT COUNT( * ) DIV - + 34 * - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6260
SELECT COUNT ( * ) / - + 34 * - 6 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT 71 + + COUNT( DISTINCT - ( - - 92 ) )
----
72

skipif mysql # not compatible
query I rowsort label-6261
SELECT 71 + + COUNT ( DISTINCT - ( - - 92 ) )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT 20 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-6262
SELECT 20 / + 58
----
0

query I rowsort
SELECT - 49 - + + 38 * NULLIF ( - - 94, + 51 )
----
-3621

query I rowsort
SELECT ALL COALESCE ( 58, + + ( + 38 ) + 26 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT ALL - + 42 DIV + 19
----
-2

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL - + 42 / + 19
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6266
SELECT DISTINCT + 40 * + CAST( NULL AS SIGNED ) * - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT + 40 * + CAST ( NULL AS INTEGER ) * - - 18
----
NULL

query I rowsort
SELECT 36 + 1
----
37

query I rowsort
SELECT ALL 54 + 91 AS col0
----
145

query I rowsort
SELECT 55 + 9
----
64

query I rowsort
SELECT 45 * - 84 AS col1
----
-3780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT DISTINCT 29 + - CAST( 63 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT 29 + - CAST ( 63 AS INTEGER )
----
-34

query I rowsort
SELECT ALL 52 - - 14
----
66

query I rowsort
SELECT ALL + 64 * + 63 * - 4
----
-16128

query II rowsort
SELECT ALL + 20 - - 19, COALESCE ( + 95, 80 + 4 ) * 22 AS col2
----
39
2090

onlyif mysql # DIV for integer division: 
query I rowsort label-6275
SELECT DISTINCT + 98 DIV + 87 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT + 98 / + 87 AS col1
----
1

query I rowsort
SELECT - 53 - - 95 + 24 * 95 - - 65 + + 49 col2
----
2436

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6277
SELECT 90 * - CAST( NULL AS DECIMAL ) + - 81 + - CAST( NULL AS DECIMAL ) * 24 / + 39 + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6277
SELECT 90 * - CAST ( NULL AS REAL ) + - 81 + - CAST ( NULL AS REAL ) * 24 / + 39 + 85
----
NULL

query I rowsort
SELECT - COALESCE ( + 86, - 24 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT MIN( + + 87 ) col2
----
87

skipif mysql # not compatible
query I rowsort label-6279
SELECT MIN ( + + 87 ) col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6280
SELECT COUNT( * ) + + CAST( - 77 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT COUNT ( * ) + + CAST ( - 77 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - - 81 * - 57 col0, 30
----
-4617
30

query I rowsort
SELECT 65 * 70 * - - 6
----
27300

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT + 47 + + + NULLIF ( + COUNT( * ), + 43 - - + COUNT( * ) ) + 82 + + + 37
----
167

skipif mysql # not compatible
query I rowsort label-6283
SELECT + 47 + + + NULLIF ( + COUNT ( * ), + 43 - - + COUNT ( * ) ) + 82 + + + 37
----
167

query I rowsort
SELECT ALL + + 68 + - ( + 76 )
----
-8

query I rowsort
SELECT DISTINCT NULLIF ( 41, - - 30 * - 1 + - - 57 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT + 94 + - 57 + COUNT( * ) + - 12
----
26

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + 94 + - 57 + COUNT ( * ) + - 12
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6287
SELECT 10 + 98 - + COUNT( * ) DIV - 77
----
108

skipif mysql # not compatible
query I rowsort label-6287
SELECT 10 + 98 - + COUNT ( * ) / - 77
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6288
SELECT ALL - CASE WHEN - 75 <= + 24 THEN NULL ELSE AVG ( + + 59 ) END + + + ( + COALESCE ( + 30, + 39 - 49 ) ) - + 65 / + - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL - CASE WHEN - 75 <= + 24 THEN NULL ELSE AVG ( + + 59 ) END + + + ( + COALESCE ( + 30, + 39 - 49 ) ) - + 65 / + - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT 26 - - + 44 + 98 + - + 29 * + + 51 * + - COUNT( * ) * + 38 * + COUNT( * )
----
56370

skipif mysql # not compatible
query I rowsort label-6289
SELECT 26 - - + 44 + 98 + - + 29 * + + 51 * + - COUNT ( * ) * + 38 * + COUNT ( * )
----
56370

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT DISTINCT + ( + + 2 ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT + ( + + 2 ) / + 89
----
0

query I rowsort
SELECT 35 + - - 5
----
40

query I rowsort
SELECT - 83 * + 27
----
-2241

query I rowsort
SELECT ALL + 91 * - 97 AS col1
----
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL 12 + - + COALESCE ( + COUNT( * ), + MIN( + 87 ), + 47 )
----
11

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL 12 + - + COALESCE ( + COUNT ( * ), + MIN ( + 87 ), + 47 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT DISTINCT + 9 DIV - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT + 9 / - 47 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT ALL 88 - ( CAST( 37 AS SIGNED ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL 88 - ( CAST ( 37 AS INTEGER ) ) AS col1
----
51

query I rowsort
SELECT 92 * + 44 * - - 56 + + 33 col2
----
226721

query I rowsort
SELECT ALL 58 * + - 66 - + ( 30 )
----
-3858

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT + 52 * + - MIN( + 95 ) + 62 AS col0
----
-4878

skipif mysql # not compatible
query I rowsort label-6299
SELECT + 52 * + - MIN ( + 95 ) + 62 AS col0
----
-4878

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT CASE WHEN NULL IN ( COUNT( * ), - 42, + 61 * + MIN( DISTINCT - + 55 ) * - + 8 + 98 + CASE - 17 WHEN 57 THEN 2 * 56 ELSE + - COUNT( * ) * + + 9 + + 34 * 29 END ) THEN - 55 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT CASE WHEN NULL IN ( COUNT ( * ), - 42, + 61 * + MIN ( DISTINCT - + 55 ) * - + 8 + 98 + CASE - 17 WHEN 57 THEN 2 * 56 ELSE + - COUNT ( * ) * + + 9 + + 34 * 29 END ) THEN - 55 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT + COUNT( * ) + - 52 * + - 10 col2
----
521

skipif mysql # not compatible
query I rowsort label-6301
SELECT + COUNT ( * ) + - 52 * + - 10 col2
----
521

query I rowsort
SELECT + - 55 + + + 30 - + 32 AS col1
----
-57

query I rowsort
SELECT + 50 * 3 + + 89 + 75 - 15 + - + 81
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT - 52 * COUNT( * ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - 52 * COUNT ( * ) col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6305
SELECT + CAST( 0 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2, 13 + + 85 + - 72
----
NULL
26

skipif mysql # not compatible
query II rowsort label-6305
SELECT + CAST ( 0 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2, 13 + + 85 + - 72
----
NULL
26

query I rowsort
SELECT + 51 + + 87 AS col1
----
138

query I rowsort
SELECT ALL - 8 * + ( - 42 ) * + 98 AS col1
----
32928

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT + - 3 DIV 57 * - 27 * 7
----
0

skipif mysql # not compatible
query I rowsort label-6308
SELECT + - 3 / 57 * - 27 * 7
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6309
SELECT + - MAX( DISTINCT + 40 ) * - + NULLIF ( 42, + - NULLIF ( - 64, 95 ) * + 19 + + 59 + + - 63 * 93 + - + CASE + + AVG ( 64 ) WHEN + COUNT( * ) THEN - COALESCE ( + + COUNT( ALL - NULLIF ( + 18, - + 75 ) ), 0, + 71 * + 8 ) * - 46 + + CASE 65 + + 98 WHEN + CAST( NULL AS DECIMAL ) * + 24 + 10 THEN 21 WHEN 44 + - CASE + 93 WHEN 80 THEN - COUNT( * ) + 27 END THEN NULL END WHEN COUNT( * ) THEN NULL END * 30 ) AS col0
----
1680

skipif mysql # not compatible
query I rowsort label-6309
SELECT + - MAX ( DISTINCT + 40 ) * - + NULLIF ( 42, + - NULLIF ( - 64, 95 ) * + 19 + + 59 + + - 63 * 93 + - + CASE + + AVG ( 64 ) WHEN + COUNT ( * ) THEN - COALESCE ( + + COUNT ( ALL - NULLIF ( + 18, - + 75 ) ), 0, + 71 * + 8 ) * - 46 + + CASE 65 + + 98 WHEN + CAST ( NULL AS REAL ) * + 24 + 10 THEN 21 WHEN 44 + - CASE + 93 WHEN 80 THEN - COUNT ( * ) + 27 END THEN NULL END WHEN COUNT ( * ) THEN NULL END * 30 ) AS col0
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6310
SELECT + + COALESCE ( + ( - + 54 ), 8, - ( 45 ) DIV - COALESCE ( 67, + 50, 87 ) * 23, COUNT( * ) + + 29 ) + + CAST( 42 AS SIGNED ) + 82 DIV 37 * + + 98, CASE - 43 WHEN + 28 + + 73 THEN CASE - 22 WHEN + 18 - - 30 DIV + 96 THEN NULL ELSE - 15 END DIV - 3 WHEN - 57 * + 34 THEN + CASE 23 WHEN + 0 THEN NULL WHEN - 1 * - 41 THEN NULL ELSE SUM( ALL 18 ) END + - 94 END * - 4 AS col1
----
184
NULL

skipif mysql # not compatible
query II rowsort label-6310
SELECT + + COALESCE ( + ( - + 54 ), 8, - ( 45 ) / - COALESCE ( 67, + 50, 87 ) * 23, COUNT ( * ) + + 29 ) + + CAST ( 42 AS INTEGER ) + 82 / 37 * + + 98, CASE - 43 WHEN + 28 + + 73 THEN CASE - 22 WHEN + 18 - - 30 / + 96 THEN NULL ELSE - 15 END / - 3 WHEN - 57 * + 34 THEN + CASE 23 WHEN + 0 THEN NULL WHEN - 1 * - 41 THEN NULL ELSE SUM ( ALL 18 ) END + - 94 END * - 4 AS col1
----
184
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT + CASE + 47 WHEN - 18 / - - 70 / + COUNT( * ) THEN NULL WHEN 60 * - - COUNT( * ) * 46 / + ( + COUNT( * ) ) THEN NULL WHEN - AVG ( ALL - - NULLIF ( - 81, - - NULLIF ( 75, + - 30 ) ) ) + 25 THEN NULL ELSE 75 END
----
75

skipif mysql # not compatible
query I rowsort label-6311
SELECT + CASE + 47 WHEN - 18 / - - 70 / + COUNT ( * ) THEN NULL WHEN 60 * - - COUNT ( * ) * 46 / + ( + COUNT ( * ) ) THEN NULL WHEN - AVG ( ALL - - NULLIF ( - 81, - - NULLIF ( 75, + - 30 ) ) ) + 25 THEN NULL ELSE 75 END
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL - 2 * + 31 + - + CASE - + COUNT( * ) WHEN 51 THEN NULL WHEN 99 THEN - + SUM( - 67 ) * - + ( - 85 ) * - 30 END + 8 * - 32 - + MIN( ALL + 10 ) + - + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL - 2 * + 31 + - + CASE - + COUNT ( * ) WHEN 51 THEN NULL WHEN 99 THEN - + SUM ( - 67 ) * - + ( - 85 ) * - 30 END + 8 * - 32 - + MIN ( ALL + 10 ) + - + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL + MAX( ALL 53 ) * + + 71 + + 67
----
3830

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + MAX ( ALL 53 ) * + + 71 + + 67
----
3830

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT + NULLIF ( - 7, + 50 - + + COUNT( * ) / COUNT( 17 ) * + COUNT( * ) * + 87 * + 58 / 23 + 2 ), - 49 * + 92 AS col1
----
-7
-4508

skipif mysql # not compatible
query II rowsort label-6314
SELECT + NULLIF ( - 7, + 50 - + + COUNT ( * ) / COUNT ( 17 ) * + COUNT ( * ) * + 87 * + 58 / 23 + 2 ), - 49 * + 92 AS col1
----
-7
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT - 33 * CASE - + 28 WHEN 4 THEN NULL ELSE 84 END + - COUNT( * ) + - 50 AS col1
----
-2823

skipif mysql # not compatible
query I rowsort label-6315
SELECT - 33 * CASE - + 28 WHEN 4 THEN NULL ELSE 84 END + - COUNT ( * ) + - 50 AS col1
----
-2823

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT - - 56 * - COALESCE ( + - 7, - - COALESCE ( + COUNT( * ), + NULLIF ( ( 0 ), + 14 ), 39 ) ) + 55
----
447

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT - - 56 * - COALESCE ( + - 7, - - COALESCE ( + COUNT ( * ), + NULLIF ( ( 0 ), + 14 ), 39 ) ) + 55
----
447

query I rowsort
SELECT ALL + 73 * - 42 - - 99 + - 3
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT DISTINCT COUNT( ALL + + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT COUNT ( ALL + + 56 )
----
1

query I rowsort
SELECT DISTINCT - 65 + 82
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6320
SELECT COUNT( * ) AS col0, + 46
----
1
46

skipif mysql # not compatible
query II rowsort label-6320
SELECT COUNT ( * ) AS col0, + 46
----
1
46

query I rowsort
SELECT - 37 + - ( + 43 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6322
SELECT 25 AS col1, + 79 AS col2, CAST( NULL AS SIGNED )
----
25
79
NULL

skipif mysql # not compatible
query III rowsort label-6322
SELECT 25 AS col1, + 79 AS col2, CAST ( NULL AS INTEGER )
----
25
79
NULL

query I rowsort
SELECT ALL + 22 * + - 7
----
-154

query I rowsort
SELECT + 24 + + 8 AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6325
SELECT - 11 col2, 38 * + CAST( NULL AS SIGNED ) * COUNT( * ) col2
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-6325
SELECT - 11 col2, 38 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) col2
----
-11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL - 50 - + COUNT( * ) + + 17 * + + 92
----
1513

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - 50 - + COUNT ( * ) + + 17 * + + 92
----
1513

query I rowsort
SELECT ALL + 95 * + 73
----
6935

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT ALL ( - 72 ) * - 81 DIV 1 + 54
----
5886

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL ( - 72 ) * - 81 / 1 + 54
----
5886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6329
SELECT - CASE 64 WHEN + 63 * - AVG ( DISTINCT - + 76 ) THEN NULL ELSE + - NULLIF ( 48, - COALESCE ( 74, 69 ) ) * + COALESCE ( - - 32, - CAST( NULL AS SIGNED ) * 65, + 33 * NULLIF ( - 53, 15 * + 24 ) * - 28 - - COUNT( * ) ) END + 47 DIV - 80 AS col0
----
1536

skipif mysql # not compatible
query I rowsort label-6329
SELECT - CASE 64 WHEN + 63 * - AVG ( DISTINCT - + 76 ) THEN NULL ELSE + - NULLIF ( 48, - COALESCE ( 74, 69 ) ) * + COALESCE ( - - 32, - CAST ( NULL AS INTEGER ) * 65, + 33 * NULLIF ( - 53, 15 * + 24 ) * - 28 - - COUNT ( * ) ) END + 47 / - 80 AS col0
----
1536

query II rowsort
SELECT 19, + 88 AS col1
----
19
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6331
SELECT - 70 + + + CAST( NULL AS SIGNED ) * + - 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT - 70 + + + CAST ( NULL AS INTEGER ) * + - 75 col0
----
NULL

query II rowsort
SELECT 98 AS col1, - 16 AS col1
----
98
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT - ( 69 ) + + CAST( NULL AS SIGNED ) * - 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT - ( 69 ) + + CAST ( NULL AS INTEGER ) * - 31 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT - MIN( ALL + ( - CASE 13 WHEN - + 7 THEN NULL ELSE + + 68 + - 32 / - 42 + ( + 63 ) * - 71 END ) ) * ( + + COUNT( * ) ) * + - 16 + + COUNT( * ) + + 48 + + 12 * + 42 + - 52 + 91 * - ( - 67 ) * + 72 * NULLIF ( - CASE + 46 WHEN + 77 THEN COUNT( + 91 ) WHEN 56 THEN - COUNT( * ) + - NULLIF ( 55, + 77 ) ELSE NULL END * + 21, 13 - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT - MIN ( ALL + ( - CASE 13 WHEN - + 7 THEN NULL ELSE + + 68 + - 32 / - 42 + ( + 63 ) * - 71 END ) ) * ( + + COUNT ( * ) ) * + - 16 + + COUNT ( * ) + + 48 + + 12 * + 42 + - 52 + 91 * - ( - 67 ) * + 72 * NULLIF ( - CASE + 46 WHEN + 77 THEN COUNT ( + 91 ) WHEN 56 THEN - COUNT ( * ) + - NULLIF ( 55, + 77 ) ELSE NULL END * + 21, 13 - 64 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6335
SELECT - COUNT( * ) AS col0, 74
----
-1
74

skipif mysql # not compatible
query II rowsort label-6335
SELECT - COUNT ( * ) AS col0, 74
----
-1
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6336
SELECT ALL + 60 DIV - + 85 * - MAX( ( - + 83 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + 60 / - + 85 * - MAX ( ( - + 83 ) ) col2
----
0

query I rowsort
SELECT + 17 + 24
----
41

query I rowsort
SELECT ALL NULLIF ( 92, - 42 )
----
92

query I rowsort
SELECT DISTINCT + 42 * + - 28
----
-1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6340
SELECT ALL - 4 DIV + MIN( - + 81 ) * + + 29 * + - COUNT( * ) * - CAST( - COUNT( * ) AS SIGNED ) * + + 74 * 69 * 66 + + - 6 + - 66 + - 18 + + + 31 AS col0, + COUNT( * ) AS col2
----
-59
1

skipif mysql # not compatible
query II rowsort label-6340
SELECT ALL - 4 / + MIN ( - + 81 ) * + + 29 * + - COUNT ( * ) * - CAST ( - COUNT ( * ) AS INTEGER ) * + + 74 * 69 * 66 + + - 6 + - 66 + - 18 + + + 31 AS col0, + COUNT ( * ) AS col2
----
-59
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6341
SELECT - 13 * + MIN( - + 26 ) * CAST( NULL AS SIGNED ) * 86 / + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT - 13 * + MIN ( - + 26 ) * CAST ( NULL AS INTEGER ) * 86 / + 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL + 23 * + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL + 23 * + COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT ALL + CAST( NULL AS SIGNED ) * - 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL + CAST ( NULL AS INTEGER ) * - 71 col2
----
NULL

query I rowsort
SELECT - - 7 * + - 9
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT - - COUNT( * ) + - 44 + - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-6345
SELECT - - COUNT ( * ) + - 44 + - - COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT + CASE - 36 WHEN COUNT( 19 ) * - 59 THEN + 46 * - 35 - + 11 * - 4 WHEN + - COUNT( * ) + + COUNT( * ) THEN - - 97 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT + CASE - 36 WHEN COUNT ( 19 ) * - 59 THEN + 46 * - 35 - + 11 * - 4 WHEN + - COUNT ( * ) + + COUNT ( * ) THEN - - 97 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 39 * + - 15 * + 98 AS col2
----
-57330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT + - 68 * 22 / + - CAST( NULL AS SIGNED ) + + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT + - 68 * 22 / + - CAST ( NULL AS INTEGER ) + + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT MIN( DISTINCT - - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-6349
SELECT MIN ( DISTINCT - - 36 )
----
36

query II rowsort
SELECT + 18 * - + 47 * - + 13 - + 46 col1, - 85 * 92 AS col2
----
10952
-7820

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT DISTINCT + 19 * + COUNT( * ) * - 60 * - 74 + - 44 AS col1
----
84316

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT + 19 * + COUNT ( * ) * - 60 * - 74 + - 44 AS col1
----
84316

onlyif mysql # aggregate syntax: 
query II rowsort label-6352
SELECT DISTINCT + - 59, 82 + + 72 * + CASE 76 WHEN + 36 THEN ( - 3 ) * + - 49 + 58 WHEN + 52 * SUM( DISTINCT 42 ) * + 62 + - 95 + + - 3 + + + COUNT( * ) * + - COALESCE ( - 42, - - 74 * 23 + - 94 / 50 ) - COUNT( * ) THEN 72 * - CASE + 75 WHEN + 47 THEN - 39 * - 1 END END AS col0
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-6352
SELECT DISTINCT + - 59, 82 + + 72 * + CASE 76 WHEN + 36 THEN ( - 3 ) * + - 49 + 58 WHEN + 52 * SUM ( DISTINCT 42 ) * + 62 + - 95 + + - 3 + + + COUNT ( * ) * + - COALESCE ( - 42, - - 74 * 23 + - 94 / 50 ) - COUNT ( * ) THEN 72 * - CASE + 75 WHEN + 47 THEN - 39 * - 1 END END AS col0
----
-59
NULL

query I rowsort
SELECT + NULLIF ( ( + 10 ), - + 12 ) + + 90 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6354
SELECT ALL + - COUNT( * ) * + - 66 + CAST( + 43 AS SIGNED ) * + 12 + + 11 AS col1
----
593

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL + - COUNT ( * ) * + - 66 + CAST ( + 43 AS INTEGER ) * + 12 + + 11 AS col1
----
593

query I rowsort
SELECT + + 41 - 60
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6356
SELECT ALL + 36 DIV MAX( + 17 )
----
2

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL + 36 / MAX ( + 17 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6357
SELECT + + CAST( NULL AS SIGNED ), - 97 AS col0
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-6357
SELECT + + CAST ( NULL AS INTEGER ), - 97 AS col0
----
NULL
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6358
SELECT ( + CASE - - 36 WHEN + ( + - ( 48 ) ) + + 81 * + - 37 + + 74 THEN 48 END ) * 38 - - NULLIF ( 21, 59 / + CASE + MAX( DISTINCT - - 23 ) WHEN + - CAST( - - 35 AS SIGNED ) * 23 * - 66 + + ( CAST( - 52 AS SIGNED ) ) THEN + AVG ( 80 ) + 86 / - 27 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT ( + CASE - - 36 WHEN + ( + - ( 48 ) ) + + 81 * + - 37 + + 74 THEN 48 END ) * 38 - - NULLIF ( 21, 59 / + CASE + MAX ( DISTINCT - - 23 ) WHEN + - CAST ( - - 35 AS INTEGER ) * 23 * - 66 + + ( CAST ( - 52 AS INTEGER ) ) THEN + AVG ( 80 ) + 86 / - 27 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6359
SELECT + 37 AS col0, - COUNT( * ) + - 38 col2
----
37
-39

skipif mysql # not compatible
query II rowsort label-6359
SELECT + 37 AS col0, - COUNT ( * ) + - 38 col2
----
37
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6360
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2, 11 AS col1
----
NULL
11

skipif mysql # not compatible
query II rowsort label-6360
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2, 11 AS col1
----
NULL
11

query I rowsort
SELECT DISTINCT 48 * 8 AS col2
----
384

query I rowsort
SELECT 54 * - 54 AS col0
----
-2916

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT DISTINCT - 46 DIV + 43
----
-1

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT - 46 / + 43
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6364
SELECT DISTINCT - 37 DIV - 89 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - 37 / - 89 * + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT 73 DIV + 56 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6365
SELECT 73 / + 56 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ( - 46 ) * + 91 + + MAX( + 63 ) AS col1
----
-4123

skipif mysql # not compatible
query I rowsort label-6366
SELECT ( - 46 ) * + 91 + + MAX ( + 63 ) AS col1
----
-4123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6367
SELECT ALL + CASE + 79 WHEN + - CAST( NULL AS SIGNED ) THEN - ( + COALESCE ( - CASE + ( - + 77 ) WHEN - CASE - 85 WHEN + 18 THEN NULL WHEN + 53 * - ( - ( + 11 ) ) THEN NULL ELSE - 30 / 44 + + CAST( NULL AS SIGNED ) * - + 17 END THEN - + 75 + 88 * - CASE + 18 WHEN 18 THEN COUNT( 4 ) WHEN 88 THEN + CAST( - 98 AS SIGNED ) ELSE 37 * - COUNT( * ) + - 80 END WHEN + 40 * 70 + - 40 THEN + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 21 END, + 38 ) ) END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + CASE + 79 WHEN + - CAST ( NULL AS INTEGER ) THEN - ( + COALESCE ( - CASE + ( - + 77 ) WHEN - CASE - 85 WHEN + 18 THEN NULL WHEN + 53 * - ( - ( + 11 ) ) THEN NULL ELSE - 30 / 44 + + CAST ( NULL AS INTEGER ) * - + 17 END THEN - + 75 + 88 * - CASE + 18 WHEN 18 THEN COUNT ( 4 ) WHEN 88 THEN + CAST ( - 98 AS INTEGER ) ELSE 37 * - COUNT ( * ) + - 80 END WHEN + 40 * 70 + - 40 THEN + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 21 END, + 38 ) ) END * - COUNT ( * )
----
NULL

query II rowsort
SELECT 89 + 34 * + 18 * 69 - + 84, - 79 + - 72 * - NULLIF ( - - 46, - 42 * - 55 + - + 90 ) - 8 AS col0
----
42233
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT DISTINCT 28 * - 85 * - CASE - - 63 WHEN 95 THEN NULL WHEN + 51 THEN COUNT( * ) WHEN - CASE + - 51 WHEN ( + 69 ) * + - 11 + CASE 13 WHEN + 56 THEN 66 / 96 ELSE 82 END + - 20 THEN NULL WHEN - - 59 THEN + 20 + 73 END THEN 83 ELSE - 14 END AS col2
----
-33320

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT 28 * - 85 * - CASE - - 63 WHEN 95 THEN NULL WHEN + 51 THEN COUNT ( * ) WHEN - CASE + - 51 WHEN ( + 69 ) * + - 11 + CASE 13 WHEN + 56 THEN 66 / 96 ELSE 82 END + - 20 THEN NULL WHEN - - 59 THEN + 20 + 73 END THEN 83 ELSE - 14 END AS col2
----
-33320

onlyif mysql # aggregate syntax: 
query II rowsort label-6370
SELECT 98 * + 7 AS col0, + 57 + + NULLIF ( + - COUNT( * ), COUNT( * ) * - 27 * - COUNT( * ) + - ( + 12 ) + 13 ) * 20 AS col1
----
686
37

skipif mysql # not compatible
query II rowsort label-6370
SELECT 98 * + 7 AS col0, + 57 + + NULLIF ( + - COUNT ( * ), COUNT ( * ) * - 27 * - COUNT ( * ) + - ( + 12 ) + 13 ) * 20 AS col1
----
686
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6371
SELECT ALL - + 67 + - + 17 DIV + COALESCE ( COALESCE ( + - 86, CAST( NULL AS SIGNED ) ), 23 * - 38 * + - 75 ) - - - ( ( 86 ) ) + + ( COUNT( * ) ) - - 36 DIV ( + 36 ) AS col2, + 22
----
-151
22

skipif mysql # not compatible
query II rowsort label-6371
SELECT ALL - + 67 + - + 17 / + COALESCE ( COALESCE ( + - 86, CAST ( NULL AS INTEGER ) ), 23 * - 38 * + - 75 ) - - - ( ( 86 ) ) + + ( COUNT ( * ) ) - - 36 / ( + 36 ) AS col2, + 22
----
-151
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6372
SELECT + 6 + COALESCE ( + COUNT( ALL + + 22 ), - COUNT( * ) * + COUNT( * ) * - - COUNT( - 67 ) + - - 73 + + - 14 + + ( - 19 ), - COALESCE ( - NULLIF ( + 98, - 56 / 1 + - 74 * - MIN( + CAST( + + 72 AS SIGNED ) ) ), - 63 ) ) + - COUNT( DISTINCT + 14 ) * + 93 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-6372
SELECT + 6 + COALESCE ( + COUNT ( ALL + + 22 ), - COUNT ( * ) * + COUNT ( * ) * - - COUNT ( - 67 ) + - - 73 + + - 14 + + ( - 19 ), - COALESCE ( - NULLIF ( + 98, - 56 / 1 + - 74 * - MIN ( + CAST ( + + 72 AS INTEGER ) ) ), - 63 ) ) + - COUNT ( DISTINCT + 14 ) * + 93 AS col1
----
-86

query I rowsort
SELECT - ( + + 98 ) col2
----
-98

query I rowsort
SELECT 61 + - 55 + - ( - - 7 ) + + 51 * - ( + ( 30 ) ) * - 20 - + ( + 20 ) + + 19
----
30598

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6375
SELECT CASE + 53 WHEN + 92 THEN + + CASE - + 6 WHEN + COUNT( + + CAST( NULL AS DECIMAL ) ) + 22 * + COUNT( * ) THEN - - COUNT( * ) * - + 3 - 17 * AVG ( DISTINCT 46 ) END ELSE NULL END / 71 + + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT CASE + 53 WHEN + 92 THEN + + CASE - + 6 WHEN + COUNT ( + + CAST ( NULL AS REAL ) ) + 22 * + COUNT ( * ) THEN - - COUNT ( * ) * - + 3 - 17 * AVG ( DISTINCT 46 ) END ELSE NULL END / 71 + + 91 AS col2
----
NULL

query I rowsort
SELECT ALL - + 75 + - 78 * - 57 - + 53 AS col2
----
4318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT + ( + + 19 ) / 22 + - CAST( NULL AS SIGNED ) + - 98 * - 27 * 34 + - ( - + 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT + ( + + 19 ) / 22 + - CAST ( NULL AS INTEGER ) + - 98 * - 27 * 34 + - ( - + 42 ) AS col2
----
NULL

query I rowsort
SELECT - + 43 * + 75 + + ( - - 42 ) * + + 60 - + ( + COALESCE ( - 50, - - 26 * - 47 ) ) + - + 81 col1
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT + - ( 51 ) + - - MAX( + 67 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT + - ( 51 ) + - - MAX ( + 67 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL - CASE WHEN NULL <= NULL THEN - ( - 50 ) ELSE + - 60 END + - 79 * - COUNT( * ) * + + COUNT( * ) + + 51 AS col2
----
190

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL - CASE WHEN NULL <= NULL THEN - ( - 50 ) ELSE + - 60 END + - 79 * - COUNT ( * ) * + + COUNT ( * ) + + 51 AS col2
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6381
SELECT 71 DIV - - 95 + - CAST( - 64 AS SIGNED ) + - COUNT( * ) AS col2, COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-6381
SELECT 71 / - - 95 + - CAST ( - 64 AS INTEGER ) + - COUNT ( * ) AS col2, COUNT ( * )
----
63
1

query I rowsort
SELECT DISTINCT + 7 * - 15
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT + COUNT( * ) + ( - 49 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6383
SELECT + COUNT ( * ) + ( - 49 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6384
SELECT - MAX( ALL 52 ), 1 + - 94 AS col2
----
-52
-93

skipif mysql # not compatible
query II rowsort label-6384
SELECT - MAX ( ALL 52 ), 1 + - 94 AS col2
----
-52
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT - 74 * + ( - COUNT( * ) ) + + 36 + + 17 + 23 * + - ( 58 ) - - 82 + 0 + - - 56
----
-1069

skipif mysql # not compatible
query I rowsort label-6385
SELECT - 74 * + ( - COUNT ( * ) ) + + 36 + + 17 + 23 * + - ( 58 ) - - 82 + 0 + - - 56
----
-1069

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT DISTINCT - MIN( ALL - 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - MIN ( ALL - 26 ) AS col2
----
26

query I rowsort
SELECT ALL - 23 * - 28 AS col2
----
644

onlyif mysql # aggregate syntax: 
query II rowsort label-6388
SELECT 50 AS col2, - MAX( ALL + 6 ) * - + 76 + + - 21 AS col1
----
50
435

skipif mysql # not compatible
query II rowsort label-6388
SELECT 50 AS col2, - MAX ( ALL + 6 ) * - + 76 + + - 21 AS col1
----
50
435

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6389
SELECT ALL - 25 AS col0, 21 + - - CAST( NULL AS SIGNED ) + - 12 * - - 78
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-6389
SELECT ALL - 25 AS col0, 21 + - - CAST ( NULL AS INTEGER ) + - 12 * - - 78
----
-25
NULL

query II rowsort
SELECT ALL 65 * - - 61 * + 34, - 99 AS col1
----
134810
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6391
SELECT DISTINCT 94 DIV + + 79 col1
----
1

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT 94 / + + 79 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL 29 * - MAX( 93 ) * + 70 AS col0
----
-188790

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL 29 * - MAX ( 93 ) * + 70 AS col0
----
-188790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6393
SELECT CAST( NULL AS SIGNED ) + 49 * + + NULLIF ( - COUNT( * ), - AVG ( + 41 ) * + ( - + ( + + COUNT( * ) ) ) + 20 ) * - MIN( ALL 19 ) + 13 * + - 15 - ( - - 89 ) / + - COUNT( * ) + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT CAST ( NULL AS INTEGER ) + 49 * + + NULLIF ( - COUNT ( * ), - AVG ( + 41 ) * + ( - + ( + + COUNT ( * ) ) ) + 20 ) * - MIN ( ALL 19 ) + 13 * + - 15 - ( - - 89 ) / + - COUNT ( * ) + - 88
----
NULL

query I rowsort
SELECT ALL 93 * + 93 AS col0
----
8649

query I rowsort
SELECT DISTINCT 17 + + 87
----
104

query II rowsort
SELECT DISTINCT 91, + 42 + + 98 col1
----
91
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT DISTINCT + COUNT( DISTINCT 68 ) + - 2 * CASE - - 27 WHEN - 9 THEN - - 68 ELSE + 83 END
----
-165

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT + COUNT ( DISTINCT 68 ) + - 2 * CASE - - 27 WHEN - 9 THEN - - 68 ELSE + 83 END
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-6398
SELECT - 91, - 19 * + 31 + - COUNT( * ) AS col1
----
-91
-590

skipif mysql # not compatible
query II rowsort label-6398
SELECT - 91, - 19 * + 31 + - COUNT ( * ) AS col1
----
-91
-590

query I rowsort
SELECT ALL 87 + - 60 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL - 30 * - COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL - 30 * - COUNT ( * ) AS col0
----
30

query II rowsort
SELECT ALL + 11, 25 col2
----
11
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6402
SELECT + - 86 AS col2, + NULLIF ( 34, - 23 + + COUNT( * ) )
----
-86
34

skipif mysql # not compatible
query II rowsort label-6402
SELECT + - 86 AS col2, + NULLIF ( 34, - 23 + + COUNT ( * ) )
----
-86
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL + COUNT( * ) * - - 70 + + 22 + + 68 + - 37 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + COUNT ( * ) * - - 70 + + 22 + + 68 + - 37 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL SUM( + 71 ) * - - 16 AS col1
----
1136

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL SUM ( + 71 ) * - - 16 AS col1
----
1136

query I rowsort
SELECT ALL 59 * - 45 + - - 1 AS col1
----
-2654

query I rowsort
SELECT COALESCE ( - 6, + + 38 )
----
-6

query I rowsort
SELECT - 64 + 35
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT 24 DIV + 19
----
1

skipif mysql # not compatible
query I rowsort label-6408
SELECT 24 / + 19
----
1

query I rowsort
SELECT + 73 * 68 AS col0
----
4964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6410
SELECT - 72 * COUNT( * ) DIV - SUM( ALL + 96 ) * + + 4 + 68 - + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-6410
SELECT - 72 * COUNT ( * ) / - SUM ( ALL + 96 ) * + + 4 + 68 - + COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT ALL - + 55 DIV - 57 * ( + + 43 )
----
0

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - + 55 / - 57 * ( + + 43 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - COUNT( * ) * + NULLIF ( - 92, 86 / + + MAX( ALL + + 5 ) ) * + 57 * - 78
----
-409032

skipif mysql # not compatible
query I rowsort label-6412
SELECT - COUNT ( * ) * + NULLIF ( - 92, 86 / + + MAX ( ALL + + 5 ) ) * + 57 * - 78
----
-409032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6413
SELECT DISTINCT + - CAST( + COALESCE ( - COUNT( * ), + 4 + - + ( - 92 ) - 92, + 18 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT + - CAST ( + COALESCE ( - COUNT ( * ), + 4 + - + ( - 92 ) - 92, + 18 ) AS INTEGER )
----
1

query I rowsort
SELECT ALL + 36 * + - 73
----
-2628

onlyif mysql # DIV for integer division: 
query I rowsort label-6415
SELECT ALL + 64 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + 64 / + 89 AS col1
----
0

query I rowsort
SELECT ALL 24 * - + 14
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT - 30 - - 41 + - CASE - - COUNT( * ) WHEN - 34 THEN - + ( - 29 ) WHEN - + 58 * 1 * ( - + COUNT( * ) ) + + 52 + 92 + + ( + + 86 ) * - 95 * - 27 * + 89 * - + 37 THEN NULL WHEN + + 89 THEN NULL WHEN + + 6 THEN AVG ( 11 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT - 30 - - 41 + - CASE - - COUNT ( * ) WHEN - 34 THEN - + ( - 29 ) WHEN - + 58 * 1 * ( - + COUNT ( * ) ) + + 52 + 92 + + ( + + 86 ) * - 95 * - 27 * + 89 * - + 37 THEN NULL WHEN + + 89 THEN NULL WHEN + + 6 THEN AVG ( 11 ) END
----
NULL

query I rowsort
SELECT DISTINCT + 46 * + 69 AS col2
----
3174

query I rowsort
SELECT DISTINCT - 91 * + + 29
----
-2639

query I rowsort
SELECT DISTINCT + ( 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ALL 76 + COUNT( * ) + - - 26 * 77
----
2079

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL 76 + COUNT ( * ) + - - 26 * 77
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT - COUNT( + 62 ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6422
SELECT - COUNT ( + 62 ) - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT DISTINCT NULLIF ( + 0, + + COUNT( * ) + - 55 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT NULLIF ( + 0, + + COUNT ( * ) + - 55 ) AS col2
----
0

query I rowsort
SELECT ALL 40 + - 47 AS col1
----
-7

query I rowsort
SELECT - + 45 + ( 61 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT ALL - CAST( + + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL - CAST ( + + 27 AS INTEGER )
----
-27

query I rowsort
SELECT + + 95 + 45 AS col2
----
140

query I rowsort
SELECT ALL - 89 + - + 0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT + MAX( + 29 ) + + 64
----
93

skipif mysql # not compatible
query I rowsort label-6430
SELECT + MAX ( + 29 ) + + 64
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT ALL + COALESCE ( ( 70 ), CAST( NULL AS SIGNED ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + COALESCE ( ( 70 ), CAST ( NULL AS INTEGER ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + 4 + + + COUNT( * ) + - 70 col0
----
-65

skipif mysql # not compatible
query I rowsort label-6432
SELECT + 4 + + + COUNT ( * ) + - 70 col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6433
SELECT + - NULLIF ( - + 73, - + MAX( ALL 31 ) * + + COUNT( * ) + 51 ) DIV ( - + 77 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT + - NULLIF ( - + 73, - + MAX ( ALL 31 ) * + + COUNT ( * ) + 51 ) / ( - + 77 ) AS col2
----
0

query I rowsort
SELECT + - 38 * - 42
----
1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6435
SELECT 79 * 31 + COUNT( * ) * CASE - COUNT( DISTINCT + CAST( - + 28 AS SIGNED ) ) WHEN COUNT( * ) * 13 THEN - 39 * 90 + 40 WHEN - CASE - + 18 WHEN 16 / + 93 THEN NULL ELSE - + 78 END THEN NULL WHEN + COUNT( * ) / - COALESCE ( + 94, 13 / + 62 + - 57 - - - 95 ) * - COUNT( * ) THEN MAX( + 79 ) ELSE NULL END + 27 * + CASE 25 + + 0 WHEN 73 THEN 44 WHEN 54 + 53 THEN + 51 * 97 + 36 WHEN 38 THEN NULL WHEN - 38 * - 71 + CAST( NULL AS SIGNED ) THEN 84 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT 79 * 31 + COUNT ( * ) * CASE - COUNT ( DISTINCT + CAST ( - + 28 AS INTEGER ) ) WHEN COUNT ( * ) * 13 THEN - 39 * 90 + 40 WHEN - CASE - + 18 WHEN 16 / + 93 THEN NULL ELSE - + 78 END THEN NULL WHEN + COUNT ( * ) / - COALESCE ( + 94, 13 / + 62 + - 57 - - - 95 ) * - COUNT ( * ) THEN MAX ( + 79 ) ELSE NULL END + 27 * + CASE 25 + + 0 WHEN 73 THEN 44 WHEN 54 + 53 THEN + 51 * 97 + 36 WHEN 38 THEN NULL WHEN - 38 * - 71 + CAST ( NULL AS INTEGER ) THEN 84 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT + - 77 DIV + 60 + + - 86 + - 26
----
-113

skipif mysql # not compatible
query I rowsort label-6436
SELECT + - 77 / + 60 + + - 86 + - 26
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL - 24 * - - MIN( 6 ) * - ( + COUNT( * ) ) + 72 AS col1
----
216

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - 24 * - - MIN ( 6 ) * - ( + COUNT ( * ) ) + 72 AS col1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT - 44 * + 66 + MAX( + - 43 ) * - COUNT( * )
----
-2861

skipif mysql # not compatible
query I rowsort label-6438
SELECT - 44 * + 66 + MAX ( + - 43 ) * - COUNT ( * )
----
-2861

query I rowsort
SELECT DISTINCT + + ( + + 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT ALL 19 * - CAST( NULL AS SIGNED ) * - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL 19 * - CAST ( NULL AS INTEGER ) * - 69 AS col1
----
NULL

query I rowsort
SELECT + 42 * 2 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT 54 * + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT 54 * + COUNT ( * ) AS col2
----
54

query II rowsort
SELECT + ( + ( + 12 ) ) col2, 35
----
12
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT DISTINCT 32 * + - SUM( - 54 ) + + 47 - + COUNT( * ) AS col1
----
1774

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT 32 * + - SUM ( - 54 ) + + 47 - + COUNT ( * ) AS col1
----
1774

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT DISTINCT - COUNT( * ) * + 91 + - 85 AS col2
----
-176

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT - COUNT ( * ) * + 91 + - 85 AS col2
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6446
SELECT ALL - 86 * - CAST( NULLIF ( + - COUNT( * ), - + 37 - - ( 54 ) ) AS SIGNED ) + + 75
----
-11

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL - 86 * - CAST ( NULLIF ( + - COUNT ( * ), - + 37 - - ( 54 ) ) AS INTEGER ) + + 75
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6447
SELECT ALL NULLIF ( - CAST( NULL AS DECIMAL ), + MAX( 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL NULLIF ( - CAST ( NULL AS REAL ), + MAX ( 26 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6448
SELECT DISTINCT 19 * - COUNT( * ) DIV 37 DIV 57 * - 57 + + 97 + + 13
----
110

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT 19 * - COUNT ( * ) / 37 / 57 * - 57 + + 97 + + 13
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT - 17 * + COUNT( - 49 )
----
-17

skipif mysql # not compatible
query I rowsort label-6449
SELECT - 17 * + COUNT ( - 49 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT COUNT( ALL + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6450
SELECT COUNT ( ALL + 81 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6451
SELECT - 10 + + - CAST( NULL AS SIGNED ) + + COUNT( * ) + + 8 * + - 74 * + + 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT - 10 + + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 8 * + - 74 * + + 45 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT - COUNT( * ) * - 35
----
35

skipif mysql # not compatible
query I rowsort label-6452
SELECT - COUNT ( * ) * - 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT - 25 * ( + COALESCE ( - ( + - NULLIF ( - - 44, + 37 / + + 90 ) ), - NULLIF ( + 95, + 86 * 15 + 64 - - - COUNT( * ) ) * 57 + - - 95 ) ) * + 56 AS col0
----
-61600

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - 25 * ( + COALESCE ( - ( + - NULLIF ( - - 44, + 37 / + + 90 ) ), - NULLIF ( + 95, + 86 * 15 + 64 - - - COUNT ( * ) ) * 57 + - - 95 ) ) * + 56 AS col0
----
-61600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6454
SELECT ALL CAST( ( - COUNT( - 27 ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL CAST ( ( - COUNT ( - 27 ) ) AS INTEGER )
----
-1

query II rowsort
SELECT - - 46, 98 AS col0
----
46
98

query I rowsort
SELECT ALL + + 55 - + + 39 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6457
SELECT DISTINCT - CAST( - 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - CAST ( - 51 AS INTEGER ) AS col0
----
51

query I rowsort
SELECT ( + - 18 ) AS col1
----
-18

query I rowsort
SELECT DISTINCT + - 13 * - 96 AS col2
----
1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6460
SELECT - 25 * + - 59 + - + COALESCE ( - SUM( - 76 ), + 57 * - 74 + + 90, - 2 * - NULLIF ( + 73, COALESCE ( - COUNT( * ), + COUNT( * ) * 42 ) * + CAST( NULL AS SIGNED ) ) ) + - + 56 + - 1 AS col2, 88 AS col1
----
1342
88

skipif mysql # not compatible
query II rowsort label-6460
SELECT - 25 * + - 59 + - + COALESCE ( - SUM ( - 76 ), + 57 * - 74 + + 90, - 2 * - NULLIF ( + 73, COALESCE ( - COUNT ( * ), + COUNT ( * ) * 42 ) * + CAST ( NULL AS INTEGER ) ) ) + - + 56 + - 1 AS col2, 88 AS col1
----
1342
88

query I rowsort
SELECT DISTINCT 94 * + NULLIF ( - 99, 4 ) AS col1
----
-9306

onlyif mysql # DIV for integer division: 
query I rowsort label-6462
SELECT DISTINCT + + 46 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT + + 46 / - 76
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT 18 DIV - - 24
----
0

skipif mysql # not compatible
query I rowsort label-6463
SELECT 18 / - - 24
----
0

query I rowsort
SELECT ALL + + 71 * - - 64 + + 45
----
4589

query II rowsort
SELECT ALL - 23 AS col0, + 87 col0
----
-23
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6466
SELECT - - 72 DIV - + 71 + 26
----
25

skipif mysql # not compatible
query I rowsort label-6466
SELECT - - 72 / - + 71 + 26
----
25

query II rowsort
SELECT + NULLIF ( + 79, 45 ), + 81 + 64 col1
----
79
145

onlyif mysql # DIV for integer division: 
query I rowsort label-6468
SELECT NULLIF ( + 26, + 17 DIV + 45 ) DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6468
SELECT NULLIF ( + 26, + 17 / + 45 ) / 68 AS col2
----
0

query II rowsort
SELECT + 49 AS col2, ( + + 3 ) AS col0
----
49
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT DISTINCT 71 DIV 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT 71 / 71 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT 93 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-6471
SELECT 93 / - 49
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6472
SELECT 64 + + + COUNT( * ) DIV - - MIN( + 86 )
----
64

skipif mysql # not compatible
query I rowsort label-6472
SELECT 64 + + + COUNT ( * ) / - - MIN ( + 86 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT ALL 65 + COUNT( * ) col1
----
66

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL 65 + COUNT ( * ) col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6474
SELECT + 16 * - 91 + 32 * 58 AS col0, + COUNT( * )
----
400
1

skipif mysql # not compatible
query II rowsort label-6474
SELECT + 16 * - 91 + 32 * 58 AS col0, + COUNT ( * )
----
400
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6475
SELECT ALL 77 + ( + - 38 ) + - 88 col0, - MAX( + 25 ) AS col2
----
-49
-25

skipif mysql # not compatible
query II rowsort label-6475
SELECT ALL 77 + ( + - 38 ) + - 88 col0, - MAX ( + 25 ) AS col2
----
-49
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6476
SELECT CASE - 81 WHEN 61 THEN 69 * - + 25 / - 53 * + 52 + - + 58 + 82 WHEN NULLIF ( + 16, + 35 ) + COUNT( * ) + + ( + - COALESCE ( - 18, 82 ) ) / + + 16 THEN NULL END * - COUNT( * ), 3 AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6476
SELECT CASE - 81 WHEN 61 THEN 69 * - + 25 / - 53 * + 52 + - + 58 + 82 WHEN NULLIF ( + 16, + 35 ) + COUNT ( * ) + + ( + - COALESCE ( - 18, 82 ) ) / + + 16 THEN NULL END * - COUNT ( * ), 3 AS col2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6477
SELECT 83 + 43 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6477
SELECT 83 + 43 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6478
SELECT ALL - 54 AS col2, + SUM( - - NULLIF ( 1, + 4 ) ) DIV - + ( 78 )
----
-54
0

skipif mysql # not compatible
query II rowsort label-6478
SELECT ALL - 54 AS col2, + SUM ( - - NULLIF ( 1, + 4 ) ) / - + ( 78 )
----
-54
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6479
SELECT 90 AS col2, + CAST( NULL AS SIGNED ) / + - COUNT( * ) AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-6479
SELECT 90 AS col2, + CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col0
----
90
NULL

query I rowsort
SELECT ( - 36 ) * + 87 AS col0
----
-3132

onlyif mysql # aggregate syntax: 
query II rowsort label-6481
SELECT + 38, + COUNT( + 46 ) AS col2
----
38
1

skipif mysql # not compatible
query II rowsort label-6481
SELECT + 38, + COUNT ( + 46 ) AS col2
----
38
1

query II rowsort
SELECT ALL 39 AS col1, + 13
----
39
13

query II rowsort
SELECT - 95, - 11 AS col0
----
-95
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT ALL + COUNT( * ) - + ( + 5 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL + COUNT ( * ) - + ( + 5 ) AS col0
----
-4

query II rowsort
SELECT DISTINCT + 35, 56 AS col2
----
35
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL - CASE - - 94 WHEN + 53 * - 83 - 69 - + - COUNT( ALL + 7 ) + - COUNT( + - 94 ) THEN NULL WHEN 14 THEN + + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - CASE - - 94 WHEN + 53 * - 83 - 69 - + - COUNT ( ALL + 7 ) + - COUNT ( + - 94 ) THEN NULL WHEN 14 THEN + + 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + SUM( 40 ) - - + 13
----
53

skipif mysql # not compatible
query I rowsort label-6487
SELECT + SUM ( 40 ) - - + 13
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6488
SELECT DISTINCT + 51 * 72 * 43 - 68 + 61 - - - COUNT( * ) DIV COUNT( * )
----
157888

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT + 51 * 72 * 43 - 68 + 61 - - - COUNT ( * ) / COUNT ( * )
----
157888

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT COUNT( * ) + 15
----
16

skipif mysql # not compatible
query I rowsort label-6489
SELECT COUNT ( * ) + 15
----
16

query III rowsort
SELECT 1, 34 AS col1, 92 AS col0
----
1
34
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT + CAST( NULL AS SIGNED ) + - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT + CAST ( NULL AS INTEGER ) + - 22 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6492
SELECT 7 AS col0, 58 DIV - ( + 17 ) AS col0
----
7
-3

skipif mysql # not compatible
query II rowsort label-6492
SELECT 7 AS col0, 58 / - ( + 17 ) AS col0
----
7
-3

query I rowsort
SELECT - 26 + + + 41 - - - 40 * + 22 + - 69
----
-934

onlyif mysql # DIV for integer division: 
query I rowsort label-6494
SELECT 33 DIV + 28 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6494
SELECT 33 / + 28 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6495
SELECT - COUNT( * ) * + 1 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6495
SELECT - COUNT ( * ) * + 1 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 63 + 71 + 68
----
202

query I rowsort
SELECT 22 * - 99 + + 44 + 29 * + 47 AS col0
----
-771

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT 9 + + COUNT( * ) - - 50
----
60

skipif mysql # not compatible
query I rowsort label-6498
SELECT 9 + + COUNT ( * ) - - 50
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL - 46 * - MAX( ALL 33 ) - + - 80 col2
----
1598

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL - 46 * - MAX ( ALL 33 ) - + - 80 col2
----
1598

onlyif mysql # aggregate syntax: 
query II rowsort label-6500
SELECT DISTINCT + 68, NULLIF ( 99, + - 3 * + - COUNT( * ) ) * + CASE + - 37 WHEN + 82 THEN NULL ELSE + 22 END + + ( - 27 ) AS col1
----
68
2151

skipif mysql # not compatible
query II rowsort label-6500
SELECT DISTINCT + 68, NULLIF ( 99, + - 3 * + - COUNT ( * ) ) * + CASE + - 37 WHEN + 82 THEN NULL ELSE + 22 END + + ( - 27 ) AS col1
----
68
2151

query I rowsort
SELECT ALL NULLIF ( + 2, - 46 )
----
2

query I rowsort
SELECT COALESCE ( 19, 36, - 16 ) + - 34 AS col1
----
-15

query I rowsort
SELECT DISTINCT 28 * - - 63
----
1764

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6504
SELECT DISTINCT + - NULLIF ( - ( CASE - + 28 WHEN + 62 THEN 68 - - 73 END ), + CAST( NULL AS DECIMAL ) + + 49 ) + + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT + - NULLIF ( - ( CASE - + 28 WHEN + 62 THEN 68 - - 73 END ), + CAST ( NULL AS REAL ) + + 49 ) + + + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6505
SELECT COUNT( * ), ( COALESCE ( - 88, + 9 * - 41 + + 56 + - - 61 DIV - CAST( NULL AS SIGNED ), + + COUNT( * ) ) ) AS col2
----
1
-88

skipif mysql # not compatible
query II rowsort label-6505
SELECT COUNT ( * ), ( COALESCE ( - 88, + 9 * - 41 + + 56 + - - 61 / - CAST ( NULL AS INTEGER ), + + COUNT ( * ) ) ) AS col2
----
1
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT MIN( + + 1 ) * + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-6506
SELECT MIN ( + + 1 ) * + - 12
----
-12

query I rowsort
SELECT - 16 + + - 39 col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT COUNT( ALL + 57 ) AS col0, 62
----
1
62

skipif mysql # not compatible
query II rowsort label-6508
SELECT COUNT ( ALL + 57 ) AS col0, 62
----
1
62

query I rowsort
SELECT 73 * + + 37
----
2701

query I rowsort
SELECT ALL - 42 + + + 14 * - 79
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL - COALESCE ( + 60, - 78, + NULLIF ( COUNT( * ), + - 80 ), + - 42 * 60 * - 73 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL - COALESCE ( + 60, - 78, + NULLIF ( COUNT ( * ), + - 80 ), + - 42 * 60 * - 73 ) col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT 73 * - 33 AS col1, - 34 * + - SUM( COALESCE ( - 63, - 98 ) ) + - 27
----
-2409
-2169

skipif mysql # not compatible
query II rowsort label-6512
SELECT 73 * - 33 AS col1, - 34 * + - SUM ( COALESCE ( - 63, - 98 ) ) + - 27
----
-2409
-2169

query I rowsort
SELECT NULLIF ( + 6, + 36 + ( + 79 ) ) + - 57 col0
----
-51

query II rowsort
SELECT 18 + 54 AS col1, - 10
----
72
-10

query I rowsort
SELECT 89 * - 1 AS col0
----
-89

query I rowsort
SELECT 24 * - CASE COALESCE ( + 1, 92, + + 19 ) WHEN 27 * - ( 48 ) THEN + 6 WHEN - 57 THEN 20 * - 94 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT ALL 17 DIV + + 83
----
0

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL 17 / + + 83
----
0

query I rowsort
SELECT - ( - - 68 ) * + COALESCE ( + 65, - CASE + 1 WHEN + + 57 THEN NULL ELSE - 11 END ) + + - ( + 17 ) + 26 AS col1
----
-4411

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT ( COUNT( DISTINCT 83 ) ) - - 98 * + NULLIF ( - 98, ( 55 ) - - 39 ) AS col1
----
-9603

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT ( COUNT ( DISTINCT 83 ) ) - - 98 * + NULLIF ( - 98, ( 55 ) - - 39 ) AS col1
----
-9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6520
SELECT ALL CAST( NULL AS DECIMAL ) * + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL CAST ( NULL AS REAL ) * + 65 AS col1
----
NULL

query I rowsort
SELECT ALL 31 * - 84 * + 50
----
-130200

onlyif mysql # aggregate syntax: 
query II rowsort label-6522
SELECT + 1 * + 29, + NULLIF ( 67, + - COUNT( + 51 ) ) AS col1
----
29
67

skipif mysql # not compatible
query II rowsort label-6522
SELECT + 1 * + 29, + NULLIF ( 67, + - COUNT ( + 51 ) ) AS col1
----
29
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT + COUNT( * ) * + 54 + - + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-6523
SELECT + COUNT ( * ) * + 54 + - + COUNT ( * )
----
53

query I rowsort
SELECT - - ( + 33 ) + + + 76 + 36
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL - MAX( - 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL - MAX ( - 46 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL - - COUNT( * ) * + 12 + + - ( 73 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - - COUNT ( * ) * + 12 + + - ( 73 ) AS col1
----
-61

query I rowsort
SELECT ALL + 26 + - 46
----
-20

query I rowsort
SELECT DISTINCT - 67 + - + 21 * + - 23 AS col2
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL COUNT( ALL - 96 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL COUNT ( ALL - 96 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT - 0 DIV - 75 - 85
----
-85

skipif mysql # not compatible
query I rowsort label-6530
SELECT - 0 / - 75 - 85
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT + - MAX( DISTINCT - - NULLIF ( - + 75, 21 ) ) - SUM( DISTINCT + - 47 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-6531
SELECT + - MAX ( DISTINCT - - NULLIF ( - + 75, 21 ) ) - SUM ( DISTINCT + - 47 ) AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT - + COUNT( * ) * + - 3 * - + 70 AS col2
----
-210

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - + COUNT ( * ) * + - 3 * - + 70 AS col2
----
-210

query I rowsort
SELECT + + 79 - - + 23 AS col0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT ALL - 47 + 85 DIV + 10 - + 59 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL - 47 + 85 / + 10 - + 59 AS col0
----
-98

query I rowsort
SELECT DISTINCT + CASE - + 90 WHEN - + 17 + + ( - + 8 ) THEN NULL ELSE 28 END AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6536
SELECT 83 DIV - COUNT( * ) + - ( + 50 )
----
-133

skipif mysql # not compatible
query I rowsort label-6536
SELECT 83 / - COUNT ( * ) + - ( + 50 )
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT + COALESCE ( - 83, - COUNT( * ) + - 43 )
----
-83

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT + COALESCE ( - 83, - COUNT ( * ) + - 43 )
----
-83

query I rowsort
SELECT ( + - 10 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6539
SELECT CAST( NULL AS SIGNED ) * ( - 84 ) + + 80 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT CAST ( NULL AS INTEGER ) * ( - 84 ) + + 80 + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 88 * - 63 * + 74
----
-410256

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT DISTINCT + NULLIF ( 33, COUNT( * ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT + NULLIF ( 33, COUNT ( * ) ) AS col0
----
33

query I rowsort
SELECT DISTINCT - 93 * - 9 col2
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT - 52 * COUNT( DISTINCT 24 )
----
-52

skipif mysql # not compatible
query I rowsort label-6543
SELECT - 52 * COUNT ( DISTINCT 24 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT + COUNT( * ) * + NULLIF ( - 10, + MIN( 23 ) + - 26 / - COUNT( * ) + - - 76 ) - + COUNT( * ) + + ( ( 33 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT + COUNT ( * ) * + NULLIF ( - 10, + MIN ( 23 ) + - 26 / - COUNT ( * ) + - - 76 ) - + COUNT ( * ) + + ( ( 33 ) ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - MIN( DISTINCT - 30 ) * - + COALESCE ( - - COUNT( * ), + 60 ) + ( ( 1 ) ) * - ( + 6 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6545
SELECT - MIN ( DISTINCT - 30 ) * - + COALESCE ( - - COUNT ( * ), + 60 ) + ( ( 1 ) ) * - ( + 6 ) AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6546
SELECT - 85 * + + CASE CASE 75 WHEN + 80 * + 72 + 65 + - 65 + - 31 * + 4 / + 39 * + 22 + + + MAX( DISTINCT + CAST( 64 AS SIGNED ) ) * + 37 THEN - COUNT( * ) * + ( - 73 ) * - CAST( NULL AS DECIMAL ) END WHEN + - COUNT( * ) - 46 / + 98 / + ( + 61 ) * - COUNT( * ) + 15 / + 4 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT - 85 * + + CASE CASE 75 WHEN + 80 * + 72 + 65 + - 65 + - 31 * + 4 / + 39 * + 22 + + + MAX ( DISTINCT + CAST ( 64 AS INTEGER ) ) * + 37 THEN - COUNT ( * ) * + ( - 73 ) * - CAST ( NULL AS REAL ) END WHEN + - COUNT ( * ) - 46 / + 98 / + ( + 61 ) * - COUNT ( * ) + 15 / + 4 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6547
SELECT + - SUM( DISTINCT - CAST( - 64 AS SIGNED ) ) * 23 AS col0
----
-1472

skipif mysql # not compatible
query I rowsort label-6547
SELECT + - SUM ( DISTINCT - CAST ( - 64 AS INTEGER ) ) * 23 AS col0
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT - - ( - - 68 ) * + SUM( DISTINCT + - 48 ) - - + 66 * + 51 * - COUNT( * ) AS col1
----
-6630

skipif mysql # not compatible
query I rowsort label-6548
SELECT - - ( - - 68 ) * + SUM ( DISTINCT + - 48 ) - - + 66 * + 51 * - COUNT ( * ) AS col1
----
-6630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6549
SELECT + + 96 * + + ( + 83 ) * + + COUNT( * ) + COUNT( * ) + 45 + CAST( - 38 AS SIGNED )
----
7976

skipif mysql # not compatible
query I rowsort label-6549
SELECT + + 96 * + + ( + 83 ) * + + COUNT ( * ) + COUNT ( * ) + 45 + CAST ( - 38 AS INTEGER )
----
7976

query I rowsort
SELECT ( - 53 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-6551
SELECT ALL + 59 AS col1, + 33 * + + COALESCE ( 26, + SUM( ALL - 58 ) ) AS col1
----
59
858

skipif mysql # not compatible
query II rowsort label-6551
SELECT ALL + 59 AS col1, + 33 * + + COALESCE ( 26, + SUM ( ALL - 58 ) ) AS col1
----
59
858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6552
SELECT + CAST( NULL AS SIGNED ) * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT + CAST ( NULL AS INTEGER ) * - 7
----
NULL

query I rowsort
SELECT DISTINCT - 8 + + + 1 AS col1
----
-7

query I rowsort
SELECT DISTINCT - NULLIF ( 80, - 95 )
----
-80

query II rowsort
SELECT + - 69 * + + 59 * - 93 AS col0, - 77
----
378603
-77

query I rowsort
SELECT + COALESCE ( - 24, + 35 + 39 + + 10 ) col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT + - COUNT( * ) + + + 49
----
48

skipif mysql # not compatible
query I rowsort label-6557
SELECT + - COUNT ( * ) + + + 49
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6558
SELECT DISTINCT COALESCE ( CASE - 16 WHEN + MIN( ALL + - 15 ) - + 29 THEN - 96 WHEN - + 12 * + + 29 THEN NULL WHEN - 47 DIV + - 56 THEN NULL ELSE SUM( - 11 ) END, 10, + COUNT( * ) ) + - - ( - ( 29 ) ) - + COUNT( * ) + COUNT( * ) DIV + - 12 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT COALESCE ( CASE - 16 WHEN + MIN ( ALL + - 15 ) - + 29 THEN - 96 WHEN - + 12 * + + 29 THEN NULL WHEN - 47 / + - 56 THEN NULL ELSE SUM ( - 11 ) END, 10, + COUNT ( * ) ) + - - ( - ( 29 ) ) - + COUNT ( * ) + COUNT ( * ) / + - 12 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6559
SELECT ALL 42 DIV + 52 * + ( - - 30 ) * 84 DIV COUNT( * ) + - - 7
----
7

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL 42 / + 52 * + ( - - 30 ) * 84 / COUNT ( * ) + - - 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT + COUNT( * ) + + 18 + - 73 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6560
SELECT + COUNT ( * ) + + 18 + - 73 AS col1
----
-54

query I rowsort
SELECT ALL 54 + + 53 AS col2
----
107

query I rowsort
SELECT - 35 * + 10
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT DISTINCT COUNT( * ) * - ( + + 77 ) * - 78 + + 25
----
6031

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT COUNT ( * ) * - ( + + 77 ) * - 78 + + 25
----
6031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6564
SELECT + ( - + 69 ) DIV + COUNT( * ) + - CAST( + 89 AS SIGNED ) * + - 60 AS col1
----
5271

skipif mysql # not compatible
query I rowsort label-6564
SELECT + ( - + 69 ) / + COUNT ( * ) + - CAST ( + 89 AS INTEGER ) * + - 60 AS col1
----
5271

query I rowsort
SELECT + 0 * 15 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT DISTINCT COUNT( * ) * - + 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT COUNT ( * ) * - + 9 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT DISTINCT + CASE - 48 WHEN + 76 * + 64 * - 33 - - + 7 THEN + NULLIF ( COUNT( * ), + 34 ) WHEN + COUNT( * ) + 27 + + - 24 + - ( + - 5 ) - 67 * NULLIF ( 23, + 81 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT + CASE - 48 WHEN + 76 * + 64 * - 33 - - + 7 THEN + NULLIF ( COUNT ( * ), + 34 ) WHEN + COUNT ( * ) + 27 + + - 24 + - ( + - 5 ) - 67 * NULLIF ( 23, + 81 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL + MIN( ALL 6 )
----
6

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + MIN ( ALL 6 )
----
6

query I rowsort
SELECT DISTINCT 99 * + + 84
----
8316

onlyif mysql # aggregate syntax: 
query II rowsort label-6570
SELECT ALL + MAX( ALL - 1 ) AS col0, + 36 AS col2
----
-1
36

skipif mysql # not compatible
query II rowsort label-6570
SELECT ALL + MAX ( ALL - 1 ) AS col0, + 36 AS col2
----
-1
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT + 40 * - CAST( 94 AS SIGNED ) col0
----
-3760

skipif mysql # not compatible
query I rowsort label-6571
SELECT + 40 * - CAST ( 94 AS INTEGER ) col0
----
-3760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6572
SELECT + 53 * - CAST( NULL AS SIGNED ) * CASE - - 33 WHEN + 74 THEN NULL WHEN + 29 THEN NULL WHEN - - 94 THEN - 68 ELSE - 96 * - 61 + ( - 5 ) + + - NULLIF ( 33, - 62 ) + - 28 * - + 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT + 53 * - CAST ( NULL AS INTEGER ) * CASE - - 33 WHEN + 74 THEN NULL WHEN + 29 THEN NULL WHEN - - 94 THEN - 68 ELSE - 96 * - 61 + ( - 5 ) + + - NULLIF ( 33, - 62 ) + - 28 * - + 67 END AS col2
----
NULL

query I rowsort
SELECT ( - - 92 ) * - 22 + - 45 AS col2
----
-2069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6574
SELECT DISTINCT + - ( MIN( ALL + CAST( NULL AS SIGNED ) ) ) + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + - ( MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) + - 31
----
NULL

query II rowsort
SELECT ALL - + 25 + + - 69 col1, + 79 AS col2
----
-94
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT - 19 DIV - + 52 + + + 29 * ( - 43 ) AS col1
----
-1247

skipif mysql # not compatible
query I rowsort label-6576
SELECT - 19 / - + 52 + + + 29 * ( - 43 ) AS col1
----
-1247

query I rowsort
SELECT ALL + 59 + + 9 AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT ALL - - 75 + + 36 / - - CAST( NULL AS SIGNED ) * + 87 + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - - 75 + + 36 / - - CAST ( NULL AS INTEGER ) * + 87 + + 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6579
SELECT ALL - ( + + CAST( + - 23 AS SIGNED ) ) + 54 AS col0, + ( - 84 ) col1
----
77
-84

skipif mysql # not compatible
query II rowsort label-6579
SELECT ALL - ( + + CAST ( + - 23 AS INTEGER ) ) + 54 AS col0, + ( - 84 ) col1
----
77
-84

query I rowsort
SELECT 38 + + 79 AS col2
----
117

query I rowsort
SELECT DISTINCT - 67 + - 86
----
-153

query I rowsort
SELECT ALL + 9 * - - 69 + 94 AS col0
----
715

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT + 86 DIV - ( - + 96 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6583
SELECT + 86 / - ( - + 96 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL - COUNT( * ) + - 99 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - COUNT ( * ) + - 99 AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6585
SELECT - + NULLIF ( - CASE + 2 WHEN - 43 THEN ( + 46 ) DIV - + 50 * + SUM( + 80 ) DIV - CAST( + - 58 AS SIGNED ) WHEN 63 * + + COUNT( * ) - - + NULLIF ( - + COUNT( * ), + 73 * - + 55 * + - SUM( - 70 ) + + 1 * 9 ) THEN NULL ELSE 71 + + 3 END, 56 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6585
SELECT - + NULLIF ( - CASE + 2 WHEN - 43 THEN ( + 46 ) / - + 50 * + SUM ( + 80 ) / - CAST ( + - 58 AS INTEGER ) WHEN 63 * + + COUNT ( * ) - - + NULLIF ( - + COUNT ( * ), + 73 * - + 55 * + - SUM ( - 70 ) + + 1 * 9 ) THEN NULL ELSE 71 + + 3 END, 56 ) AS col0
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-6586
SELECT DISTINCT 61 DIV + 51, 89 AS col1
----
1
89

skipif mysql # not compatible
query II rowsort label-6586
SELECT DISTINCT 61 / + 51, 89 AS col1
----
1
89

query I rowsort
SELECT - 35 * + 97 col1
----
-3395

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL - + 57 + ( - + COALESCE ( + - 68, + MIN( 73 ), + 80 ) )
----
11

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - + 57 + ( - + COALESCE ( + - 68, + MIN ( 73 ), + 80 ) )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT DISTINCT - 24 - - CASE - CAST( - 63 AS SIGNED ) WHEN + 23 THEN 69 * - - 26 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT - 24 - - CASE - CAST ( - 63 AS INTEGER ) WHEN + 23 THEN 69 * - - 26 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT ALL COUNT( * ) * + - 33
----
-33

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL COUNT ( * ) * + - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT MIN( + 7 ) * + 15
----
105

skipif mysql # not compatible
query I rowsort label-6591
SELECT MIN ( + 7 ) * + 15
----
105

query I rowsort
SELECT ALL 48 * + 50 AS col1
----
2400

onlyif mysql # aggregate syntax: 
query II rowsort label-6593
SELECT NULLIF ( 2, + 5 ) * - - SUM( DISTINCT 84 ), + 32 AS col0
----
168
32

skipif mysql # not compatible
query II rowsort label-6593
SELECT NULLIF ( 2, + 5 ) * - - SUM ( DISTINCT 84 ), + 32 AS col0
----
168
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6594
SELECT COALESCE ( + COUNT( * ), - 52 DIV + 28 ) * - COUNT( * ) * - - 88 AS col1, - 63 + + ( + 41 )
----
-88
-22

skipif mysql # not compatible
query II rowsort label-6594
SELECT COALESCE ( + COUNT ( * ), - 52 / + 28 ) * - COUNT ( * ) * - - 88 AS col1, - 63 + + ( + 41 )
----
-88
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL + 21 * - MAX( 90 )
----
-1890

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + 21 * - MAX ( 90 )
----
-1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT CAST( NULL AS SIGNED ) - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT CAST ( NULL AS INTEGER ) - 27 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT ALL NULLIF ( + - 7, - 75 ) DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL NULLIF ( + - 7, - 75 ) / - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6598
SELECT 21 * + 10 - - COUNT( DISTINCT 35 ) * 88 AS col0, - 90 * + COUNT( * ) AS col2
----
298
-90

skipif mysql # not compatible
query II rowsort label-6598
SELECT 21 * + 10 - - COUNT ( DISTINCT 35 ) * 88 AS col0, - 90 * + COUNT ( * ) AS col2
----
298
-90

query I rowsort
SELECT 14 * - 20 col2
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT DISTINCT COUNT( * ) + 7 + CASE + 36 WHEN 33 + 77 THEN NULL ELSE 68 END AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT COUNT ( * ) + 7 + CASE + 36 WHEN 33 + 77 THEN NULL ELSE 68 END AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6601
SELECT 59 DIV - + 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6601
SELECT 59 / - + 52 AS col2
----
-1

query I rowsort
SELECT ALL - 74 * + 93
----
-6882

onlyif mysql # aggregate syntax: 
query II rowsort label-6603
SELECT DISTINCT + 63 + + - 46 / + 12 + - 91 + 75 * - + 43 * - 68 * + COUNT( DISTINCT + + 30 ) * + COALESCE ( 21, - + 9 * 58, + 80 ) + + NULLIF ( - + COUNT( 68 ), - + COUNT( * ) ) AS col1, 97 AS col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-6603
SELECT DISTINCT + 63 + + - 46 / + 12 + - 91 + 75 * - + 43 * - 68 * + COUNT ( DISTINCT + + 30 ) * + COALESCE ( 21, - + 9 * 58, + 80 ) + + NULLIF ( - + COUNT ( 68 ), - + COUNT ( * ) ) AS col1, 97 AS col2
----
NULL
97

query I rowsort
SELECT + - NULLIF ( ( + + 60 ), - - 10 ) AS col2
----
-60

query I rowsort
SELECT DISTINCT - 82 + - + 29 AS col1
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6606
SELECT + NULLIF ( 13, - COALESCE ( - COALESCE ( + CASE + - MAX( DISTINCT - - 85 ) WHEN - 56 * + - 95 THEN + 87 * 89 + 43 WHEN - 41 THEN NULL END, + 55 + 33 + - - COUNT( * ) + + + 58 * + CAST( + 41 AS SIGNED ) ), - 37, 83 * 55 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6606
SELECT + NULLIF ( 13, - COALESCE ( - COALESCE ( + CASE + - MAX ( DISTINCT - - 85 ) WHEN - 56 * + - 95 THEN + 87 * 89 + 43 WHEN - 41 THEN NULL END, + 55 + 33 + - - COUNT ( * ) + + + 58 * + CAST ( + 41 AS INTEGER ) ), - 37, 83 * 55 ) ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6607
SELECT + 64 AS col0, CASE + NULLIF ( - 76, + - CAST( NULL AS SIGNED ) * 26 + + ( - + 42 ) ) WHEN CASE + 43 WHEN - - CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) END - MIN( ALL 73 ) * COUNT( * ) THEN NULL ELSE - CASE 26 WHEN COUNT( * ) * - 4 THEN - COALESCE ( - 77, + 50 ) + + 86 - + 57 * 1 ELSE NULL END - - + 48 / + + 19 END + - 67 * + NULLIF ( + 46, 16 ) - - MAX( DISTINCT + 26 ) AS col0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-6607
SELECT + 64 AS col0, CASE + NULLIF ( - 76, + - CAST ( NULL AS INTEGER ) * 26 + + ( - + 42 ) ) WHEN CASE + 43 WHEN - - CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) END - MIN ( ALL 73 ) * COUNT ( * ) THEN NULL ELSE - CASE 26 WHEN COUNT ( * ) * - 4 THEN - COALESCE ( - 77, + 50 ) + + 86 - + 57 * 1 ELSE NULL END - - + 48 / + + 19 END + - 67 * + NULLIF ( + 46, 16 ) - - MAX ( DISTINCT + 26 ) AS col0
----
64
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6608
SELECT + + 23 * + CASE CAST( NULL AS SIGNED ) WHEN 9 THEN 95 * + MAX( ALL + 88 ) + - 36 END - - NULLIF ( + - AVG ( DISTINCT - 48 ), - - NULLIF ( + 28, + 16 ) * COUNT( * ) * - 8 - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT + + 23 * + CASE CAST ( NULL AS INTEGER ) WHEN 9 THEN 95 * + MAX ( ALL + 88 ) + - 36 END - - NULLIF ( + - AVG ( DISTINCT - 48 ), - - NULLIF ( + 28, + 16 ) * COUNT ( * ) * - 8 - 65 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6609
SELECT ALL + - COALESCE ( + 38, - 40 + CAST( NULL AS SIGNED ), + + 30, 41 ) * + - 90 * + - 10
----
-34200

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + - COALESCE ( + 38, - 40 + CAST ( NULL AS INTEGER ), + + 30, 41 ) * + - 90 * + - 10
----
-34200

query I rowsort
SELECT ALL + 86 - - 60 AS col1
----
146

query I rowsort
SELECT ALL - - 22 - - 17 + + ( - + 56 )
----
-17

query I rowsort
SELECT ( + 16 ) * + + 49
----
784

query I rowsort
SELECT ALL + 37 * 11
----
407

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6614
SELECT + 26 * MAX( DISTINCT + + 76 ) - - CASE - COUNT( * ) WHEN - COUNT( ALL ( - - 54 ) ) THEN + 95 END DIV + 79
----
1977

skipif mysql # not compatible
query I rowsort label-6614
SELECT + 26 * MAX ( DISTINCT + + 76 ) - - CASE - COUNT ( * ) WHEN - COUNT ( ALL ( - - 54 ) ) THEN + 95 END / + 79
----
1977

query I rowsort
SELECT 73 + + - 64
----
9

query I rowsort
SELECT 8 - 65 + 27 AS col2
----
-30

query I rowsort
SELECT 82 * - + 1 AS col1
----
-82

query I rowsort
SELECT 89 + - 72 + 40
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT 24 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6619
SELECT 24 / + 81 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6620
SELECT ALL 53 DIV 5
----
10

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL 53 / 5
----
10

query I rowsort
SELECT 8 + - 21 * - - 36 AS col2
----
-748

onlyif mysql # aggregate syntax: 
query II rowsort label-6622
SELECT ALL COUNT( * ), ( 91 ) AS col1
----
1
91

skipif mysql # not compatible
query II rowsort label-6622
SELECT ALL COUNT ( * ), ( 91 ) AS col1
----
1
91

query I rowsort
SELECT ALL ( 17 ) * - 42 AS col2
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL CASE + 69 WHEN - + 35 THEN NULL WHEN - 12 THEN - - COUNT( * ) - - 26 / 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL CASE + 69 WHEN - + 35 THEN NULL WHEN - 12 THEN - - COUNT ( * ) - - 26 / 40 END AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 99, - 15 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT + COUNT( * ) + 27 + 45 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6626
SELECT + COUNT ( * ) + 27 + 45 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * NULLIF ( + 5, + - 94 * + 16 ) + 55 + 58 / + SUM( ALL + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * NULLIF ( + 5, + - 94 * + 16 ) + 55 + 58 / + SUM ( ALL + 59 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6628
SELECT + COUNT( * ) * - 27 AS col2, + 37 * + CAST( NULL AS SIGNED ) AS col0
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-6628
SELECT + COUNT ( * ) * - 27 AS col2, + 37 * + CAST ( NULL AS INTEGER ) AS col0
----
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT + 81 + + - COUNT( * ) col0
----
80

skipif mysql # not compatible
query I rowsort label-6629
SELECT + 81 + + - COUNT ( * ) col0
----
80

query I rowsort
SELECT ALL 87 + NULLIF ( - 86, + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT + COUNT( * ) DIV + 88 + + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6631
SELECT + COUNT ( * ) / + 88 + + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT DISTINCT - 58 * - 68 + - 81 + - - 79 + + - 49 + - CAST( NULL AS SIGNED ) * - 69 / 3 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - 58 * - 68 + - 81 + - - 79 + + - 49 + - CAST ( NULL AS INTEGER ) * - 69 / 3 + - 76
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6633
SELECT - ( + + 30 ) DIV 1 + + MIN( + - 70 ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-6633
SELECT - ( + + 30 ) / 1 + + MIN ( + - 70 ) AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT + COUNT( * ) * - COALESCE ( 82, COUNT( + 41 ) ) + 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( 82, COUNT ( + 41 ) ) + 82 col2
----
0

query II rowsort
SELECT DISTINCT + 27 AS col1, - 70
----
27
-70

query I rowsort
SELECT ALL 87 * 70 * + 14 + + 91 AS col1
----
85351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT + CASE + - 33 WHEN + NULLIF ( 77, - ( - + 72 ) * - + CAST( - 95 AS SIGNED ) + - CAST( NULL AS SIGNED ) ) THEN - 27 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT + CASE + - 33 WHEN + NULLIF ( 77, - ( - + 72 ) * - + CAST ( - 95 AS INTEGER ) + - CAST ( NULL AS INTEGER ) ) THEN - 27 END AS col2
----
NULL

query I rowsort
SELECT - - 78 - 93 AS col2
----
-15

query II rowsort
SELECT 24 AS col1, - 30
----
24
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT + 66 * + 38 + + - 22 + + COUNT( * ) AS col2
----
2487

skipif mysql # not compatible
query I rowsort label-6640
SELECT + 66 * + 38 + + - 22 + + COUNT ( * ) AS col2
----
2487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT DISTINCT + COUNT( * ) * + 48 DIV 95 + - + 88 + + + 79
----
-9

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT + COUNT ( * ) * + 48 / 95 + - + 88 + + + 79
----
-9

query II rowsort
SELECT - 32 AS col2, 83 * 97 AS col1
----
-32
8051

query I rowsort
SELECT DISTINCT + 60 * - 38 * - + 78
----
177840

query I rowsort
SELECT - 86 * + 51 + - 83
----
-4469

query I rowsort
SELECT ALL + ( - 82 ) * 98
----
-8036

query I rowsort
SELECT DISTINCT 82 * + 32 col1
----
2624

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL + SUM( ALL + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL + SUM ( ALL + 27 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6648
SELECT + CAST( - 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-6648
SELECT + CAST ( - 50 AS INTEGER )
----
-50

query I rowsort
SELECT - 95 + + 20
----
-75

query I rowsort
SELECT DISTINCT - 39 * - 15 * + 15 col2
----
8775

onlyif mysql # DIV for integer division: 
query II rowsort label-6651
SELECT DISTINCT 24 DIV + 58 AS col0, + ( - + 75 )
----
0
-75

skipif mysql # not compatible
query II rowsort label-6651
SELECT DISTINCT 24 / + 58 AS col0, + ( - + 75 )
----
0
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT DISTINCT MIN( ALL + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT MIN ( ALL + 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT ALL - COUNT( * ) * - CAST( + + COALESCE ( - 27, 41 ) AS SIGNED ) * 58 AS col2
----
-1566

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL - COUNT ( * ) * - CAST ( + + COALESCE ( - 27, 41 ) AS INTEGER ) * 58 AS col2
----
-1566

query I rowsort
SELECT DISTINCT ( - 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL + 94 + - - MAX( ALL + 10 )
----
104

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL + 94 + - - MAX ( ALL + 10 )
----
104

query I rowsort
SELECT + ( 55 ) + + 66 * + 98 AS col2
----
6523

onlyif mysql # DIV for integer division: 
query II rowsort label-6657
SELECT - 5 * - 3 col1, 22 + 65 + 74 + 73 - - + 11 DIV - + 20
----
15
234

skipif mysql # not compatible
query II rowsort label-6657
SELECT - 5 * - 3 col1, 22 + 65 + 74 + 73 - - + 11 / - + 20
----
15
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6658
SELECT DISTINCT ( 16 ), 79 + + 45 + + COUNT( * ) + + + CASE - 17 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 15 END + + CASE 71 WHEN - ( - + 57 ) THEN + 26 WHEN - + 73 THEN SUM( ALL + - 92 ) / + - 94 + + COUNT( * ) + COUNT( * ) END + 27 AS col0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-6658
SELECT DISTINCT ( 16 ), 79 + + 45 + + COUNT ( * ) + + + CASE - 17 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 15 END + + CASE 71 WHEN - ( - + 57 ) THEN + 26 WHEN - + 73 THEN SUM ( ALL + - 92 ) / + - 94 + + COUNT ( * ) + COUNT ( * ) END + 27 AS col0
----
16
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6659
SELECT - 76 * MAX( - - CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT - 76 * MAX ( - - CAST ( NULL AS REAL ) ) col0
----
NULL

query II rowsort
SELECT - 93 - - - 87 AS col0, + 84
----
-180
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT - MIN( DISTINCT CASE + NULLIF ( 53, + 21 * - 64 ) WHEN + + 30 THEN - - 30 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT - MIN ( DISTINCT CASE + NULLIF ( 53, + 21 * - 64 ) WHEN + + 30 THEN - - 30 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6662
SELECT ALL ( - CAST( NULL AS SIGNED ) ), CAST( NULL AS SIGNED ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6662
SELECT ALL ( - CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) col1
----
NULL
NULL

query II rowsort
SELECT DISTINCT + 76 + 41, + 5 AS col2
----
117
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL COALESCE ( COALESCE ( + COUNT( * ), - 19 ), - 69 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL COALESCE ( COALESCE ( + COUNT ( * ), - 19 ), - 69 ) AS col0
----
1

query I rowsort
SELECT ALL + 31 + + - 27 + 29 * - 46 * - 89 AS col0
----
118730

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - COUNT( * ) * + - 36 * - 38 * + 97
----
-132696

skipif mysql # not compatible
query I rowsort label-6666
SELECT - COUNT ( * ) * + - 36 * - 38 * + 97
----
-132696

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + COUNT( DISTINCT 41 ) + ( - 23 )
----
-22

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + COUNT ( DISTINCT 41 ) + ( - 23 )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT DISTINCT - 4 DIV + 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - 4 / + 32 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6669
SELECT ALL - - 60 DIV MAX( DISTINCT + + 55 ) + 88 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - - 60 / MAX ( DISTINCT + + 55 ) + 88 AS col0
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6670
SELECT - 60 / - 31 + + 0 + + 3 * - CAST( NULL AS DECIMAL ) + + 81 * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6670
SELECT - 60 / - 31 + + 0 + + 3 * - CAST ( NULL AS REAL ) + + 81 * - 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6671
SELECT + + 8 * - ( - 90 ) * + CASE + + 98 WHEN CAST( + 27 AS DECIMAL ) * - + CAST( + SUM( ALL - - ( - 41 ) ) AS SIGNED ) THEN + COUNT( * ) - + 98 * - MIN( DISTINCT + 80 ) WHEN - 72 / + COUNT( * ) * - + SUM( ALL + 67 ) + - 95 + 54 * 44 / 28 + + + 24 * - 76 THEN NULL END + - + 8 + + COALESCE ( + - COUNT( * ), + - 97 ) - + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT + + 8 * - ( - 90 ) * + CASE + + 98 WHEN CAST ( + 27 AS REAL ) * - + CAST ( + SUM ( ALL - - ( - 41 ) ) AS INTEGER ) THEN + COUNT ( * ) - + 98 * - MIN ( DISTINCT + 80 ) WHEN - 72 / + COUNT ( * ) * - + SUM ( ALL + 67 ) + - 95 + 54 * 44 / 28 + + + 24 * - 76 THEN NULL END + - + 8 + + COALESCE ( + - COUNT ( * ), + - 97 ) - + 60 AS col2
----
NULL

query I rowsort
SELECT - 43 + + 10
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6673
SELECT + 64 * 27 - - 11 + + 69 DIV COUNT( * ) AS col2
----
1808

skipif mysql # not compatible
query I rowsort label-6673
SELECT + 64 * 27 - - 11 + + 69 / COUNT ( * ) AS col2
----
1808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6674
SELECT ALL 55 DIV COUNT( + 33 ) + 56 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL 55 / COUNT ( + 33 ) + 56 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT + - MAX( - - 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6675
SELECT + - MAX ( - - 7 ) AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6676
SELECT DISTINCT - 50 DIV + - MIN( DISTINCT + 77 ) * + 60 - + 70 AS col0, CAST( + 2 AS SIGNED ) * - 51 * 91
----
-70
-9282

skipif mysql # not compatible
query II rowsort label-6676
SELECT DISTINCT - 50 / + - MIN ( DISTINCT + 77 ) * + 60 - + 70 AS col0, CAST ( + 2 AS INTEGER ) * - 51 * 91
----
-70
-9282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6677
SELECT COUNT( ALL 90 ) DIV + ( - 96 ) + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-6677
SELECT COUNT ( ALL 90 ) / + ( - 96 ) + - 62
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT ALL + ( - 59 ) DIV 88 - - - 46 * + - 6 AS col0
----
276

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + ( - 59 ) / 88 - - - 46 * + - 6 AS col0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL - 42 * - NULLIF ( + ( - + 60 ), - COUNT( * ) ) - - 68 + + AVG ( DISTINCT - + 26 ) + + 29 * - 29 * - 82 * + 2 / + CASE 80 WHEN - 44 THEN COUNT( * ) * COUNT( - 67 ) END * + + 22 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL - 42 * - NULLIF ( + ( - + 60 ), - COUNT ( * ) ) - - 68 + + AVG ( DISTINCT - + 26 ) + + 29 * - 29 * - 82 * + 2 / + CASE 80 WHEN - 44 THEN COUNT ( * ) * COUNT ( - 67 ) END * + + 22 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT + COUNT( * ) DIV 75 + 96
----
96

skipif mysql # not compatible
query I rowsort label-6680
SELECT + COUNT ( * ) / 75 + 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT - + COUNT( * ) * + - 19 + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-6681
SELECT - + COUNT ( * ) * + - 19 + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6682
SELECT + + COUNT( - 33 ) DIV + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6682
SELECT + + COUNT ( - 33 ) / + 65 AS col1
----
0

query I rowsort
SELECT ALL - 54 * - + 9 + + 18
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6684
SELECT + COUNT( - CAST( NULL AS SIGNED ) ) + - 35 AS col1, - 30 + 22 * + 20 + - ( - + 31 ) col1
----
-35
441

skipif mysql # not compatible
query II rowsort label-6684
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) + - 35 AS col1, - 30 + 22 * + 20 + - ( - + 31 ) col1
----
-35
441

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT ALL 89 DIV - - 80 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL 89 / - - 80 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6686
SELECT ALL + 37, - 39 - + - 31 - - + CAST( + CAST( - + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS SIGNED ) AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-6686
SELECT ALL + 37, - 39 - + - 31 - - + CAST ( + CAST ( - + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS INTEGER ) AS col1
----
37
NULL

query I rowsort
SELECT + 59 + - 29
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6688
SELECT DISTINCT 83 * + - 92 * - SUM( + + 60 ) AS col0, + 87 + - 99 AS col2
----
458160
-12

skipif mysql # not compatible
query II rowsort label-6688
SELECT DISTINCT 83 * + - 92 * - SUM ( + + 60 ) AS col0, + 87 + - 99 AS col2
----
458160
-12

query II rowsort
SELECT DISTINCT 57 col2, 86 * + 69 + + - ( + 60 )
----
57
5874

onlyif mysql # aggregate syntax: 
query II rowsort label-6690
SELECT 98 + 35 - + 55 AS col2, + COUNT( * ) AS col0
----
78
1

skipif mysql # not compatible
query II rowsort label-6690
SELECT 98 + 35 - + 55 AS col2, + COUNT ( * ) AS col0
----
78
1

query I rowsort
SELECT 52 * + - 85 AS col2
----
-4420

query II rowsort
SELECT - 73 col2, + 42 col1
----
-73
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL + ( - + SUM( DISTINCT - + 31 ) ) + + - COUNT( * ) * + 6
----
25

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL + ( - + SUM ( DISTINCT - + 31 ) ) + + - COUNT ( * ) * + 6
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6694
SELECT ( - 26 ) + - 96 + 47 - + MAX( ALL NULLIF ( - CAST( + 40 AS SIGNED ), - CAST( NULL AS SIGNED ) ) ) / - + CASE - 6 WHEN - + 51 THEN NULL WHEN + MIN( ALL + + 55 ) THEN + 83 * 48 / - 11 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT ( - 26 ) + - 96 + 47 - + MAX ( ALL NULLIF ( - CAST ( + 40 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ) / - + CASE - 6 WHEN - + 51 THEN NULL WHEN + MIN ( ALL + + 55 ) THEN + 83 * 48 / - 11 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT + 45 + + + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT + 45 + + + COUNT ( * ) AS col2
----
46

query I rowsort
SELECT DISTINCT - 72 * 68
----
-4896

query I rowsort
SELECT ALL - 0 * ( 16 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6698
SELECT COUNT( * ) DIV 70 * MAX( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-6698
SELECT COUNT ( * ) / 70 * MAX ( - 86 )
----
0

query I rowsort
SELECT 68 + + + 54
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL - + 3 * + - COALESCE ( + + COUNT( + + 53 ), - + 5 ) * + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL - + 3 * + - COALESCE ( + + COUNT ( + + 53 ), - + 5 ) * + COUNT ( * )
----
3

query II rowsort
SELECT 79 AS col0, 96 * + 67
----
79
6432

query I rowsort
SELECT + 97 + 18
----
115

query I rowsort
SELECT ALL + 51 - - - 61 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-6704
SELECT - NULLIF ( 79, + COUNT( * ) ) col2, - 12 * 79 col2
----
-79
-948

skipif mysql # not compatible
query II rowsort label-6704
SELECT - NULLIF ( 79, + COUNT ( * ) ) col2, - 12 * 79 col2
----
-79
-948

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT - COALESCE ( + + 98, - COUNT( * ) ) * + COUNT( * ) * + 69 AS col0
----
-6762

skipif mysql # not compatible
query I rowsort label-6705
SELECT - COALESCE ( + + 98, - COUNT ( * ) ) * + COUNT ( * ) * + 69 AS col0
----
-6762

query II rowsort
SELECT DISTINCT - - 28, + 89 AS col2
----
28
89

query I rowsort
SELECT DISTINCT - + ( + 84 )
----
-84

query I rowsort
SELECT ALL + 10 * + ( ( + + 32 ) )
----
320

query I rowsort
SELECT - 86 * 7
----
-602

query I rowsort
SELECT 79 - + 37 AS col1
----
42

query II rowsort
SELECT - - 52 * - 96 + 19 AS col2, - 94
----
-4973
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6712
SELECT ALL - - CAST( NULL AS SIGNED ) * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - - CAST ( NULL AS INTEGER ) * - - 9
----
NULL

query I rowsort
SELECT + 35 + 34
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL - 58 * - ( + 73 ) + - - COUNT( * )
----
4235

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - 58 * - ( + 73 ) + - - COUNT ( * )
----
4235

onlyif mysql # aggregate syntax: 
query II rowsort label-6715
SELECT + + COUNT( * ) AS col2, 87 + + + 10 + + 87 AS col0
----
1
184

skipif mysql # not compatible
query II rowsort label-6715
SELECT + + COUNT ( * ) AS col2, 87 + + + 10 + + 87 AS col0
----
1
184

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL - - COALESCE ( + - 54, - + COUNT( - 11 ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - - COALESCE ( + - 54, - + COUNT ( - 11 ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL - MIN( ALL + - 85 ) col2
----
85

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL - MIN ( ALL + - 85 ) col2
----
85

query I rowsort
SELECT - 2 * 28
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6719
SELECT DISTINCT - COUNT( * ) * + - 34 AS col2, 65 DIV + 30 AS col1
----
34
2

skipif mysql # not compatible
query II rowsort label-6719
SELECT DISTINCT - COUNT ( * ) * + - 34 AS col2, 65 / + 30 AS col1
----
34
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL + 93 + COUNT( * ) * + 59
----
152

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + 93 + COUNT ( * ) * + 59
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT 98 * - COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6721
SELECT 98 * - COUNT ( * ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT ALL COUNT( * ) + - 39
----
-38

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL COUNT ( * ) + - 39
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6723
SELECT ( COUNT( * ) ) * - - NULLIF ( 78, + 41 ) / - ( - NULLIF ( 64, 16 + 42 ) ) / MIN( - CAST( NULL AS SIGNED ) ) * - - CAST( + - COUNT( + 52 ) AS SIGNED ), + COUNT( * ) + 96 AS col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-6723
SELECT ( COUNT ( * ) ) * - - NULLIF ( 78, + 41 ) / - ( - NULLIF ( 64, 16 + 42 ) ) / MIN ( - CAST ( NULL AS INTEGER ) ) * - - CAST ( + - COUNT ( + 52 ) AS INTEGER ), + COUNT ( * ) + 96 AS col2
----
NULL
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6724
SELECT ALL 64 + ( + 35 ) + + 86 + + COALESCE ( + 63, + + 73 * - + 31 + + 62 + + 22 + + COUNT( * ) * 42, CAST( NULL AS SIGNED ) + 46 ), 36 AS col0
----
248
36

skipif mysql # not compatible
query II rowsort label-6724
SELECT ALL 64 + ( + 35 ) + + 86 + + COALESCE ( + 63, + + 73 * - + 31 + + 62 + + 22 + + COUNT ( * ) * 42, CAST ( NULL AS INTEGER ) + 46 ), 36 AS col0
----
248
36

query I rowsort
SELECT DISTINCT 23 + - - 19 * - - 53 * - 86 AS col1
----
-86579

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ( - COUNT( * ) ) * - 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6726
SELECT ( - COUNT ( * ) ) * - 61 AS col2
----
61

query I rowsort
SELECT DISTINCT ( - 7 ) * + 39 AS col1
----
-273

query II rowsort
SELECT ALL 28 * 5 AS col2, 54
----
140
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT DISTINCT CAST( - + 84 AS SIGNED ) - - CASE - 96 WHEN - - 76 THEN NULL WHEN - + 67 + - 22 THEN - 96 END + 86 * - 38 + + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT CAST ( - + 84 AS INTEGER ) - - CASE - 96 WHEN - - 76 THEN NULL WHEN - + 67 + - 22 THEN - 96 END + 86 * - 38 + + 92 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6730
SELECT NULLIF ( + - CAST( NULL AS DECIMAL ), COALESCE ( - 45, - - 56 * + 48 - - + 53, + 95 * + 67 * - 19 * + 61 ) ) + - 79 AS col1, + 6 col2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6730
SELECT NULLIF ( + - CAST ( NULL AS REAL ), COALESCE ( - 45, - - 56 * + 48 - - + 53, + 95 * + 67 * - 19 * + 61 ) ) + - 79 AS col1, + 6 col2
----
NULL
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6731
SELECT COUNT( * ) * CASE - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) WHEN - + 7 THEN - 98 * + 74 - - - 17 * 44 ELSE COUNT( * ) * - COUNT( DISTINCT - 46 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-6731
SELECT COUNT ( * ) * CASE - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) WHEN - + 7 THEN - 98 * + 74 - - - 17 * 44 ELSE COUNT ( * ) * - COUNT ( DISTINCT - 46 ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT + ( + ( COALESCE ( 42, + MAX( 10 ) + + 36, - 13 * - + 95 - 75 ) ) ) col1
----
42

skipif mysql # not compatible
query I rowsort label-6732
SELECT + ( + ( COALESCE ( 42, + MAX ( 10 ) + + 36, - 13 * - + 95 - 75 ) ) ) col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT 22 - + - 70 + - MIN( 61 )
----
31

skipif mysql # not compatible
query I rowsort label-6733
SELECT 22 - + - 70 + - MIN ( 61 )
----
31

query II rowsort
SELECT ALL 17 - 58 AS col0, + 70
----
-41
70

query I rowsort
SELECT ALL + 14 * - + 66 * + ( + + 77 ) + + + 98 + 97 AS col0
----
-70953

query I rowsort
SELECT 53 * - 16 + + 74 AS col0
----
-774

query I rowsort
SELECT ALL CASE + ( 64 ) WHEN + ( - 95 ) * - 85 * 90 THEN 56 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + CASE + NULLIF ( - 79, 18 + + + AVG ( + + 72 ) ) WHEN - + 31 THEN - 60 END
----
NULL

query I rowsort
SELECT ALL 44 * - + 39 + - 1
----
-1717

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT + 84 DIV + 16 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6740
SELECT + 84 / + 16 AS col2
----
5

query II rowsort
SELECT NULLIF ( - + 16, 6 ) * - 16 AS col0, + 78 + + - 88 col2
----
256
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT ALL - + SUM( ALL + 35 ) AS col2, 80 AS col1
----
-35
80

skipif mysql # not compatible
query II rowsort label-6742
SELECT ALL - + SUM ( ALL + 35 ) AS col2, 80 AS col1
----
-35
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT DISTINCT + COUNT( * ) * - 52 + + 33 + + 59
----
40

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT + COUNT ( * ) * - 52 + + 33 + + 59
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6744
SELECT - 50 DIV - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6744
SELECT - 50 / - COUNT ( * ) AS col1
----
50

query II rowsort
SELECT ALL - + 94 * - - ( 99 ) + 82 AS col0, 76 * - 70
----
-9224
-5320

query I rowsort
SELECT ALL 33 * + ( + 23 )
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - COUNT( * ) * - COALESCE ( + - ( + 64 ), 69 + - 46, 37 - COUNT( * ) ) + - + CASE + 97 WHEN 1 + + 94 * + 67 THEN NULL ELSE + 34 END AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6747
SELECT - COUNT ( * ) * - COALESCE ( + - ( + 64 ), 69 + - 46, 37 - COUNT ( * ) ) + - + CASE + 97 WHEN 1 + + 94 * + 67 THEN NULL ELSE + 34 END AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT ALL + - 8 DIV 6 + - 69 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL + - 8 / 6 + - 69 AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6749
SELECT + MAX( + - 24 ) DIV + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-6749
SELECT + MAX ( + - 24 ) / + + COUNT ( * )
----
-24

query I rowsort
SELECT ALL + 4 * + + 65 + + + 5 AS col0
----
265

query II rowsort
SELECT + ( + 60 ) AS col1, 95 * + 91
----
60
8645

query I rowsort
SELECT DISTINCT - 58 * + - 57 + + 38 AS col2
----
3344

onlyif mysql # aggregate syntax: 
query II rowsort label-6753
SELECT DISTINCT + 59 AS col2, + COUNT( * )
----
59
1

skipif mysql # not compatible
query II rowsort label-6753
SELECT DISTINCT + 59 AS col2, + COUNT ( * )
----
59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT - 3 * + + COUNT( * ) + - 15 - 13 * - COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6754
SELECT - 3 * + + COUNT ( * ) + - 15 - 13 * - COUNT ( * ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT - 6 * - COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-6755
SELECT - 6 * - COUNT ( * ) col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT ALL - CAST( 40 AS SIGNED ) + + - 34 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - CAST ( 40 AS INTEGER ) + + - 34 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT 26 * 77 + - COUNT( * ) AS col2
----
2001

skipif mysql # not compatible
query I rowsort label-6757
SELECT 26 * 77 + - COUNT ( * ) AS col2
----
2001

query I rowsort
SELECT - 70 + + 8 * 93 AS col1
----
674

query I rowsort
SELECT DISTINCT + ( 5 ) * + 98
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL - SUM( - 44 ) - + + COUNT( * ) + - - 5 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL - SUM ( - 44 ) - + + COUNT ( * ) + - - 5 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6761
SELECT - 71 AS col1, 53 * + ( COUNT( * ) ) AS col1
----
-71
53

skipif mysql # not compatible
query II rowsort label-6761
SELECT - 71 AS col1, 53 * + ( COUNT ( * ) ) AS col1
----
-71
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6762
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 51 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 51 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - 10 + - ( 35 ) - + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6763
SELECT - 10 + - ( 35 ) - + + COUNT ( * )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL - 27 - + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL - 27 - + COUNT ( * ) AS col0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6765
SELECT - COUNT( * ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT - COUNT ( * ) / 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT DISTINCT 16 DIV + + 78 * 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT 16 / + + 78 * 88 col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6767
SELECT - 80 + - - NULLIF ( + + CAST( NULL AS DECIMAL ), + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT - 80 + - - NULLIF ( + + CAST ( NULL AS REAL ), + 58 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT - COALESCE ( - + CASE - MAX( 31 ) WHEN + 77 * - 84 + - - 34 THEN NULL WHEN 37 THEN + COUNT( * ) ELSE NULL END, 3 * - - 68 + + COUNT( ALL + 58 ), - + 35 )
----
-205

skipif mysql # not compatible
query I rowsort label-6768
SELECT - COALESCE ( - + CASE - MAX ( 31 ) WHEN + 77 * - 84 + - - 34 THEN NULL WHEN 37 THEN + COUNT ( * ) ELSE NULL END, 3 * - - 68 + + COUNT ( ALL + 58 ), - + 35 )
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT + - MIN( - - ( 2 ) ) + 47
----
45

skipif mysql # not compatible
query I rowsort label-6769
SELECT + - MIN ( - - ( 2 ) ) + 47
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6770
SELECT ALL + NULLIF ( 51, 51 * + AVG ( ALL + CAST( + + 71 AS DECIMAL ) ) + - 28 * 12 * 20 * 96 * + + 86 ) * 84 * - 35
----
-149940

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + NULLIF ( 51, 51 * + AVG ( ALL + CAST ( + + 71 AS REAL ) ) + - 28 * 12 * 20 * 96 * + + 86 ) * 84 * - 35
----
-149940

query I rowsort
SELECT DISTINCT + + 19 * - - 32
----
608

query I rowsort
SELECT ALL + 99 * - 10 col2
----
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT - 79, MIN( DISTINCT 83 ) AS col2
----
-79
83

skipif mysql # not compatible
query II rowsort label-6773
SELECT - 79, MIN ( DISTINCT 83 ) AS col2
----
-79
83

query I rowsort
SELECT - 7 + - 27
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT + ( + ( + 29 ) ) * COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6775
SELECT + ( + ( + 29 ) ) * COUNT ( * ) AS col2
----
29

query I rowsort
SELECT DISTINCT + 91 + 79
----
170

query I rowsort
SELECT ALL - ( 1 ) + + COALESCE ( 15, - 94 * 45 * 55 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL + + NULLIF ( - + 52, + - COUNT( * ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL + + NULLIF ( - + 52, + - COUNT ( * ) ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6779
SELECT DISTINCT + - 85 DIV 96 - - - 70 + - CAST( - CASE 51 WHEN COUNT( * ) * + 31 * + 82 * - 1 - - + 9 THEN NULL ELSE 85 DIV - MAX( ALL + 89 ) END AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + - 85 / 96 - - - 70 + - CAST ( - CASE 51 WHEN COUNT ( * ) * + 31 * + 82 * - 1 - - + 9 THEN NULL ELSE 85 / - MAX ( ALL + 89 ) END AS INTEGER )
----
-70

query I rowsort
SELECT + - 61 + 12 col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6781
SELECT ALL - COUNT( ALL + - ( - 88 ) ) DIV - 77 + + 41 + + 8 + - 71 * - - 38 * - + 95 + 13 * - + 40 + - + ( 48 ) * + COUNT( * ) + - 18, NULLIF ( + 52, + + 78 * + 40 ) * - + 56 + + 48 AS col2
----
255773
-2864

skipif mysql # not compatible
query II rowsort label-6781
SELECT ALL - COUNT ( ALL + - ( - 88 ) ) / - 77 + + 41 + + 8 + - 71 * - - 38 * - + 95 + 13 * - + 40 + - + ( 48 ) * + COUNT ( * ) + - 18, NULLIF ( + 52, + + 78 * + 40 ) * - + 56 + + 48 AS col2
----
255773
-2864

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT DISTINCT 63 * - 3 * COUNT( * ) + 80 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT 63 * - 3 * COUNT ( * ) + 80 AS col2
----
-109

query II rowsort
SELECT + 59 AS col2, - 87
----
59
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6784
SELECT - 60 * - CAST( NULL AS DECIMAL ) + - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT - 60 * - CAST ( NULL AS REAL ) + - - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT - MAX( - 60 ) * 76 AS col2
----
4560

skipif mysql # not compatible
query I rowsort label-6785
SELECT - MAX ( - 60 ) * 76 AS col2
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6786
SELECT ( + COALESCE ( - 3, - - CAST( + - 27 AS SIGNED ) * ( - + 91 ) + 19 * + COUNT( * ), 70 DIV - + 98 * - - CAST( NULL AS SIGNED ) * - 88 - - COUNT( * ) ) ) AS col1, - 42 * + - COALESCE ( CASE 19 WHEN ( - 16 ) THEN - 83 * - 70 END, + + 52 * + 25 * - 42 + CASE + 77 WHEN 48 THEN NULL WHEN - 58 + + + 74 THEN MIN( DISTINCT - 42 ) * - 43 END + 3 + CAST( NULL AS SIGNED ) - - 6 * - 57 * - COUNT( ALL + ( - 24 ) * 70 + ( - 0 + - COALESCE ( - 70 + + 39 * + 74, - 84 + + 7, 16 ) ) ) * 97 ) AS col0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6786
SELECT ( + COALESCE ( - 3, - - CAST ( + - 27 AS INTEGER ) * ( - + 91 ) + 19 * + COUNT ( * ), 70 / - + 98 * - - CAST ( NULL AS INTEGER ) * - 88 - - COUNT ( * ) ) ) AS col1, - 42 * + - COALESCE ( CASE 19 WHEN ( - 16 ) THEN - 83 * - 70 END, + + 52 * + 25 * - 42 + CASE + 77 WHEN 48 THEN NULL WHEN - 58 + + + 74 THEN MIN ( DISTINCT - 42 ) * - 43 END + 3 + CAST ( NULL AS INTEGER ) - - 6 * - 57 * - COUNT ( ALL + ( - 24 ) * 70 + ( - 0 + - COALESCE ( - 70 + + 39 * + 74, - 84 + + 7, 16 ) ) ) * 97 ) AS col0
----
-3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6787
SELECT - 43 DIV 53 + - - 38 + + COUNT( * ) * COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6787
SELECT - 43 / 53 + - - 38 + + COUNT ( * ) * COUNT ( * ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL - NULLIF ( + - COUNT( * ), + 34 * - COUNT( * ) ) * + - COUNT( * ) + - 16 + + 0 * - - 23
----
-17

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - NULLIF ( + - COUNT ( * ), + 34 * - COUNT ( * ) ) * + - COUNT ( * ) + - 16 + + 0 * - - 23
----
-17

query I rowsort
SELECT + ( + + 59 )
----
59

query I rowsort
SELECT - 83 + 53 + + 55 * CASE 8 WHEN 90 THEN + 3 END * - 55 col1
----
NULL

query I rowsort
SELECT ALL 59 * + 2 * - ( - 29 )
----
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT DISTINCT COUNT( * ) * - 53 * - 50
----
2650

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT COUNT ( * ) * - 53 * - 50
----
2650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6793
SELECT - 29 - - + 99 * + COALESCE ( - 72, + - 8 + 2 - - - 53 * - 7 + + CAST( 69 AS SIGNED ) + 97 ) AS col1, + COUNT( DISTINCT 1 )
----
-7157
1

skipif mysql # not compatible
query II rowsort label-6793
SELECT - 29 - - + 99 * + COALESCE ( - 72, + - 8 + 2 - - - 53 * - 7 + + CAST ( 69 AS INTEGER ) + 97 ) AS col1, + COUNT ( DISTINCT 1 )
----
-7157
1

query I rowsort
SELECT ALL + NULLIF ( - - 35, - 39 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT COALESCE ( + MAX( DISTINCT + 57 ), - + CASE + MAX( ALL - 60 ) WHEN + 4 + - + 17 * + COALESCE ( COUNT( * ), - 74 * COUNT( * ) + 95, 39 * + MIN( ( - 49 ) ) * 5 ) THEN + - 31 WHEN + - COUNT( DISTINCT ( - ( + + 32 ) ) ) THEN + - 74 WHEN + ( + 22 ) / 40 + + 49 + + COUNT( * ) * + - 56 + - - 16 * + 99 THEN + COUNT( + 11 ) END ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6795
SELECT COALESCE ( + MAX ( DISTINCT + 57 ), - + CASE + MAX ( ALL - 60 ) WHEN + 4 + - + 17 * + COALESCE ( COUNT ( * ), - 74 * COUNT ( * ) + 95, 39 * + MIN ( ( - 49 ) ) * 5 ) THEN + - 31 WHEN + - COUNT ( DISTINCT ( - ( + + 32 ) ) ) THEN + - 74 WHEN + ( + 22 ) / 40 + + 49 + + COUNT ( * ) * + - 56 + - - 16 * + 99 THEN + COUNT ( + 11 ) END ) AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6796
SELECT ALL - COALESCE ( COUNT( * ), 99 ) * 65 DIV + 41 + 20 - - + 4 * - + COUNT( * ) + + MAX( ALL - 42 ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL - COALESCE ( COUNT ( * ), 99 ) * 65 / + 41 + 20 - - + 4 * - + COUNT ( * ) + + MAX ( ALL - 42 ) col2
----
-27

query I rowsort
SELECT - 23 * 61 AS col1
----
-1403

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6798
SELECT ALL - 31 * 9 * - 90 * + + 48 AS col2, - CAST( + + 58 AS SIGNED )
----
1205280
-58

skipif mysql # not compatible
query II rowsort label-6798
SELECT ALL - 31 * 9 * - 90 * + + 48 AS col2, - CAST ( + + 58 AS INTEGER )
----
1205280
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL + CASE - 54 WHEN + 82 * CASE - 3 WHEN + - COUNT( * ) / - COUNT( * ) + 49 + - 69 / - ( + - 42 ) + - 84 - - ( + - 62 ) THEN NULL ELSE ( + 5 ) * + 16 END + - 54 THEN - + 86 WHEN - 39 THEN + 81 ELSE + - COUNT( * ) * 67 END
----
-67

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + CASE - 54 WHEN + 82 * CASE - 3 WHEN + - COUNT ( * ) / - COUNT ( * ) + 49 + - 69 / - ( + - 42 ) + - 84 - - ( + - 62 ) THEN NULL ELSE ( + 5 ) * + 16 END + - 54 THEN - + 86 WHEN - 39 THEN + 81 ELSE + - COUNT ( * ) * 67 END
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6800
SELECT + CAST( + ( - 23 ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-6800
SELECT + CAST ( + ( - 23 ) AS INTEGER )
----
-23

query I rowsort
SELECT - NULLIF ( + 12, + 72 ) + 44
----
32

query I rowsort
SELECT NULLIF ( 14, - - 93 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT CAST( CAST( - 76 AS SIGNED ) AS SIGNED ) * 8 - 79 + 69
----
-618

skipif mysql # not compatible
query I rowsort label-6803
SELECT CAST ( CAST ( - 76 AS INTEGER ) AS INTEGER ) * 8 - 79 + 69
----
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - MIN( 44 ) * 24 AS col0
----
-1056

skipif mysql # not compatible
query I rowsort label-6804
SELECT - MIN ( 44 ) * 24 AS col0
----
-1056

query I rowsort
SELECT ALL + 68 * - 30 AS col1
----
-2040

query I rowsort
SELECT DISTINCT + 59 * + - 36 * CASE - 17 WHEN 34 + + + 78 / 26 + + 69 THEN + 78 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 87 * - ( 20 ) AS col2
----
-1740

onlyif mysql # aggregate syntax: 
query II rowsort label-6808
SELECT DISTINCT - 34 AS col0, SUM( ALL + 66 )
----
-34
66

skipif mysql # not compatible
query II rowsort label-6808
SELECT DISTINCT - 34 AS col0, SUM ( ALL + 66 )
----
-34
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6809
SELECT DISTINCT + 77 AS col2, + ( + 81 ) + - + 84 DIV - COUNT( * ) AS col1
----
77
165

skipif mysql # not compatible
query II rowsort label-6809
SELECT DISTINCT + 77 AS col2, + ( + 81 ) + - + 84 / - COUNT ( * ) AS col1
----
77
165

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT DISTINCT - CASE - COUNT( * ) WHEN - 18 THEN NULL WHEN - 43 THEN - 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - 18 THEN NULL WHEN - 43 THEN - 68 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 23 col1, - 31 col1
----
-23
-31

query I rowsort
SELECT - ( + ( - 49 ) ) + + 23 AS col2
----
72

query II rowsort
SELECT - - 75 AS col1, - 76
----
75
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT - + COALESCE ( - 1, + 88 + - + MIN( DISTINCT + + 23 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6814
SELECT - + COALESCE ( - 1, + 88 + - + MIN ( DISTINCT + + 23 ) )
----
1

query I rowsort
SELECT + 93 * + 40 + - 5 * NULLIF ( + + 30, - 62 + - 19 + 58 )
----
3570

query I rowsort
SELECT - - 82 - + + 98 AS col2
----
-16

query I rowsort
SELECT DISTINCT - + 0 + + 7 + - 68 AS col2
----
-61

query II rowsort
SELECT - + 85 AS col1, 12 AS col2
----
-85
12

query I rowsort
SELECT DISTINCT + 85 + 32 AS col1
----
117

query I rowsort
SELECT DISTINCT 94 + 85
----
179

query I rowsort
SELECT DISTINCT 8 + 65
----
73

query I rowsort
SELECT ALL 12 + - - 88 AS col1
----
100

query I rowsort
SELECT ALL 51 * - 82
----
-4182

onlyif mysql # aggregate syntax: 
query II rowsort label-6824
SELECT DISTINCT - 82 AS col1, COALESCE ( - 88, SUM( DISTINCT + + 90 ) - + COUNT( * ) + - ( - + 6 ) * - - 9 ) - + + ( + + 29 ) AS col1
----
-82
-117

skipif mysql # not compatible
query II rowsort label-6824
SELECT DISTINCT - 82 AS col1, COALESCE ( - 88, SUM ( DISTINCT + + 90 ) - + COUNT ( * ) + - ( - + 6 ) * - - 9 ) - + + ( + + 29 ) AS col1
----
-82
-117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6825
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + COALESCE ( + 65, 28 ) * + + 86 + + - 72 * + 80, - 25 - 66 col0
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-6825
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + COALESCE ( + 65, 28 ) * + + 86 + + - 72 * + 80, - 25 - 66 col0
----
NULL
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6826
SELECT ALL CAST( + + SUM( + 7 ) AS SIGNED ) + 17 * - ( 19 ) AS col0
----
-316

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL CAST ( + + SUM ( + 7 ) AS INTEGER ) + 17 * - ( 19 ) AS col0
----
-316

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT ALL SUM( + 71 ) - - - 37 AS col2, - 59 AS col0
----
34
-59

skipif mysql # not compatible
query II rowsort label-6827
SELECT ALL SUM ( + 71 ) - - - 37 AS col2, - 59 AS col0
----
34
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL 41 * - + ( CASE + 48 WHEN - 24 * - 72 THEN + 8 * COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL 41 * - + ( CASE + 48 WHEN - 24 * - 72 THEN + 8 * COUNT ( * ) END )
----
NULL

query I rowsort
SELECT 26 * - + ( + 80 )
----
-2080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT 32 + + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT 32 + + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT - ( + 55 ) * + ( - COUNT( * ) ) + - 39 DIV - + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-6831
SELECT - ( + 55 ) * + ( - COUNT ( * ) ) + - 39 / - + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6832
SELECT 87 * + SUM( - 90 ) * 89 DIV + - 2 * + COUNT( * )
----
348435

skipif mysql # not compatible
query I rowsort label-6832
SELECT 87 * + SUM ( - 90 ) * 89 / + - 2 * + COUNT ( * )
----
348435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6833
SELECT ALL - COALESCE ( 80, - 92 * 28 + + 89 * - CASE + 20 WHEN - COUNT( * ) THEN NULL WHEN + + ( + - 93 ) * - COALESCE ( 74, 50 ) THEN - + COUNT( * ) WHEN - - 16 * 14 THEN NULL ELSE 8 DIV - CASE 37 WHEN + + MIN( + + 55 ) THEN - 74 DIV + MAX( DISTINCT + 34 ) * 77 - - 14 END END ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - COALESCE ( 80, - 92 * 28 + + 89 * - CASE + 20 WHEN - COUNT ( * ) THEN NULL WHEN + + ( + - 93 ) * - COALESCE ( 74, 50 ) THEN - + COUNT ( * ) WHEN - - 16 * 14 THEN NULL ELSE 8 / - CASE 37 WHEN + + MIN ( + + 55 ) THEN - 74 / + MAX ( DISTINCT + 34 ) * 77 - - 14 END END ) AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT CAST( - 5 AS SIGNED ) + - 84 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6834
SELECT CAST ( - 5 AS INTEGER ) + - 84 AS col1
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6835
SELECT ALL - 10 DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - 10 / + 91 AS col1
----
0

query II rowsort
SELECT 77 + + 21 AS col2, - 88 + + + 59
----
98
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT ALL - 1 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL - 1 / + 81 AS col0
----
0

query I rowsort
SELECT ALL COALESCE ( - - 26, - - 27 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT ALL - 82 + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL - 82 + COUNT ( * )
----
-81

query I rowsort
SELECT - 80 * + + 2
----
-160

query I rowsort
SELECT 97 + + 62 * - 37 AS col0
----
-2197

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT COALESCE ( - 70, 34 ) * + + 46 + - COUNT( * ) + + 65 * 90
----
2629

skipif mysql # not compatible
query I rowsort label-6842
SELECT COALESCE ( - 70, 34 ) * + + 46 + - COUNT ( * ) + + 65 * 90
----
2629

onlyif mysql # aggregate syntax: 
query II rowsort label-6843
SELECT ALL - 30 + - + 20 AS col2, - COUNT( ALL - 20 ) * - 40 + - - 2
----
-50
42

skipif mysql # not compatible
query II rowsort label-6843
SELECT ALL - 30 + - + 20 AS col2, - COUNT ( ALL - 20 ) * - 40 + - - 2
----
-50
42

query I rowsort
SELECT 69 + 10 + 57 col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL + - 10 + - NULLIF ( - 81, + + COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + - 10 + - NULLIF ( - 81, + + COUNT ( * ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT - 96 * - MIN( ALL - 44 ) col1
----
-4224

skipif mysql # not compatible
query I rowsort label-6846
SELECT - 96 * - MIN ( ALL - 44 ) col1
----
-4224

query I rowsort
SELECT DISTINCT - - 72 - - 0 + + + 73
----
145

query I rowsort
SELECT - ( - 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT COUNT( * ) + + 92 + + ( - 12 ) + + - 33
----
48

skipif mysql # not compatible
query I rowsort label-6849
SELECT COUNT ( * ) + + 92 + + ( - 12 ) + + - 33
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6850
SELECT ALL - 98 AS col1, NULLIF ( + - 73, + ( - + SUM( DISTINCT + ( 94 ) ) ) * 89 )
----
-98
-73

skipif mysql # not compatible
query II rowsort label-6850
SELECT ALL - 98 AS col1, NULLIF ( + - 73, + ( - + SUM ( DISTINCT + ( 94 ) ) ) * 89 )
----
-98
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT - COALESCE ( - 83, 77 / - + 78 * 95 + 97 - + 50 * + 95 ) / - 29 + - + CASE + 31 WHEN COUNT( * ) THEN + COUNT( * ) ELSE NULL END + + - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT - COALESCE ( - 83, 77 / - + 78 * 95 + 97 - + 50 * + 95 ) / - 29 + - + CASE + 31 WHEN COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END + + - 23 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6852
SELECT ALL - 76 DIV 85 col2
----
0

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL - 76 / 85 col2
----
0

query I rowsort
SELECT 42 + 20
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-6854
SELECT DISTINCT 59 * CASE - + 29 WHEN 79 THEN NULL WHEN + 24 THEN NULL ELSE - + 35 END, - 46 DIV - 72 + - 58 AS col1
----
-2065
-58

skipif mysql # not compatible
query II rowsort label-6854
SELECT DISTINCT 59 * CASE - + 29 WHEN 79 THEN NULL WHEN + 24 THEN NULL ELSE - + 35 END, - 46 / - 72 + - 58 AS col1
----
-2065
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT DISTINCT + ( + 89 ) * - - 78 * COUNT( * )
----
6942

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT + ( + 89 ) * - - 78 * COUNT ( * )
----
6942

query I rowsort
SELECT 32 * 40 col2
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT + 90 * + 68 + + COUNT( * )
----
6121

skipif mysql # not compatible
query I rowsort label-6857
SELECT + 90 * + 68 + + COUNT ( * )
----
6121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6858
SELECT 42 * - ( COUNT( * ) ) * - 62 + NULLIF ( 20, - 83 + + 60 ) DIV + - ( - 97 ) AS col0
----
2604

skipif mysql # not compatible
query I rowsort label-6858
SELECT 42 * - ( COUNT ( * ) ) * - 62 + NULLIF ( 20, - 83 + + 60 ) / + - ( - 97 ) AS col0
----
2604

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6859
SELECT CAST( NULL AS DECIMAL ) / - 25 + - + 27 - - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT CAST ( NULL AS REAL ) / - 25 + - + 27 - - 50 AS col2
----
NULL

query II rowsort
SELECT ALL - 13 AS col0, 36
----
-13
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ( - ( + ( - ( + COUNT( * ) ) ) ) ) + COALESCE ( - NULLIF ( - COUNT( * ), + 85 * - 60 ), + 95, + COUNT( * ) ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6861
SELECT ( - ( + ( - ( + COUNT ( * ) ) ) ) ) + COALESCE ( - NULLIF ( - COUNT ( * ), + 85 * - 60 ), + 95, + COUNT ( * ) ) * COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-6862
SELECT + 21 AS col2, ( + 34 ) DIV + 91 * + ( + 72 ) + 34 * + 84 col1
----
21
2856

skipif mysql # not compatible
query II rowsort label-6862
SELECT + 21 AS col2, ( + 34 ) / + 91 * + ( + 72 ) + 34 * + 84 col1
----
21
2856

query I rowsort
SELECT DISTINCT 87 + - 30
----
57

query I rowsort
SELECT ALL 16 + - 32
----
-16

query I rowsort
SELECT 57 * + 37
----
2109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6866
SELECT ALL + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT + - 23 ) - - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + - 23 ) - - 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT + MAX( ALL - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-6867
SELECT + MAX ( ALL - 78 )
----
-78

query I rowsort
SELECT ALL 4 + - + 7 + 51 * - + 78
----
-3981

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT + 78 DIV 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6869
SELECT + 78 / 51 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - ( ( - - COUNT( * ) ) ) * - 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6870
SELECT - ( ( - - COUNT ( * ) ) ) * - 38 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6871
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 81 + - ( 6 ) * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 81 + - ( 6 ) * - 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT 91 DIV 6 + 70
----
85

skipif mysql # not compatible
query I rowsort label-6872
SELECT 91 / 6 + 70
----
85

query I rowsort
SELECT DISTINCT + 37 + + + 79 AS col1
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6874
SELECT DISTINCT + - 99 DIV - COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + - 99 / - COUNT ( * ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - - 99 * - ( COALESCE ( - - 25, + + 54 + + - 52 * + 85, + 61, - 22 - - 35 + COUNT( * ) ) ) + - 80 AS col2
----
-2555

skipif mysql # not compatible
query I rowsort label-6875
SELECT - - 99 * - ( COALESCE ( - - 25, + + 54 + + - 52 * + 85, + 61, - 22 - - 35 + COUNT ( * ) ) ) + - 80 AS col2
----
-2555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6876
SELECT + - 30 + COALESCE ( - - 23, + + 79 - + - 90 + - 46 * - 79 * + + 22 * - + 33 - + CASE - 84 WHEN + 68 + + CASE - - 43 WHEN AVG ( DISTINCT 73 ) THEN - 8 * 95 * - COUNT( * ) END THEN - - 98 END + + COUNT( * ) + + 34 DIV + 72 * 78 ) DIV + + 5
----
-26

skipif mysql # not compatible
query I rowsort label-6876
SELECT + - 30 + COALESCE ( - - 23, + + 79 - + - 90 + - 46 * - 79 * + + 22 * - + 33 - + CASE - 84 WHEN + 68 + + CASE - - 43 WHEN AVG ( DISTINCT 73 ) THEN - 8 * 95 * - COUNT ( * ) END THEN - - 98 END + + COUNT ( * ) + + 34 / + 72 * 78 ) / + + 5
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT - + COUNT( * ) * - - 92 * + 95 + - + 80
----
-8820

skipif mysql # not compatible
query I rowsort label-6877
SELECT - + COUNT ( * ) * - - 92 * + 95 + - + 80
----
-8820

query II rowsort
SELECT - + 7 AS col0, 39
----
-7
39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6879
SELECT ALL + 44 - - 55 + - - 20 * + - AVG ( - CAST( NULL AS DECIMAL ) ) + - 30 AS col2, 43 col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-6879
SELECT ALL + 44 - - 55 + - - 20 * + - AVG ( - CAST ( NULL AS REAL ) ) + - 30 AS col2, 43 col0
----
NULL
43

query I rowsort
SELECT ALL - 52 * + 28 AS col2
----
-1456

query II rowsort
SELECT ALL 16, 22 col1
----
16
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6882
SELECT - 44 + + + 50 DIV + - 19 - 31, CAST( NULL AS SIGNED ) * - 45 AS col1, + - 84 + + 73 AS col1
----
-77
NULL
-11

skipif mysql # not compatible
query III rowsort label-6882
SELECT - 44 + + + 50 / + - 19 - 31, CAST ( NULL AS INTEGER ) * - 45 AS col1, + - 84 + + 73 AS col1
----
-77
NULL
-11

query II rowsort
SELECT - 6 + - - 74 AS col1, 0 AS col2
----
68
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL - 45 - COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL - 45 - COUNT ( * ) AS col2
----
-46

query I rowsort
SELECT - 24 * 25 * 89 AS col0
----
-53400

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT ALL COUNT( ALL - NULLIF ( - 91, - 89 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL COUNT ( ALL - NULLIF ( - 91, - 89 ) ) AS col2
----
1

query II rowsort
SELECT ( - 0 ) AS col2, 6 AS col1
----
0
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + ( 94 ) * + - ( 81 ) * - - 12 * - 63 * 37 + + ( + - COUNT( - 2 ) ) - + 99
----
212978708

skipif mysql # not compatible
query I rowsort label-6888
SELECT + ( 94 ) * + - ( 81 ) * - - 12 * - 63 * 37 + + ( + - COUNT ( - 2 ) ) - + 99
----
212978708

query I rowsort
SELECT ALL + COALESCE ( 3, + + 20 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6890
SELECT - 88 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT - 88 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6891
SELECT DISTINCT + 27 DIV + + 26
----
1

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT + 27 / + + 26
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL NULLIF ( + + 6, - - COUNT( * ) * - + 83 - + - 64 * + 84 * + + 64 * COUNT( * ) ) * 24 + 18 + + 86
----
248

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL NULLIF ( + + 6, - - COUNT ( * ) * - + 83 - + - 64 * + 84 * + + 64 * COUNT ( * ) ) * 24 + 18 + + 86
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT + COUNT( * ) * - 28 + 43 + + + 80 - - + 72 + - COALESCE ( + COUNT( 80 ), - + 94 * + COUNT( * ) ) + 84 + - - 38 * + + MIN( DISTINCT + 32 ) + - - 37 + + 20 AS col0
----
1523

skipif mysql # not compatible
query I rowsort label-6893
SELECT + COUNT ( * ) * - 28 + 43 + + + 80 - - + 72 + - COALESCE ( + COUNT ( 80 ), - + 94 * + COUNT ( * ) ) + 84 + - - 38 * + + MIN ( DISTINCT + 32 ) + - - 37 + + 20 AS col0
----
1523

onlyif mysql # DIV for integer division: 
query I rowsort label-6894
SELECT DISTINCT + 28 DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + 28 / + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + COUNT( - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-6895
SELECT + COUNT ( - 15 )
----
1

query I rowsort
SELECT ALL 86 * - - 70 + - - 63 AS col2
----
6083

query II rowsort
SELECT - COALESCE ( 52, + + 55 ) + 52 AS col2, 2 AS col2
----
0
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6898
SELECT + CAST( NULL AS SIGNED ) * MAX( ALL + 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT + CAST ( NULL AS INTEGER ) * MAX ( ALL + 71 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6899
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) + - + 14 THEN - 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) + - + 14 THEN - 32 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6900
SELECT + COUNT( * ) * - - 80 + + - CAST( - - 33 AS SIGNED ) + + 5, COUNT( * ) AS col1
----
52
1

skipif mysql # not compatible
query II rowsort label-6900
SELECT + COUNT ( * ) * - - 80 + + - CAST ( - - 33 AS INTEGER ) + + 5, COUNT ( * ) AS col1
----
52
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6901
SELECT + 32 DIV - MAX( ALL + 46 ) + - 7 + - + 71 * 36 + 74 * 32 * - 37 AS col0
----
-90179

skipif mysql # not compatible
query I rowsort label-6901
SELECT + 32 / - MAX ( ALL + 46 ) + - 7 + - + 71 * 36 + 74 * 32 * - 37 AS col0
----
-90179

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT + + 77 * + 51 + + COUNT( * )
----
3928

skipif mysql # not compatible
query I rowsort label-6902
SELECT + + 77 * + 51 + + COUNT ( * )
----
3928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6903
SELECT ALL + 27 * 69 DIV - - 85 + COUNT( * ) DIV - ( + 99 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + 27 * 69 / - - 85 + COUNT ( * ) / - ( + 99 ) col2
----
21

query I rowsort
SELECT - + 69 + 15 col0
----
-54

query I rowsort
SELECT ALL - - 11 * - + ( - 1 ) - 92 AS col0
----
-81

query II rowsort
SELECT + 21 * - 74 AS col2, 24
----
-1554
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6907
SELECT 45 * - - 63 + + - COUNT( * ) + COUNT( * ) AS col0, + 90 AS col0
----
2835
90

skipif mysql # not compatible
query II rowsort label-6907
SELECT 45 * - - 63 + + - COUNT ( * ) + COUNT ( * ) AS col0, + 90 AS col0
----
2835
90

query I rowsort
SELECT + 48 + - - 54 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL 18 - + 58 - - COALESCE ( 43, + - 56, + COUNT( * ) - 16 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL 18 - + 58 - - COALESCE ( 43, + - 56, + COUNT ( * ) - 16 ) AS col2
----
3

query I rowsort
SELECT + 87 * 0 * + + CASE WHEN - 16 IS NOT NULL THEN NULL ELSE 74 * - - 82 + 11 + + 55 + - 60 END AS col2
----
NULL

query I rowsort
SELECT + - 93 + + 81
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6912
SELECT ALL - CASE 89 WHEN - ( - 60 ) + NULLIF ( - NULLIF ( - 26, - 29 ), - 46 ) THEN NULL ELSE NULLIF ( 23, - COUNT( * ) ) END * - COUNT( * ) - 72 + - - 88 + + 26 - - NULLIF ( - 21, 17 * - COALESCE ( CASE + 34 WHEN 66 THEN - - NULLIF ( 35, COUNT( * ) ) WHEN + - 2 THEN - + 81 + 35 ELSE 88 * - 21 + - 88 + - - 97 END, - 68 - + ( + 2 ) ) + 55 ) DIV 28 * - + 83 * 6
----
65

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL - CASE 89 WHEN - ( - 60 ) + NULLIF ( - NULLIF ( - 26, - 29 ), - 46 ) THEN NULL ELSE NULLIF ( 23, - COUNT ( * ) ) END * - COUNT ( * ) - 72 + - - 88 + + 26 - - NULLIF ( - 21, 17 * - COALESCE ( CASE + 34 WHEN 66 THEN - - NULLIF ( 35, COUNT ( * ) ) WHEN + - 2 THEN - + 81 + 35 ELSE 88 * - 21 + - 88 + - - 97 END, - 68 - + ( + 2 ) ) + 55 ) / 28 * - + 83 * 6
----
65

query I rowsort
SELECT DISTINCT 2 * + 69 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + - 43 * - 94 - 43 + + MIN( - 10 ) + + + ( - 78 ) + + + 17 * - 31 AS col1
----
3384

skipif mysql # not compatible
query I rowsort label-6914
SELECT + - 43 * - 94 - 43 + + MIN ( - 10 ) + + + ( - 78 ) + + + 17 * - 31 AS col1
----
3384

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT ALL + 13 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL + 13 / + 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT + COALESCE ( 60, - 52, + - 83, + AVG ( DISTINCT - 62 ) ) DIV + 24
----
2

skipif mysql # not compatible
query I rowsort label-6916
SELECT + COALESCE ( 60, - 52, + - 83, + AVG ( DISTINCT - 62 ) ) / + 24
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6917
SELECT ALL 90 AS col0, - COUNT( * ) + + 14 - + + COALESCE ( + 76, + - 59 )
----
90
-63

skipif mysql # not compatible
query II rowsort label-6917
SELECT ALL 90 AS col0, - COUNT ( * ) + + 14 - + + COALESCE ( + 76, + - 59 )
----
90
-63

query II rowsort
SELECT ALL 41 col2, - 69 + + ( - - 40 ) AS col2
----
41
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT DISTINCT COUNT( 14 )
----
1

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT COUNT ( 14 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + COUNT( + 37 ) * 82 * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-6920
SELECT + COUNT ( + 37 ) * 82 * COUNT ( * )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6921
SELECT - ( + - 25 ) + - 50 + - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT - ( + - 25 ) + - 50 + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6922
SELECT + 88 DIV - - 46
----
1

skipif mysql # not compatible
query I rowsort label-6922
SELECT + 88 / - - 46
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT - COUNT( 51 ) + - 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6923
SELECT - COUNT ( 51 ) + - 0 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT DISTINCT NULLIF ( - - 53, + + COALESCE ( - + 2, + 3 * - 44 + - NULLIF ( NULLIF ( + + 99, + 24 + - 59 ), + 78 ) * + MIN( - 34 ) + - 70 - + 48 ) / 60 )
----
53

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT NULLIF ( - - 53, + + COALESCE ( - + 2, + 3 * - 44 + - NULLIF ( NULLIF ( + + 99, + 24 + - 59 ), + 78 ) * + MIN ( - 34 ) + - 70 - + 48 ) / 60 )
----
53

query I rowsort
SELECT ALL - 86 + + + 80
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6926
SELECT COUNT( * ) DIV - 7 + + 93 col2
----
93

skipif mysql # not compatible
query I rowsort label-6926
SELECT COUNT ( * ) / - 7 + + 93 col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT - COALESCE ( - - COUNT( 60 ), - 5 * + 88 * + 66 ) * - 14
----
14

skipif mysql # not compatible
query I rowsort label-6927
SELECT - COALESCE ( - - COUNT ( 60 ), - 5 * + 88 * + 66 ) * - 14
----
14

query I rowsort
SELECT DISTINCT + ( - - 60 ) AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT DISTINCT 82 DIV + 89 + + 84 - + 63 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT 82 / + 89 + + 84 - + 63 AS col2
----
21

query II rowsort
SELECT + 75 AS col0, + 29
----
75
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT CAST( + + 69 AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6931
SELECT CAST ( + + 69 AS INTEGER ) AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT - 44 * NULLIF ( - CAST( - 66 AS SIGNED ), + 43 + - - 27 ) * 76 * - + 32 * - 20 + + CAST( NULL AS SIGNED ) * 70 / - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT - 44 * NULLIF ( - CAST ( - 66 AS INTEGER ), + 43 + - - 27 ) * 76 * - + 32 * - 20 + + CAST ( NULL AS INTEGER ) * 70 / - 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6933
SELECT ALL 56 DIV + 92 + + COUNT( * ) * 63 + + - 4 + - COUNT( * ) * 42 col2
----
17

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL 56 / + 92 + + COUNT ( * ) * 63 + + - 4 + - COUNT ( * ) * 42 col2
----
17

query I rowsort
SELECT DISTINCT + ( + ( - 75 ) ) AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6935
SELECT ALL + COUNT( * ) DIV + + 96 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + COUNT ( * ) / + + 96 * COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT - - ( + + 0 ) DIV 39 + - - 98
----
98

skipif mysql # not compatible
query I rowsort label-6936
SELECT - - ( + + 0 ) / 39 + - - 98
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6937
SELECT ALL MIN( 89 ) DIV 96 + + 63 * 52 AS col1
----
3276

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL MIN ( 89 ) / 96 + + 63 * 52 AS col1
----
3276

query I rowsort
SELECT + ( + 33 ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL - 54 * - 48 + - ( 37 ) + - 30 * COUNT( * ) * + + 40 + + 64 + + 91 AS col0
----
1510

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL - 54 * - 48 + - ( 37 ) + - 30 * COUNT ( * ) * + + 40 + + 64 + + 91 AS col0
----
1510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6940
SELECT ALL + 43 DIV - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + 43 / - COUNT ( * )
----
-43

query I rowsort
SELECT 5 * 33 AS col2
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6942
SELECT + + CAST( NULL AS SIGNED ), + 8 AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6942
SELECT + + CAST ( NULL AS INTEGER ), + 8 AS col1
----
NULL
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6943
SELECT - 23 * - 81 + - - CAST( - ( + + 32 ) AS SIGNED ) col0, 37 + + - 62
----
1831
-25

skipif mysql # not compatible
query II rowsort label-6943
SELECT - 23 * - 81 + - - CAST ( - ( + + 32 ) AS INTEGER ) col0, 37 + + - 62
----
1831
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT + + MAX( DISTINCT - - NULLIF ( + - 86, 79 ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-6944
SELECT + + MAX ( DISTINCT - - NULLIF ( + - 86, 79 ) ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT ALL - - 90 - - - COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL - - 90 - - - COUNT ( * ) AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6946
SELECT COUNT( * ) - ( 33 ) DIV - 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6946
SELECT COUNT ( * ) - ( 33 ) / - 34 AS col0
----
1

query I rowsort
SELECT DISTINCT + ( + 23 ) col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT - + CAST( - + 59 AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6948
SELECT - + CAST ( - + 59 AS INTEGER ) AS col1
----
59

query I rowsort
SELECT ALL + 58 * - 75 AS col1
----
-4350

query I rowsort
SELECT 54 * - 14
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT + COUNT( + + 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT + COUNT ( + + 6 ) AS col0
----
1

query II rowsort
SELECT ALL 1, - 22 AS col0
----
1
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6953
SELECT DISTINCT - COALESCE ( - COUNT( * ), + + ( - + CAST( - 72 AS SIGNED ) ) * - 75, + 55 * + MIN( DISTINCT + 97 ) ) * 33 + + + NULLIF ( COUNT( * ), - CAST( - 67 AS SIGNED ) * + 2 - + - 87 ) * COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + + ( - + CAST ( - 72 AS INTEGER ) ) * - 75, + 55 * + MIN ( DISTINCT + 97 ) ) * 33 + + + NULLIF ( COUNT ( * ), - CAST ( - 67 AS INTEGER ) * + 2 - + - 87 ) * COUNT ( * )
----
34

query I rowsort
SELECT + 39 * - + 94
----
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT - MIN( + - 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6955
SELECT - MIN ( + - 9 ) AS col2
----
9

query II rowsort
SELECT ALL 88 AS col1, 58 AS col1
----
88
58

query I rowsort
SELECT 36 + + 73 * - + 54 AS col1
----
-3906

query II rowsort
SELECT - 43, + 29 AS col0
----
-43
29

query II rowsort
SELECT 58 AS col2, - 0 * - 87
----
58
0

query I rowsort
SELECT ALL 76 + 82 AS col0
----
158

query I rowsort
SELECT ALL 35 + + - 39 * - - 49 col2
----
-1876

query I rowsort
SELECT 71 + + 92 AS col1
----
163

query I rowsort
SELECT ALL 40 + 12 AS col0
----
52

query I rowsort
SELECT ALL 99 + - 39
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6965
SELECT MAX( 14 ) * + - CAST( NULL AS SIGNED ) / + 6 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT MAX ( 14 ) * + - CAST ( NULL AS INTEGER ) / + 6 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT 61 + - - CASE + + 85 WHEN - + 72 + 69 THEN NULL WHEN + - 68 + - + 58 THEN - 56 * 26 * + 91 + + 61 - - COUNT( * ) END * - 13 / + 44 * + MIN( 62 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT 61 + - - CASE + + 85 WHEN - + 72 + 69 THEN NULL WHEN + - 68 + - + 58 THEN - 56 * 26 * + 91 + + 61 - - COUNT ( * ) END * - 13 / + 44 * + MIN ( 62 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6967
SELECT 86 * - 8 col2, ( - - 70 ) * - + COUNT( * ) AS col2
----
-688
-70

skipif mysql # not compatible
query II rowsort label-6967
SELECT 86 * - 8 col2, ( - - 70 ) * - + COUNT ( * ) AS col2
----
-688
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT + 77 * + COUNT( * ) * COUNT( * ) * - 91 + - COUNT( * ) * - - 9 + - MAX( - 43 ) AS col0
----
-6973

skipif mysql # not compatible
query I rowsort label-6968
SELECT + 77 * + COUNT ( * ) * COUNT ( * ) * - 91 + - COUNT ( * ) * - - 9 + - MAX ( - 43 ) AS col0
----
-6973

query I rowsort
SELECT DISTINCT + + 30 - 47
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL - MIN( DISTINCT - 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - MIN ( DISTINCT - 50 ) AS col1
----
50

query I rowsort
SELECT DISTINCT 55 - - - ( - 0 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT 89 * - - COUNT( * ) * - 51
----
-4539

skipif mysql # not compatible
query I rowsort label-6972
SELECT 89 * - - COUNT ( * ) * - 51
----
-4539

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT MAX( DISTINCT - 10 ) + - 26 + + - COUNT( * ) * + + 28
----
-64

skipif mysql # not compatible
query I rowsort label-6973
SELECT MAX ( DISTINCT - 10 ) + - 26 + + - COUNT ( * ) * + + 28
----
-64

query I rowsort
SELECT DISTINCT - + ( - - 77 ) * + 43 AS col0
----
-3311

query II rowsort
SELECT ALL - 79 AS col2, - 33 * + 84
----
-79
-2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6976
SELECT - 67 * - CAST( + + COUNT( * ) AS SIGNED ) + + + 38 * - - MAX( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT - 67 * - CAST ( + + COUNT ( * ) AS INTEGER ) + + + 38 * - - MAX ( - CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT ALL - + 91, - CASE - - 23 WHEN - 32 THEN - 0 END / + 78 AS col0
----
-91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6978
SELECT ALL - CAST( - MAX( - 8 ) AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL - CAST ( - MAX ( - 8 ) AS INTEGER )
----
-8

query I rowsort
SELECT ALL - + 13 col1
----
-13

query I rowsort
SELECT 46 + 6 * + 61 * - ( - 77 ) - 75 * - + 65 AS col2
----
33103

onlyif mysql # aggregate syntax: 
query II rowsort label-6981
SELECT ALL - + 57 AS col1, COALESCE ( 22, + - 79, - MIN( + - 84 ) )
----
-57
22

skipif mysql # not compatible
query II rowsort label-6981
SELECT ALL - + 57 AS col1, COALESCE ( 22, + - 79, - MIN ( + - 84 ) )
----
-57
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT DISTINCT - COALESCE ( - 62, - COUNT( + + 49 ) + 30 - + 23 * 42 * 43 )
----
62

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT - COALESCE ( - 62, - COUNT ( + + 49 ) + 30 - + 23 * 42 * 43 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6983
SELECT ALL - SUM( - 78 ) * - 37 + 5 * + CAST( NULL AS SIGNED ) + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - SUM ( - 78 ) * - 37 + 5 * + CAST ( NULL AS INTEGER ) + + 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6984
SELECT DISTINCT - + COUNT( * ) DIV 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT - + COUNT ( * ) / 27 AS col0
----
0

query I rowsort
SELECT 10 * - 40 + + - 7 * ( - 90 ) * 54 + - ( + 42 )
----
33578

query I rowsort
SELECT ALL - 4 * + - 94 AS col0
----
376

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT + 72 DIV + - 31 col1
----
-2

skipif mysql # not compatible
query I rowsort label-6987
SELECT + 72 / + - 31 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL - ( CASE + + COUNT( * ) WHEN 56 * - COALESCE ( - SUM( ALL - 43 ), + - ( + + COUNT( * ) ) * + 75 + + + 22, 80 ) * - 86 + - 59 * + + 79 * - 37 * + 47 * COUNT( * ) * + - COUNT( * ) + + - CASE + 77 WHEN - + 33 * - COUNT( * ) * + 35 THEN NULL WHEN 77 * ( 41 ) THEN + 43 + - 13 ELSE NULL END THEN + 71 ELSE + - 27 + 34 END ) * + + 60 * - 71
----
29820

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL - ( CASE + + COUNT ( * ) WHEN 56 * - COALESCE ( - SUM ( ALL - 43 ), + - ( + + COUNT ( * ) ) * + 75 + + + 22, 80 ) * - 86 + - 59 * + + 79 * - 37 * + 47 * COUNT ( * ) * + - COUNT ( * ) + + - CASE + 77 WHEN - + 33 * - COUNT ( * ) * + 35 THEN NULL WHEN 77 * ( 41 ) THEN + 43 + - 13 ELSE NULL END THEN + 71 ELSE + - 27 + 34 END ) * + + 60 * - 71
----
29820

query I rowsort
SELECT ALL 35 + + - 70 + + 87 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT DISTINCT - 41 + 18 + - + 5 + + 89 * + - COUNT( * )
----
-117

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - 41 + 18 + - + 5 + + 89 * + - COUNT ( * )
----
-117

query I rowsort
SELECT 80 * + 82 AS col0
----
6560

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT ALL - 23 + - + SUM( DISTINCT + 73 )
----
-96

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL - 23 + - + SUM ( DISTINCT + 73 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT - COUNT( DISTINCT + ( - 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6993
SELECT - COUNT ( DISTINCT + ( - 1 ) )
----
-1

query I rowsort
SELECT DISTINCT 52 * - 70 AS col2
----
-3640

onlyif mysql # aggregate syntax: 
query II rowsort label-6995
SELECT 70 * + - COUNT( * ) AS col0, - 85 AS col2
----
-70
-85

skipif mysql # not compatible
query II rowsort label-6995
SELECT 70 * + - COUNT ( * ) AS col0, - 85 AS col2
----
-70
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT 6 * - 28 * COUNT( * ) * + + 12
----
-2016

skipif mysql # not compatible
query I rowsort label-6996
SELECT 6 * - 28 * COUNT ( * ) * + + 12
----
-2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6997
SELECT ALL 87 * - + 49 AS col1, COUNT( * ) * + CAST( NULL AS SIGNED ) * COUNT( ALL + - 80 ) col0
----
-4263
NULL

skipif mysql # not compatible
query II rowsort label-6997
SELECT ALL 87 * - + 49 AS col1, COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COUNT ( ALL + - 80 ) col0
----
-4263
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6998
SELECT ALL COUNT( * ) - - 17 + + 65 DIV - 81
----
18

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL COUNT ( * ) - - 17 + + 65 / - 81
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT ALL CASE - 10 WHEN + 31 THEN + - 18 + - - 96 * COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL CASE - 10 WHEN + 31 THEN + - 18 + - - 96 * COUNT ( * ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT + 28 * - 48 AS col0
----
-1344

query I rowsort
SELECT ALL 51 * + - 79 col1
----
-4029

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT + + NULLIF ( + COUNT( * ), - - 37 ) * - - 25 col2
----
25

skipif mysql # not compatible
query I rowsort label-7002
SELECT + + NULLIF ( + COUNT ( * ), - - 37 ) * - - 25 col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT CAST( NULL AS SIGNED ) * + 51 + + - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT CAST ( NULL AS INTEGER ) * + 51 + + - 74 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT + - 71 DIV + 7 + + 60
----
50

skipif mysql # not compatible
query I rowsort label-7004
SELECT + - 71 / + 7 + + 60
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT ALL 84 DIV - - 26 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL 84 / - - 26 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7006
SELECT DISTINCT 23 DIV + COUNT( 88 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT 23 / + COUNT ( 88 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT DISTINCT - 69 * ( COUNT( * ) ) * + - 70
----
4830

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT - 69 * ( COUNT ( * ) ) * + - 70
----
4830

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT + 94 * 96 + + - CASE NULLIF ( + + 57, + + 41 * CASE - 74 WHEN + + 57 THEN NULL WHEN COUNT( DISTINCT - - 22 ) * + 59 + + - 41 THEN + + 55 / + 21 END + - 36 ) WHEN - 9 + - 56 / 89 THEN NULL WHEN 90 + + 10 THEN + COUNT( * ) WHEN 72 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT + 94 * 96 + + - CASE NULLIF ( + + 57, + + 41 * CASE - 74 WHEN + + 57 THEN NULL WHEN COUNT ( DISTINCT - - 22 ) * + 59 + + - 41 THEN + + 55 / + 21 END + - 36 ) WHEN - 9 + - 56 / 89 THEN NULL WHEN 90 + + 10 THEN + COUNT ( * ) WHEN 72 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7009
SELECT ALL - 49 * - COUNT( * ) + 48 + + CASE ( + - CAST( NULL AS SIGNED ) ) WHEN 98 THEN NULL WHEN - + COUNT( * ) THEN + 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - 49 * - COUNT ( * ) + 48 + + CASE ( + - CAST ( NULL AS INTEGER ) ) WHEN 98 THEN NULL WHEN - + COUNT ( * ) THEN + 76 END
----
NULL

query I rowsort
SELECT - ( - + CASE + 74 WHEN - 31 + + 18 + - + 67 * - 44 THEN + 36 ELSE NULL END )
----
NULL

query I rowsort
SELECT - - 64 * + - 27 col1
----
-1728

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT DISTINCT 18 * + 25 - - 4 + ( 60 ) DIV 85 + - 81 col1
----
373

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT 18 * + 25 - - 4 + ( 60 ) / 85 + - 81 col1
----
373

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT + 83 - - 18 + + - 36 * - COUNT( + 51 ) * - 85
----
-2959

skipif mysql # not compatible
query I rowsort label-7013
SELECT + 83 - - 18 + + - 36 * - COUNT ( + 51 ) * - 85
----
-2959

query I rowsort
SELECT - 41 * - - 88
----
-3608

query II rowsort
SELECT - 97 AS col2, - 0 * + 36
----
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL + 55 + 46 * - COUNT( * ) - + + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + 55 + 46 * - COUNT ( * ) - + + COUNT ( * ) AS col2
----
8

query I rowsort
SELECT ALL + 82 * - 78
----
-6396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT - 82 + + CAST( NULL AS SIGNED ) / - + ( - - 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7018
SELECT - 82 + + CAST ( NULL AS INTEGER ) / - + ( - - 42 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT - 88 - - 92 + - 48 + - 16 * + + 57 * + - COUNT( * ) * 20 * + 60 col2
----
1094356

skipif mysql # not compatible
query I rowsort label-7019
SELECT - 88 - - 92 + - 48 + - 16 * + + 57 * + - COUNT ( * ) * 20 * + 60 col2
----
1094356

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7020
SELECT - 8 col0, - CASE 54 WHEN 28 - + 46 THEN NULL ELSE CASE - 32 WHEN + 50 THEN + 65 * 30 + - - COUNT( DISTINCT - - 42 ) + - 81 + + ( + 75 ) * + 54 DIV - 32 WHEN 64 THEN 48 ELSE + 16 END END
----
-8
-16

skipif mysql # not compatible
query II rowsort label-7020
SELECT - 8 col0, - CASE 54 WHEN 28 - + 46 THEN NULL ELSE CASE - 32 WHEN + 50 THEN + 65 * 30 + - - COUNT ( DISTINCT - - 42 ) + - 81 + + ( + 75 ) * + 54 / - 32 WHEN 64 THEN 48 ELSE + 16 END END
----
-8
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-7021
SELECT - 81 * - 53 * + + COUNT( * ) AS col1, - ( + + 70 ) * + 85 - + + 51
----
4293
-6001

skipif mysql # not compatible
query II rowsort label-7021
SELECT - 81 * - 53 * + + COUNT ( * ) AS col1, - ( + + 70 ) * + 85 - + + 51
----
4293
-6001

query I rowsort
SELECT DISTINCT ( 39 ) col2
----
39

query I rowsort
SELECT ALL - 92 - + 48 AS col0
----
-140

query I rowsort
SELECT - 52 * - - 64
----
-3328

onlyif mysql # aggregate syntax: 
query II rowsort label-7025
SELECT - ( MIN( - 12 ) ) + - 67 * - - MAX( - - 15 ) col1, 30 AS col1
----
-993
30

skipif mysql # not compatible
query II rowsort label-7025
SELECT - ( MIN ( - 12 ) ) + - 67 * - - MAX ( - - 15 ) col1, 30 AS col1
----
-993
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7026
SELECT ALL CAST( + - 8 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL CAST ( + - 8 AS INTEGER ) AS col2
----
-8

query II rowsort
SELECT - 74, 40 AS col1
----
-74
40

query I rowsort
SELECT DISTINCT CASE + 78 WHEN - + 98 + 9 + + - 55 THEN + 86 + + 47 WHEN + - COALESCE ( - 4, + + 62 * 40 ) THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT 51 AS col1, - 40 + - 74 AS col0
----
51
-114

query I rowsort
SELECT ALL ( + 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT - 15 * + - NULLIF ( - COALESCE ( + + COUNT( * ), - 39 ), - MIN( - - ( - + 59 ) ) + 99 + + 4 * + COUNT( * ) ) * - 21 AS col2
----
315

skipif mysql # not compatible
query I rowsort label-7031
SELECT - 15 * + - NULLIF ( - COALESCE ( + + COUNT ( * ), - 39 ), - MIN ( - - ( - + 59 ) ) + 99 + + 4 * + COUNT ( * ) ) * - 21 AS col2
----
315

query I rowsort
SELECT ALL - 64 * + 36
----
-2304

query II rowsort
SELECT + - 50 col1, 27 * - 70 * + + 17 AS col1
----
-50
-32130

onlyif mysql # DIV for integer division: 
query I rowsort label-7034
SELECT ALL - 20 DIV 7 + - 80
----
-82

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL - 20 / 7 + - 80
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL + + CAST( + + 3 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL + + CAST ( + + 3 AS INTEGER ) AS col1
----
3

query I rowsort
SELECT DISTINCT 46 / CASE + 5 WHEN + 51 * 83 - - - 91 * - + 65 THEN + + 65 * - + 99 ELSE NULL END + - 62 + + 91
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT ALL + + 66 DIV - - 50 + + - 3 col1
----
-2

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL + + 66 / - - 50 + + - 3 col1
----
-2

query I rowsort
SELECT - 31 + + - 51
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-7039
SELECT + 58 AS col1, 85 DIV + 63
----
58
1

skipif mysql # not compatible
query II rowsort label-7039
SELECT + 58 AS col1, 85 / + 63
----
58
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7040
SELECT - - 80 * - 58 + NULLIF ( + ( ( + - ( + - 19 ) ) ), 47 ) AS col2, CAST( 35 AS SIGNED ) * - + CAST( + 48 AS SIGNED ) + 45 + CAST( + 25 AS SIGNED ) + + 87 AS col0
----
-4621
-1523

skipif mysql # not compatible
query II rowsort label-7040
SELECT - - 80 * - 58 + NULLIF ( + ( ( + - ( + - 19 ) ) ), 47 ) AS col2, CAST ( 35 AS INTEGER ) * - + CAST ( + 48 AS INTEGER ) + 45 + CAST ( + 25 AS INTEGER ) + + 87 AS col0
----
-4621
-1523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL CAST( NULL AS SIGNED ) * + - COUNT( * ) * + 96 * 3 + - - NULLIF ( 13, 75 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * + 96 * 3 + - - NULLIF ( 13, 75 ) col0
----
NULL

query I rowsort
SELECT + 54 * + 85 AS col1
----
4590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7043
SELECT - 81, + MAX( 68 ) * - CASE 8 WHEN + CAST( - + COUNT( * ) AS SIGNED ) THEN NULL WHEN 81 THEN NULL WHEN + AVG ( + + 5 ) THEN + AVG ( - - 87 ) END AS col1
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-7043
SELECT - 81, + MAX ( 68 ) * - CASE 8 WHEN + CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL WHEN 81 THEN NULL WHEN + AVG ( + + 5 ) THEN + AVG ( - - 87 ) END AS col1
----
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT ALL CAST( NULL AS SIGNED ) / + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL CAST ( NULL AS INTEGER ) / + 28
----
NULL

query I rowsort
SELECT ALL - 22 * 87
----
-1914

query I rowsort
SELECT ALL 12 * + 81
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + 18 + + + ( - COUNT( * ) ) * 30 + - 15
----
-27

skipif mysql # not compatible
query I rowsort label-7047
SELECT + 18 + + + ( - COUNT ( * ) ) * 30 + - 15
----
-27

query I rowsort
SELECT ALL 79 * + 95 + + 38
----
7543

query I rowsort
SELECT ALL 76 * + 24 AS col1
----
1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7050
SELECT CASE + - 34 WHEN + + 91 - - + 43 THEN + 70 + 52 + 94 - - 7 + 69 DIV + 17 WHEN - - 75 THEN + COUNT( * ) ELSE - - 18 DIV COUNT( * ) * + 22 END
----
396

skipif mysql # not compatible
query I rowsort label-7050
SELECT CASE + - 34 WHEN + + 91 - - + 43 THEN + 70 + 52 + 94 - - 7 + 69 / + 17 WHEN - - 75 THEN + COUNT ( * ) ELSE - - 18 / COUNT ( * ) * + 22 END
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7051
SELECT CAST( NULL AS SIGNED ) * + 2 + + ( - 79 ) - - 27 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT CAST ( NULL AS INTEGER ) * + 2 + + ( - 79 ) - - 27 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT ALL 34 * - - 38 - + 98 * - COALESCE ( + - CASE - - 31 WHEN - 0 * - 65 THEN NULL WHEN + 4 * - 57 * + 4 THEN + 45 * + ( CAST( + 40 AS SIGNED ) ) ELSE + 32 END, - + 76 + - 26 + - 91 * + - 51 ) * - + 36
----
114188

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL 34 * - - 38 - + 98 * - COALESCE ( + - CASE - - 31 WHEN - 0 * - 65 THEN NULL WHEN + 4 * - 57 * + 4 THEN + 45 * + ( CAST ( + 40 AS INTEGER ) ) ELSE + 32 END, - + 76 + - 26 + - 91 * + - 51 ) * - + 36
----
114188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7053
SELECT - CAST( + + 84 AS SIGNED ) col0, - 75 + + 23 - - COUNT( ALL - 29 )
----
-84
-51

skipif mysql # not compatible
query II rowsort label-7053
SELECT - CAST ( + + 84 AS INTEGER ) col0, - 75 + + 23 - - COUNT ( ALL - 29 )
----
-84
-51

query I rowsort
SELECT - 40 + - + 51
----
-91

query I rowsort
SELECT ALL CASE 33 WHEN - + 24 / + 25 THEN NULL WHEN 21 * - 40 THEN + 78 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT + ( + COUNT( * ) ) * 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT + ( + COUNT ( * ) ) * 91 AS col0
----
91

query I rowsort
SELECT 12 * 85
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT DISTINCT + 16 * COUNT( * ) * - ( + COUNT( * ) )
----
-16

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT + 16 * COUNT ( * ) * - ( + COUNT ( * ) )
----
-16

query II rowsort
SELECT 92 + 50 AS col1, + 52
----
142
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7060
SELECT CAST( NULL AS DECIMAL ) / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT CAST ( NULL AS REAL ) / 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT DISTINCT + 93 * ( - + COUNT( * ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT + 93 * ( - + COUNT ( * ) ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL - 35 * - - COUNT( * ) * + 78 + + 46
----
-2684

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL - 35 * - - COUNT ( * ) * + 78 + + 46
----
-2684

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ALL SUM( DISTINCT - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL SUM ( DISTINCT - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - MAX( NULLIF ( - 3, + 83 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7064
SELECT - MAX ( NULLIF ( - 3, + 83 ) ) AS col2
----
3

query I rowsort
SELECT + 36 + + 12 AS col1
----
48

query I rowsort
SELECT DISTINCT + 33 + - COALESCE ( - 21, - - 3 ) AS col2
----
54

query I rowsort
SELECT DISTINCT + + NULLIF ( + 2, 96 * - 21 ) + - + ( + - 76 ) * + - 12
----
-910

query I rowsort
SELECT + 7 + + 75
----
82

query I rowsort
SELECT - ( - 50 ) * - 62 AS col1
----
-3100

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT ( NULLIF ( + - 78, + - 95 ) ) DIV 63 + 26 + + 27 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7070
SELECT ( NULLIF ( + - 78, + - 95 ) ) / 63 + 26 + + 27 AS col0
----
52

query I rowsort
SELECT ALL - - 64 + + 53
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL + - COALESCE ( 23, COUNT( * ) * - 93 ) * 67 AS col2
----
-1541

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL + - COALESCE ( 23, COUNT ( * ) * - 93 ) * 67 AS col2
----
-1541

query I rowsort
SELECT ALL - + 72 + + - 36 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT ALL COUNT( * ) - - - 76 + + + COUNT( * ) - - COUNT( * ) * - - ( 97 ) - + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL COUNT ( * ) - - - 76 + + + COUNT ( * ) - - COUNT ( * ) * - - ( 97 ) - + COUNT ( * ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7075
SELECT DISTINCT + 82 * CAST( NULL AS SIGNED ) * + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT + 82 * CAST ( NULL AS INTEGER ) * + 10 AS col1
----
NULL

query I rowsort
SELECT ( - 83 ) * - + 13 - - 65 col2
----
1144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7077
SELECT ( 4 ) DIV - - COUNT( * ) + 83
----
87

skipif mysql # not compatible
query I rowsort label-7077
SELECT ( 4 ) / - - COUNT ( * ) + 83
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7078
SELECT ALL 70 - - 84 - + CAST( COUNT( * ) AS SIGNED ) * + 0 + - + 82 + CASE + CAST( NULL AS DECIMAL ) WHEN + + 70 * - + COALESCE ( - CAST( - + 46 AS SIGNED ), - 6, + 19 ) + + - 61 * - CAST( - - 13 AS DECIMAL ) + 75 THEN 57 * - NULLIF ( + 26, - 15 ) WHEN 72 * + + COALESCE ( - - 19, - - ( - - 27 ) * + 93 * - 57 + + 1 ) * - - 61 - + 49 THEN - NULLIF ( + - 74, - + 32 - 74 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL 70 - - 84 - + CAST ( COUNT ( * ) AS INTEGER ) * + 0 + - + 82 + CASE + CAST ( NULL AS REAL ) WHEN + + 70 * - + COALESCE ( - CAST ( - + 46 AS INTEGER ), - 6, + 19 ) + + - 61 * - CAST ( - - 13 AS REAL ) + 75 THEN 57 * - NULLIF ( + 26, - 15 ) WHEN 72 * + + COALESCE ( - - 19, - - ( - - 27 ) * + 93 * - 57 + + 1 ) * - - 61 - + 49 THEN - NULLIF ( + - 74, - + 32 - 74 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7079
SELECT DISTINCT 29 DIV - 10
----
-2

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT 29 / - 10
----
-2

query I rowsort
SELECT 80 * + 32 AS col1
----
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT 86 - + - 15 * + + SUM( - 50 ) - - 55
----
-609

skipif mysql # not compatible
query I rowsort label-7081
SELECT 86 - + - 15 * + + SUM ( - 50 ) - - 55
----
-609

query I rowsort
SELECT ALL 64 * 78
----
4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7083
SELECT DISTINCT 76 DIV + COUNT( * ) * - COUNT( ALL - ( - + 49 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT 76 / + COUNT ( * ) * - COUNT ( ALL - ( - + 49 ) )
----
-76

query I rowsort
SELECT ALL 99 * 12
----
1188

query I rowsort
SELECT CASE - - 44 WHEN + 29 THEN + - 85 * 23 ELSE 72 END * - 19 AS col2
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT 95 + + 57 * COUNT( * ) * + 50 + - 14
----
2931

skipif mysql # not compatible
query I rowsort label-7086
SELECT 95 + + 57 * COUNT ( * ) * + 50 + - 14
----
2931

query I rowsort
SELECT 31 - 97 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7088
SELECT 76 AS col2, - COUNT( * ) * COUNT( * )
----
76
-1

skipif mysql # not compatible
query II rowsort label-7088
SELECT 76 AS col2, - COUNT ( * ) * COUNT ( * )
----
76
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7089
SELECT 47 * + 52 * + - 27 DIV 3
----
-21996

skipif mysql # not compatible
query I rowsort label-7089
SELECT 47 * + 52 * + - 27 / 3
----
-21996

query I rowsort
SELECT ALL 27 + 47
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL - + COUNT( * ) + + + 47
----
46

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL - + COUNT ( * ) + + + 47
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL + + 54 + + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL + + 54 + + + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT + COUNT( * ) + + 61 + - COUNT( * ) + + - 46
----
15

skipif mysql # not compatible
query I rowsort label-7093
SELECT + COUNT ( * ) + + 61 + - COUNT ( * ) + + - 46
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ALL SUM( ALL - + 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL SUM ( ALL - + 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT - 91 * COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-7095
SELECT - 91 * COUNT ( * ) AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7096
SELECT + 0 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-7096
SELECT + 0 / 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT SUM( + + 30 ) * 71 * 39 - - CASE 1 WHEN - AVG ( DISTINCT + 30 ) * - + 20 THEN NULL ELSE + 18 + - 34 * + - 88 END + COUNT( * ) AS col0, - 58
----
86081
-58

skipif mysql # not compatible
query II rowsort label-7097
SELECT SUM ( + + 30 ) * 71 * 39 - - CASE 1 WHEN - AVG ( DISTINCT + 30 ) * - + 20 THEN NULL ELSE + 18 + - 34 * + - 88 END + COUNT ( * ) AS col0, - 58
----
86081
-58

query I rowsort
SELECT - + ( + COALESCE ( - - 54, - 1 ) )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7099
SELECT DISTINCT - 71 * 43 + CASE - - 18 WHEN COUNT( * ) * 1 + + 89 + + + 49 + CAST( - + 65 AS SIGNED ) THEN NULL WHEN - - 31 - + CASE - COUNT( * ) WHEN - + 64 / + - 46 + + COUNT( * ) THEN NULL WHEN MAX( ALL + + 72 ) THEN + 80 * 95 + - - 19 - - 68 END * + 61 + 0 THEN - + 27 * + 79 * 66 * 5 - + + 4 - COUNT( * ) + + - 50 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT - 71 * 43 + CASE - - 18 WHEN COUNT ( * ) * 1 + + 89 + + + 49 + CAST ( - + 65 AS INTEGER ) THEN NULL WHEN - - 31 - + CASE - COUNT ( * ) WHEN - + 64 / + - 46 + + COUNT ( * ) THEN NULL WHEN MAX ( ALL + + 72 ) THEN + 80 * 95 + - - 19 - - 68 END * + 61 + 0 THEN - + 27 * + 79 * 66 * 5 - + + 4 - COUNT ( * ) + + - 50 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7100
SELECT - CASE - 5 WHEN + MAX( DISTINCT - + 93 ) THEN NULL ELSE 75 * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) END AS col1, 34 AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-7100
SELECT - CASE - 5 WHEN + MAX ( DISTINCT - + 93 ) THEN NULL ELSE 75 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) END AS col1, 34 AS col1
----
NULL
34

query II rowsort
SELECT + 77 AS col1, 49
----
77
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + 41 * - 88 - + 7 * 36 * + - 59 + + NULLIF ( - + SUM( ALL 73 ), - 96 + 95 - + - 3 * + 87 * - 1 / - 9 * 34 + - - 95 )
----
11187

skipif mysql # not compatible
query I rowsort label-7102
SELECT + 41 * - 88 - + 7 * 36 * + - 59 + + NULLIF ( - + SUM ( ALL 73 ), - 96 + 95 - + - 3 * + 87 * - 1 / - 9 * 34 + - - 95 )
----
11187

query I rowsort
SELECT 96 - + 30 * 2
----
36

query I rowsort
SELECT ALL 83 * 35 - - NULLIF ( - - 22, - + 18 )
----
2927

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT + 64 * + + COUNT( * ) + 52 + + 33 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-7105
SELECT + 64 * + + COUNT ( * ) + 52 + + 33 AS col1
----
149

query I rowsort
SELECT 77 * - - 54 AS col0
----
4158

query I rowsort
SELECT ALL 23 * 34 col0
----
782

query I rowsort
SELECT - 29 + - 66 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-7109
SELECT DISTINCT + COUNT( * ) AS col0, 44 AS col2
----
1
44

skipif mysql # not compatible
query II rowsort label-7109
SELECT DISTINCT + COUNT ( * ) AS col0, 44 AS col2
----
1
44

query I rowsort
SELECT - 5 + - 92 + - 28 - - NULLIF ( 17, - 25 ) * + 49
----
708

query II rowsort
SELECT ALL + 76, 20 AS col0
----
76
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT SUM( + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-7112
SELECT SUM ( + 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT DISTINCT + NULLIF ( 90, - - COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT + NULLIF ( 90, - - COUNT ( * ) )
----
90

query I rowsort
SELECT ALL - NULLIF ( - + 3, - - 96 ) * + ( + 77 )
----
231

query II rowsort
SELECT 23, - 51 AS col2
----
23
-51

query II rowsort
SELECT 37 AS col0, 37 + - 13
----
37
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT + 51 + + MIN( + + 25 )
----
76

skipif mysql # not compatible
query I rowsort label-7117
SELECT + 51 + + MIN ( + + 25 )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7118
SELECT - 25, 78 DIV - 93 AS col2
----
-25
0

skipif mysql # not compatible
query II rowsort label-7118
SELECT - 25, 78 / - 93 AS col2
----
-25
0

query I rowsort
SELECT DISTINCT 74 + + - ( - - 99 ) AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7120
SELECT + 15 * 75, ( - 65 ) * - 27 + - CAST( 75 AS SIGNED ) * + + 7 * - 39 - - 99 * 1 * + + 67 AS col1
----
1125
28863

skipif mysql # not compatible
query II rowsort label-7120
SELECT + 15 * 75, ( - 65 ) * - 27 + - CAST ( 75 AS INTEGER ) * + + 7 * - 39 - - 99 * 1 * + + 67 AS col1
----
1125
28863

query I rowsort
SELECT DISTINCT - ( + 49 ) AS col2
----
-49

query I rowsort
SELECT + COALESCE ( + 91, 91 + - 44 * 84 ) * + ( - 38 ) * 24 + - + 53 + + 53 * 27 AS col1
----
-81614

onlyif mysql # aggregate syntax: 
query II rowsort label-7123
SELECT 56, COUNT( * ) AS col2
----
56
1

skipif mysql # not compatible
query II rowsort label-7123
SELECT 56, COUNT ( * ) AS col2
----
56
1

query I rowsort
SELECT ALL 6 + + + 82 - - 46 AS col1
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT - CASE + + ( + 84 ) WHEN + COALESCE ( - ( - COUNT( * ) ), CAST( 56 AS SIGNED ), 46 + 20 * 78 * - - CAST( NULL AS SIGNED ) ) THEN NULL WHEN - - 84 * + + 44 THEN + ( 97 ) END - + 70 + 21 * + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT - CASE + + ( + 84 ) WHEN + COALESCE ( - ( - COUNT ( * ) ), CAST ( 56 AS INTEGER ), 46 + 20 * 78 * - - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - - 84 * + + 44 THEN + ( 97 ) END - + 70 + 21 * + 70 AS col0
----
NULL

query I rowsort
SELECT - + NULLIF ( 86, - + 8 + + AVG ( ALL 92 ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT + - 3 * ( + COUNT( * ) ) + - - 93 * + + 58 AS col0
----
5391

skipif mysql # not compatible
query I rowsort label-7127
SELECT + - 3 * ( + COUNT ( * ) ) + - - 93 * + + 58 AS col0
----
5391

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + - CASE + 5 WHEN ( - 40 ) - + 10 + - 42 THEN NULL WHEN - + 95 + + - 65 * + 53 * - COUNT( * ) THEN - - 30 / + + 14 + 15 WHEN 82 THEN - 77 * 96 + + COUNT( * ) END * + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT + - CASE + 5 WHEN ( - 40 ) - + 10 + - 42 THEN NULL WHEN - + 95 + + - 65 * + 53 * - COUNT ( * ) THEN - - 30 / + + 14 + 15 WHEN 82 THEN - 77 * 96 + + COUNT ( * ) END * + + 59
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7129
SELECT + 67 + 18 DIV - 61 - - + 39 + + + 25 - + COUNT( * ) + - 59 * + 44 - + + ( - + 28 ) + + - 55 + + - 49 * + COUNT( * ) * - 29 * - - 92 + - ( - - MAX( ALL - + 9 ) ) - + - ( - 72 ) * + 27 DIV - + COUNT( * )
----
130192

skipif mysql # not compatible
query I rowsort label-7129
SELECT + 67 + 18 / - 61 - - + 39 + + + 25 - + COUNT ( * ) + - 59 * + 44 - + + ( - + 28 ) + + - 55 + + - 49 * + COUNT ( * ) * - 29 * - - 92 + - ( - - MAX ( ALL - + 9 ) ) - + - ( - 72 ) * + 27 / - + COUNT ( * )
----
130192

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT COALESCE ( 46, 5 * COUNT( * ) + 7, + MAX( ALL - 20 ) )
----
46

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT COALESCE ( 46, 5 * COUNT ( * ) + 7, + MAX ( ALL - 20 ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ALL - - ( + 18 ) * - 95 - COUNT( * ) AS col2
----
-1711

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL - - ( + 18 ) * - 95 - COUNT ( * ) AS col2
----
-1711

query II rowsort
SELECT ALL + + 31 AS col2, 43 AS col2
----
31
43

query I rowsort
SELECT - - 54 + + + 87
----
141

query II rowsort
SELECT + - 22 AS col0, 42 * + + 89 col2
----
-22
3738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT ALL + - CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL + - CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT ALL - - 42 * 63 * - CAST( NULL AS SIGNED ) + - + 71 * 24 + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL - - 42 * 63 * - CAST ( NULL AS INTEGER ) + - + 71 * 24 + - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT + 59 * MAX( DISTINCT + - 67 ) AS col1
----
-3953

skipif mysql # not compatible
query I rowsort label-7137
SELECT + 59 * MAX ( DISTINCT + - 67 ) AS col1
----
-3953

onlyif mysql # aggregate syntax: 
query II rowsort label-7138
SELECT + ( - - 81 ) col2, 20 + - 94 + + + COUNT( * ) - COUNT( * ) AS col1
----
81
-74

skipif mysql # not compatible
query II rowsort label-7138
SELECT + ( - - 81 ) col2, 20 + - 94 + + + COUNT ( * ) - COUNT ( * ) AS col1
----
81
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL + 65 * COUNT( 90 )
----
65

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + 65 * COUNT ( 90 )
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7140
SELECT - COUNT( * ) DIV - - 56 * - 92 DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7140
SELECT - COUNT ( * ) / - - 56 * - 92 / COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7141
SELECT - COALESCE ( - 57, + 0 DIV + 45 ) * + 39 * - 9 - - CAST( + 89 AS SIGNED ) * + COUNT( * ) AS col1
----
-19918

skipif mysql # not compatible
query I rowsort label-7141
SELECT - COALESCE ( - 57, + 0 / + 45 ) * + 39 * - 9 - - CAST ( + 89 AS INTEGER ) * + COUNT ( * ) AS col1
----
-19918

query I rowsort
SELECT COALESCE ( + ( - 22 ), - 98 * - 46, + 79 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT + ( - 76 ) * + - 59 - - 46 + + 84 * - - 11 + - - COUNT( * ) AS col2
----
5455

skipif mysql # not compatible
query I rowsort label-7143
SELECT + ( - 76 ) * + - 59 - - 46 + + 84 * - - 11 + - - COUNT ( * ) AS col2
----
5455

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT + MIN( ALL - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-7144
SELECT + MIN ( ALL - 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT COALESCE ( + - MIN( - 65 ), COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-7145
SELECT COALESCE ( + - MIN ( - 65 ), COUNT ( * ) )
----
65

query I rowsort
SELECT ALL - 36 * - 55 + + 43 AS col0
----
2023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7147
SELECT - 39 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT - 39 - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL COALESCE ( - 36, + 64 ) AS col1, + 67
----
-36
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT ALL MIN( ALL 39 ) * - COUNT( * ) + + + 82 col2
----
43

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL MIN ( ALL 39 ) * - COUNT ( * ) + + + 82 col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - - COUNT( * ) + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-7150
SELECT - - COUNT ( * ) + - 18
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7151
SELECT - + CAST( NULL AS SIGNED ) + ( + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT - + CAST ( NULL AS INTEGER ) + ( + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + 83 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7152
SELECT + + 26 - + 37 + + 46 + 48 * + 68 * + COALESCE ( 40, + + 54 * - - 32 + - + CAST( - COUNT( * ) AS SIGNED ) ) - 62 + - COUNT( * ) * - 3 * 70 AS col0
----
130743

skipif mysql # not compatible
query I rowsort label-7152
SELECT + + 26 - + 37 + + 46 + 48 * + 68 * + COALESCE ( 40, + + 54 * - - 32 + - + CAST ( - COUNT ( * ) AS INTEGER ) ) - 62 + - COUNT ( * ) * - 3 * 70 AS col0
----
130743

query I rowsort
SELECT - 82 * + 16 * + - 76 + + 10
----
99722

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + MIN( DISTINCT - 72 ) - 37 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-7154
SELECT + MIN ( DISTINCT - 72 ) - 37 AS col2
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-7155
SELECT ALL + MAX( - 34 ), - 34 AS col1
----
-34
-34

skipif mysql # not compatible
query II rowsort label-7155
SELECT ALL + MAX ( - 34 ), - 34 AS col1
----
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT - 9 + - ( 32 ) + - + COALESCE ( + 0, + 31 * 91 ) + - COUNT( * ) + - 23 + 98 * - 29 * + + 57
----
-162059

skipif mysql # not compatible
query I rowsort label-7156
SELECT - 9 + - ( 32 ) + - + COALESCE ( + 0, + 31 * 91 ) + - COUNT ( * ) + - 23 + 98 * - 29 * + + 57
----
-162059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7157
SELECT + COUNT( * ) + - 77 DIV - 99 * + 80
----
1

skipif mysql # not compatible
query I rowsort label-7157
SELECT + COUNT ( * ) + - 77 / - 99 * + 80
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT - 85 + - 41 + - SUM( + - 14 ) * 36
----
378

skipif mysql # not compatible
query I rowsort label-7158
SELECT - 85 + - 41 + - SUM ( + - 14 ) * 36
----
378

query I rowsort
SELECT + + COALESCE ( - - 15, - 10 + 80 + - 98 * - - 80 ) * + 68 col1
----
1020

query I rowsort
SELECT + - 50 + 62 + + 94 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT + CASE NULLIF ( + 99, + - 80 ) WHEN 36 * + SUM( + 49 ) + + COUNT( * ) THEN - 86 * 0 + - 33 * + 6 + - COUNT( * ) + - - 67 - COUNT( * ) + 17 - - COUNT( * ) ELSE - - 82 + - COUNT( * ) END * + 14
----
1134

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + CASE NULLIF ( + 99, + - 80 ) WHEN 36 * + SUM ( + 49 ) + + COUNT ( * ) THEN - 86 * 0 + - 33 * + 6 + - COUNT ( * ) + - - 67 - COUNT ( * ) + 17 - - COUNT ( * ) ELSE - - 82 + - COUNT ( * ) END * + 14
----
1134

query I rowsort
SELECT 70 * 45
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT 59 * + + NULLIF ( + 73, - - COUNT( * ) * - NULLIF ( - + 6, 46 ) )
----
4307

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT 59 * + + NULLIF ( + 73, - - COUNT ( * ) * - NULLIF ( - + 6, 46 ) )
----
4307

query I rowsort
SELECT ( - 3 ) + 25 AS col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7165
SELECT COUNT( * ) * 23 * - 58 AS col2, 79 + 34 + - - 35 * - + 9
----
-1334
-202

skipif mysql # not compatible
query II rowsort label-7165
SELECT COUNT ( * ) * 23 * - 58 AS col2, 79 + 34 + - - 35 * - + 9
----
-1334
-202

query I rowsort
SELECT ALL 11 + - + 38
----
-27

query I rowsort
SELECT ALL - CASE + 80 WHEN + 58 THEN 69 + - 34 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT 46 + + 79 + COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT 46 + + 79 + COUNT ( * )
----
126

query II rowsort
SELECT 0 AS col1, 26
----
0
26

query I rowsort
SELECT 31 - 33
----
-2

query II rowsort
SELECT + 12, 93 AS col2
----
12
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7172
SELECT ALL + MIN( DISTINCT 62 ) + + ( - 44 ) + - + COALESCE ( - COALESCE ( 86, - + 1, CAST( NULL AS SIGNED ) ), + COUNT( * ) ) + 55 * + + NULLIF ( - 32, 92 ) + + + COUNT( * ) AS col0
----
-1655

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + MIN ( DISTINCT 62 ) + + ( - 44 ) + - + COALESCE ( - COALESCE ( 86, - + 1, CAST ( NULL AS INTEGER ) ), + COUNT ( * ) ) + 55 * + + NULLIF ( - 32, 92 ) + + + COUNT ( * ) AS col0
----
-1655

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ( + + SUM( DISTINCT 36 ) ) + 30
----
66

skipif mysql # not compatible
query I rowsort label-7173
SELECT ( + + SUM ( DISTINCT 36 ) ) + 30
----
66

query I rowsort
SELECT 30 + + 63 AS col1
----
93

query II rowsort
SELECT ALL - 1, - 76 AS col1
----
-1
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7176
SELECT ALL ( - - 47 ) + + 61 * - - 87 - + - COUNT( * ) - + 51 DIV 70 AS col2
----
5355

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL ( - - 47 ) + + 61 * - - 87 - + - COUNT ( * ) - + 51 / 70 AS col2
----
5355

query I rowsort
SELECT 46 * 38 AS col1
----
1748

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7178
SELECT DISTINCT + SUM( DISTINCT + + 42 ) - + 38, - 71 DIV + 3 + + 21 col2
----
4
-2

skipif mysql # not compatible
query II rowsort label-7178
SELECT DISTINCT + SUM ( DISTINCT + + 42 ) - + 38, - 71 / + 3 + + 21 col2
----
4
-2

query I rowsort
SELECT - 53 + 83 AS col0
----
30

query I rowsort
SELECT - 27 + 15 - 26 AS col2
----
-38

query I rowsort
SELECT DISTINCT - ( - 43 ) AS col1
----
43

query I rowsort
SELECT + 2 + 11 AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7183
SELECT 67 + CAST( 54 AS SIGNED ) AS col1, + 27, 48 AS col1
----
121
27
48

skipif mysql # not compatible
query III rowsort label-7183
SELECT 67 + CAST ( 54 AS INTEGER ) AS col1, + 27, 48 AS col1
----
121
27
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT ALL + - CAST( NULL AS SIGNED ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + - CAST ( NULL AS INTEGER ) * 77
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7185
SELECT 15 - + 75 * + CASE + - 23 WHEN + - COALESCE ( - 4, + 79 / - 32 ) THEN ( + 39 ) * + 36 * + + CAST( - - 16 AS DECIMAL ) + + 61 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT 15 - + 75 * + CASE + - 23 WHEN + - COALESCE ( - 4, + 79 / - 32 ) THEN ( + 39 ) * + 36 * + + CAST ( - - 16 AS REAL ) + + 61 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + - 51 * - ( - 21 ) AS col1
----
-1071

query I rowsort
SELECT 46 * - + 91 + + - 21
----
-4207

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT + ( + 26 ) + + COUNT( * ) * 36
----
62

skipif mysql # not compatible
query I rowsort label-7188
SELECT + ( + 26 ) + + COUNT ( * ) * 36
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT 21 AS col2, COUNT( * ) + + + 39 + + COUNT( * ) AS col1
----
21
41

skipif mysql # not compatible
query II rowsort label-7189
SELECT 21 AS col2, COUNT ( * ) + + + 39 + + COUNT ( * ) AS col1
----
21
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7190
SELECT 36 + 13 + + NULLIF ( - NULLIF ( MIN( ALL + + 25 ), + - 98 * + 41 ), CAST( NULL AS SIGNED ) ) * - + 55
----
1424

skipif mysql # not compatible
query I rowsort label-7190
SELECT 36 + 13 + + NULLIF ( - NULLIF ( MIN ( ALL + + 25 ), + - 98 * + 41 ), CAST ( NULL AS INTEGER ) ) * - + 55
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL + MAX( ALL + 34 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL + MAX ( ALL + 34 ) col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7192
SELECT DISTINCT 58 DIV - - 44 + + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT 58 / - - 44 + + - 89
----
-88

query I rowsort
SELECT DISTINCT + 19 + 43 + - 99 * + 96
----
-9442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7194
SELECT COUNT( + + 22 ) - - + COALESCE ( - - NULLIF ( - 63, 42 ), 67 * - CAST( + NULLIF ( + - 14, - MAX( DISTINCT 31 ) ) AS SIGNED ) * - ( 61 ) + - COUNT( * ) - + + 55 ) * + 61 * - CASE - + AVG ( + 22 ) WHEN + - 19 * - ( 40 ) * MAX( DISTINCT - - COALESCE ( + 63, 43 ) ) THEN - 26 / + 81 - - + COUNT( DISTINCT + 16 ) END + - - ( + - NULLIF ( - + 50, - 10 * + 18 ) ) + 99 * 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT COUNT ( + + 22 ) - - + COALESCE ( - - NULLIF ( - 63, 42 ), 67 * - CAST ( + NULLIF ( + - 14, - MAX ( DISTINCT 31 ) ) AS INTEGER ) * - ( 61 ) + - COUNT ( * ) - + + 55 ) * + 61 * - CASE - + AVG ( + 22 ) WHEN + - 19 * - ( 40 ) * MAX ( DISTINCT - - COALESCE ( + 63, 43 ) ) THEN - 26 / + 81 - - + COUNT ( DISTINCT + 16 ) END + - - ( + - NULLIF ( - + 50, - 10 * + 18 ) ) + 99 * 7 col0
----
NULL

query I rowsort
SELECT ALL ( - 41 ) * + - 93 - + 38
----
3775

query I rowsort
SELECT ALL + 2 + + 2 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT - COUNT( * ) + 79 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT - COUNT ( * ) + 79 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT MIN( + + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-7198
SELECT MIN ( + + 55 )
----
55

query I rowsort
SELECT DISTINCT 5 * 50 col1
----
250

query I rowsort
SELECT DISTINCT 99 + + NULLIF ( - 94, - + 79 )
----
5

query I rowsort
SELECT ALL + 12 * + + 91 AS col0
----
1092

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT DISTINCT 45 DIV + ( - + 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT 45 / + ( - + 33 )
----
-1

query I rowsort
SELECT ( 99 ) * + + 3 AS col1
----
297

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7204
SELECT ALL CAST( + 15 AS SIGNED ) / - CASE + 53 WHEN + 27 THEN NULL ELSE + 3 * + 0 - + 33 + + - CAST( NULL AS DECIMAL ) END + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL CAST ( + 15 AS INTEGER ) / - CASE + 53 WHEN + 27 THEN NULL ELSE + 3 * + 0 - + 33 + + - CAST ( NULL AS REAL ) END + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT 30 + + 61 + - 80 + + CASE + 35 WHEN - 1 / + 6 * - COUNT( * ) + + 69 THEN + 40 ELSE NULL END * + 96 + + SUM( + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT 30 + + 61 + - 80 + + CASE + 35 WHEN - 1 / + 6 * - COUNT ( * ) + + 69 THEN + 40 ELSE NULL END * + 96 + + SUM ( + 16 )
----
NULL

query I rowsort
SELECT + + 66 col1
----
66

query I rowsort
SELECT 58 - 54 + 57 AS col1
----
61

query I rowsort
SELECT DISTINCT - 60 * 66 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT MAX( ALL - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT MAX ( ALL - 87 ) AS col2
----
-87

query I rowsort
SELECT - 0 * - 91 + - 23
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT DISTINCT - 22 DIV - + 61 col1
----
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT - 22 / - + 61 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT 81 * - 64 * + + COALESCE ( - - 58, 77 + - - ( - ( + 53 ) ) + 50 ) * COUNT( * )
----
-300672

skipif mysql # not compatible
query I rowsort label-7212
SELECT 81 * - 64 * + + COALESCE ( - - 58, 77 + - - ( - ( + 53 ) ) + 50 ) * COUNT ( * )
----
-300672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7213
SELECT - CAST( 20 AS SIGNED ) + - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-7213
SELECT - CAST ( 20 AS INTEGER ) + - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT - COUNT( * ) - - 39 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7214
SELECT - COUNT ( * ) - - 39 AS col0
----
38

query I rowsort
SELECT - + 92 * + 12 AS col1
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT DISTINCT + - 98 + - 51 + + COUNT( * )
----
-148

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT + - 98 + - 51 + + COUNT ( * )
----
-148

query I rowsort
SELECT - 16 * + 21
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT + - 73 + SUM( - 52 ) AS col2
----
-125

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT + - 73 + SUM ( - 52 ) AS col2
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT - 0 * - CASE - + COUNT( * ) WHEN - 72 THEN - 50 ELSE - 31 END
----
0

skipif mysql # not compatible
query I rowsort label-7219
SELECT - 0 * - CASE - + COUNT ( * ) WHEN - 72 THEN - 50 ELSE - 31 END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7220
SELECT - COUNT( * ) + - 3 + + 18 AS col2, - COUNT( * ) + + CAST( NULL AS SIGNED ) * + + 37 + - - 12 / - 34
----
14
NULL

skipif mysql # not compatible
query II rowsort label-7220
SELECT - COUNT ( * ) + - 3 + + 18 AS col2, - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + + 37 + - - 12 / - 34
----
14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT - MIN( ALL - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-7221
SELECT - MIN ( ALL - 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT ALL + ( + 0 ) * 87 * 98 + + COALESCE ( + 38, + CAST( NULL AS SIGNED ) ) col2
----
38

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + ( + 0 ) * 87 * 98 + + COALESCE ( + 38, + CAST ( NULL AS INTEGER ) ) col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT - 10 DIV + - ( - 50 ) - 61
----
-61

skipif mysql # not compatible
query I rowsort label-7223
SELECT - 10 / + - ( - 50 ) - 61
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7224
SELECT DISTINCT - MAX( ALL - 27 ) * + 52 + - 54 + + - 13, + COALESCE ( CAST( + 64 AS SIGNED ), + 62, CASE 39 WHEN + - MIN( DISTINCT - 70 ) THEN - 10 WHEN ( + + 17 ) THEN 73 WHEN 37 THEN NULL END ) AS col1
----
1337
64

skipif mysql # not compatible
query II rowsort label-7224
SELECT DISTINCT - MAX ( ALL - 27 ) * + 52 + - 54 + + - 13, + COALESCE ( CAST ( + 64 AS INTEGER ), + 62, CASE 39 WHEN + - MIN ( DISTINCT - 70 ) THEN - 10 WHEN ( + + 17 ) THEN 73 WHEN 37 THEN NULL END ) AS col1
----
1337
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT ALL + MAX( - - 98 ) col2
----
98

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + MAX ( - - 98 ) col2
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7226
SELECT - 99 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT - 99 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT ALL 10 / + CASE - COALESCE ( + + 31, + 71 ) WHEN + NULLIF ( 89, + 39 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) * 56 + 42 THEN NULL ELSE + 64 * CAST( ( 80 ) AS SIGNED ) + - 47 - - 65 * - 24 + - - 47 + - - CAST( NULL AS SIGNED ) + + SUM( DISTINCT CAST( + 9 AS SIGNED ) ) / - ( + COUNT( * ) ) * - COUNT( * ) * + 33 + + 71 / - + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL 10 / + CASE - COALESCE ( + + 31, + 71 ) WHEN + NULLIF ( 89, + 39 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 56 + 42 THEN NULL ELSE + 64 * CAST ( ( 80 ) AS INTEGER ) + - 47 - - 65 * - 24 + - - 47 + - - CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT CAST ( + 9 AS INTEGER ) ) / - ( + COUNT ( * ) ) * - COUNT ( * ) * + 33 + + 71 / - + 95 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7228
SELECT ALL - 76 * - CAST( NULL AS SIGNED ) - - - 29 - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL - 76 * - CAST ( NULL AS INTEGER ) - - - 29 - - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT - COUNT( * ) * 56 * + 34 + - 97
----
-2001

skipif mysql # not compatible
query I rowsort label-7229
SELECT - COUNT ( * ) * 56 * + 34 + - 97
----
-2001

query I rowsort
SELECT ALL 53 * - ( + 37 ) - - 82 AS col1
----
-1879

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT + 69 * - + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-7231
SELECT + 69 * - + COUNT ( * )
----
-69

query I rowsort
SELECT - 80 + + ( - 2 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7233
SELECT - 65 * - CASE + - 20 WHEN + COUNT( * ) THEN + 76 WHEN - ( NULLIF ( - 32, - 71 ) ) + 61 THEN NULL ELSE NULL END + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT - 65 * - CASE + - 20 WHEN + COUNT ( * ) THEN + 76 WHEN - ( NULLIF ( - 32, - 71 ) ) + 61 THEN NULL ELSE NULL END + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7234
SELECT + CASE + 53 WHEN + - 9 THEN NULL WHEN + - 21 * - 55 + + COALESCE ( + + 82, + 79 * - + 5 / CASE 30 WHEN 65 + - + 44 - 45 * - 24 * 28 THEN 83 * - ( - + 6 ) + + CAST( 40 AS SIGNED ) + - COUNT( * ) ELSE NULL END * - 17 * - 71 + + 46 * - + 9 + ( 60 ) + - 68 ) THEN NULL WHEN + 36 THEN NULL ELSE 27 END + - 82 * - 51 AS col0
----
4209

skipif mysql # not compatible
query I rowsort label-7234
SELECT + CASE + 53 WHEN + - 9 THEN NULL WHEN + - 21 * - 55 + + COALESCE ( + + 82, + 79 * - + 5 / CASE 30 WHEN 65 + - + 44 - 45 * - 24 * 28 THEN 83 * - ( - + 6 ) + + CAST ( 40 AS INTEGER ) + - COUNT ( * ) ELSE NULL END * - 17 * - 71 + + 46 * - + 9 + ( 60 ) + - 68 ) THEN NULL WHEN + 36 THEN NULL ELSE 27 END + - 82 * - 51 AS col0
----
4209

query I rowsort
SELECT - 74 * 15 AS col0
----
-1110

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT COUNT( * ) * - 75 + + MIN( ALL + - 89 )
----
-164

skipif mysql # not compatible
query I rowsort label-7236
SELECT COUNT ( * ) * - 75 + + MIN ( ALL + - 89 )
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT 72 * + 35 + - SUM( ALL 27 )
----
2493

skipif mysql # not compatible
query I rowsort label-7237
SELECT 72 * + 35 + - SUM ( ALL 27 )
----
2493

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT - COUNT( * ) * MIN( DISTINCT + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-7238
SELECT - COUNT ( * ) * MIN ( DISTINCT + 34 )
----
-34

query I rowsort
SELECT ALL + 81 * + 64 AS col1
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT DISTINCT + CASE + 3 WHEN + COUNT( * ) THEN NULL ELSE + 90 END * + 92 AS col0
----
8280

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT + CASE + 3 WHEN + COUNT ( * ) THEN NULL ELSE + 90 END * + 92 AS col0
----
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT MIN( ALL + 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7241
SELECT MIN ( ALL + 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + ( + 91 ) * - ( 12 ) + + COUNT( * ) * 83
----
-1009

skipif mysql # not compatible
query I rowsort label-7242
SELECT + ( + 91 ) * - ( 12 ) + + COUNT ( * ) * 83
----
-1009

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT + 70 * + 79 + 13 DIV 55 AS col1
----
5530

skipif mysql # not compatible
query I rowsort label-7243
SELECT + 70 * + 79 + 13 / 55 AS col1
----
5530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT + 49 + COUNT( 42 ) * CAST( 60 AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-7244
SELECT + 49 + COUNT ( 42 ) * CAST ( 60 AS INTEGER )
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT + 66 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT + 66 / 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7246
SELECT - 25 + 78 DIV - 14
----
-30

skipif mysql # not compatible
query I rowsort label-7246
SELECT - 25 + 78 / - 14
----
-30

query I rowsort
SELECT DISTINCT 1 + 88
----
89

query I rowsort
SELECT DISTINCT 60 + - 25 * 80 col2
----
-1940

query I rowsort
SELECT + 30 + + 75 AS col2
----
105

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7250
SELECT ALL 95 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL 95 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 77 * 1 AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT + 94 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7252
SELECT + 94 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 34 ) + + ( 75 ) * 68 AS col0
----
5134

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT - 53 + + COUNT( 2 )
----
-52

skipif mysql # not compatible
query I rowsort label-7254
SELECT - 53 + + COUNT ( 2 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT ALL + 84 + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL + 84 + COUNT ( * ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7256
SELECT - CAST( - 34 AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7256
SELECT - CAST ( - 34 AS INTEGER ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7257
SELECT DISTINCT NULLIF ( - ( + AVG ( - 90 ) ), 43 ) - - 37 / CAST( 60 + CASE COUNT( + 10 ) - - 56 WHEN 30 THEN ( 90 ) WHEN 59 * CASE NULLIF ( COUNT( * ), - 54 * - 38 ) WHEN - 14 / 41 + CAST( NULL AS SIGNED ) THEN + 98 ELSE NULL END + - 41 THEN 40 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT NULLIF ( - ( + AVG ( - 90 ) ), 43 ) - - 37 / CAST ( 60 + CASE COUNT ( + 10 ) - - 56 WHEN 30 THEN ( 90 ) WHEN 59 * CASE NULLIF ( COUNT ( * ), - 54 * - 38 ) WHEN - 14 / 41 + CAST ( NULL AS INTEGER ) THEN + 98 ELSE NULL END + - 41 THEN 40 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT - ( COUNT( * ) ) * CASE + 99 WHEN + COALESCE ( - 66, 54 ) - 1 THEN 88 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT - ( COUNT ( * ) ) * CASE + 99 WHEN + COALESCE ( - 66, 54 ) - 1 THEN 88 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 67 * 22 AS col1
----
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL + SUM( ( 98 ) )
----
98

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + SUM ( ( 98 ) )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7261
SELECT + MIN( DISTINCT - CAST( 69 AS SIGNED ) ) * 77 + + 92
----
-5221

skipif mysql # not compatible
query I rowsort label-7261
SELECT + MIN ( DISTINCT - CAST ( 69 AS INTEGER ) ) * 77 + + 92
----
-5221

query I rowsort
SELECT - 9 * - ( - 51 ) AS col2
----
-459

query I rowsort
SELECT ALL + - ( 36 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT - - CASE 30 WHEN + ( MIN( + 30 ) ) * - COUNT( * ) THEN 6 ELSE NULL END * - 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT - - CASE 30 WHEN + ( MIN ( + 30 ) ) * - COUNT ( * ) THEN 6 ELSE NULL END * - 0 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7265
SELECT DISTINCT - 44 DIV - 21 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT - 44 / - 21 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT - - ( + COUNT( * ) ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7266
SELECT - - ( + COUNT ( * ) ) * + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7267
SELECT ALL - + 19 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - + 19 / + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT ALL + MAX( + 4 ) * - 89 + COUNT( * ) AS col1
----
-355

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL + MAX ( + 4 ) * - 89 + COUNT ( * ) AS col1
----
-355

query I rowsort
SELECT - 35 * 89
----
-3115

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT + COUNT( * ) + 43 * 25 AS col1
----
1076

skipif mysql # not compatible
query I rowsort label-7270
SELECT + COUNT ( * ) + 43 * 25 AS col1
----
1076

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL - - SUM( + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL - - SUM ( + 95 ) AS col2
----
95

query I rowsort
SELECT + 53 * + 24 AS col2
----
1272

query I rowsort
SELECT - 23 * + 92
----
-2116

query I rowsort
SELECT ALL + 70 + + 22 AS col0
----
92

query I rowsort
SELECT DISTINCT - - 14 + 19 * - 67
----
-1259

query I rowsort
SELECT ALL 20 + - 34 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT COUNT( * ) * + MAX( 68 ) + - 97
----
-29

skipif mysql # not compatible
query I rowsort label-7277
SELECT COUNT ( * ) * + MAX ( 68 ) + - 97
----
-29

query I rowsort
SELECT ALL - COALESCE ( 36, 12 * 62, 24 + 78 ) + + 40 * + 57 col2
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT - SUM( ALL 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7279
SELECT - SUM ( ALL 66 ) AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT + CAST( NULL AS SIGNED ) + - 87 / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT + CAST ( NULL AS INTEGER ) + - 87 / 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT 70 + + COALESCE ( - COUNT( * ), 50 * 90 )
----
69

skipif mysql # not compatible
query I rowsort label-7281
SELECT 70 + + COALESCE ( - COUNT ( * ), 50 * 90 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT ALL - ( - 94 ) + 18 DIV - 48
----
94

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL - ( - 94 ) + 18 / - 48
----
94

query I rowsort
SELECT + 56 + + 34 * 2
----
124

query I rowsort
SELECT ( - 81 ) * - 59
----
4779

query I rowsort
SELECT ( - 55 ) - 31 AS col2
----
-86

query I rowsort
SELECT ALL - 89 - + + 78 AS col2
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT 15 * + COUNT( * ) * 32 col1
----
480

skipif mysql # not compatible
query I rowsort label-7287
SELECT 15 * + COUNT ( * ) * 32 col1
----
480

query I rowsort
SELECT DISTINCT 47 - + - 5 * - 8
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7289
SELECT COUNT( * ) + 52 DIV NULLIF ( 53, + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-7289
SELECT COUNT ( * ) + 52 / NULLIF ( 53, + 51 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL MIN( ALL - 55 ) - - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL MIN ( ALL - 55 ) - - COUNT ( * ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT COUNT( * ) + + MIN( 57 ) col2
----
58

skipif mysql # not compatible
query I rowsort label-7291
SELECT COUNT ( * ) + + MIN ( 57 ) col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7292
SELECT 14 * + 65 * COALESCE ( - NULLIF ( - SUM( + 51 ), 33 ), 29, CASE - 11 WHEN + 93 THEN NULL ELSE COUNT( * ) * + CAST( NULL AS SIGNED ) END, + 21 )
----
46410

skipif mysql # not compatible
query I rowsort label-7292
SELECT 14 * + 65 * COALESCE ( - NULLIF ( - SUM ( + 51 ), 33 ), 29, CASE - 11 WHEN + 93 THEN NULL ELSE COUNT ( * ) * + CAST ( NULL AS INTEGER ) END, + 21 )
----
46410

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT 20 + + 71 + + COUNT( * ) * - 70 * + 50 AS col0
----
-3409

skipif mysql # not compatible
query I rowsort label-7293
SELECT 20 + + 71 + + COUNT ( * ) * - 70 * + 50 AS col0
----
-3409

onlyif mysql # DIV for integer division: 
query I rowsort label-7294
SELECT 59 DIV + 15
----
3

skipif mysql # not compatible
query I rowsort label-7294
SELECT 59 / + 15
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT COALESCE ( + + NULLIF ( COUNT( * ), + 48 - 44 ), - NULLIF ( ( 68 ), + NULLIF ( - AVG ( DISTINCT - CASE - 71 WHEN + 2 THEN NULL ELSE - 5 - 74 END ), + 80 + - 36 ) * + ( + 25 ) ) * + 77 + + 45 ) + - 38 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7295
SELECT COALESCE ( + + NULLIF ( COUNT ( * ), + 48 - 44 ), - NULLIF ( ( 68 ), + NULLIF ( - AVG ( DISTINCT - CASE - 71 WHEN + 2 THEN NULL ELSE - 5 - 74 END ), + 80 + - 36 ) * + ( + 25 ) ) * + 77 + + 45 ) + - 38 AS col0
----
-37

query I rowsort
SELECT 65 * - 71 * - 70
----
323050

query I rowsort
SELECT 39 * 57 AS col0
----
2223

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT 8 DIV - 12 * 77 + - 82
----
-82

skipif mysql # not compatible
query I rowsort label-7298
SELECT 8 / - 12 * 77 + - 82
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ( - 87 ) + - COALESCE ( + 82 + + MAX( ALL + 63 ) * 46, 74 ) * 50
----
-149087

skipif mysql # not compatible
query I rowsort label-7299
SELECT ( - 87 ) + - COALESCE ( + 82 + + MAX ( ALL + 63 ) * 46, 74 ) * 50
----
-149087

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7300
SELECT 81 * - + COALESCE ( 87, - 42 ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT 81 * - + COALESCE ( 87, - 42 ) + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT ( ( + 77 ) ) * COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT ( ( + 77 ) ) * COUNT ( * ) AS col0
----
77

query I rowsort
SELECT ALL + 56 + - + 4 AS col1
----
52

query I rowsort
SELECT 44 + + 6 * 29 AS col2
----
218

query I rowsort
SELECT + 71 * - - 99 + 35 * - 8
----
6749

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT - ( + 1 ) DIV - 45 + + 37 col0
----
37

skipif mysql # not compatible
query I rowsort label-7305
SELECT - ( + 1 ) / - 45 + + 37 col0
----
37

query I rowsort
SELECT ALL + 90 + 30
----
120

query I rowsort
SELECT ALL 7 + - - 82 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT COUNT( * ) + - + 39 * 17
----
-662

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT COUNT ( * ) + - + 39 * 17
----
-662

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL - 41 + MIN( ALL 33 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL - 41 + MIN ( ALL 33 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT + 60 + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7310
SELECT + 60 + COUNT ( * ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7311
SELECT ALL - NULLIF ( + + CAST( NULL AS DECIMAL ), + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - NULLIF ( + + CAST ( NULL AS REAL ), + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 49 * 78 AS col2
----
3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7313
SELECT DISTINCT + COUNT( * ) DIV - 37 + CAST( + NULLIF ( + 5, 34 ) AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT + COUNT ( * ) / - 37 + CAST ( + NULLIF ( + 5, 34 ) AS INTEGER )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT ALL - + COALESCE ( - 33, COUNT( * ) ) + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL - + COALESCE ( - 33, COUNT ( * ) ) + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7315
SELECT 85 DIV + MIN( + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-7315
SELECT 85 / + MIN ( + 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT 15 * + COUNT( 29 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7316
SELECT 15 * + COUNT ( 29 ) AS col2
----
15

query I rowsort
SELECT 74 + - 99 + - 16
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT - COUNT( * ) - - 54 + ( 50 )
----
103

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT - COUNT ( * ) - - 54 + ( 50 )
----
103

query II rowsort
SELECT ALL 84 AS col2, 34
----
84
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7320
SELECT DISTINCT 86 AS col0, + COALESCE ( 19, COUNT( * ) DIV 74 ) col1
----
86
19

skipif mysql # not compatible
query II rowsort label-7320
SELECT DISTINCT 86 AS col0, + COALESCE ( 19, COUNT ( * ) / 74 ) col1
----
86
19

query I rowsort
SELECT ALL - 84 * - + 3 AS col2
----
252

query II rowsort
SELECT 49 AS col1, + 26 + 13 AS col2
----
49
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL SUM( ALL - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL SUM ( ALL - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT SUM( ALL 94 ) * + 95 AS col0
----
8930

skipif mysql # not compatible
query I rowsort label-7324
SELECT SUM ( ALL 94 ) * + 95 AS col0
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT COUNT( DISTINCT - 76 ) + - ( 43 ) + - 56 * 78
----
-4410

skipif mysql # not compatible
query I rowsort label-7325
SELECT COUNT ( DISTINCT - 76 ) + - ( 43 ) + - 56 * 78
----
-4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7326
SELECT DISTINCT 52 AS col1, - 61 * - 69 DIV MIN( + 97 * + 62 )
----
52
0

skipif mysql # not compatible
query II rowsort label-7326
SELECT DISTINCT 52 AS col1, - 61 * - 69 / MIN ( + 97 * + 62 )
----
52
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT 65 + - - CASE WHEN NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL THEN CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT 65 + - - CASE WHEN NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL THEN CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7328
SELECT ALL 28 DIV COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL 28 / COUNT ( * ) AS col0
----
28

query II rowsort
SELECT 54 AS col2, 76 AS col0
----
54
76

query I rowsort
SELECT ALL 22 + + ( - 98 ) * 12 AS col2
----
-1154

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT DISTINCT 80 * + COUNT( * ) * - - 3 * - 58 AS col0
----
-13920

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT 80 * + COUNT ( * ) * - - 3 * - 58 AS col0
----
-13920

query I rowsort
SELECT ALL ( + 51 ) * - 74 AS col1
----
-3774

query I rowsort
SELECT DISTINCT 51 + - 72 AS col2
----
-21

query I rowsort
SELECT DISTINCT 27 * 43
----
1161

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL 86 + + - ( - + COUNT( * ) ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL 86 + + - ( - + COUNT ( * ) ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + COUNT( ALL - - 42 )
----
1

skipif mysql # not compatible
query I rowsort label-7336
SELECT + COUNT ( ALL - - 42 )
----
1

query I rowsort
SELECT 2 * - 93
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT + 8 * + NULLIF ( + 5, - ( 8 ) ) / + CASE WHEN + 55 + 4 = 40 * 88 THEN ( - 76 ) WHEN + 37 * NULLIF ( + SUM( - 25 ), - 28 + MAX( ALL 36 - - ( 85 ) ) ) IS NULL THEN NULL ELSE NULL END + - SUM( - 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT + 8 * + NULLIF ( + 5, - ( 8 ) ) / + CASE WHEN + 55 + 4 = 40 * 88 THEN ( - 76 ) WHEN + 37 * NULLIF ( + SUM ( - 25 ), - 28 + MAX ( ALL 36 - - ( 85 ) ) ) IS NULL THEN NULL ELSE NULL END + - SUM ( - 65 ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7339
SELECT + 14 AS col2, - CAST( NULL AS DECIMAL ) * - + 97 AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-7339
SELECT + 14 AS col2, - CAST ( NULL AS REAL ) * - + 97 AS col1
----
14
NULL

query I rowsort
SELECT ALL + COALESCE ( + 41, 42 ) * 31 + + 67
----
1338

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT + + MAX( ALL + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-7341
SELECT + + MAX ( ALL + 24 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7342
SELECT ALL - + NULLIF ( - + 10, - CAST( NULL AS SIGNED ) ) * 81 + + 32 AS col0
----
842

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - + NULLIF ( - + 10, - CAST ( NULL AS INTEGER ) ) * 81 + + 32 AS col0
----
842

query I rowsort
SELECT + + 64 * + - 11 + + - 49 + 90 AS col0
----
-663

query I rowsort
SELECT DISTINCT + NULLIF ( - 66, + + 21 ) AS col1
----
-66

query I rowsort
SELECT - 80 * + - 57
----
4560

query I rowsort
SELECT + 1 * - + 70 + + 91
----
21

query I rowsort
SELECT ALL + ( + 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT + 38 + - COALESCE ( NULLIF ( 44, - ( + 78 ) + 64 * + COUNT( * ) ), 14 * 78 )
----
-6

skipif mysql # not compatible
query I rowsort label-7348
SELECT + 38 + - COALESCE ( NULLIF ( 44, - ( + 78 ) + 64 * + COUNT ( * ) ), 14 * 78 )
----
-6

query I rowsort
SELECT + NULLIF ( - 84, 14 * - 45 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT + + 37 * + NULLIF ( - 17, 87 * - COUNT( * ) + 45 ) + 31
----
-598

skipif mysql # not compatible
query I rowsort label-7350
SELECT + + 37 * + NULLIF ( - 17, 87 * - COUNT ( * ) + 45 ) + 31
----
-598

query I rowsort
SELECT - + 32 * - - 56
----
-1792

query II rowsort
SELECT DISTINCT + 17 AS col1, 33 col2
----
17
33

query I rowsort
SELECT DISTINCT 55 * - + 75 - 23 AS col0
----
-4148

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT ALL + 20, - COUNT( * ) AS col1
----
20
-1

skipif mysql # not compatible
query II rowsort label-7354
SELECT ALL + 20, - COUNT ( * ) AS col1
----
20
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT - 18 * - + 37 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT - 18 * - + 37 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT DISTINCT SUM( + 49 ) col0
----
49

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT SUM ( + 49 ) col0
----
49

query I rowsort
SELECT ALL ( ( + + 93 ) )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7358
SELECT ALL + NULLIF ( + 86, 17 + - + COUNT( * ) ) DIV 79 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + NULLIF ( + 86, 17 + - + COUNT ( * ) ) / 79 AS col2
----
1

query II rowsort
SELECT + 64 + - + 25 AS col2, + 58 + 52 col0
----
39
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT - CASE + + COALESCE ( 70, + COUNT( * ) - 63 * 78 ) WHEN 10 THEN 52 * COUNT( * ) END / 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT - CASE + + COALESCE ( 70, + COUNT ( * ) - 63 * 78 ) WHEN 10 THEN 52 * COUNT ( * ) END / 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - 82 * + + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-7361
SELECT - 82 * + + COUNT ( * )
----
-82

query I rowsort
SELECT - 40 + ( - 3 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - 46 - + SUM( ALL + + ( - 50 ) ) * + 95 col2
----
4704

skipif mysql # not compatible
query I rowsort label-7363
SELECT - 46 - + SUM ( ALL + + ( - 50 ) ) * + 95 col2
----
4704

query I rowsort
SELECT - 58 * - 66 * - - 6 AS col1
----
22968

query I rowsort
SELECT - 22 - - + 35
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT ALL - 81 + 19 AS col1, - COALESCE ( NULLIF ( + 15, COUNT( * ) * - 14 ), 6 + 32, - 36 * 14 + - 84 ) * 59
----
-62
-885

skipif mysql # not compatible
query II rowsort label-7366
SELECT ALL - 81 + 19 AS col1, - COALESCE ( NULLIF ( + 15, COUNT ( * ) * - 14 ), 6 + 32, - 36 * 14 + - 84 ) * 59
----
-62
-885

query I rowsort
SELECT ALL + 54 * + - 71 AS col0
----
-3834

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7368
SELECT - COUNT( * ) * - 72 DIV 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7368
SELECT - COUNT ( * ) * - 72 / 65 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT + COALESCE ( + 70, + 98 * - + 42 - MAX( DISTINCT 45 - 92 * - CASE 32 WHEN + 98 THEN - 92 END ), 66, - 13 + COUNT( * ) * + 56 ) + 49
----
119

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT + COALESCE ( + 70, + 98 * - + 42 - MAX ( DISTINCT 45 - 92 * - CASE 32 WHEN + 98 THEN - 92 END ), 66, - 13 + COUNT ( * ) * + 56 ) + 49
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7370
SELECT ALL - 81 + + + 82, ( + 97 ) * CAST( - 67 AS SIGNED ) AS col2
----
1
-6499

skipif mysql # not compatible
query II rowsort label-7370
SELECT ALL - 81 + + + 82, ( + 97 ) * CAST ( - 67 AS INTEGER ) AS col2
----
1
-6499

onlyif mysql # aggregate syntax: 
query II rowsort label-7371
SELECT - SUM( DISTINCT + 33 ) AS col1, 87
----
-33
87

skipif mysql # not compatible
query II rowsort label-7371
SELECT - SUM ( DISTINCT + 33 ) AS col1, 87
----
-33
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT ALL + 18 + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL + 18 + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7373
SELECT - COUNT( ALL - ( + 2 ) ) + + 10 DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-7373
SELECT - COUNT ( ALL - ( + 2 ) ) + + 10 / 52
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT - 68 + - + MAX( + - 23 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-7374
SELECT - 68 + - + MAX ( + - 23 ) col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7375
SELECT - CAST( + - 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-7375
SELECT - CAST ( + - 26 AS INTEGER )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7376
SELECT ALL 45 + CAST( NULL AS SIGNED ) - - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL 45 + CAST ( NULL AS INTEGER ) - - - 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7377
SELECT 68 / 68 * + + 42 + - + 80 * + CASE + COALESCE ( ( 81 ), - CAST( 1 AS SIGNED ) ) * - 5 WHEN + COALESCE ( - 51, + 45, + MAX( - 34 ) ) * + 5 THEN + 1 - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT 68 / 68 * + + 42 + - + 80 * + CASE + COALESCE ( ( 81 ), - CAST ( 1 AS INTEGER ) ) * - 5 WHEN + COALESCE ( - 51, + 45, + MAX ( - 34 ) ) * + 5 THEN + 1 - 24 END
----
NULL

query I rowsort
SELECT + - 10 * - - 13 + 6 AS col1
----
-124

query I rowsort
SELECT DISTINCT ( + 54 ) * + - 20 AS col1
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT ALL - 75 DIV - 35 - 19 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL - 75 / - 35 - 19 AS col1
----
-17

query I rowsort
SELECT ALL 25 * 41 * - 43 + + 62 AS col0
----
-44013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT - + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT - + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) * - 15
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7383
SELECT + + 27 DIV + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7383
SELECT + + 27 / + COUNT ( * ) AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT ALL + CAST( + 44 AS SIGNED ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + CAST ( + 44 AS INTEGER ) AS col0
----
44

query I rowsort
SELECT + + 78 + 10 + + 94
----
182

onlyif mysql # DIV for integer division: 
query II rowsort label-7386
SELECT + 31 DIV - 42 AS col0, - 35 + - 1 * + 10 AS col1
----
0
-45

skipif mysql # not compatible
query II rowsort label-7386
SELECT + 31 / - 42 AS col0, - 35 + - 1 * + 10 AS col1
----
0
-45

query I rowsort
SELECT ALL + - ( + + 41 )
----
-41

query I rowsort
SELECT + 58 + 29 AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7389
SELECT DISTINCT + MAX( ALL + 71 ), + 11 col1
----
71
11

skipif mysql # not compatible
query II rowsort label-7389
SELECT DISTINCT + MAX ( ALL + 71 ), + 11 col1
----
71
11

query II rowsort
SELECT ALL + - ( - 96 ) AS col2, NULLIF ( 56, 87 ) * - 8 AS col1
----
96
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT + COUNT( DISTINCT - 72 ) * + MAX( ALL + COALESCE ( + 24, - 96 * 16 ) )
----
24

skipif mysql # not compatible
query I rowsort label-7391
SELECT + COUNT ( DISTINCT - 72 ) * + MAX ( ALL + COALESCE ( + 24, - 96 * 16 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT CASE - 29 WHEN - - SUM( DISTINCT + + 59 ) THEN NULL WHEN - 69 THEN 81 WHEN 97 THEN 99 - + 29 WHEN + 87 + + 46 THEN 87 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT CASE - 29 WHEN - - SUM ( DISTINCT + + 59 ) THEN NULL WHEN - 69 THEN 81 WHEN 97 THEN 99 - + 29 WHEN + 87 + + 46 THEN 87 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7393
SELECT 49 * + NULLIF ( - 68, - 64 + - CAST( NULL AS SIGNED ) + - 55 * MAX( ALL + 27 ) * 11 ) + - 25 DIV 17 AS col2
----
-3333

skipif mysql # not compatible
query I rowsort label-7393
SELECT 49 * + NULLIF ( - 68, - 64 + - CAST ( NULL AS INTEGER ) + - 55 * MAX ( ALL + 27 ) * 11 ) + - 25 / 17 AS col2
----
-3333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7394
SELECT - COALESCE ( - 57, - + 76 + - 58 + + COUNT( * ) + - COUNT( * ) DIV 94 * MAX( ALL + NULLIF ( + 19, - COALESCE ( + 67, - 19, - 81 ) + - 81 * 20 ) ), 32 * COUNT( * ) + 86 ) + + 22
----
79

skipif mysql # not compatible
query I rowsort label-7394
SELECT - COALESCE ( - 57, - + 76 + - 58 + + COUNT ( * ) + - COUNT ( * ) / 94 * MAX ( ALL + NULLIF ( + 19, - COALESCE ( + 67, - 19, - 81 ) + - 81 * 20 ) ), 32 * COUNT ( * ) + 86 ) + + 22
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT + 58 * - - COALESCE ( - - COALESCE ( + 57, - SUM( DISTINCT 73 ), + 46 ), NULLIF ( MIN( + 15 ), COUNT( * ) * + 3 ) * 77, + ( - 53 ) ) AS col0
----
3306

skipif mysql # not compatible
query I rowsort label-7395
SELECT + 58 * - - COALESCE ( - - COALESCE ( + 57, - SUM ( DISTINCT 73 ), + 46 ), NULLIF ( MIN ( + 15 ), COUNT ( * ) * + 3 ) * 77, + ( - 53 ) ) AS col0
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT - ( COUNT( * ) ) * + - NULLIF ( ( + 87 ), + COUNT( * ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7396
SELECT - ( COUNT ( * ) ) * + - NULLIF ( ( + 87 ), + COUNT ( * ) ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7397
SELECT - COUNT( * ) + 99 / + - 58 / - 53 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT - COUNT ( * ) + 99 / + - 58 / - 53 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL 1 * 52 + + - COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL 1 * 52 + + - COUNT ( * ) AS col0
----
51

query I rowsort
SELECT ALL 16 * 12 * + + 17
----
3264

query I rowsort
SELECT DISTINCT + ( + + 4 ) * CASE COALESCE ( + 69, + 66 ) WHEN - 89 THEN - 4 END + 48
----
NULL

query I rowsort
SELECT ALL 70 * - NULLIF ( - 50, 76 ) + 79 + - 72 AS col2
----
3507

query I rowsort
SELECT + 92 * + + 3 AS col2
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7403
SELECT ( + COUNT( * ) ) * + - 41 + - + ( - + CAST( - 41 AS SIGNED ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7403
SELECT ( + COUNT ( * ) ) * + - 41 + - + ( - + CAST ( - 41 AS INTEGER ) ) AS col0
----
-82

query I rowsort
SELECT 94 * 86
----
8084

query I rowsort
SELECT ALL - 59 * + 44 AS col0
----
-2596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7406
SELECT 0 + - + MIN( DISTINCT 79 ) - 30 * 91 DIV NULLIF ( COUNT( * ), ( CAST( 91 AS DECIMAL ) ) * CAST( 26 - 21 * COALESCE ( 26 + - 26, 43 * 4 ) AS SIGNED ) - - 1 ) * 40 AS col0
----
-109279

skipif mysql # not compatible
query I rowsort label-7406
SELECT 0 + - + MIN ( DISTINCT 79 ) - 30 * 91 / NULLIF ( COUNT ( * ), ( CAST ( 91 AS REAL ) ) * CAST ( 26 - 21 * COALESCE ( 26 + - 26, 43 * 4 ) AS INTEGER ) - - 1 ) * 40 AS col0
----
-109279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT DISTINCT 68 / + - CAST( NULL AS SIGNED ) * - - 55 * - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT 68 / + - CAST ( NULL AS INTEGER ) * - - 55 * - 90 AS col1
----
NULL

query I rowsort
SELECT - 99 * + + 99 - + 48 * + + 14
----
-10473

onlyif mysql # aggregate syntax: 
query II rowsort label-7409
SELECT ALL + 67 AS col1, + MIN( ALL + 51 )
----
67
51

skipif mysql # not compatible
query II rowsort label-7409
SELECT ALL + 67 AS col1, + MIN ( ALL + 51 )
----
67
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL + + COUNT( * ) * - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL + + COUNT ( * ) * - 53 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT - + COALESCE ( + + 53, + COUNT( * ) * 41 - - + 11 * + 35 + 56, + 74 + 75 * COUNT( * ) )
----
-53

skipif mysql # not compatible
query I rowsort label-7411
SELECT - + COALESCE ( + + 53, + COUNT ( * ) * 41 - - + 11 * + 35 + 56, + 74 + 75 * COUNT ( * ) )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7412
SELECT - + COUNT( * ) AS col1, 18 col0
----
-1
18

skipif mysql # not compatible
query II rowsort label-7412
SELECT - + COUNT ( * ) AS col1, 18 col0
----
-1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT CASE + 63 WHEN + MAX( 91 ) THEN COUNT( * ) ELSE - 75 END AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-7413
SELECT CASE + 63 WHEN + MAX ( 91 ) THEN COUNT ( * ) ELSE - 75 END AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT + 53 * - COUNT( * ) + - - 77 + - 69 col2
----
-45

skipif mysql # not compatible
query I rowsort label-7414
SELECT + 53 * - COUNT ( * ) + - - 77 + - 69 col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT + - CAST( + - 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-7415
SELECT + - CAST ( + - 82 AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - ( - + 9 ) * - + 58 + - 74 + - + COUNT( * ) * - MIN( + CASE - 98 WHEN 81 THEN 44 * + 19 END * + 45 ) * + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT - ( - + 9 ) * - + 58 + - 74 + - + COUNT ( * ) * - MIN ( + CASE - 98 WHEN 81 THEN 44 * + 19 END * + 45 ) * + 94 AS col0
----
NULL

query I rowsort
SELECT ALL 59 * + 37
----
2183

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT 21 * - COUNT( * ) - - 60 - - 89 - - - 5 - 13 col2
----
110

skipif mysql # not compatible
query I rowsort label-7418
SELECT 21 * - COUNT ( * ) - - 60 - - 89 - - - 5 - 13 col2
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7419
SELECT DISTINCT - + 88 DIV SUM( ALL + 44 ) + SUM( ALL + + 24 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT - + 88 / SUM ( ALL + 44 ) + SUM ( ALL + + 24 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL - + MAX( 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL - + MAX ( 79 ) AS col0
----
-79

query I rowsort
SELECT ALL 86 * + + 71
----
6106

query I rowsort
SELECT + 56 * - + 0 AS col0
----
0

query I rowsort
SELECT ALL - 66 * - 29 AS col0
----
1914

query I rowsort
SELECT ALL ( + 36 ) * + 92 AS col2
----
3312

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT ALL 35 + - - 39 + + ( + 57 ) DIV 8 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL 35 + - - 39 + + ( + 57 ) / 8 AS col1
----
81

query I rowsort
SELECT 62 * - 12 + 23
----
-721

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT ALL + MIN( - - COALESCE ( 99, - + 11 ) ) * 27 + - 69 AS col1
----
2604

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL + MIN ( - - COALESCE ( 99, - + 11 ) ) * 27 + - 69 AS col1
----
2604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT ALL 5 + + CAST( NULL AS SIGNED ) + - - MIN( - - CAST( NULL AS SIGNED ) ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL 5 + + CAST ( NULL AS INTEGER ) + - - MIN ( - - CAST ( NULL AS INTEGER ) ) * 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT COUNT( * ) + - CASE + 83 WHEN + CASE + 35 WHEN - 0 * 98 THEN + ( + 79 ) * 30 ELSE NULL END / 93 THEN 76 ELSE 89 END AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7429
SELECT COUNT ( * ) + - CASE + 83 WHEN + CASE + 35 WHEN - 0 * 98 THEN + ( + 79 ) * 30 ELSE NULL END / 93 THEN 76 ELSE 89 END AS col0
----
-88

query II rowsort
SELECT ALL - 85, 64 * + 46 AS col1
----
-85
2944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7431
SELECT - 2 AS col2, ( + + 6 ) * - CASE CAST( NULL AS SIGNED ) WHEN ( + 97 ) THEN NULL WHEN 8 / AVG ( DISTINCT - 13 ) THEN MIN( DISTINCT - 66 ) + 0 END
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-7431
SELECT - 2 AS col2, ( + + 6 ) * - CASE CAST ( NULL AS INTEGER ) WHEN ( + 97 ) THEN NULL WHEN 8 / AVG ( DISTINCT - 13 ) THEN MIN ( DISTINCT - 66 ) + 0 END
----
-2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7432
SELECT DISTINCT 10 + - 31 col1, - 24 * - - COUNT( * ) * + 88 AS col2
----
-21
-2112

skipif mysql # not compatible
query II rowsort label-7432
SELECT DISTINCT 10 + - 31 col1, - 24 * - - COUNT ( * ) * + 88 AS col2
----
-21
-2112

query I rowsort
SELECT 49 + - + 35
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7434
SELECT - 13 AS col0, - MIN( - 65 )
----
-13
65

skipif mysql # not compatible
query II rowsort label-7434
SELECT - 13 AS col0, - MIN ( - 65 )
----
-13
65

query I rowsort
SELECT 90 * - - 77
----
6930

query II rowsort
SELECT ALL 56 - + 90 AS col2, + ( 14 )
----
-34
14

query I rowsort
SELECT ALL 15 * - + 19
----
-285

onlyif mysql # DIV for integer division: 
query II rowsort label-7438
SELECT ALL 27 * - + 79, 41 DIV - - 76 AS col0
----
-2133
0

skipif mysql # not compatible
query II rowsort label-7438
SELECT ALL 27 * - + 79, 41 / - - 76 AS col0
----
-2133
0

query I rowsort
SELECT 80 - - 19 - + ( - 54 ) AS col1
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7440
SELECT ALL + COALESCE ( - - 46, - 91, - 76 ) - - + CASE - 12 WHEN + ( + 69 ) * 80 THEN NULL WHEN + 17 * - 23 + + 97 THEN 36 ELSE COALESCE ( MAX( 11 ), 11, ( + CAST( NULL AS SIGNED ) ) ) * - 91 END DIV - ( COUNT( * ) )
----
1047

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL + COALESCE ( - - 46, - 91, - 76 ) - - + CASE - 12 WHEN + ( + 69 ) * 80 THEN NULL WHEN + 17 * - 23 + + 97 THEN 36 ELSE COALESCE ( MAX ( 11 ), 11, ( + CAST ( NULL AS INTEGER ) ) ) * - 91 END / - ( COUNT ( * ) )
----
1047

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT ALL - 82 DIV + 90 * - + 27
----
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL - 82 / + 90 * - + 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL - COUNT( * ) - - 87 + - 9 col2
----
77

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL - COUNT ( * ) - - 87 + - 9 col2
----
77

query II rowsort
SELECT - - ( 86 ) AS col1, + 43
----
86
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - 63 + + MIN( DISTINCT + 54 ) * NULLIF ( - 74, - - 4 ) AS col0
----
-4059

skipif mysql # not compatible
query I rowsort label-7444
SELECT - 63 + + MIN ( DISTINCT + 54 ) * NULLIF ( - 74, - - 4 ) AS col0
----
-4059

query I rowsort
SELECT 56 - - 31
----
87

query II rowsort
SELECT DISTINCT + 0, 26 AS col0
----
0
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT ALL - 22 DIV + + 54
----
0

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL - 22 / + + 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7448
SELECT - 77 + + COALESCE ( - CAST( NULL AS SIGNED ), 81, - COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-7448
SELECT - 77 + + COALESCE ( - CAST ( NULL AS INTEGER ), 81, - COUNT ( * ) )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7449
SELECT 5 + + 80 * + MAX( + - 26 ) AS col0, 82 + - 24
----
-2075
58

skipif mysql # not compatible
query II rowsort label-7449
SELECT 5 + + 80 * + MAX ( + - 26 ) AS col0, 82 + - 24
----
-2075
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7450
SELECT COUNT( * ), 67 AS col1
----
1
67

skipif mysql # not compatible
query II rowsort label-7450
SELECT COUNT ( * ), 67 AS col1
----
1
67

query I rowsort
SELECT ALL + 72 * - 15
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT - 4 DIV - 42 * - 43 - + 7 + 26
----
19

skipif mysql # not compatible
query I rowsort label-7452
SELECT - 4 / - 42 * - 43 - + 7 + 26
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7453
SELECT ALL - ( 61 ) * + NULLIF ( 6, - + CAST( + 25 AS SIGNED ) + - 96 * 61 ) AS col2
----
-366

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - ( 61 ) * + NULLIF ( 6, - + CAST ( + 25 AS INTEGER ) + - 96 * 61 ) AS col2
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT - - 94 * + CASE 22 WHEN 71 THEN NULL ELSE + 38 END * - COUNT( * ) + - 89 + + 37 * 81 col2
----
-664

skipif mysql # not compatible
query I rowsort label-7454
SELECT - - 94 * + CASE 22 WHEN 71 THEN NULL ELSE + 38 END * - COUNT ( * ) + - 89 + + 37 * 81 col2
----
-664

query I rowsort
SELECT DISTINCT - 37 * 37 * - - 5
----
-6845

query I rowsort
SELECT 77 * - 71
----
-5467

onlyif mysql # DIV for integer division: 
query I rowsort label-7457
SELECT 26 DIV - 76 + + 53 + + - 0 + 49 * + - 83 + + 58
----
-3956

skipif mysql # not compatible
query I rowsort label-7457
SELECT 26 / - 76 + + 53 + + - 0 + 49 * + - 83 + + 58
----
-3956

query II rowsort
SELECT ( 70 ), + 70 AS col0
----
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + 94 / + CASE + - 34 WHEN - 74 * 74 THEN MAX( 48 ) * - 16 END + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT + 94 / + CASE + - 34 WHEN - 74 * 74 THEN MAX ( 48 ) * - 16 END + 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7460
SELECT 33 * 58, CAST( - 44 AS SIGNED ) * + COUNT( DISTINCT + 46 ) * 94 + + ( 30 ) AS col0
----
1914
-4106

skipif mysql # not compatible
query II rowsort label-7460
SELECT 33 * 58, CAST ( - 44 AS INTEGER ) * + COUNT ( DISTINCT + 46 ) * 94 + + ( 30 ) AS col0
----
1914
-4106

query I rowsort
SELECT 69 + 0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7462
SELECT ALL 50 * + COUNT( * ) + - 94, 3 AS col2
----
-44
3

skipif mysql # not compatible
query II rowsort label-7462
SELECT ALL 50 * + COUNT ( * ) + - 94, 3 AS col2
----
-44
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT ALL + COUNT( * ) * - 0 + - 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL + COUNT ( * ) * - 0 + - 18 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7464
SELECT DISTINCT 64 * - - COUNT( * ), - 9 * + 50 AS col1
----
64
-450

skipif mysql # not compatible
query II rowsort label-7464
SELECT DISTINCT 64 * - - COUNT ( * ), - 9 * + 50 AS col1
----
64
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT - SUM( 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT - SUM ( 18 ) col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7466
SELECT DISTINCT 16 + + CAST( NULL AS SIGNED ), 79 AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-7466
SELECT DISTINCT 16 + + CAST ( NULL AS INTEGER ), 79 AS col0
----
NULL
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7467
SELECT DISTINCT - 77 * + 24 * 31 * + COUNT( + + CAST( + - 99 AS SIGNED ) ) AS col0
----
-57288

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT - 77 * + 24 * 31 * + COUNT ( + + CAST ( + - 99 AS INTEGER ) ) AS col0
----
-57288

query I rowsort
SELECT - 51 * 91 AS col2
----
-4641

onlyif mysql # aggregate syntax: 
query III rowsort label-7469
SELECT ALL + 59 * 20, 70 AS col0, + COUNT( * ) AS col0
----
1180
70
1

skipif mysql # not compatible
query III rowsort label-7469
SELECT ALL + 59 * 20, 70 AS col0, + COUNT ( * ) AS col0
----
1180
70
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT - MAX( + - 84 ) + + ( + 96 ) + - - 68, + COUNT( ALL - + 14 ) AS col2
----
248
1

skipif mysql # not compatible
query II rowsort label-7470
SELECT - MAX ( + - 84 ) + + ( + 96 ) + - - 68, + COUNT ( ALL - + 14 ) AS col2
----
248
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT - 28 * - SUM( ALL - 82 ) AS col1
----
-2296

skipif mysql # not compatible
query I rowsort label-7471
SELECT - 28 * - SUM ( ALL - 82 ) AS col1
----
-2296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT + 10 / - + CASE + + CAST( NULL AS SIGNED ) WHEN - 34 THEN + + ( + - 45 ) * + + 5 + AVG ( 25 ) * + 81 WHEN - 99 * - 44 + 94 THEN - 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT + 10 / - + CASE + + CAST ( NULL AS INTEGER ) WHEN - 34 THEN + + ( + - 45 ) * + + 5 + AVG ( 25 ) * + 81 WHEN - 99 * - 44 + 94 THEN - 34 END
----
NULL

query I rowsort
SELECT ALL 15 - 39 - - 16 + - 63 + + COALESCE ( - 76, + 39 ) * + 10 * 31 * - 84
----
1978969

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT + 97 * ( - + 70 ) * 69 + - - 88 AS col1, + COUNT( * ) AS col1
----
-468422
1

skipif mysql # not compatible
query II rowsort label-7474
SELECT + 97 * ( - + 70 ) * 69 + - - 88 AS col1, + COUNT ( * ) AS col1
----
-468422
1

query I rowsort
SELECT DISTINCT NULLIF ( + 77, - + 70 )
----
77

query I rowsort
SELECT + 91 + - 51
----
40

query I rowsort
SELECT - 39 * - 60
----
2340

query I rowsort
SELECT + 8 * - 78
----
-624

query I rowsort
SELECT + ( 37 ) + - 27 * - + 96 AS col1
----
2629

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL COUNT( DISTINCT - + 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL COUNT ( DISTINCT - + 49 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT + MAX( ALL - NULLIF ( + + ( - 68 ), - 33 ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7481
SELECT + MAX ( ALL - NULLIF ( + + ( - 68 ), - 33 ) ) AS col2
----
68

query I rowsort
SELECT + - CASE - 18 WHEN 94 THEN NULL WHEN - + 15 THEN + + 51 END * - + 59 AS col0
----
NULL

query I rowsort
SELECT - + 65 + - ( 66 ) * - 3 col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL SUM( + + NULLIF ( + 65, - + 99 ) )
----
65

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL SUM ( + + NULLIF ( + 65, - + 99 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL + + 63 + - + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL + + 63 + - + COUNT ( * )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7486
SELECT + CAST( NULL AS SIGNED ) * 98 + + MIN( + - 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT + CAST ( NULL AS INTEGER ) * 98 + + MIN ( + - 22 ) AS col1
----
NULL

query I rowsort
SELECT + 64 - 41
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ALL COUNT( * ) + + 62 * 12
----
745

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL COUNT ( * ) + + 62 * 12
----
745

query I rowsort
SELECT + 77 * 2
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT ALL - ( - 21 ) DIV + ( - - ( + 23 ) ) - - ( - - 48 ) + + 74 + 6 DIV + 70 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL - ( - 21 ) / + ( - - ( + 23 ) ) - - ( - - 48 ) + + 74 + 6 / + 70 AS col2
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7491
SELECT + - 94 DIV - 83 AS col1, ( 17 ) + + + ( + COUNT( DISTINCT - 93 ) ) + 63
----
1
81

skipif mysql # not compatible
query II rowsort label-7491
SELECT + - 94 / - 83 AS col1, ( 17 ) + + + ( + COUNT ( DISTINCT - 93 ) ) + 63
----
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL - ( + - 68 ) * - 62 + + MAX( + 19 ) - - 48 + - 56 + - 44 * - 53 + 27 AS col1
----
-1846

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - ( + - 68 ) * - 62 + + MAX ( + 19 ) - - 48 + - 56 + - 44 * - 53 + 27 AS col1
----
-1846

query I rowsort
SELECT + - 78 * - 70
----
5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7494
SELECT ALL ( + - 39 ) DIV - COUNT( * ) + + 37 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL ( + - 39 ) / - COUNT ( * ) + + 37 AS col2
----
76

query II rowsort
SELECT DISTINCT + 53 * 31 * 39 AS col1, + 35
----
64077
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7496
SELECT DISTINCT + SUM( DISTINCT - 64 ) * - MIN( + 1 ) * - - 81 * ( + + CAST( 40 AS SIGNED ) ) + 65 AS col2
----
207425

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT + SUM ( DISTINCT - 64 ) * - MIN ( + 1 ) * - - 81 * ( + + CAST ( 40 AS INTEGER ) ) + 65 AS col2
----
207425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7497
SELECT ALL - 90 * 83 * ( - CAST( 4 AS SIGNED ) ) AS col1
----
29880

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - 90 * 83 * ( - CAST ( 4 AS INTEGER ) ) AS col1
----
29880

query II rowsort
SELECT + 86 col0, 15 AS col0
----
86
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7499
SELECT ALL + 48 * - 4 * + + 97 + - CAST( - + 72 AS SIGNED ) * - COUNT( ALL + - ( - 66 ) ) col1
----
-18696

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + 48 * - 4 * + + 97 + - CAST ( - + 72 AS INTEGER ) * - COUNT ( ALL + - ( - 66 ) ) col1
----
-18696

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT DISTINCT 64 * - + MAX( DISTINCT + 21 ) + + 85 AS col0
----
-1259

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT 64 * - + MAX ( DISTINCT + 21 ) + + 85 AS col0
----
-1259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7501
SELECT + 75 + - CASE + CAST( NULL AS SIGNED ) WHEN CAST( NULL AS SIGNED ) + 76 THEN - 67 WHEN - NULLIF ( 47, ( COUNT( * ) ) / - CASE 67 WHEN CAST( NULL AS SIGNED ) THEN 79 ELSE NULL END + + 76 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT + 75 + - CASE + CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) + 76 THEN - 67 WHEN - NULLIF ( 47, ( COUNT ( * ) ) / - CASE 67 WHEN CAST ( NULL AS INTEGER ) THEN 79 ELSE NULL END + + 76 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT NULLIF ( + 18, - 20 * - 70 * + 3 )
----
18

query I rowsort
SELECT COALESCE ( 41, + 35, + + 23 ) AS col2
----
41

query I rowsort
SELECT ALL 76 * + - 3 - - + ( + 97 ) * - ( + 0 )
----
-228

query I rowsort
SELECT ALL + 28 * + 76
----
2128

query I rowsort
SELECT DISTINCT + NULLIF ( 34, + ( - NULLIF ( 11, 85 + - + 86 + + 98 ) ) - - 60 ) AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT - 50 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT - 50 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 68 * - + 70 * 81 AS col2
----
385560

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL + COUNT( * ) * + - 54 * 80 AS col1
----
-4320

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL + COUNT ( * ) * + - 54 * 80 AS col1
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT - - MIN( ALL - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-7510
SELECT - - MIN ( ALL - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ( - COUNT( ALL + + 96 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7511
SELECT ( - COUNT ( ALL + + 96 ) ) AS col2
----
-1

query I rowsort
SELECT + + 11 + + + 91 AS col0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7513
SELECT - - 0 DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7513
SELECT - - 0 / COUNT ( * )
----
0

query I rowsort
SELECT + - 94 * 77 * 96 * - - 57
----
-39606336

query I rowsort
SELECT - + ( + + 17 ) * + + 16
----
-272

query I rowsort
SELECT ALL - - 19 * + 59
----
1121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT ALL NULLIF ( - - 42, + COALESCE ( - - CASE CAST( + 13 AS SIGNED ) WHEN - - 53 * - - 69 * 24 THEN + 56 * COALESCE ( - 7, 97 + 57 * 53, - 88 + + 43, - 29 ) END, AVG ( DISTINCT 7 ) ) * SUM( 21 ) ) + - 89 col0
----
-47

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL NULLIF ( - - 42, + COALESCE ( - - CASE CAST ( + 13 AS INTEGER ) WHEN - - 53 * - - 69 * 24 THEN + 56 * COALESCE ( - 7, 97 + 57 * 53, - 88 + + 43, - 29 ) END, AVG ( DISTINCT 7 ) ) * SUM ( 21 ) ) + - 89 col0
----
-47

query I rowsort
SELECT - 82 - - 29
----
-53

query II rowsort
SELECT DISTINCT 96 AS col2, - ( + 31 ) + + + 98 - 39 + + - 19 * - + 49
----
96
959

query I rowsort
SELECT ALL 25 + - - 75 col0
----
100

query I rowsort
SELECT ALL + 28 + - 89
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT DISTINCT - - 81 + + 62 * 74 * + COUNT( * ) * - 27 AS col2
----
-123795

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT - - 81 + + 62 * 74 * + COUNT ( * ) * - 27 AS col2
----
-123795

query II rowsort
SELECT DISTINCT 30 AS col2, - 11 - 51
----
30
-62

query I rowsort
SELECT - + 73 + + 59 AS col0
----
-14

query I rowsort
SELECT + + 67 - + - 5 AS col0
----
72

query I rowsort
SELECT + - 92 - + 22 AS col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL - 87 + - 15 + + + MIN( 47 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL - 87 + - 15 + + + MIN ( 47 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT + + COUNT( * ) + + + 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7528
SELECT + + COUNT ( * ) + + + 70 AS col1
----
71

query I rowsort
SELECT ALL 42 + + 65 AS col1
----
107

query I rowsort
SELECT + 11 + + 82 + + 41
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL MAX( 69 ) * + CASE + 17 WHEN + + 73 / + 68 THEN + 40 END / - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL MAX ( 69 ) * + CASE + 17 WHEN + + 73 / + 68 THEN + 40 END / - 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7532
SELECT CASE - 55 WHEN - COUNT( * ) * + + 60 * + CASE 32 WHEN - + 96 THEN NULL WHEN + 41 + + + 37 * MIN( ALL - 71 ) THEN + 76 ELSE NULL END + - 73 THEN NULL ELSE 93 + - CAST( + 62 AS SIGNED ) END * 36 + 72 AS col1
----
1188

skipif mysql # not compatible
query I rowsort label-7532
SELECT CASE - 55 WHEN - COUNT ( * ) * + + 60 * + CASE 32 WHEN - + 96 THEN NULL WHEN + 41 + + + 37 * MIN ( ALL - 71 ) THEN + 76 ELSE NULL END + - 73 THEN NULL ELSE 93 + - CAST ( + 62 AS INTEGER ) END * 36 + 72 AS col1
----
1188

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7533
SELECT ALL + 4 DIV COUNT( * ) + - 64 DIV - 39 col1, 45
----
5
45

skipif mysql # not compatible
query II rowsort label-7533
SELECT ALL + 4 / COUNT ( * ) + - 64 / - 39 col1, 45
----
5
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7534
SELECT + 35 * 99 * + COUNT( * ) + 75 AS col2, 76 AS col0
----
3540
76

skipif mysql # not compatible
query II rowsort label-7534
SELECT + 35 * 99 * + COUNT ( * ) + 75 AS col2, 76 AS col0
----
3540
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT CAST( 82 AS SIGNED ) * + CAST( - - 27 AS SIGNED )
----
2214

skipif mysql # not compatible
query I rowsort label-7535
SELECT CAST ( 82 AS INTEGER ) * + CAST ( - - 27 AS INTEGER )
----
2214

query I rowsort
SELECT DISTINCT 5 - + 94
----
-89

query I rowsort
SELECT 94 + + - 97
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7538
SELECT ALL COUNT( * ) DIV 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL COUNT ( * ) / 15 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT + 60 * COUNT( ALL + 62 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT + 60 * COUNT ( ALL + 62 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL - NULLIF ( - - COUNT( * ), + + 65 + 0 * - 73 ) * - + 40 * + 64 AS col0
----
2560

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - NULLIF ( - - COUNT ( * ), + + 65 + 0 * - 73 ) * - + 40 * + 64 AS col0
----
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT ALL 4 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL 4 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 80 * - + 21 AS col0
----
-1680

query I rowsort
SELECT DISTINCT 98 * + 30
----
2940

query I rowsort
SELECT ( - 47 ) - + + 4 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT - COUNT( * ) * - ( - - 30 ) * + 67 + + 80 + + 57 * - 50 AS col1
----
-760

skipif mysql # not compatible
query I rowsort label-7545
SELECT - COUNT ( * ) * - ( - - 30 ) * + 67 + + 80 + + 57 * - 50 AS col1
----
-760

onlyif mysql # aggregate syntax: 
query II rowsort label-7546
SELECT ALL + 65 + + + COUNT( * ) col2, 87 AS col0
----
66
87

skipif mysql # not compatible
query II rowsort label-7546
SELECT ALL + 65 + + + COUNT ( * ) col2, 87 AS col0
----
66
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT + MAX( ALL + 10 ) + + 77 + + ( + + 44 ) * + 43 * - 15 AS col0
----
-28293

skipif mysql # not compatible
query I rowsort label-7547
SELECT + MAX ( ALL + 10 ) + + 77 + + ( + + 44 ) * + 43 * - 15 AS col0
----
-28293

query I rowsort
SELECT DISTINCT + - 54 + - 54
----
-108

query I rowsort
SELECT 49 * - + 89 AS col2
----
-4361

onlyif mysql # DIV for integer division: 
query I rowsort label-7550
SELECT 80 DIV + 9
----
8

skipif mysql # not compatible
query I rowsort label-7550
SELECT 80 / + 9
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT + COALESCE ( - - COUNT( * ), - + 98 * ( - 3 ) + 21 * 14 + - COUNT( * ), + COUNT( * ) ) * + 72
----
72

skipif mysql # not compatible
query I rowsort label-7551
SELECT + COALESCE ( - - COUNT ( * ), - + 98 * ( - 3 ) + 21 * 14 + - COUNT ( * ), + COUNT ( * ) ) * + 72
----
72

query I rowsort
SELECT 29 + + 98
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7553
SELECT 59 DIV - + ( + COUNT( - 54 ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7553
SELECT 59 / - + ( + COUNT ( - 54 ) ) AS col0
----
-59

query I rowsort
SELECT - 29 + 14 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7555
SELECT ALL - - 79 + - 17 DIV - 52
----
79

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - - 79 + - 17 / - 52
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT DISTINCT - MAX( - ( NULLIF ( + 48, - 68 + 61 ) ) ) + MAX( - CASE + 74 WHEN ( + 82 ) + + 94 THEN 72 END ) * - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT - MAX ( - ( NULLIF ( + 48, - 68 + 61 ) ) ) + MAX ( - CASE + 74 WHEN ( + 82 ) + + 94 THEN 72 END ) * - 40 AS col2
----
NULL

query I rowsort
SELECT 52 * + 97
----
5044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7558
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / 53 + - - COUNT( * ) AS col0, + 83, + 94 AS col0
----
NULL
83
94

skipif mysql # not compatible
query III rowsort label-7558
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 53 + - - COUNT ( * ) AS col0, + 83, + 94 AS col0
----
NULL
83
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL CASE - 18 WHEN - 66 THEN NULL WHEN 54 + - + MAX( DISTINCT - - 22 ) + - 61 THEN - MIN( ALL - 20 ) ELSE ( - 50 ) END AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL CASE - 18 WHEN - 66 THEN NULL WHEN 54 + - + MAX ( DISTINCT - - 22 ) + - 61 THEN - MIN ( ALL - 20 ) ELSE ( - 50 ) END AS col1
----
-50

query I rowsort
SELECT 39 - - ( 99 ) + - 29
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-7561
SELECT 63, - COUNT( - 11 ) AS col0
----
63
-1

skipif mysql # not compatible
query II rowsort label-7561
SELECT 63, - COUNT ( - 11 ) AS col0
----
63
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT COUNT( * ) - + + 47 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-7562
SELECT COUNT ( * ) - + + 47 AS col0
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-7563
SELECT + 37 AS col2, + 56 DIV - 46 + 24 * + + 68 AS col0
----
37
1631

skipif mysql # not compatible
query II rowsort label-7563
SELECT + 37 AS col2, + 56 / - 46 + 24 * + + 68 AS col0
----
37
1631

query I rowsort
SELECT ALL 40 - - ( - 35 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT CASE + ( + + 22 ) WHEN - 44 + - 57 * 59 THEN NULL WHEN - AVG ( DISTINCT + 24 ) THEN - 68 + + 65 + - MIN( 56 ) ELSE NULL END * MIN( DISTINCT 85 - 28 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT CASE + ( + + 22 ) WHEN - 44 + - 57 * 59 THEN NULL WHEN - AVG ( DISTINCT + 24 ) THEN - 68 + + 65 + - MIN ( 56 ) ELSE NULL END * MIN ( DISTINCT 85 - 28 ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 55 * + + 56
----
-3080

query I rowsort
SELECT DISTINCT 63 * + 57 * - ( - 12 ) AS col2
----
43092

query I rowsort
SELECT 0 * + - 41 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7569
SELECT + 86 * + 12 + + + 55, CAST( NULL AS SIGNED ) - + 40 AS col2
----
1087
NULL

skipif mysql # not compatible
query II rowsort label-7569
SELECT + 86 * + 12 + + + 55, CAST ( NULL AS INTEGER ) - + 40 AS col2
----
1087
NULL

query II rowsort
SELECT 87 AS col0, 97
----
87
97

query I rowsort
SELECT ALL 33 + 82 AS col0
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT COUNT( - 40 ) * + 5 + + + ( NULLIF ( - ( - 1 ), 49 + + + CAST( NULL AS SIGNED ) ) ) + + - 37 + 56 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7572
SELECT COUNT ( - 40 ) * + 5 + + + ( NULLIF ( - ( - 1 ), 49 + + + CAST ( NULL AS INTEGER ) ) ) + + - 37 + 56 AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT 90 DIV + 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7573
SELECT 90 / + 78 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT - 11 * + 65 * 85 - + COUNT( * )
----
-60776

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 11 * + 65 * 85 - + COUNT ( * )
----
-60776

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT DISTINCT 85 DIV + + 53 col2
----
1

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT 85 / + + 53 col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT DISTINCT NULLIF ( ( + 32 ), + ( AVG ( - - 45 ) ) * 53 * CAST( NULL AS SIGNED ) * - + 59 + 1 ) + - 42 col2
----
-10

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT NULLIF ( ( + 32 ), + ( AVG ( - - 45 ) ) * 53 * CAST ( NULL AS INTEGER ) * - + 59 + 1 ) + - 42 col2
----
-10

query I rowsort
SELECT ALL + 14 + - 73
----
-59

query I rowsort
SELECT - + 57 * + 30 + + 2 AS col2
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT DISTINCT 29 + + 77 + - - 14 * COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT 29 + + 77 + - - 14 * COUNT ( * )
----
120

query I rowsort
SELECT DISTINCT ( + - 97 ) * 42
----
-4074

query I rowsort
SELECT ALL - 53 + - + 71 * + 11 - + ( 99 )
----
-933

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT MAX( ALL - + 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-7582
SELECT MAX ( ALL - + 83 ) AS col2
----
-83

query I rowsort
SELECT - ( + 49 ) + 42
----
-7

query I rowsort
SELECT DISTINCT + + 27 + - + 24
----
3

query I rowsort
SELECT 87 + + - 13
----
74

query I rowsort
SELECT DISTINCT - ( + - 77 ) AS col1
----
77

query I rowsort
SELECT ALL - + ( + 59 ) + 10
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7588
SELECT + 80 - - 28 - + NULLIF ( - COALESCE ( AVG ( ALL - 17 ), 88 ), + 76 + + + 93 ) + + - 35 / + 84 * ( + 76 ) * ( + CAST( NULL AS DECIMAL ) - + 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT + 80 - - 28 - + NULLIF ( - COALESCE ( AVG ( ALL - 17 ), 88 ), + 76 + + + 93 ) + + - 35 / + 84 * ( + 76 ) * ( + CAST ( NULL AS REAL ) - + 85 ) AS col0
----
NULL

query I rowsort
SELECT 97 + + + 3
----
100

query I rowsort
SELECT DISTINCT - 4 - + NULLIF ( - 67, + - 80 ) AS col2
----
63

query I rowsort
SELECT - 41 * + - 81
----
3321

query I rowsort
SELECT - 53 + - 57 + + 30
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT DISTINCT - 32 * - 45 * COUNT( * )
----
1440

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT - 32 * - 45 * COUNT ( * )
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT - NULLIF ( - - 21, + + 56 + + - 68 + MAX( DISTINCT + 69 ) ) + - 93 * - + 50 * - 79 AS col2
----
-367371

skipif mysql # not compatible
query I rowsort label-7594
SELECT - NULLIF ( - - 21, + + 56 + + - 68 + MAX ( DISTINCT + 69 ) ) + - 93 * - + 50 * - 79 AS col2
----
-367371

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT ALL NULLIF ( COALESCE ( + ( + 39 ), - 32 ), - COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL NULLIF ( COALESCE ( + ( + 39 ), - 32 ), - COUNT ( * ) )
----
39

query I rowsort
SELECT - 5 * - 7
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ALL NULLIF ( MAX( ALL + + ( 55 ) ), - 21 )
----
55

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL NULLIF ( MAX ( ALL + + ( 55 ) ), - 21 )
----
55

query I rowsort
SELECT ALL - 32 * + - 74 * + 94 col1
----
222592

query II rowsort
SELECT ALL 93, + 8 col0
----
93
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7600
SELECT - CAST( - 82 AS SIGNED ) + - 92 * - - 55 + + NULLIF ( - 37, - 9 + MAX( + 67 ) * COUNT( * ) * - + 2 ) col2
----
-5015

skipif mysql # not compatible
query I rowsort label-7600
SELECT - CAST ( - 82 AS INTEGER ) + - 92 * - - 55 + + NULLIF ( - 37, - 9 + MAX ( + 67 ) * COUNT ( * ) * - + 2 ) col2
----
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ( + 65 ) * - 10 + - + 85 - - COUNT( * ) col0
----
-734

skipif mysql # not compatible
query I rowsort label-7601
SELECT ( + 65 ) * - 10 + - + 85 - - COUNT ( * ) col0
----
-734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7602
SELECT ALL SUM( 91 ) DIV + COALESCE ( + - 46, - - 39, + ( + 31 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL SUM ( 91 ) / + COALESCE ( + - 46, - - 39, + ( + 31 ) )
----
-1

query I rowsort
SELECT - 45 * + 13 * + 20 AS col1
----
-11700

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT 78 DIV - 57 + + 91 col0
----
90

skipif mysql # not compatible
query I rowsort label-7604
SELECT 78 / - 57 + + 91 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT NULLIF ( 15, - CASE - - 91 WHEN - COALESCE ( - + 0, 90 + - + 67 ) THEN - 14 + ( + - MAX( 57 ) ) + + 8 WHEN - 62 * + 96 THEN NULL WHEN 19 + 67 THEN NULL WHEN - 3 * - CASE 69 WHEN 17 - + 81 THEN - 4 END THEN NULL END * + 67 + + 51 )
----
15

skipif mysql # not compatible
query I rowsort label-7605
SELECT NULLIF ( 15, - CASE - - 91 WHEN - COALESCE ( - + 0, 90 + - + 67 ) THEN - 14 + ( + - MAX ( 57 ) ) + + 8 WHEN - 62 * + 96 THEN NULL WHEN 19 + 67 THEN NULL WHEN - 3 * - CASE 69 WHEN 17 - + 81 THEN - 4 END THEN NULL END * + 67 + + 51 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7606
SELECT + COUNT( * ), 61 * + CASE + 40 WHEN 88 THEN NULL ELSE - 38 END col2
----
1
-2318

skipif mysql # not compatible
query II rowsort label-7606
SELECT + COUNT ( * ), 61 * + CASE + 40 WHEN 88 THEN NULL ELSE - 38 END col2
----
1
-2318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT CASE + MAX( DISTINCT 34 ) WHEN + 46 + + 31 - + - CASE - NULLIF ( - 4, ( + - 28 ) + - CASE - 93 WHEN 66 + 49 THEN NULL WHEN + 17 * - SUM( ( 25 ) * 46 ) + - 54 / COUNT( * ) THEN NULLIF ( 61, - COUNT( * ) ) * - 52 ELSE 26 / MIN( ALL 23 ) END ) WHEN - 60 THEN NULL WHEN - 53 / + 33 THEN 92 ELSE NULL END + - CAST( + 99 - + 56 * COUNT( * ) AS SIGNED ) THEN + 56 - COUNT( DISTINCT - 4 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT CASE + MAX ( DISTINCT 34 ) WHEN + 46 + + 31 - + - CASE - NULLIF ( - 4, ( + - 28 ) + - CASE - 93 WHEN 66 + 49 THEN NULL WHEN + 17 * - SUM ( ( 25 ) * 46 ) + - 54 / COUNT ( * ) THEN NULLIF ( 61, - COUNT ( * ) ) * - 52 ELSE 26 / MIN ( ALL 23 ) END ) WHEN - 60 THEN NULL WHEN - 53 / + 33 THEN 92 ELSE NULL END + - CAST ( + 99 - + 56 * COUNT ( * ) AS INTEGER ) THEN + 56 - COUNT ( DISTINCT - 4 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7608
SELECT - 32 DIV - 68 + + 96
----
96

skipif mysql # not compatible
query I rowsort label-7608
SELECT - 32 / - 68 + + 96
----
96

query I rowsort
SELECT COALESCE ( ( + 47 ), + 92 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT - 15 * - COUNT( + - 29 )
----
15

skipif mysql # not compatible
query I rowsort label-7610
SELECT - 15 * - COUNT ( + - 29 )
----
15

query I rowsort
SELECT + 21 + 10 + - 26
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL - 8 * + 46 + + + CASE - 22 WHEN - 2 * + 35 + + COUNT( * ) + - 43 * COUNT( * ) THEN + 46 * - ( 94 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - 8 * + 46 + + + CASE - 22 WHEN - 2 * + 35 + + COUNT ( * ) + - 43 * COUNT ( * ) THEN + 46 * - ( 94 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7613
SELECT ALL + ( - ( CASE WHEN - 77 IS NOT NULL THEN + 48 DIV NULLIF ( + 80, + + 55 DIV 91 * - + COUNT( * ) ) WHEN NOT 72 = NULL THEN + 42 END ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL + ( - ( CASE WHEN - 77 IS NOT NULL THEN + 48 / NULLIF ( + 80, + + 55 / 91 * - + COUNT ( * ) ) WHEN NOT 72 = NULL THEN + 42 END ) ) col2
----
0

query I rowsort
SELECT ALL - + 12 * - 69 + 41 * + 40
----
2468

query I rowsort
SELECT COALESCE ( + 41, - 88 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT + + 88 DIV 33
----
2

skipif mysql # not compatible
query I rowsort label-7616
SELECT + + 88 / 33
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT ALL - COUNT( * ) * - + 43 + - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL - COUNT ( * ) * - + 43 + - 43 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT 60 * 25 + - - 59 * COUNT( * ) + + + MAX( DISTINCT + 84 )
----
1643

skipif mysql # not compatible
query I rowsort label-7618
SELECT 60 * 25 + - - 59 * COUNT ( * ) + + + MAX ( DISTINCT + 84 )
----
1643

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT + 19 - + COUNT( - 23 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7619
SELECT + 19 - + COUNT ( - 23 ) AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7620
SELECT + CAST( NULL AS SIGNED ) * + 76 + - - 71 * AVG ( - 78 ) + + COUNT( * ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT + CAST ( NULL AS INTEGER ) * + 76 + - - 71 * AVG ( - 78 ) + + COUNT ( * ) + 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7621
SELECT + 2 * - COALESCE ( MAX( DISTINCT + 78 ), + COUNT( * ) ) DIV 19 col2
----
-8

skipif mysql # not compatible
query I rowsort label-7621
SELECT + 2 * - COALESCE ( MAX ( DISTINCT + 78 ), + COUNT ( * ) ) / 19 col2
----
-8

query II rowsort
SELECT ALL - 0 * 26, 40 AS col0
----
0
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7623
SELECT ALL COUNT( * ) * 75 DIV - + 38 + 54 + - + NULLIF ( - - 55, - NULLIF ( - - 30, 19 * - 35 ) ) - COUNT( * ) - + 32
----
-35

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL COUNT ( * ) * 75 / - + 38 + 54 + - + NULLIF ( - - 55, - NULLIF ( - - 30, 19 * - 35 ) ) - COUNT ( * ) - + 32
----
-35

query I rowsort
SELECT + 64 + 15 AS col1
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-7625
SELECT + + 1 * 38 + 19 + - + NULLIF ( 59, + 6 ) DIV ( - 13 ) - 1 AS col0, 73
----
60
73

skipif mysql # not compatible
query II rowsort label-7625
SELECT + + 1 * 38 + 19 + - + NULLIF ( 59, + 6 ) / ( - 13 ) - 1 AS col0, 73
----
60
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT - - 68, 14 * + 53 + + 10 + - - 46 * - COUNT( * ) AS col0
----
68
706

skipif mysql # not compatible
query II rowsort label-7626
SELECT - - 68, 14 * + 53 + + 10 + - - 46 * - COUNT ( * ) AS col0
----
68
706

onlyif mysql # DIV for integer division: 
query II rowsort label-7627
SELECT + 11, + 35 DIV - 49 AS col1
----
11
0

skipif mysql # not compatible
query II rowsort label-7627
SELECT + 11, + 35 / - 49 AS col1
----
11
0

query I rowsort
SELECT ALL 61 * - + 5
----
-305

query I rowsort
SELECT - + 78 + - 42
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT DISTINCT MAX( DISTINCT + - 99 ) col2, + 13
----
-99
13

skipif mysql # not compatible
query II rowsort label-7630
SELECT DISTINCT MAX ( DISTINCT + - 99 ) col2, + 13
----
-99
13

query I rowsort
SELECT DISTINCT NULLIF ( 49, - + ( - 65 ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT + 81 * + CAST( NULL AS SIGNED ) * + + 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT + 81 * + CAST ( NULL AS INTEGER ) * + + 69 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT - 1 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - 1 * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7634
SELECT + COUNT( * ) DIV - - 81 * + 4
----
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT + COUNT ( * ) / - - 81 * + 4
----
0

query I rowsort
SELECT ALL - 10 + + 96 + - 34
----
52

query II rowsort
SELECT + 39 - 93 AS col2, 38 AS col1
----
-54
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT - NULLIF ( - COALESCE ( 40, ( - - 19 ) - MAX( ALL + 53 ) + - 15 + + - 28 ), - - MAX( 13 ) ) * 47
----
1880

skipif mysql # not compatible
query I rowsort label-7637
SELECT - NULLIF ( - COALESCE ( 40, ( - - 19 ) - MAX ( ALL + 53 ) + - 15 + + - 28 ), - - MAX ( 13 ) ) * 47
----
1880

query I rowsort
SELECT - 92 * + - 63 AS col1
----
5796

onlyif mysql # DIV for integer division: 
query I rowsort label-7639
SELECT ALL - 64 DIV 76 + + 54
----
54

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL - 64 / 76 + + 54
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7640
SELECT DISTINCT + ( + 1 ) AS col1, CASE - 84 WHEN - - 74 + COUNT( * ) - 37 THEN 71 * - - 39 + 72 + - 8 WHEN - 46 * - 15 THEN - 85 / - COUNT( * ) WHEN 45 + COUNT( * ) THEN + 25 * 36 ELSE NULL END / - 14 + - MIN( 14 ) / 14
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7640
SELECT DISTINCT + ( + 1 ) AS col1, CASE - 84 WHEN - - 74 + COUNT ( * ) - 37 THEN 71 * - - 39 + 72 + - 8 WHEN - 46 * - 15 THEN - 85 / - COUNT ( * ) WHEN 45 + COUNT ( * ) THEN + 25 * 36 ELSE NULL END / - 14 + - MIN ( 14 ) / 14
----
1
NULL

query I rowsort
SELECT - 2 * - 49 * + 57 - - - 33 AS col1
----
5553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7642
SELECT DISTINCT - COUNT( - 93 ) DIV - 15 - COUNT( * ) + 65
----
64

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT - COUNT ( - 93 ) / - 15 - COUNT ( * ) + 65
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7643
SELECT ALL + CAST( + ( + 18 ) AS SIGNED ) DIV 66 + - + 30
----
-30

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + CAST ( + ( + 18 ) AS INTEGER ) / 66 + - + 30
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7644
SELECT - + 20 * - 36 + + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7644
SELECT - + 20 * - 36 + + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT MIN( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-7645
SELECT MIN ( + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT - - 56 + MAX( DISTINCT - 90 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7646
SELECT - - 56 + MAX ( DISTINCT - 90 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT + NULLIF ( + + COALESCE ( 49, 7 ), - - 42 * - + 63 + - 66 ) * + 19 - + 56 * + - 7 * - 35 + COUNT( 4 )
----
-12788

skipif mysql # not compatible
query I rowsort label-7647
SELECT + NULLIF ( + + COALESCE ( 49, 7 ), - - 42 * - + 63 + - 66 ) * + 19 - + 56 * + - 7 * - 35 + COUNT ( 4 )
----
-12788

onlyif mysql # aggregate syntax: 
query II rowsort label-7648
SELECT DISTINCT + - COUNT( 99 ) AS col2, 33
----
-1
33

skipif mysql # not compatible
query II rowsort label-7648
SELECT DISTINCT + - COUNT ( 99 ) AS col2, 33
----
-1
33

query I rowsort
SELECT ALL COALESCE ( - 16, - 81 ) * + - 80 - - 99 * 44 col0
----
5636

query I rowsort
SELECT - - 65 * - 20
----
-1300

query I rowsort
SELECT DISTINCT + NULLIF ( 33, 84 )
----
33

query I rowsort
SELECT - NULLIF ( + 69, - 25 ) * - 86 + + + 12
----
5946

query I rowsort
SELECT DISTINCT + 26 * - 23
----
-598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT + + 11 * - 30 * + ( + 63 ) + - - ( + CAST( NULL AS SIGNED ) ) + - + 36 - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT + + 11 * - 30 * + ( + 63 ) + - - ( + CAST ( NULL AS INTEGER ) ) + - + 36 - - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7655
SELECT ALL + COUNT( * ) - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + COUNT ( * ) - + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT 37 * COUNT( * ) * 78 col1
----
2886

skipif mysql # not compatible
query I rowsort label-7656
SELECT 37 * COUNT ( * ) * 78 col1
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT - CASE + - 79 WHEN - 77 THEN - - 77 WHEN + 20 + - - COUNT( ALL 57 ) * - MIN( ALL ( 22 ) ) * + - ( - COUNT( * ) ) - - 52 + 66 * - 18 THEN + 87 END * CASE - 83 * COUNT( 14 ) WHEN 65 THEN NULL WHEN COUNT( * ) THEN + 48 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT - CASE + - 79 WHEN - 77 THEN - - 77 WHEN + 20 + - - COUNT ( ALL 57 ) * - MIN ( ALL ( 22 ) ) * + - ( - COUNT ( * ) ) - - 52 + 66 * - 18 THEN + 87 END * CASE - 83 * COUNT ( 14 ) WHEN 65 THEN NULL WHEN COUNT ( * ) THEN + 48 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ( 26 ) + - - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7658
SELECT ( 26 ) + - - COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL COALESCE ( + - COUNT( ALL + 52 ), + 63, - + 63 * + 25 + + COUNT( * ) + - 4 * 79 * - 71 - - CASE 3 WHEN 38 THEN NULL ELSE - 3 END * 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL COALESCE ( + - COUNT ( ALL + 52 ), + 63, - + 63 * + 25 + + COUNT ( * ) + - 4 * 79 * - 71 - - CASE 3 WHEN 38 THEN NULL ELSE - 3 END * 65 ) AS col0
----
-1

query I rowsort
SELECT + NULLIF ( - 50, - 99 + + 34 * + + 7 ) + - 96 AS col2
----
-146

query II rowsort
SELECT 4 * 86 AS col2, 98
----
344
98

query II rowsort
SELECT 69 col1, + 52 AS col1
----
69
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7663
SELECT ALL 88 DIV 7 * COUNT( * ) AS col2, 15 AS col0
----
12
15

skipif mysql # not compatible
query II rowsort label-7663
SELECT ALL 88 / 7 * COUNT ( * ) AS col2, 15 AS col0
----
12
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7664
SELECT DISTINCT 46 + 26 * - - ( - COUNT( * ) ) + + - 48 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT 46 + 26 * - - ( - COUNT ( * ) ) + + - 48 * - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 33 col0, - 13 * + 99 * + 36 + - - 27 + 6
----
-33
-46299

query I rowsort
SELECT ALL 70 + + 66 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT SUM( ALL 15 ) + 81 + - 70 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7667
SELECT SUM ( ALL 15 ) + 81 + - 70 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT ALL COUNT( * ) * - - 78
----
78

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL COUNT ( * ) * - - 78
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT CAST( NULL AS SIGNED ) / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT CAST ( NULL AS INTEGER ) / 78
----
NULL

query II rowsort
SELECT - 44 AS col1, + 73
----
-44
73

query I rowsort
SELECT ALL 34 + + + 10 + - - 70
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT MIN( DISTINCT + - 43 ) + - 58
----
-101

skipif mysql # not compatible
query I rowsort label-7672
SELECT MIN ( DISTINCT + - 43 ) + - 58
----
-101

query I rowsort
SELECT 93 + - 77 + - 74
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7674
SELECT 28 + + + 38 + - COUNT( * ), - ( - - 99 ) AS col0
----
65
-99

skipif mysql # not compatible
query II rowsort label-7674
SELECT 28 + + + 38 + - COUNT ( * ), - ( - - 99 ) AS col0
----
65
-99

query I rowsort
SELECT ALL 27 + - + 99 AS col2
----
-72

query II rowsort
SELECT - 4 AS col0, - CASE + 75 WHEN 39 + - 21 THEN + 75 END
----
-4
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT 84 AS col1, + ( COUNT( + + 2 ) ) + - 11
----
84
-10

skipif mysql # not compatible
query II rowsort label-7677
SELECT 84 AS col1, + ( COUNT ( + + 2 ) ) + - 11
----
84
-10

query II rowsort
SELECT ALL + 79 + - - ( - 81 ), 86 AS col1
----
-2
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7679
SELECT DISTINCT COUNT( * ) + - - 90 - + 86 DIV 80 * + CASE - + 85 WHEN - + COUNT( * ) THEN NULL WHEN - - NULLIF ( 89, 14 ) DIV + - COUNT( * ) * + - ( 72 ) + 37 + + 34 * - COUNT( 23 * 95 + 87 * 6 ) THEN NULL ELSE 5 + 70 * 86 END
----
-5934

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT COUNT ( * ) + - - 90 - + 86 / 80 * + CASE - + 85 WHEN - + COUNT ( * ) THEN NULL WHEN - - NULLIF ( 89, 14 ) / + - COUNT ( * ) * + - ( 72 ) + 37 + + 34 * - COUNT ( 23 * 95 + 87 * 6 ) THEN NULL ELSE 5 + 70 * 86 END
----
-5934

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL + CASE + - 92 WHEN 26 * - 84 THEN NULLIF ( COUNT( * ), - 36 ) WHEN - - 1 THEN NULL WHEN - 46 * CASE + 87 WHEN + 52 * COUNT( * ) + + COALESCE ( - 55, 89 * 83 + + 2 ) * - 57 THEN + 76 / - 93 ELSE AVG ( ALL 23 ) END + + 61 THEN + 30 END * + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL + CASE + - 92 WHEN 26 * - 84 THEN NULLIF ( COUNT ( * ), - 36 ) WHEN - - 1 THEN NULL WHEN - 46 * CASE + 87 WHEN + 52 * COUNT ( * ) + + COALESCE ( - 55, 89 * 83 + + 2 ) * - 57 THEN + 76 / - 93 ELSE AVG ( ALL 23 ) END + + 61 THEN + 30 END * + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - 36 * + 85 + - 41 * COUNT( * )
----
-3101

skipif mysql # not compatible
query I rowsort label-7681
SELECT - 36 * + 85 + - 41 * COUNT ( * )
----
-3101

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT CASE - 2 WHEN + 49 * + - 55 THEN + 49 + - COUNT( DISTINCT - 47 ) + + COUNT( * ) * + 43 END * + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT CASE - 2 WHEN + 49 * + - 55 THEN + 49 + - COUNT ( DISTINCT - 47 ) + + COUNT ( * ) * + 43 END * + + 51
----
NULL

query II rowsort
SELECT 11 AS col0, 66
----
11
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT + MIN( ALL - 77 ) + + 42 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7684
SELECT + MIN ( ALL - 77 ) + + 42 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT DISTINCT + 33 * COUNT( * ) * + - 63 + 88 + - 42 + + 22
----
-2011

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT + 33 * COUNT ( * ) * + - 63 + 88 + - 42 + + 22
----
-2011

query I rowsort
SELECT ALL - 74 - 3 col2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7687
SELECT - 23 DIV + + 11 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7687
SELECT - 23 / + + 11 AS col1
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7688
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT - CAST ( NULL AS REAL ) * 84
----
NULL

query I rowsort
SELECT DISTINCT + 72 * 7
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL - SUM( + + 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - SUM ( + + 46 ) AS col2
----
-46

query I rowsort
SELECT NULLIF ( + 79, + COALESCE ( - + 38, 11 ) * - - AVG ( DISTINCT 75 ) + - + 93 ) + 24 + - ( - - COALESCE ( 61, + - 57 ) )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT + 90 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-7692
SELECT + 90 / 97
----
0

query II rowsort
SELECT DISTINCT - + 47 AS col2, + 25 - - - 42 + - - 89 * - + 19 AS col1
----
-47
-1708

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT + 17 - ( 93 ) DIV 34
----
15

skipif mysql # not compatible
query I rowsort label-7694
SELECT + 17 - ( 93 ) / 34
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7695
SELECT DISTINCT - COUNT( * ) AS col2, - 42 AS col1
----
-1
-42

skipif mysql # not compatible
query II rowsort label-7695
SELECT DISTINCT - COUNT ( * ) AS col2, - 42 AS col1
----
-1
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-7696
SELECT DISTINCT - - 65 AS col0, + 1 DIV + 38 * + 5 + - 19 * + 46 AS col2
----
65
-874

skipif mysql # not compatible
query II rowsort label-7696
SELECT DISTINCT - - 65 AS col0, + 1 / + 38 * + 5 + - 19 * + 46 AS col2
----
65
-874

query I rowsort
SELECT ALL + - ( - 80 ) * - 10 AS col1
----
-800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7698
SELECT - CAST( NULL AS DECIMAL ) * 66 * - + 27 * 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT - CAST ( NULL AS REAL ) * 66 * - + 27 * 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7699
SELECT ALL + 77 AS col2, MIN( ALL - - 78 ) + + 31
----
77
109

skipif mysql # not compatible
query II rowsort label-7699
SELECT ALL + 77 AS col2, MIN ( ALL - - 78 ) + + 31
----
77
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7700
SELECT DISTINCT + CAST( + - COUNT( * ) AS DECIMAL ) * CAST( NULL AS SIGNED ) + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS REAL ) * CAST ( NULL AS INTEGER ) + 39 AS col0
----
NULL

query II rowsort
SELECT ALL 94 + - 17 AS col2, 71
----
77
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT 9 * + - COUNT( * ) + - - 97
----
88

skipif mysql # not compatible
query I rowsort label-7702
SELECT 9 * + - COUNT ( * ) + - - 97
----
88

query I rowsort
SELECT DISTINCT - 73 + + 93 * - + 23 * + ( - 24 )
----
51263

query I rowsort
SELECT ALL CASE 78 WHEN 64 THEN + 66 ELSE NULL END + + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT SUM( + - 30 ) * + + 89 AS col0
----
-2670

skipif mysql # not compatible
query I rowsort label-7705
SELECT SUM ( + - 30 ) * + + 89 AS col0
----
-2670

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT + COUNT( * ) * 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT + COUNT ( * ) * 22 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL COALESCE ( + COUNT( 93 ), + + 30, - 8 + - 72 * + 48 * + 0 * - 76 ) + + 44
----
45

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL COALESCE ( + COUNT ( 93 ), + + 30, - 8 + - 72 * + 48 * + 0 * - 76 ) + + 44
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT MIN( - - 65 ) * + - 25
----
-1625

skipif mysql # not compatible
query I rowsort label-7708
SELECT MIN ( - - 65 ) * + - 25
----
-1625

query I rowsort
SELECT ( + 27 ) + + 14
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT DISTINCT ( - COALESCE ( - 90, 72, - COUNT( + 40 ) * 33 ) ) + - + 82 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT ( - COALESCE ( - 90, 72, - COUNT ( + 40 ) * 33 ) ) + - + 82 AS col0
----
8

query I rowsort
SELECT DISTINCT 21 * + 40 AS col1
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7712
SELECT DISTINCT 33 + + COUNT( * ) + - 21 + + CAST( + + COALESCE ( - + 73, + 75 ) AS SIGNED ) * + 35 col0
----
-2542

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT 33 + + COUNT ( * ) + - 21 + + CAST ( + + COALESCE ( - + 73, + 75 ) AS INTEGER ) * + 35 col0
----
-2542

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7713
SELECT ALL 56 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL 56 * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT ( 77 ) - + 20 * + + COUNT( * ) * - 11 AS col0
----
297

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT ( 77 ) - + 20 * + + COUNT ( * ) * - 11 AS col0
----
297

query I rowsort
SELECT DISTINCT 85 * 25 * + 95 * - ( + - 33 ) AS col1
----
6661875

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT COUNT( * ) - + 50
----
-49

skipif mysql # not compatible
query I rowsort label-7716
SELECT COUNT ( * ) - + 50
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ( - COUNT( * ) ) * + 93
----
-93

skipif mysql # not compatible
query I rowsort label-7717
SELECT ( - COUNT ( * ) ) * + 93
----
-93

query I rowsort
SELECT 18 + 55
----
73

query I rowsort
SELECT 18 + - 7 + 13
----
24

query I rowsort
SELECT ALL - 82 * - 20 - + 51 - + + 16 + + 6 AS col0
----
1579

onlyif mysql # aggregate syntax: 
query II rowsort label-7721
SELECT ALL - ( - 4 ) * - - SUM( ALL + + 27 ) AS col1, + 60
----
108
60

skipif mysql # not compatible
query II rowsort label-7721
SELECT ALL - ( - 4 ) * - - SUM ( ALL + + 27 ) AS col1, + 60
----
108
60

query I rowsort
SELECT ALL - + NULLIF ( + 58, 17 - - + 56 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ALL - MIN( ALL - - ( - 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL - MIN ( ALL - - ( - 4 ) )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7724
SELECT + 34 * CAST( + 86 AS SIGNED ) * - + 24 - + COUNT( * ) + - 30 + COUNT( * ) * 24
----
-70183

skipif mysql # not compatible
query I rowsort label-7724
SELECT + 34 * CAST ( + 86 AS INTEGER ) * - + 24 - + COUNT ( * ) + - 30 + COUNT ( * ) * 24
----
-70183

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT + - 32 * 44 + + COUNT( * ) col1
----
-1407

skipif mysql # not compatible
query I rowsort label-7725
SELECT + - 32 * 44 + + COUNT ( * ) col1
----
-1407

onlyif mysql # aggregate syntax: 
query II rowsort label-7726
SELECT SUM( DISTINCT 6 ) AS col1, - COUNT( * )
----
6
-1

skipif mysql # not compatible
query II rowsort label-7726
SELECT SUM ( DISTINCT 6 ) AS col1, - COUNT ( * )
----
6
-1

query I rowsort
SELECT ALL + - COALESCE ( 70, + 85 ) col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT - CAST( NULL AS SIGNED ) * 17 + - + 74 * + ( - + 52 ) * - 98 * + - 11 / + + 43 / + 34 + - 52 - + 93 - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT - CAST ( NULL AS INTEGER ) * 17 + - + 74 * + ( - + 52 ) * - 98 * + - 11 / + + 43 / + 34 + - 52 - + 93 - 97 AS col1
----
NULL

query I rowsort
SELECT + 97 * - + 89 AS col0
----
-8633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7730
SELECT + - 74 DIV - 23 + + + 41 - - - ( + 54 ) * - 1 * 62 + - COUNT( * ) + NULLIF ( - + COUNT( * ), + + 6 * - SUM( DISTINCT - 29 ) DIV + COUNT( * ) * + 15 ) - - 2 * NULLIF ( - 7, + 61 )
----
3376

skipif mysql # not compatible
query I rowsort label-7730
SELECT + - 74 / - 23 + + + 41 - - - ( + 54 ) * - 1 * 62 + - COUNT ( * ) + NULLIF ( - + COUNT ( * ), + + 6 * - SUM ( DISTINCT - 29 ) / + COUNT ( * ) * + 15 ) - - 2 * NULLIF ( - 7, + 61 )
----
3376

query II rowsort
SELECT + 15 + - 89, 19 AS col0
----
-74
19

query I rowsort
SELECT DISTINCT + COALESCE ( ( + 51 ), 55 + + 5, - + 4 * - + 17 * + - 78 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7733
SELECT ALL ( + 10 ) * + 62 + + 12 AS col2, MIN( DISTINCT + 47 )
----
632
47

skipif mysql # not compatible
query II rowsort label-7733
SELECT ALL ( + 10 ) * + 62 + + 12 AS col2, MIN ( DISTINCT + 47 )
----
632
47

query I rowsort
SELECT ALL + 74 * + + 95 + + 8 + + 74 + 73 + - 45 + - 99 * 38 AS col0
----
3378

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL + + SUM( - 53 ) * + 47 / + CASE + 80 WHEN - + 33 THEN NULL WHEN 49 THEN 25 END + - COUNT( * ) + 2 / - 62 + - - 43 / 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL + + SUM ( - 53 ) * + 47 / + CASE + 80 WHEN - + 33 THEN NULL WHEN 49 THEN 25 END + - COUNT ( * ) + 2 / - 62 + - - 43 / 6 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT - 76 DIV 33 * + - 62 * + 71
----
8804

skipif mysql # not compatible
query I rowsort label-7736
SELECT - 76 / 33 * + - 62 * + 71
----
8804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT - CAST( NULL AS SIGNED ) + + + 92 + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT - CAST ( NULL AS INTEGER ) + + + 92 + - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT SUM( ALL + 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7738
SELECT SUM ( ALL + 52 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7739
SELECT ALL + 14 + - CAST( + + 30 AS SIGNED ) + + - NULLIF ( + 88, + CASE - - 74 WHEN - NULLIF ( - - NULLIF ( 50, - CAST( 49 AS DECIMAL ) + - ( + + 86 ) ), + 48 * - 13 ) * + 18 THEN - 56 * + 43 ELSE NULL END * + 97 ) + 56 * 4
----
120

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL + 14 + - CAST ( + + 30 AS INTEGER ) + + - NULLIF ( + 88, + CASE - - 74 WHEN - NULLIF ( - - NULLIF ( 50, - CAST ( 49 AS REAL ) + - ( + + 86 ) ), + 48 * - 13 ) * + 18 THEN - 56 * + 43 ELSE NULL END * + 97 ) + 56 * 4
----
120

query I rowsort
SELECT + ( + 9 ) + 63
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7741
SELECT ALL - 51 DIV - 34 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL - 51 / - 34 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7742
SELECT - COUNT( * ) + - CASE + 84 WHEN + 47 - - 79 THEN COUNT( * ) * + 31 * - CASE + + 66 WHEN - 39 * - + 0 + - + 32 + - COUNT( * ) DIV - + 0 - 81 THEN + 75 * + MAX( 72 * + 91 ) ELSE 64 * + 55 + - ( - 52 + - 24 ) END + COUNT( * ) WHEN 34 THEN 76 DIV 33 ELSE 22 + ( - COUNT( * ) ) * - 23 END AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-7742
SELECT - COUNT ( * ) + - CASE + 84 WHEN + 47 - - 79 THEN COUNT ( * ) * + 31 * - CASE + + 66 WHEN - 39 * - + 0 + - + 32 + - COUNT ( * ) / - + 0 - 81 THEN + 75 * + MAX ( 72 * + 91 ) ELSE 64 * + 55 + - ( - 52 + - 24 ) END + COUNT ( * ) WHEN 34 THEN 76 / 33 ELSE 22 + ( - COUNT ( * ) ) * - 23 END AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT - CAST( NULL AS SIGNED ) + + 98 * - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT - CAST ( NULL AS INTEGER ) + + 98 * - - 87
----
NULL

query I rowsort
SELECT + 22 * 15
----
330

query I rowsort
SELECT ALL + 79 + 78 * 19
----
1561

query I rowsort
SELECT ALL COALESCE ( + 65, + 72 ) AS col1
----
65

query I rowsort
SELECT DISTINCT + 97 - - + 0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT ALL CAST( + CAST( - + ( 7 ) AS SIGNED ) AS SIGNED ) * - COALESCE ( + 25, CAST( NULL AS SIGNED ) )
----
175

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL CAST ( + CAST ( - + ( 7 ) AS INTEGER ) AS INTEGER ) * - COALESCE ( + 25, CAST ( NULL AS INTEGER ) )
----
175

query I rowsort
SELECT - CASE + 56 WHEN - ( - 51 ) THEN NULL ELSE + 38 END + 96
----
58

query I rowsort
SELECT - 33 * 8
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-7751
SELECT - 50 + 7 + 45 DIV - 69 + + 66 * - ( - + 91 ) * + 45 - 0 AS col0
----
270227

skipif mysql # not compatible
query I rowsort label-7751
SELECT - 50 + 7 + 45 / - 69 + + 66 * - ( - + 91 ) * + 45 - 0 AS col0
----
270227

query I rowsort
SELECT - 26 + - - 81 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT + COUNT( * ) - + - COALESCE ( - 80, - 71, + + CAST( - COUNT( * ) AS SIGNED ) + + 44, + - ( + 70 ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7753
SELECT + COUNT ( * ) - + - COALESCE ( - 80, - 71, + + CAST ( - COUNT ( * ) AS INTEGER ) + + 44, + - ( + 70 ) ) AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-7754
SELECT - + 27 DIV + 13 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7754
SELECT - + 27 / + 13 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7755
SELECT DISTINCT + 16 DIV + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT + 16 / + - COUNT ( * )
----
-16

query I rowsort
SELECT + - ( - 11 ) + + 69
----
80

query I rowsort
SELECT ALL - 83 * + 68 * 48 * + + 8
----
-2167296

query I rowsort
SELECT + + 77 + + 75 * + + 10 + + 91
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT SUM( ALL 55 )
----
55

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT SUM ( ALL 55 )
----
55

query I rowsort
SELECT + - 49 * + 31 + - 43 col2
----
-1562

query I rowsort
SELECT + + 28 * - 35 AS col0
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL - 31 * - + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - 31 * - + COUNT ( * ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT + + ( - - 7 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT + + ( - - 7 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7764
SELECT ALL + + ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL + + ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL - COUNT( * ) * - NULLIF ( + COUNT( * ), + 92 * + - 19 ) + - MIN( + 4 )
----
-3

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL - COUNT ( * ) * - NULLIF ( + COUNT ( * ), + 92 * + - 19 ) + - MIN ( + 4 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7766
SELECT DISTINCT + 12 * + + 47 * + COALESCE ( + 70, - 18 ) + CAST( NULL AS SIGNED ) + + + 95 + CASE - 63 WHEN + 27 THEN + 76 * 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT + 12 * + + 47 * + COALESCE ( + 70, - 18 ) + CAST ( NULL AS INTEGER ) + + + 95 + CASE - 63 WHEN + 27 THEN + 76 * 32 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7767
SELECT + 90 * + - 12 + - - 41 AS col1, COUNT( * )
----
-1039
1

skipif mysql # not compatible
query II rowsort label-7767
SELECT + 90 * + - 12 + - - 41 AS col1, COUNT ( * )
----
-1039
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT - - COUNT( * ) * - 83 * - - 84 + - + 48
----
-7020

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT - - COUNT ( * ) * - 83 * - - 84 + - + 48
----
-7020

query I rowsort
SELECT + 44 + + - 19
----
25

query I rowsort
SELECT + + 26 * 47 AS col2
----
1222

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT + 64 * 69 DIV - 96
----
-46

skipif mysql # not compatible
query I rowsort label-7771
SELECT + 64 * 69 / - 96
----
-46

query I rowsort
SELECT + ( COALESCE ( + 8, - 60 + - 28 + 39 ) ) - - ( 55 ) AS col1
----
63

query I rowsort
SELECT - 69 * + 82 + + 29 AS col1
----
-5629

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT + 87 * 83 + + + SUM( + + COALESCE ( - - ( 72 ), + 58 + - 79 ) )
----
7293

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT + 87 * 83 + + + SUM ( + + COALESCE ( - - ( 72 ), + 58 + - 79 ) )
----
7293

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT CASE - 87 WHEN + 83 + + ( 21 ) + + 66 + 80 THEN CASE - 55 WHEN 40 THEN NULL WHEN - - 70 * 25 + - 68 + - COUNT( * ) + + 74 THEN + + 26 END WHEN - 24 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT CASE - 87 WHEN + 83 + + ( 21 ) + + 66 + 80 THEN CASE - 55 WHEN 40 THEN NULL WHEN - - 70 * 25 + - 68 + - COUNT ( * ) + + 74 THEN + + 26 END WHEN - 24 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT ALL 22 DIV + 35 * 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL 22 / + 35 * 21 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT DISTINCT MIN( - + 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT MIN ( - + 86 )
----
-86

query I rowsort
SELECT ALL ( - ( + 72 ) ) AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7779
SELECT DISTINCT + ( + + 1 ) DIV - + 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + ( + + 1 ) / - + 4 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT ALL - COUNT( * ) - - COUNT( * ) * - CAST( NULL AS SIGNED ) - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL - COUNT ( * ) - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7781
SELECT ALL CAST( MIN( - COALESCE ( 88, 9 ) ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL CAST ( MIN ( - COALESCE ( 88, 9 ) ) AS INTEGER )
----
-88

query I rowsort
SELECT ALL - 30 * - 57
----
1710

query II rowsort
SELECT ALL - 21 * - - 77 * + 14 * 41, + 85 AS col0
----
-928158
85

query II rowsort
SELECT 22, - 77 * 98 * 67 AS col2
----
22
-505582

query II rowsort
SELECT ALL 67 AS col1, 77
----
67
77

query I rowsort
SELECT DISTINCT - 54 * 18
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT + + ( + + 86 ) + + COUNT( * ) + - 11
----
76

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT + + ( + + 86 ) + + COUNT ( * ) + - 11
----
76

query I rowsort
SELECT - 43 - - - 79 AS col2
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7789
SELECT - 7 AS col2, - COUNT( * ) * - COUNT( * ) * - 8 DIV - MAX( DISTINCT 67 )
----
-7
0

skipif mysql # not compatible
query II rowsort label-7789
SELECT - 7 AS col2, - COUNT ( * ) * - COUNT ( * ) * - 8 / - MAX ( DISTINCT 67 )
----
-7
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7790
SELECT ALL + 52 + - 30 + - - ( - 64 ) DIV 26 + CAST( + 76 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL + 52 + - 30 + - - ( - 64 ) / 26 + CAST ( + 76 AS INTEGER )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7791
SELECT 58 + + CAST( + NULLIF ( + - 79, + COUNT( * ) + MIN( + 46 ) + + 12 + + COUNT( * ) * 4 * + CAST( + AVG ( + 75 ) AS SIGNED ) * + + 43 ) AS SIGNED ) + - - 73 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7791
SELECT 58 + + CAST ( + NULLIF ( + - 79, + COUNT ( * ) + MIN ( + 46 ) + + 12 + + COUNT ( * ) * 4 * + CAST ( + AVG ( + 75 ) AS INTEGER ) * + + 43 ) AS INTEGER ) + - - 73 AS col1
----
52

query I rowsort
SELECT - NULLIF ( 43, 39 * - - 22 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7793
SELECT - NULLIF ( + - COUNT( DISTINCT - + 27 ), + 62 ), + 80 - + 6 AS col1
----
1
74

skipif mysql # not compatible
query II rowsort label-7793
SELECT - NULLIF ( + - COUNT ( DISTINCT - + 27 ), + 62 ), + 80 - + 6 AS col1
----
1
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7794
SELECT DISTINCT + 27 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT + 27 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7795
SELECT ALL - COUNT( * ) + + 19, + 45 AS col2
----
18
45

skipif mysql # not compatible
query II rowsort label-7795
SELECT ALL - COUNT ( * ) + + 19, + 45 AS col2
----
18
45

query I rowsort
SELECT + 75 * - - 76 - 95
----
5605

onlyif mysql # aggregate syntax: 
query II rowsort label-7797
SELECT ALL + 36 + CASE + 56 WHEN 54 - 32 + + - ( 87 ) THEN NULL WHEN + 49 THEN COUNT( * ) END AS col1, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL + 36 + CASE + 56 WHEN 54 - 32 + + - ( 87 ) THEN NULL WHEN + 49 THEN COUNT ( * ) END AS col1, - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT + + NULLIF ( - 28, + 70 ) col2
----
-28

query I rowsort
SELECT 6 * - 32 + - 92 AS col0
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL 16 + ( + COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL 16 + ( + COUNT ( * ) )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT + ( + 1 ) * 20 + + NULLIF ( - - 7, CAST( + + 68 AS SIGNED ) ) - - 88 * - - 31 * + ( + COUNT( * ) ) * - 69
----
-188205

skipif mysql # not compatible
query I rowsort label-7801
SELECT + ( + 1 ) * 20 + + NULLIF ( - - 7, CAST ( + + 68 AS INTEGER ) ) - - 88 * - - 31 * + ( + COUNT ( * ) ) * - 69
----
-188205

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT 59 col1, 55 - + - MIN( DISTINCT + 95 ) AS col2
----
59
150

skipif mysql # not compatible
query II rowsort label-7802
SELECT 59 col1, 55 - + - MIN ( DISTINCT + 95 ) AS col2
----
59
150

onlyif mysql # aggregate syntax: 
query II rowsort label-7803
SELECT + COALESCE ( - NULLIF ( 23, 15 + COUNT( * ) ), + 7, 47 ), + 57 AS col2
----
-23
57

skipif mysql # not compatible
query II rowsort label-7803
SELECT + COALESCE ( - NULLIF ( 23, 15 + COUNT ( * ) ), + 7, 47 ), + 57 AS col2
----
-23
57

query I rowsort
SELECT DISTINCT 70 * - 68 col0
----
-4760

query I rowsort
SELECT ALL ( - - 80 ) - 12 + 65
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7806
SELECT 97 * COUNT( * ) + - + 93 DIV - - 73
----
96

skipif mysql # not compatible
query I rowsort label-7806
SELECT 97 * COUNT ( * ) + - + 93 / - - 73
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7807
SELECT ( 50 ) + - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT ( 50 ) + - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7808
SELECT COUNT( * ) DIV 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7808
SELECT COUNT ( * ) / 13 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT COUNT( * ) + + 7
----
8

skipif mysql # not compatible
query I rowsort label-7809
SELECT COUNT ( * ) + + 7
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7810
SELECT DISTINCT MAX( DISTINCT 87 ) DIV 67
----
1

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT MAX ( DISTINCT 87 ) / 67
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT COALESCE ( - COALESCE ( + 41, COUNT( * ) * - 5 - + ( + 93 ), + + 7 * + 61 ), - - ( + 65 ), CASE + 81 WHEN + 27 THEN NULL ELSE COALESCE ( - 19, 59 * 76, 1 ) END ) * 1 col1
----
-41

skipif mysql # not compatible
query I rowsort label-7811
SELECT COALESCE ( - COALESCE ( + 41, COUNT ( * ) * - 5 - + ( + 93 ), + + 7 * + 61 ), - - ( + 65 ), CASE + 81 WHEN + 27 THEN NULL ELSE COALESCE ( - 19, 59 * 76, 1 ) END ) * 1 col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7812
SELECT ( - 41 ) + + - 53 - + 66 DIV - - 76 + COUNT( * ) * 68 * 16 + - 64 * - - 39 * - 3 - + + COALESCE ( 12, - 14 * ( ( 73 ) ) DIV 22 - CASE - 1 WHEN MAX( + 90 ) * + 59 THEN NULL WHEN + 77 + + 27 * + 54 THEN 82 ELSE NULL END ) AS col2
----
8470

skipif mysql # not compatible
query I rowsort label-7812
SELECT ( - 41 ) + + - 53 - + 66 / - - 76 + COUNT ( * ) * 68 * 16 + - 64 * - - 39 * - 3 - + + COALESCE ( 12, - 14 * ( ( 73 ) ) / 22 - CASE - 1 WHEN MAX ( + 90 ) * + 59 THEN NULL WHEN + 77 + + 27 * + 54 THEN 82 ELSE NULL END ) AS col2
----
8470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7813
SELECT 53 + - COUNT( * ) * MAX( - 43 ) DIV COUNT( * ) + + - ( 23 ) * + - 82
----
1982

skipif mysql # not compatible
query I rowsort label-7813
SELECT 53 + - COUNT ( * ) * MAX ( - 43 ) / COUNT ( * ) + + - ( 23 ) * + - 82
----
1982

onlyif mysql # DIV for integer division: 
query II rowsort label-7814
SELECT - 18 DIV - 4, - 38 * 38 AS col1
----
4
-1444

skipif mysql # not compatible
query II rowsort label-7814
SELECT - 18 / - 4, - 38 * 38 AS col1
----
4
-1444

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT 93 + - COUNT( * ) * - 89
----
182

skipif mysql # not compatible
query I rowsort label-7815
SELECT 93 + - COUNT ( * ) * - 89
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT + COUNT( * ) + 95
----
96

skipif mysql # not compatible
query I rowsort label-7816
SELECT + COUNT ( * ) + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT + 40 + 20 + + + 80 - - 10 * - COUNT( DISTINCT 15 ) * - - MAX( ALL + 40 ) + - + 15 + - - 22 + 35 * + 29 AS col2
----
762

skipif mysql # not compatible
query I rowsort label-7817
SELECT + 40 + 20 + + + 80 - - 10 * - COUNT ( DISTINCT 15 ) * - - MAX ( ALL + 40 ) + - + 15 + - - 22 + 35 * + 29 AS col2
----
762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7818
SELECT - COALESCE ( + 43, 51 * - MAX( - 63 ) + - 48 DIV CAST( NULL AS SIGNED ) * + - 67 + + - CASE 36 WHEN + - COUNT( * ) * + ( - 16 ) + - 60 + + - 33 THEN - 33 * + 52 * 95 END ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-7818
SELECT - COALESCE ( + 43, 51 * - MAX ( - 63 ) + - 48 / CAST ( NULL AS INTEGER ) * + - 67 + + - CASE 36 WHEN + - COUNT ( * ) * + ( - 16 ) + - 60 + + - 33 THEN - 33 * + 52 * 95 END ) col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7819
SELECT MIN( 22 ) DIV + 9 AS col1, - COUNT( - 80 ) AS col1, - ( + 30 ) - - - 25 + + 70 * 3
----
2
-1
155

skipif mysql # not compatible
query III rowsort label-7819
SELECT MIN ( 22 ) / + 9 AS col1, - COUNT ( - 80 ) AS col1, - ( + 30 ) - - - 25 + + 70 * 3
----
2
-1
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7820
SELECT + 24 + + - CAST( + COALESCE ( CASE - CASE + + 73 WHEN - 6 + - 97 THEN - MAX( DISTINCT - 38 ) WHEN + NULLIF ( - + 99, 78 ) * - + COALESCE ( SUM( - 65 ), - 60 ) * - 48 THEN NULL END WHEN 11 THEN NULL WHEN - 17 THEN - MIN( ALL 27 ) ELSE NULL END, + 60 * 65 ) AS SIGNED ) AS col0
----
-3876

skipif mysql # not compatible
query I rowsort label-7820
SELECT + 24 + + - CAST ( + COALESCE ( CASE - CASE + + 73 WHEN - 6 + - 97 THEN - MAX ( DISTINCT - 38 ) WHEN + NULLIF ( - + 99, 78 ) * - + COALESCE ( SUM ( - 65 ), - 60 ) * - 48 THEN NULL END WHEN 11 THEN NULL WHEN - 17 THEN - MIN ( ALL 27 ) ELSE NULL END, + 60 * 65 ) AS INTEGER ) AS col0
----
-3876

query I rowsort
SELECT + 68 * 37 * - 16 AS col2
----
-40256

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT DISTINCT - SUM( 22 ) + 99
----
77

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT - SUM ( 22 ) + 99
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT - 98 * - MAX( + 14 )
----
1372

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT - 98 * - MAX ( + 14 )
----
1372

query I rowsort
SELECT ALL + + 44 + 33 * + + 49
----
1661

query I rowsort
SELECT - ( - 58 ) + 43 AS col2
----
101

query I rowsort
SELECT 41 + + 85
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT COUNT( * ) * + 43 * 8 + ( COUNT( * ) ) + - 53 AS col0
----
292

skipif mysql # not compatible
query I rowsort label-7827
SELECT COUNT ( * ) * + 43 * 8 + ( COUNT ( * ) ) + - 53 AS col0
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT + COUNT( * ) * - - 0 * - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7828
SELECT + COUNT ( * ) * - - 0 * - 89 AS col1
----
0

query I rowsort
SELECT 11 + - + 18
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7830
SELECT DISTINCT - 64, - COUNT( * ) AS col1
----
-64
-1

skipif mysql # not compatible
query II rowsort label-7830
SELECT DISTINCT - 64, - COUNT ( * ) AS col1
----
-64
-1

query I rowsort
SELECT 3 * + 95
----
285

query I rowsort
SELECT DISTINCT - ( 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT MIN( DISTINCT 79 ) - 47
----
32

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT MIN ( DISTINCT 79 ) - 47
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7834
SELECT ALL CAST( + - 71 AS SIGNED ) * - COUNT( - 40 )
----
71

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL CAST ( + - 71 AS INTEGER ) * - COUNT ( - 40 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7835
SELECT ALL + COALESCE ( + + 68, + COUNT( * ) ) DIV + 62
----
1

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL + COALESCE ( + + 68, + COUNT ( * ) ) / + 62
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL - MAX( DISTINCT + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL - MAX ( DISTINCT + 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT 2 * + COALESCE ( - COUNT( * ), + - 71, - COUNT( * ) + + - 3 ) * - 43
----
86

skipif mysql # not compatible
query I rowsort label-7837
SELECT 2 * + COALESCE ( - COUNT ( * ), + - 71, - COUNT ( * ) + + - 3 ) * - 43
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7838
SELECT + 40, 76 * COUNT( * ) col1
----
40
76

skipif mysql # not compatible
query II rowsort label-7838
SELECT + 40, 76 * COUNT ( * ) col1
----
40
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT COUNT( * ) - - + 4 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7839
SELECT COUNT ( * ) - - + 4 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7840
SELECT ( + 51 ) DIV - + 3 + + 75 col2, + CAST( + - 70 AS SIGNED ) col2
----
58
-70

skipif mysql # not compatible
query II rowsort label-7840
SELECT ( + 51 ) / - + 3 + + 75 col2, + CAST ( + - 70 AS INTEGER ) col2
----
58
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7841
SELECT ALL CAST( NULL AS DECIMAL ) * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL CAST ( NULL AS REAL ) * 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT + 22 * 27 + COUNT( * ) + - 27 + - COUNT( * )
----
567

skipif mysql # not compatible
query I rowsort label-7842
SELECT + 22 * 27 + COUNT ( * ) + - 27 + - COUNT ( * )
----
567

onlyif mysql # aggregate syntax: 
query II rowsort label-7843
SELECT 77, - 25 * + COUNT( * ) AS col0
----
77
-25

skipif mysql # not compatible
query II rowsort label-7843
SELECT 77, - 25 * + COUNT ( * ) AS col0
----
77
-25

query I rowsort
SELECT DISTINCT + 48 * - - 60 AS col0
----
2880

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7845
SELECT ALL 91 + - 93 + + + AVG ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL 91 + - 93 + + + AVG ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT + MIN( ALL + 28 ) * + 26 AS col1
----
728

skipif mysql # not compatible
query I rowsort label-7846
SELECT + MIN ( ALL + 28 ) * + 26 AS col1
----
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7847
SELECT - 52, + 7 - - CAST( NULL AS SIGNED ) + + 37 * 70 / + + 16 * + - SUM( ALL 48 ) / ( COUNT( * ) ) * + 59 + + 28 AS col2
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-7847
SELECT - 52, + 7 - - CAST ( NULL AS INTEGER ) + + 37 * 70 / + + 16 * + - SUM ( ALL 48 ) / ( COUNT ( * ) ) * + 59 + + 28 AS col2
----
-52
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7848
SELECT DISTINCT 64 col2, - CAST( NULL AS DECIMAL ) + + + 77 - COUNT( * ) * 61 + - 47 + - 43
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7848
SELECT DISTINCT 64 col2, - CAST ( NULL AS REAL ) + + + 77 - COUNT ( * ) * 61 + - 47 + - 43
----
64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT ALL COUNT( ALL - NULLIF ( 75, - 4 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL COUNT ( ALL - NULLIF ( 75, - 4 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7850
SELECT + 42 AS col0, + 4 - - - CASE 29 WHEN - + 82 THEN NULL WHEN - MAX( - + 29 ) THEN - + 46 END + 63 * + + COUNT( * ) * - 41 * 14 AS col1
----
42
-36112

skipif mysql # not compatible
query II rowsort label-7850
SELECT + 42 AS col0, + 4 - - - CASE 29 WHEN - + 82 THEN NULL WHEN - MAX ( - + 29 ) THEN - + 46 END + 63 * + + COUNT ( * ) * - 41 * 14 AS col1
----
42
-36112

query I rowsort
SELECT + + 38 * + - 85
----
-3230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7852
SELECT DISTINCT + 11 + + CASE - 56 WHEN + + 63 THEN NULL WHEN 28 * + 28 THEN - + CAST( 27 AS SIGNED ) END + + 97 / + 6 * - COUNT( ALL - - 7 ) * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT + 11 + + CASE - 56 WHEN + + 63 THEN NULL WHEN 28 * + 28 THEN - + CAST ( 27 AS INTEGER ) END + + 97 / + 6 * - COUNT ( ALL - - 7 ) * + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT 53 + NULLIF ( + + 59, + + 17 + - 51 * - + 39 + + AVG ( 83 ) - + 0 * - NULLIF ( 86, COUNT( * ) * - 24 + + - 62 ) )
----
112

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT 53 + NULLIF ( + + 59, + + 17 + - 51 * - + 39 + + AVG ( 83 ) - + 0 * - NULLIF ( 86, COUNT ( * ) * - 24 + + - 62 ) )
----
112

query I rowsort
SELECT + - 19 + + 0 col2
----
-19

query I rowsort
SELECT ALL - 8 - - + 66 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + - 3 + 75 + + 42 - MAX( - - 73 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7856
SELECT + - 3 + 75 + + 42 - MAX ( - - 73 ) AS col2
----
41

query II rowsort
SELECT 7 AS col2, - NULLIF ( + 69, ( + - 29 ) ) / 6 * CASE - - 46 WHEN - 15 THEN NULL WHEN + - 80 THEN + COALESCE ( + 38, - 81 ) WHEN - 24 THEN NULL END * - - 17 - + 33 * - 34
----
7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7858
SELECT - 24 DIV + MAX( ALL - + 83 )
----
0

skipif mysql # not compatible
query I rowsort label-7858
SELECT - 24 / + MAX ( ALL - + 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT ALL + COUNT( ALL 16 )
----
1

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL + COUNT ( ALL 16 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7860
SELECT + 68 + CASE AVG ( 48 ) WHEN 13 / + 14 THEN NULL WHEN + CASE - 82 WHEN + + 44 + + 74 + + - MIN( ALL - 97 ) * - 85 - - SUM( - 89 ) * ( - 54 ) + + - 84 + - COALESCE ( 78 + 23, 92 / + ( 74 * + 76 ) + ( 67 - COALESCE ( NULLIF ( + 94, - 54 ) + + 4, - 11, - CAST( CAST( 34 AS SIGNED ) AS SIGNED ) ) ), 8 ) THEN - 8 / CAST( NULL AS SIGNED ) WHEN 79 THEN - 48 END * 75 THEN + 2 ELSE - 13 + + CASE 19 WHEN - COALESCE ( CAST( NULL AS DECIMAL ), + CASE 59 WHEN - 49 THEN COUNT( * ) END ) * 41 THEN - COUNT( * ) * COUNT( * ) WHEN ( - 22 ) THEN NULL WHEN + ( - 60 ) THEN NULL END * ( CAST( NULL AS SIGNED ) ) END + COUNT( * ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT + 68 + CASE AVG ( 48 ) WHEN 13 / + 14 THEN NULL WHEN + CASE - 82 WHEN + + 44 + + 74 + + - MIN ( ALL - 97 ) * - 85 - - SUM ( - 89 ) * ( - 54 ) + + - 84 + - COALESCE ( 78 + 23, 92 / + ( 74 * + 76 ) + ( 67 - COALESCE ( NULLIF ( + 94, - 54 ) + + 4, - 11, - CAST ( CAST ( 34 AS INTEGER ) AS INTEGER ) ) ), 8 ) THEN - 8 / CAST ( NULL AS INTEGER ) WHEN 79 THEN - 48 END * 75 THEN + 2 ELSE - 13 + + CASE 19 WHEN - COALESCE ( CAST ( NULL AS REAL ), + CASE 59 WHEN - 49 THEN COUNT ( * ) END ) * 41 THEN - COUNT ( * ) * COUNT ( * ) WHEN ( - 22 ) THEN NULL WHEN + ( - 60 ) THEN NULL END * ( CAST ( NULL AS INTEGER ) ) END + COUNT ( * ) * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - - 11, + 66 ) * - 22 AS col0
----
-242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT - ( 61 ) * - COUNT( * ) + - 54 + + CAST( NULL AS SIGNED ) + + - 36 + + - COUNT( DISTINCT - ( - 6 ) ) - + - 94 - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT - ( 61 ) * - COUNT ( * ) + - 54 + + CAST ( NULL AS INTEGER ) + + - 36 + + - COUNT ( DISTINCT - ( - 6 ) ) - + - 94 - + 26
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7863
SELECT DISTINCT + COUNT( ALL + 29 ) col0, + COUNT( * ) + 44 + - - COALESCE ( - - 11, + CASE WHEN 93 NOT IN ( - 88 + 83 * - 62, + 79 * + 9, COUNT( * ) * - ( 56 ) ) THEN - 75 + + 24 + + 77 ELSE 52 END, 75 * + 60 + 40 )
----
1
56

skipif mysql # not compatible
query II rowsort label-7863
SELECT DISTINCT + COUNT ( ALL + 29 ) col0, + COUNT ( * ) + 44 + - - COALESCE ( - - 11, + CASE WHEN 93 NOT IN ( - 88 + 83 * - 62, + 79 * + 9, COUNT ( * ) * - ( 56 ) ) THEN - 75 + + 24 + + 77 ELSE 52 END, 75 * + 60 + 40 )
----
1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - COUNT( * ) * - NULLIF ( 98, - COUNT( * ) / - 60 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7864
SELECT - COUNT ( * ) * - NULLIF ( 98, - COUNT ( * ) / - 60 ) AS col1
----
98

query II rowsort
SELECT 34 * + 97 + ( 14 ), - 44 AS col2
----
3312
-44

query I rowsort
SELECT NULLIF ( - 15, + 48 + + + ( - + 9 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL + MAX( ALL + + ( - 39 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL + MAX ( ALL + + ( - 39 ) )
----
-39

query I rowsort
SELECT NULLIF ( + 98, - + 56 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + COUNT( * ) * 89 * - 66 - 66 * - COUNT( * ) * 55
----
-2244

skipif mysql # not compatible
query I rowsort label-7869
SELECT + COUNT ( * ) * 89 * - 66 - 66 * - COUNT ( * ) * 55
----
-2244

query II rowsort
SELECT - 4 * - 51 AS col1, 41
----
204
41

query I rowsort
SELECT ALL + COALESCE ( + 46, + 53, + 10 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT NULLIF ( + 85, 76 + + NULLIF ( - MIN( + - 73 ), 43 ) )
----
85

skipif mysql # not compatible
query I rowsort label-7872
SELECT NULLIF ( + 85, 76 + + NULLIF ( - MIN ( + - 73 ), 43 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL + COUNT( DISTINCT + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + COUNT ( DISTINCT + 12 )
----
1

query I rowsort
SELECT - 74 * 33 * - - 25 col2
----
-61050

query I rowsort
SELECT COALESCE ( + + 70, + 50 * - 97, - 26 + - NULLIF ( - 52, + + 78 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT + SUM( DISTINCT 84 )
----
84

skipif mysql # not compatible
query I rowsort label-7876
SELECT + SUM ( DISTINCT 84 )
----
84

query I rowsort
SELECT DISTINCT + COALESCE ( - ( - - 25 ), + + 11 )
----
-25

query I rowsort
SELECT - 38 + + 74
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7879
SELECT ALL + SUM( ALL - 65 ) * - 60 + - 38, SUM( CAST( + + COALESCE ( - 18, 63 * 52 ) AS SIGNED ) ) AS col0
----
3862
-18

skipif mysql # not compatible
query II rowsort label-7879
SELECT ALL + SUM ( ALL - 65 ) * - 60 + - 38, SUM ( CAST ( + + COALESCE ( - 18, 63 * 52 ) AS INTEGER ) ) AS col0
----
3862
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT - 23 + - CAST( NULL AS SIGNED ) * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT - 23 + - CAST ( NULL AS INTEGER ) * + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT + COUNT( - + 80 ) * 95 + - ( + + COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-7881
SELECT + COUNT ( - + 80 ) * 95 + - ( + + COUNT ( * ) )
----
94

query I rowsort
SELECT DISTINCT NULLIF ( + 32, + - 72 ) col1
----
32

query II rowsort
SELECT ALL + - 72 * - 33 AS col1, - 53
----
2376
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT - MIN( ALL - ( - + 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7884
SELECT - MIN ( ALL - ( - + 4 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT DISTINCT + 70 * + 7 + ( + COALESCE ( + CASE - 35 WHEN ( + - 38 ) / - 1 * 8 THEN - 61 * + + MAX( DISTINCT - - 94 ) WHEN + - CASE - 67 WHEN - 48 + - 52 * - 79 - + 37 THEN NULL ELSE + COUNT( * ) + + 41 * - 12 END THEN - NULLIF ( + 36, 44 - - COUNT( * ) * ( + 50 ) ) END, 7 * - 72 + 46, + 8 - - 84 ) )
----
32

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT + 70 * + 7 + ( + COALESCE ( + CASE - 35 WHEN ( + - 38 ) / - 1 * 8 THEN - 61 * + + MAX ( DISTINCT - - 94 ) WHEN + - CASE - 67 WHEN - 48 + - 52 * - 79 - + 37 THEN NULL ELSE + COUNT ( * ) + + 41 * - 12 END THEN - NULLIF ( + 36, 44 - - COUNT ( * ) * ( + 50 ) ) END, 7 * - 72 + 46, + 8 - - 84 ) )
----
32

query I rowsort
SELECT ALL - 12 - + ( + 26 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT - COUNT( - - 64 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7887
SELECT - COUNT ( - - 64 ) AS col0
----
-1

query I rowsort
SELECT + + 43 + - - ( + 14 ) AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT - 25 * - 38 + + AVG ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT - 25 * - 38 + + AVG ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 95 * - 25
----
-2375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT + 99 + + ( + CAST( NULL AS SIGNED ) ) + 58 * - 90 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT + 99 + + ( + CAST ( NULL AS INTEGER ) ) + 58 * - 90 * + 76
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7892
SELECT + 13 * - - 4 - - COALESCE ( + + 47, + 39 + - CASE - - ( - ( + - 85 ) ) WHEN - 25 THEN + - 21 DIV + 84 + COUNT( * ) + - - 63 END + MIN( - - 59 ) )
----
99

skipif mysql # not compatible
query I rowsort label-7892
SELECT + 13 * - - 4 - - COALESCE ( + + 47, + 39 + - CASE - - ( - ( + - 85 ) ) WHEN - 25 THEN + - 21 / + 84 + COUNT ( * ) + - - 63 END + MIN ( - - 59 ) )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7893
SELECT ALL ( - 67 ) * COALESCE ( + 86, + 88 ) AS col0, NULLIF ( 74, + ( + CAST( 55 AS SIGNED ) ) ) AS col2
----
-5762
74

skipif mysql # not compatible
query II rowsort label-7893
SELECT ALL ( - 67 ) * COALESCE ( + 86, + 88 ) AS col0, NULLIF ( 74, + ( + CAST ( 55 AS INTEGER ) ) ) AS col2
----
-5762
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7894
SELECT + 22 + + ( 12 ) * - 61 * - + COUNT( * ) DIV ( + ( COUNT( * ) ) ) AS col0
----
754

skipif mysql # not compatible
query I rowsort label-7894
SELECT + 22 + + ( 12 ) * - 61 * - + COUNT ( * ) / ( + ( COUNT ( * ) ) ) AS col0
----
754

query I rowsort
SELECT + - 66 * - 54 AS col0
----
3564

query I rowsort
SELECT ALL + NULLIF ( + - ( + 53 ), - 27 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7897
SELECT - - ( - 96 ) AS col0, COUNT( * ) AS col0
----
-96
1

skipif mysql # not compatible
query II rowsort label-7897
SELECT - - ( - 96 ) AS col0, COUNT ( * ) AS col0
----
-96
1

query I rowsort
SELECT DISTINCT 67 * + 64 + - 43 col0
----
4245

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT + 23 * - MIN( ALL 67 )
----
-1541

skipif mysql # not compatible
query I rowsort label-7899
SELECT + 23 * - MIN ( ALL 67 )
----
-1541

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT 66 DIV + 2 - + 27 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7900
SELECT 66 / + 2 - + 27 AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7901
SELECT + 40 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-7901
SELECT + 40 / + 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT + 28 * + - 0 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7902
SELECT + 28 * + - 0 * + COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7903
SELECT + 87 * 73 DIV + COUNT( * ) AS col2, - CAST( 96 AS SIGNED ) * - + 82 col0
----
6351
7872

skipif mysql # not compatible
query II rowsort label-7903
SELECT + 87 * 73 / + COUNT ( * ) AS col2, - CAST ( 96 AS INTEGER ) * - + 82 col0
----
6351
7872

query I rowsort
SELECT - 93 + - 63 AS col0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT + 4 DIV + ( + 12 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7905
SELECT + 4 / + ( + 12 ) AS col2
----
0

query I rowsort
SELECT ALL + 3 + 16 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT COUNT( * ) + + + 41 * + - 4 * - 69
----
11317

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT COUNT ( * ) + + + 41 * + - 4 * - 69
----
11317

query I rowsort
SELECT DISTINCT + 85 * ( - 90 ) * 8
----
-61200

query I rowsort
SELECT 63 + - 81 - + 80
----
-98

query I rowsort
SELECT DISTINCT - 85 * - - 25
----
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT 46 - + 69 * + COUNT( * ) * + 49 AS col1
----
-3335

skipif mysql # not compatible
query I rowsort label-7911
SELECT 46 - + 69 * + COUNT ( * ) * + 49 AS col1
----
-3335

query II rowsort
SELECT + 14 AS col1, - 80 AS col0
----
14
-80

query I rowsort
SELECT DISTINCT + 13 + - 83 AS col1
----
-70

query I rowsort
SELECT DISTINCT - 59 + - 74 AS col2
----
-133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7915
SELECT ALL - ( - + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL - ( - + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT 70 * - 41 col1
----
-2870

query I rowsort
SELECT 50 * 83 + - 91 + - 23
----
4036

query I rowsort
SELECT DISTINCT - + 7 * + 44 + - + 58
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL COUNT( DISTINCT + - 23 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL COUNT ( DISTINCT + - 23 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT 86 * - SUM( 47 ) AS col0
----
-4042

skipif mysql # not compatible
query I rowsort label-7920
SELECT 86 * - SUM ( 47 ) AS col0
----
-4042

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT DISTINCT + 89 * ( SUM( ALL + 32 ) ) + + 66 + - - 97 * - 66
----
-3488

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT + 89 * ( SUM ( ALL + 32 ) ) + + 66 + - - 97 * - 66
----
-3488

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT CASE - 7 WHEN 4 THEN - 89 WHEN - COUNT( * ) * - 10 THEN + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT CASE - 7 WHEN 4 THEN - 89 WHEN - COUNT ( * ) * - 10 THEN + 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL + - 65 * COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL + - 65 * COUNT ( * ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT - - COUNT( * ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT - - COUNT ( * ) * 42
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7925
SELECT ALL 34 AS col2, + ( + - MAX( + - 53 ) ) AS col2
----
34
53

skipif mysql # not compatible
query II rowsort label-7925
SELECT ALL 34 AS col2, + ( + - MAX ( + - 53 ) ) AS col2
----
34
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT DISTINCT CAST( - - 57 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT CAST ( - - 57 AS INTEGER ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT 2 + - CASE + COUNT( * ) WHEN 29 * - + MAX( - 80 ) THEN 41 - - 73 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT 2 + - CASE + COUNT ( * ) WHEN 29 * - + MAX ( - 80 ) THEN 41 - - 73 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7928
SELECT ALL 72 AS col2, 84 + 47 * + 9 + - 5 * COUNT( * )
----
72
502

skipif mysql # not compatible
query II rowsort label-7928
SELECT ALL 72 AS col2, 84 + 47 * + 9 + - 5 * COUNT ( * )
----
72
502

query II rowsort
SELECT 12 + + - 12 AS col0, + 85 + + 46 - - 6 AS col2
----
0
137

query I rowsort
SELECT 47 - + 8
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7931
SELECT COUNT( * ) + - COUNT( DISTINCT - 66 ) + 19 + + 90 * 56, 55 * + - 47 AS col0
----
5059
-2585

skipif mysql # not compatible
query II rowsort label-7931
SELECT COUNT ( * ) + - COUNT ( DISTINCT - 66 ) + 19 + + 90 * 56, 55 * + - 47 AS col0
----
5059
-2585

onlyif mysql # aggregate syntax: 
query II rowsort label-7932
SELECT 55 AS col2, COUNT( * ) AS col0
----
55
1

skipif mysql # not compatible
query II rowsort label-7932
SELECT 55 AS col2, COUNT ( * ) AS col0
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL + 62 + ( - ( MAX( DISTINCT + 88 ) ) )
----
-26

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + 62 + ( - ( MAX ( DISTINCT + 88 ) ) )
----
-26

query II rowsort
SELECT 63, 19 * + 66 * - 43 col2
----
63
-53922

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT DISTINCT COUNT( * ) + - - 99 * - COUNT( * ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT COUNT ( * ) + - - 99 * - COUNT ( * ) col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT 8 DIV + 9 + + 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7936
SELECT 8 / + 9 + + 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL COALESCE ( - 44, - ( - 25 ) ) + + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL COALESCE ( - 44, - ( - 25 ) ) + + COUNT ( * )
----
-43

query II rowsort
SELECT DISTINCT - 95 AS col0, - 38 AS col1
----
-95
-38

query I rowsort
SELECT 66 + 77 + 95 * 2 AS col1
----
333

onlyif mysql # aggregate syntax: 
query II rowsort label-7940
SELECT ALL 91 + 10, COUNT( * ) AS col1
----
101
1

skipif mysql # not compatible
query II rowsort label-7940
SELECT ALL 91 + 10, COUNT ( * ) AS col1
----
101
1

query I rowsort
SELECT - 53 * + 30 + - + 83 - + + 96 AS col2
----
-1769

query I rowsort
SELECT 82 * - 87
----
-7134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7943
SELECT + 59 AS col2, COUNT( * ) - - 80 * CASE + NULLIF ( - 19, AVG ( ALL + + CAST( NULL AS SIGNED ) ) / + CAST( - 19 AS SIGNED ) ) WHEN + - 86 / 74 + - COUNT( * ) * - 73 THEN - - 14 WHEN 23 * + CASE - 49 WHEN - COALESCE ( - + 33, - - 46 * - 88 ) THEN NULL ELSE + 98 * 72 END - + 59 THEN NULL END
----
59
NULL

skipif mysql # not compatible
query II rowsort label-7943
SELECT + 59 AS col2, COUNT ( * ) - - 80 * CASE + NULLIF ( - 19, AVG ( ALL + + CAST ( NULL AS INTEGER ) ) / + CAST ( - 19 AS INTEGER ) ) WHEN + - 86 / 74 + - COUNT ( * ) * - 73 THEN - - 14 WHEN 23 * + CASE - 49 WHEN - COALESCE ( - + 33, - - 46 * - 88 ) THEN NULL ELSE + 98 * 72 END - + 59 THEN NULL END
----
59
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7944
SELECT 56 + + - 65 * - 71 - 19 * 60 + + + 4 AS col1, COUNT( * ) DIV + + 31
----
3535
0

skipif mysql # not compatible
query II rowsort label-7944
SELECT 56 + + - 65 * - 71 - 19 * 60 + + + 4 AS col1, COUNT ( * ) / + + 31
----
3535
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7945
SELECT ALL - 98 AS col0, + COUNT( * )
----
-98
1

skipif mysql # not compatible
query II rowsort label-7945
SELECT ALL - 98 AS col0, + COUNT ( * )
----
-98
1

query I rowsort
SELECT ( + 65 ) * - + 29
----
-1885

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL + - SUM( - 40 ) * + 1 + + - 1
----
39

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL + - SUM ( - 40 ) * + 1 + + - 1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7948
SELECT DISTINCT - 45 - + 61 * 43 * + ( - 90 ) * 82 DIV - COUNT( * )
----
-19357785

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT - 45 - + 61 * 43 * + ( - 90 ) * 82 / - COUNT ( * )
----
-19357785

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7949
SELECT + 44, + MAX( DISTINCT + - 21 ) DIV + 71 AS col2
----
44
0

skipif mysql # not compatible
query II rowsort label-7949
SELECT + 44, + MAX ( DISTINCT + - 21 ) / + 71 AS col2
----
44
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT + 94 + + 54 DIV + + 45
----
95

skipif mysql # not compatible
query I rowsort label-7950
SELECT + 94 + + 54 / + + 45
----
95

query I rowsort
SELECT 65 * - 27 AS col0
----
-1755

query I rowsort
SELECT + 68 * ( 22 ) AS col2
----
1496

onlyif mysql # DIV for integer division: 
query I rowsort label-7953
SELECT ALL - + 5 * 24 DIV - 54
----
2

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL - + 5 * 24 / - 54
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT CASE + - 98 WHEN - 79 + + 1 * - 98 + - - CAST( - 11 AS SIGNED ) THEN 41 ELSE + 76 END + 47 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT CASE + - 98 WHEN - 79 + + 1 * - 98 + - - CAST ( - 11 AS INTEGER ) THEN 41 ELSE + 76 END + 47 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT - 88 * + COUNT( * ) * NULLIF ( 93, ( - 37 ) ) - - 36 + 14 * 78
----
-7056

skipif mysql # not compatible
query I rowsort label-7955
SELECT - 88 * + COUNT ( * ) * NULLIF ( 93, ( - 37 ) ) - - 36 + 14 * 78
----
-7056

query II rowsort
SELECT 41 + + 50 AS col0, ( - 85 )
----
91
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT 1, - CASE + - 57 WHEN + 49 / + 10 * 78 / 5 + - 31 + AVG ( - 64 ) + - 32 * - - 3 + 98 THEN - 31 / 60 + 92 * + 2 + + 59 - + + COALESCE ( - + 87, + COUNT( * ), 8 + - 23 ) + + 31 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7957
SELECT 1, - CASE + - 57 WHEN + 49 / + 10 * 78 / 5 + - 31 + AVG ( - 64 ) + - 32 * - - 3 + 98 THEN - 31 / 60 + 92 * + 2 + + 59 - + + COALESCE ( - + 87, + COUNT ( * ), 8 + - 23 ) + + 31 END AS col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT + ( 93 ) * - 33 * - + CAST( + 1 AS SIGNED )
----
3069

skipif mysql # not compatible
query I rowsort label-7958
SELECT + ( 93 ) * - 33 * - + CAST ( + 1 AS INTEGER )
----
3069

query I rowsort
SELECT ALL 4 * - 34 AS col0
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT 49 * + ( - - 17 ) + + + 76 / + 29 + + - CASE - 51 WHEN + 38 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + + COUNT( * ) + 66 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT 49 * + ( - - 17 ) + + + 76 / + 29 + + - CASE - 51 WHEN + 38 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) + 66 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - + NULLIF ( 51, - 59 ), 67 )
----
-51

query I rowsort
SELECT 11 + 77 + + 38 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT + COUNT( 85 ) + - - 54 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + COUNT ( 85 ) + - - 54 AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT 3 DIV + 39 * 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7964
SELECT 3 / + 39 * 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL + COUNT( * ) + - 47 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL + COUNT ( * ) + - 47 AS col2
----
-46

query I rowsort
SELECT 90 * + 82
----
7380

query I rowsort
SELECT DISTINCT + COALESCE ( + + 60, - - 94 ) * - - 40 * 55 AS col2
----
132000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7968
SELECT ALL + CASE + CASE + CAST( NULL AS SIGNED ) WHEN - + NULLIF ( - + CASE + COUNT( * ) WHEN + - 5 THEN - 92 - + - 65 + ( - 22 ) ELSE NULL END, + 83 ) THEN - 45 ELSE NULL END WHEN + + 51 * 34 + + ( 82 ) THEN 39 END + - 31 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL + CASE + CASE + CAST ( NULL AS INTEGER ) WHEN - + NULLIF ( - + CASE + COUNT ( * ) WHEN + - 5 THEN - 92 - + - 65 + ( - 22 ) ELSE NULL END, + 83 ) THEN - 45 ELSE NULL END WHEN + + 51 * 34 + + ( 82 ) THEN 39 END + - 31 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7969
SELECT ALL 51 + - - ( + CASE - 96 WHEN - 95 * - 50 THEN NULL WHEN + 33 * 3 - 77 + + - COALESCE ( + + CAST( + + 3 AS SIGNED ), - - 74, + 80 / + - 59 * - 73 ) THEN NULL WHEN + 84 THEN + ( 6 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL 51 + - - ( + CASE - 96 WHEN - 95 * - 50 THEN NULL WHEN + 33 * 3 - 77 + + - COALESCE ( + + CAST ( + + 3 AS INTEGER ), - - 74, + 80 / + - 59 * - 73 ) THEN NULL WHEN + 84 THEN + ( 6 ) ELSE NULL END )
----
NULL

query II rowsort
SELECT NULLIF ( + 97, - + ( ( 16 ) ) ) AS col2, + ( + 98 )
----
97
98

query I rowsort
SELECT NULLIF ( - 80, + 97 / 50 )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7972
SELECT 31 DIV ( - + COUNT( + 62 ) ) + - 15 DIV - 50 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7972
SELECT 31 / ( - + COUNT ( + 62 ) ) + - 15 / - 50 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7973
SELECT ALL 85 * + 79 col2, - CAST( NULL AS SIGNED ) + - 82
----
6715
NULL

skipif mysql # not compatible
query II rowsort label-7973
SELECT ALL 85 * + 79 col2, - CAST ( NULL AS INTEGER ) + - 82
----
6715
NULL

query I rowsort
SELECT ALL + 41 * + 6 AS col1
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT + + 61 DIV + - 77 * + 39 - + 12
----
-12

skipif mysql # not compatible
query I rowsort label-7975
SELECT + + 61 / + - 77 * + 39 - + 12
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT + - SUM( + 26 ) * - CASE MIN( 42 ) WHEN COUNT( * ) THEN CASE + COUNT( * ) WHEN + 74 THEN NULL WHEN - + CAST( + + COUNT( * ) AS SIGNED ) THEN NULL WHEN + - CAST( NULL AS SIGNED ) * 24 THEN + 11 ELSE 35 * + + 2 * - CAST( CASE + COALESCE ( + + 70, + 90 + - 15 * - 90 ) WHEN - 44 THEN 29 / - 96 + - 91 END AS SIGNED ) END * 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT + - SUM ( + 26 ) * - CASE MIN ( 42 ) WHEN COUNT ( * ) THEN CASE + COUNT ( * ) WHEN + 74 THEN NULL WHEN - + CAST ( + + COUNT ( * ) AS INTEGER ) THEN NULL WHEN + - CAST ( NULL AS INTEGER ) * 24 THEN + 11 ELSE 35 * + + 2 * - CAST ( CASE + COALESCE ( + + 70, + 90 + - 15 * - 90 ) WHEN - 44 THEN 29 / - 96 + - 91 END AS INTEGER ) END * 37 END
----
NULL

query I rowsort
SELECT + 91 * + NULLIF ( - 8, + 47 ) * - 6 AS col2
----
4368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7978
SELECT - 49 * - - 72 + - 65 * CAST( NULL AS DECIMAL ) + + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT - 49 * - - 72 + - 65 * CAST ( NULL AS REAL ) + + + 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7979
SELECT ALL 49 DIV 93 + + NULLIF ( - 91, - 37 + 63 + 51 * - + 66 * + 29 )
----
-91

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL 49 / 93 + + NULLIF ( - 91, - 37 + 63 + 51 * - + 66 * + 29 )
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-7980
SELECT + 18 DIV + 47, + 27 AS col1
----
0
27

skipif mysql # not compatible
query II rowsort label-7980
SELECT + 18 / + 47, + 27 AS col1
----
0
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT MIN( ALL - ( + 71 ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7981
SELECT MIN ( ALL - ( + 71 ) ) AS col0
----
-71

query I rowsort
SELECT + 32 * - 74 - + 45
----
-2413

query I rowsort
SELECT ALL + - ( + - 9 ) * - - 8 * 17 + 55 + - 10 - + 75 AS col1
----
1194

query I rowsort
SELECT DISTINCT + 51 * ( ( + - 88 ) ) AS col0
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT + + ( - - NULLIF ( - + ( - 59 ), + 0 - + SUM( + 13 ) + + + 36 * + 17 - 34 * + 39 * 43 ) ) - 83 + - 37 * + COALESCE ( 22, - + COUNT( ALL 97 ) )
----
-838

skipif mysql # not compatible
query I rowsort label-7985
SELECT + + ( - - NULLIF ( - + ( - 59 ), + 0 - + SUM ( + 13 ) + + + 36 * + 17 - 34 * + 39 * 43 ) ) - 83 + - 37 * + COALESCE ( 22, - + COUNT ( ALL 97 ) )
----
-838

query I rowsort
SELECT - - 54 * - 50 AS col2
----
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7987
SELECT + 7 - + 43 * + + ( - 71 ) * 22 + 5 + - + CAST( + 97 AS SIGNED ) * 87 DIV ( - 85 ) * COUNT( * ) + + + 94 AS col2
----
67371

skipif mysql # not compatible
query I rowsort label-7987
SELECT + 7 - + 43 * + + ( - 71 ) * 22 + 5 + - + CAST ( + 97 AS INTEGER ) * 87 / ( - 85 ) * COUNT ( * ) + + + 94 AS col2
----
67371

query II rowsort
SELECT 94 AS col1, + 56 + 95
----
94
151

query I rowsort
SELECT ALL + 44 + - ( - + 18 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7990
SELECT DISTINCT COALESCE ( - 50, 86 ), - COUNT( * ) AS col2
----
-50
-1

skipif mysql # not compatible
query II rowsort label-7990
SELECT DISTINCT COALESCE ( - 50, 86 ), - COUNT ( * ) AS col2
----
-50
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT + COUNT( * ) + - 84 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-7991
SELECT + COUNT ( * ) + - 84 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT - ( + COUNT( DISTINCT + - COALESCE ( + + 35, + 38 * 49, 39 * + - 73 / - + 93 ) ) ) * CASE + + 55 WHEN + 2 THEN - - 47 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT - ( + COUNT ( DISTINCT + - COALESCE ( + + 35, + 38 * 49, 39 * + - 73 / - + 93 ) ) ) * CASE + + 55 WHEN + 2 THEN - - 47 ELSE NULL END col0
----
NULL

query I rowsort
SELECT - 98 + - 36 AS col0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT - COUNT( * ) - MAX( 78 )
----
-79

skipif mysql # not compatible
query I rowsort label-7994
SELECT - COUNT ( * ) - MAX ( 78 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL ( - COALESCE ( + COALESCE ( - 46, - NULLIF ( - - 16, ( + 12 ) ) * + 43 ), COUNT( * ) + + ( - NULLIF ( - 55, - 47 ) ) ) ) col2
----
46

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL ( - COALESCE ( + COALESCE ( - 46, - NULLIF ( - - 16, ( + 12 ) ) * + 43 ), COUNT ( * ) + + ( - NULLIF ( - 55, - 47 ) ) ) ) col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7996
SELECT - 46 AS col1, 4 - COALESCE ( 26, 94 DIV + - 88 + - COUNT( * ) + - 2 * - 48 + + CAST( 62 AS SIGNED ) + - 2, - 17 * 94, 51 * - 54 )
----
-46
-22

skipif mysql # not compatible
query II rowsort label-7996
SELECT - 46 AS col1, 4 - COALESCE ( 26, 94 / + - 88 + - COUNT ( * ) + - 2 * - 48 + + CAST ( 62 AS INTEGER ) + - 2, - 17 * 94, 51 * - 54 )
----
-46
-22

query I rowsort
SELECT - 91 * + 25 AS col1
----
-2275

onlyif mysql # aggregate syntax: 
query II rowsort label-7998
SELECT ALL + COUNT( * ) AS col1, NULLIF ( + 16, 31 ) col2
----
1
16

skipif mysql # not compatible
query II rowsort label-7998
SELECT ALL + COUNT ( * ) AS col1, NULLIF ( + 16, 31 ) col2
----
1
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT DISTINCT 1 DIV - ( 77 ) * 88 - + 98 + - + 40 - - - 26 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT 1 / - ( 77 ) * 88 - + 98 + - + 40 - - - 26 AS col0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT COUNT( * ) * - - 95 + + 45 * - - 46 AS col0
----
2165

skipif mysql # not compatible
query I rowsort label-8000
SELECT COUNT ( * ) * - - 95 + + 45 * - - 46 AS col0
----
2165

query I rowsort
SELECT - ( 24 ) * + 42
----
-1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT - COALESCE ( - 23, - - 20 ) * 69 * 28 + - CAST( NULL AS SIGNED ) + + 0 + + 25 * + CASE - + AVG ( 22 ) WHEN + 51 * - 54 THEN - 99 + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT - COALESCE ( - 23, - - 20 ) * 69 * 28 + - CAST ( NULL AS INTEGER ) + + 0 + + 25 * + CASE - + AVG ( 22 ) WHEN + 51 * - 54 THEN - 99 + 55 END
----
NULL

query II rowsort
SELECT + + 48 AS col0, + 19
----
48
19

query I rowsort
SELECT - 89 * - 80 * + - 5 + - 23 * - 28 + - - ( + 36 ) AS col2
----
-34920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8005
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - + NULLIF ( COUNT( * ), + 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT CAST ( NULL AS REAL ) * - + NULLIF ( COUNT ( * ), + 16 ) AS col0
----
NULL

query I rowsort
SELECT + + 33 - - COALESCE ( + + 94, 88 ) AS col1
----
127

query I rowsort
SELECT ALL + ( + - 50 ) AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8008
SELECT - CASE + NULLIF ( 69, + SUM( DISTINCT + 73 ) * 48 ) WHEN 78 THEN CAST( + 1 AS SIGNED ) WHEN 53 + - 28 + - + 81 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT - CASE + NULLIF ( 69, + SUM ( DISTINCT + 73 ) * 48 ) WHEN 78 THEN CAST ( + 1 AS INTEGER ) WHEN 53 + - 28 + - + 81 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8009
SELECT + ( - 53 ) DIV 26 AS col2, + 80 AS col2
----
-2
80

skipif mysql # not compatible
query II rowsort label-8009
SELECT + ( - 53 ) / 26 AS col2, + 80 AS col2
----
-2
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8010
SELECT - COUNT( * ) * - 78 * + COUNT( * ) - - 90 DIV - 9 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8010
SELECT - COUNT ( * ) * - 78 * + COUNT ( * ) - - 90 / - 9 AS col1
----
68

query I rowsort
SELECT - 5 + + ( 41 ) * - 20 + - 6 AS col0
----
-831

query II rowsort
SELECT DISTINCT + - ( 25 ) * + 44, - 69 AS col1
----
-1100
-69

query I rowsort
SELECT ALL - - 54 + - 71 + + 91 + + 15 * + 15 * - - 95 col0
----
21449

query I rowsort
SELECT ALL + 37 + + 99
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT 41 * - 5 * + - COUNT( ALL - 53 )
----
205

skipif mysql # not compatible
query I rowsort label-8015
SELECT 41 * - 5 * + - COUNT ( ALL - 53 )
----
205

query I rowsort
SELECT ( + 53 ) + + 82 AS col1
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT NULLIF ( + NULLIF ( + + ( 15 ), + - 24 ), + CAST( NULL AS SIGNED ) ) * 69 AS col1
----
1035

skipif mysql # not compatible
query I rowsort label-8017
SELECT NULLIF ( + NULLIF ( + + ( 15 ), + - 24 ), + CAST ( NULL AS INTEGER ) ) * 69 AS col1
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT 82 + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-8018
SELECT 82 + - COUNT ( * )
----
81

query I rowsort
SELECT ALL 10 * ( 91 ) AS col0
----
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT CAST( 7 AS SIGNED ) * + + 16
----
112

skipif mysql # not compatible
query I rowsort label-8020
SELECT CAST ( 7 AS INTEGER ) * + + 16
----
112

query I rowsort
SELECT ALL 74 * - 46 * 67
----
-228068

query I rowsort
SELECT 55 * 61
----
3355

query I rowsort
SELECT 97 * - 32 * + - 28 AS col2
----
86912

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL - - 98 * + + COUNT( * ) * 34 * - 63 col1
----
-209916

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - - 98 * + + COUNT ( * ) * 34 * - 63 col1
----
-209916

onlyif mysql # DIV for integer division: 
query I rowsort label-8025
SELECT ( + 90 ) DIV 48 * 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8025
SELECT ( + 90 ) / 48 * 54 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8026
SELECT 62 * - 74 + - 57 + CAST( 2 AS SIGNED ) * + COUNT( * )
----
-4643

skipif mysql # not compatible
query I rowsort label-8026
SELECT 62 * - 74 + - 57 + CAST ( 2 AS INTEGER ) * + COUNT ( * )
----
-4643

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT + COUNT( * ) - + NULLIF ( + COUNT( * ), - COUNT( * ) - 27 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8027
SELECT + COUNT ( * ) - + NULLIF ( + COUNT ( * ), - COUNT ( * ) - 27 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8028
SELECT ALL + + CAST( 62 AS SIGNED ) + 42 * - 0 * + CASE + - COUNT( * ) WHEN AVG ( + 27 ) THEN NULL WHEN 68 THEN NULL ELSE - 82 END AS col1, + ( + 86 )
----
62
86

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL + + CAST ( 62 AS INTEGER ) + 42 * - 0 * + CASE + - COUNT ( * ) WHEN AVG ( + 27 ) THEN NULL WHEN 68 THEN NULL ELSE - 82 END AS col1, + ( + 86 )
----
62
86

query I rowsort
SELECT DISTINCT + 48 + - + ( - 91 )
----
139

query I rowsort
SELECT COALESCE ( - + 58, + - 2 * - 98 + + + 29 ) AS col2
----
-58

query I rowsort
SELECT ( - 7 ) * + 51 + + + 62 AS col0
----
-295

query I rowsort
SELECT DISTINCT - - 38 col2
----
38

query I rowsort
SELECT + - ( + 20 ) AS col2
----
-20

query I rowsort
SELECT 19 * 68
----
1292

query I rowsort
SELECT + NULLIF ( - 44, - - 5 + 83 * - - 84 )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT DISTINCT - + 77 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT - + 77 / + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL - COUNT( * ) - - 78 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL - COUNT ( * ) - - 78 AS col2
----
77

query I rowsort
SELECT 37 - + + 89
----
-52

query I rowsort
SELECT 75 * + + 41
----
3075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8040
SELECT ALL + CAST( - 9 AS SIGNED ) * 24 + - + 25
----
-241

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL + CAST ( - 9 AS INTEGER ) * 24 + - + 25
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT DISTINCT COUNT( DISTINCT - ( - + 68 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT COUNT ( DISTINCT - ( - + 68 ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT DISTINCT 92 DIV - 56 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT 92 / - 56 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT MIN( 55 ) * - + 84 AS col1
----
-4620

skipif mysql # not compatible
query I rowsort label-8043
SELECT MIN ( 55 ) * - + 84 AS col1
----
-4620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8044
SELECT 55 + - 8 + - - NULLIF ( - - CASE + ( + 39 ) WHEN 88 THEN NULL WHEN 15 - + 87 THEN + CAST( - - 92 AS SIGNED ) ELSE + 58 * - - 81 END, NULLIF ( - - 43, + + 15 ) ), + 31 AS col1
----
4745
31

skipif mysql # not compatible
query II rowsort label-8044
SELECT 55 + - 8 + - - NULLIF ( - - CASE + ( + 39 ) WHEN 88 THEN NULL WHEN 15 - + 87 THEN + CAST ( - - 92 AS INTEGER ) ELSE + 58 * - - 81 END, NULLIF ( - - 43, + + 15 ) ), + 31 AS col1
----
4745
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8045
SELECT MAX( + - 24 ) * 25 * - 43 * + + 70 AS col0, - 82 AS col0
----
1806000
-82

skipif mysql # not compatible
query II rowsort label-8045
SELECT MAX ( + - 24 ) * 25 * - 43 * + + 70 AS col0, - 82 AS col0
----
1806000
-82

query I rowsort
SELECT 0 * + ( - 19 ) * - NULLIF ( - 50, - ( - 29 ) * + 50 - - + 15 ) col2
----
0

query I rowsort
SELECT 71 + + 78
----
149

query I rowsort
SELECT ALL 20 * 18 AS col2
----
360

query I rowsort
SELECT 78 * 34 * - 88 AS col2
----
-233376

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT COUNT( - 28 ) + - COALESCE ( - 76, - COUNT( * ) ) - - 50
----
127

skipif mysql # not compatible
query I rowsort label-8050
SELECT COUNT ( - 28 ) + - COALESCE ( - 76, - COUNT ( * ) ) - - 50
----
127

onlyif mysql # DIV for integer division: 
query II rowsort label-8051
SELECT 16 - 60 DIV 3 AS col2, 24 * - 34
----
-4
-816

skipif mysql # not compatible
query II rowsort label-8051
SELECT 16 - 60 / 3 AS col2, 24 * - 34
----
-4
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT 90 + 78 + COUNT( * ) + + - 57 * - MAX( DISTINCT - 46 )
----
-2453

skipif mysql # not compatible
query I rowsort label-8052
SELECT 90 + 78 + COUNT ( * ) + + - 57 * - MAX ( DISTINCT - 46 )
----
-2453

query I rowsort
SELECT ALL + 93 + - 32 * - 97 AS col1
----
3197

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT COUNT( + + 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT COUNT ( + + 79 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT ALL 41 + - CAST( NULL AS SIGNED ) * + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL 41 + - CAST ( NULL AS INTEGER ) * + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT + 41 * ( + - 32 ) + - 93 - - MIN( ALL 11 ) * - 7 AS col1
----
-1482

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT + 41 * ( + - 32 ) + - 93 - - MIN ( ALL 11 ) * - 7 AS col1
----
-1482

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8057
SELECT DISTINCT + COUNT( * ) * - + 40 + ( + - NULLIF ( - + 6, - CAST( NULL AS DECIMAL ) ) ) * - - 97 * - - CASE - COUNT( * ) WHEN + 23 * - 84 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT + COUNT ( * ) * - + 40 + ( + - NULLIF ( - + 6, - CAST ( NULL AS REAL ) ) ) * - - 97 * - - CASE - COUNT ( * ) WHEN + 23 * - 84 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8058
SELECT 85 DIV 59 * 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8058
SELECT 85 / 59 * 32 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8059
SELECT - COUNT( ALL - + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8059
SELECT - COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT + MAX( + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8060
SELECT + MAX ( + 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT 34 * + 76 - COUNT( * ) DIV + - 27
----
2584

skipif mysql # not compatible
query I rowsort label-8061
SELECT 34 * + 76 - COUNT ( * ) / + - 27
----
2584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8062
SELECT ALL - 61 DIV + COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL - 61 / + COUNT ( * ) AS col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8063
SELECT CASE 34 WHEN + 56 * + 6 DIV COUNT( * ) - + + MIN( + - ( 11 ) ) THEN 91 WHEN + 57 THEN NULL ELSE 63 DIV 74 * - 56 END * + COUNT( * ) + + COUNT( * ), - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-8063
SELECT CASE 34 WHEN + 56 * + 6 / COUNT ( * ) - + + MIN ( + - ( 11 ) ) THEN 91 WHEN + 57 THEN NULL ELSE 63 / 74 * - 56 END * + COUNT ( * ) + + COUNT ( * ), - COUNT ( * ) AS col2
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT - 43 / + CAST( NULL AS SIGNED ) + CASE + 68 WHEN - - ( 0 ) * + 60 * 90 - - 72 / + COUNT( * ) THEN 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT - 43 / + CAST ( NULL AS INTEGER ) + CASE + 68 WHEN - - ( 0 ) * + 60 * 90 - - 72 / + COUNT ( * ) THEN 54 END
----
NULL

query I rowsort
SELECT DISTINCT - 28 * 52
----
-1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT ALL - NULLIF ( - + CAST( - + ( - 35 ) AS SIGNED ), + 16 - - 16 ) * - - COUNT( - 8 ) - + MIN( + + 80 ) * + - 60
----
4835

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL - NULLIF ( - + CAST ( - + ( - 35 ) AS INTEGER ), + 16 - - 16 ) * - - COUNT ( - 8 ) - + MIN ( + + 80 ) * + - 60
----
4835

query I rowsort
SELECT - 1 * 32
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT ALL 70 DIV 53 + - 97 - + - 34 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL 70 / 53 + - 97 - + - 34 AS col0
----
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8069
SELECT - CAST( NULL AS DECIMAL ) - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT - CAST ( NULL AS REAL ) - - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL + - COALESCE ( + 43, - + 41 + - - 34 ) * - 71 - + 63 + - - COUNT( * ) AS col0
----
2991

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + - COALESCE ( + 43, - + 41 + - - 34 ) * - 71 - + 63 + - - COUNT ( * ) AS col0
----
2991

query I rowsort
SELECT + 67 * 1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8072
SELECT COUNT( * ) col0, 30
----
1
30

skipif mysql # not compatible
query II rowsort label-8072
SELECT COUNT ( * ) col0, 30
----
1
30

query I rowsort
SELECT ALL + ( COALESCE ( + - 45, - 11 * 47 ) )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - MIN( ALL - ( - + 58 ) ) + - 15 - - - 73 * 13 * 49 col1
----
-46574

skipif mysql # not compatible
query I rowsort label-8074
SELECT - MIN ( ALL - ( - + 58 ) ) + - 15 - - - 73 * 13 * 49 col1
----
-46574

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - ( + 19 ) - - - SUM( + + 43 ) + - + ( - - 20 )
----
-82

skipif mysql # not compatible
query I rowsort label-8075
SELECT - ( + 19 ) - - - SUM ( + + 43 ) + - + ( - - 20 )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-8076
SELECT DISTINCT 88, - 97 * + + ( COUNT( * ) ) * - 7 + + NULLIF ( + 68, + 29 ) - - 39 * 96 + - ( - 74 ) AS col2
----
88
4565

skipif mysql # not compatible
query II rowsort label-8076
SELECT DISTINCT 88, - 97 * + + ( COUNT ( * ) ) * - 7 + + NULLIF ( + 68, + 29 ) - - 39 * 96 + - ( - 74 ) AS col2
----
88
4565

query I rowsort
SELECT ALL - 13 * - 68
----
884

query I rowsort
SELECT ALL CASE - + 29 WHEN - 65 + 50 THEN NULL ELSE - 42 END
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8079
SELECT - 97 AS col2, + MIN( - 92 ) AS col0
----
-97
-92

skipif mysql # not compatible
query II rowsort label-8079
SELECT - 97 AS col2, + MIN ( - 92 ) AS col0
----
-97
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-8080
SELECT - COUNT( 80 ) AS col0, - 35
----
-1
-35

skipif mysql # not compatible
query II rowsort label-8080
SELECT - COUNT ( 80 ) AS col0, - 35
----
-1
-35

query I rowsort
SELECT + 97 + - 67 - 41 AS col2
----
-11

query I rowsort
SELECT ALL 79 + - - 42 AS col0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT + 91 + + + CASE + 52 WHEN + 17 THEN 92 / 66 / - 51 + 10 WHEN + 57 THEN - 51 * - - NULLIF ( + CAST( - + 37 AS SIGNED ), + 9 ) / - 52 * - + 45 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT + 91 + + + CASE + 52 WHEN + 17 THEN 92 / 66 / - 51 + 10 WHEN + 57 THEN - 51 * - - NULLIF ( + CAST ( - + 37 AS INTEGER ), + 9 ) / - 52 * - + 45 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 96 * + + ( + 4 ) AS col0
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - COUNT( ALL 70 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8085
SELECT - COUNT ( ALL 70 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8086
SELECT ALL ( + NULLIF ( - - CAST( NULL AS SIGNED ), COALESCE ( - + 30, + 51 * - 8, CASE + + CAST( NULL AS SIGNED ) WHEN - - 98 THEN - + 96 * - 79 ELSE - - CASE - + 1 WHEN + 27 + 92 THEN - 74 * - + 23 WHEN 80 * 16 THEN NULL END + CAST( NULL AS SIGNED ) + + 83 END ) + + - 98 - - 60 * - CAST( + - 7 AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL ( + NULLIF ( - - CAST ( NULL AS INTEGER ), COALESCE ( - + 30, + 51 * - 8, CASE + + CAST ( NULL AS INTEGER ) WHEN - - 98 THEN - + 96 * - 79 ELSE - - CASE - + 1 WHEN + 27 + 92 THEN - 74 * - + 23 WHEN 80 * 16 THEN NULL END + CAST ( NULL AS INTEGER ) + + 83 END ) + + - 98 - - 60 * - CAST ( + - 7 AS REAL ) ) )
----
NULL

query I rowsort
SELECT ALL - 24 + - + 20
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT - + SUM( - - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-8088
SELECT - + SUM ( - - 81 )
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-8089
SELECT DISTINCT 25, 95 DIV + 40 + 69 + 99 * - 58 AS col0
----
25
-5671

skipif mysql # not compatible
query II rowsort label-8089
SELECT DISTINCT 25, 95 / + 40 + 69 + 99 * - 58 AS col0
----
25
-5671

query I rowsort
SELECT + + NULLIF ( - 7, - 23 * - 99 / - 93 ) + + - 23
----
-30

query I rowsort
SELECT + + ( + + 40 ) * 9 AS col2
----
360

query I rowsort
SELECT ALL - 81 + 65
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8093
SELECT DISTINCT 70 DIV ( - - MIN( ALL - + NULLIF ( 49, 13 + 84 ) ) ) + - 62 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT 70 / ( - - MIN ( ALL - + NULLIF ( 49, 13 + 84 ) ) ) + - 62 AS col0
----
-63

query I rowsort
SELECT + + 1 - - 4
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT COUNT( * ) * - + 16 - + - 36 + + 63
----
83

skipif mysql # not compatible
query I rowsort label-8095
SELECT COUNT ( * ) * - + 16 - + - 36 + + 63
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT ALL + 79 DIV - 68 - - - 68 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL + 79 / - 68 - - - 68 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8097
SELECT DISTINCT + COUNT( * ), + 3 AS col1
----
1
3

skipif mysql # not compatible
query II rowsort label-8097
SELECT DISTINCT + COUNT ( * ), + 3 AS col1
----
1
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8098
SELECT DISTINCT - 51 DIV - COUNT( * ) + + 22 - - NULLIF ( - 15, - 90 DIV - + 69 ) + + COUNT( * ) * + NULLIF ( + + COUNT( * ), - - 19 DIV - 91 + + 30 + + + AVG ( + - 69 ) + - 36 )
----
59

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - 51 / - COUNT ( * ) + + 22 - - NULLIF ( - 15, - 90 / - + 69 ) + + COUNT ( * ) * + NULLIF ( + + COUNT ( * ), - - 19 / - 91 + + 30 + + + AVG ( + - 69 ) + - 36 )
----
59

query I rowsort
SELECT DISTINCT + 88 * + 51
----
4488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8100
SELECT ALL + 69 AS col0, CAST( ( + - COUNT( * ) ) AS SIGNED ) * 21
----
69
-21

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL + 69 AS col0, CAST ( ( + - COUNT ( * ) ) AS INTEGER ) * 21
----
69
-21

query I rowsort
SELECT DISTINCT 59 * + + 38 col2
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL + CASE - 54 WHEN 20 * - - MAX( ALL - + 89 ) THEN ( + 29 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + CASE - 54 WHEN 20 * - - MAX ( ALL - + 89 ) THEN ( + 29 ) END AS col2
----
NULL

query II rowsort
SELECT ALL + + 82 col2, + 12 col1
----
82
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT - + SUM( DISTINCT - + 24 ) * - 12 - + 91 * 74 + + 85 + + 20 * - COUNT( * ) + - 69 + + + 98
----
-6928

skipif mysql # not compatible
query I rowsort label-8104
SELECT - + SUM ( DISTINCT - + 24 ) * - 12 - + 91 * 74 + + 85 + + 20 * - COUNT ( * ) + - 69 + + + 98
----
-6928

query II rowsort
SELECT 80, 23 AS col2
----
80
23

query I rowsort
SELECT ALL + 81 * - 28
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT CASE 73 WHEN + 9 + 73 + - + COUNT( * ) + + 46 * - 2 THEN 26 ELSE + - 79 * + 20 * + - 32 + 60 END
----
50620

skipif mysql # not compatible
query I rowsort label-8107
SELECT CASE 73 WHEN + 9 + 73 + - + COUNT ( * ) + + 46 * - 2 THEN 26 ELSE + - 79 * + 20 * + - 32 + 60 END
----
50620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8108
SELECT DISTINCT CAST( - 33 AS SIGNED ) DIV + MAX( 58 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT CAST ( - 33 AS INTEGER ) / + MAX ( 58 ) AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8109
SELECT ALL 60 * + 80 * + + 4 * - CAST( NULL AS DECIMAL ) + - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL 60 * + 80 * + + 4 * - CAST ( NULL AS REAL ) + - 37 AS col2
----
NULL

query I rowsort
SELECT ALL 51 * + + 58
----
2958

query I rowsort
SELECT CASE + - 17 WHEN - 54 * ( - 45 ) THEN 18 - + COALESCE ( + 62, + 63 / 94 * + 68, + 48 - - 17 ) * 90 WHEN 87 THEN 77 * + - 31 END
----
NULL

query I rowsort
SELECT NULLIF ( 59, - - 81 / 81 - + 16 * 87 + - 75 + 9 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8113
SELECT - CAST( ( - COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8113
SELECT - CAST ( ( - COUNT ( * ) ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8114
SELECT - 97 DIV + 54 AS col0, 41 AS col2
----
-1
41

skipif mysql # not compatible
query II rowsort label-8114
SELECT - 97 / + 54 AS col0, 41 AS col2
----
-1
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8115
SELECT ALL CAST( NULL AS SIGNED ) * - 82 / - 9 + + - CAST( NULL AS SIGNED ) - + 96 - + 14 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL CAST ( NULL AS INTEGER ) * - 82 / - 9 + + - CAST ( NULL AS INTEGER ) - + 96 - + 14 * 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT - MIN( - 30 ) + 67 + 69 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-8116
SELECT - MIN ( - 30 ) + 67 + 69 AS col0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL - NULLIF ( + MIN( DISTINCT - - 47 ), - + 64 + - 8 * - 4 ) + - MIN( DISTINCT - 66 )
----
19

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL - NULLIF ( + MIN ( DISTINCT - - 47 ), - + 64 + - 8 * - 4 ) + - MIN ( DISTINCT - 66 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT DISTINCT CAST( + ( - MAX( - - 29 ) ) AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT CAST ( + ( - MAX ( - - 29 ) ) AS INTEGER )
----
-29

query I rowsort
SELECT DISTINCT - 37 + - - 64 AS col0
----
27

query I rowsort
SELECT ALL 26 + + - 48 * + 51
----
-2422

query I rowsort
SELECT - - ( - 15 ) - + 87 * - 52 * 97 * 37 AS col0
----
16236621

query I rowsort
SELECT ALL - 85 + ( 66 ) AS col0
----
-19

query I rowsort
SELECT DISTINCT + 27 * - 62
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT - + COUNT( * ) + - 79 + 43
----
-37

skipif mysql # not compatible
query I rowsort label-8124
SELECT - + COUNT ( * ) + - 79 + 43
----
-37

query I rowsort
SELECT - 47 + - 51
----
-98

query II rowsort
SELECT ALL + + 20 - + 32 AS col1, - 91 * + - 16 * - 74
----
-12
-107744

query I rowsort
SELECT + 56 * + 5
----
280

query I rowsort
SELECT ALL 0 - - - 37 + 4 + + 0 * - - 6 * - 57
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL + NULLIF ( ( - 31 ), - - COUNT( * ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + NULLIF ( ( - 31 ), - - COUNT ( * ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT - COUNT( * ) - 69 * - 13
----
896

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT - COUNT ( * ) - 69 * - 13
----
896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8131
SELECT ALL - 78 / 39 / - + 97 - + 21 * + COUNT( * ) - CASE - COUNT( * ) WHEN + - 4 / 8 + - 13 + + + COUNT( * ) - - 37 + + COUNT( * ) * + + 52 THEN - - ( - CAST( NULL AS SIGNED ) ) / - - 24 * - 57 WHEN - 31 + - 76 THEN 72 + - 13 END + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL - 78 / 39 / - + 97 - + 21 * + COUNT ( * ) - CASE - COUNT ( * ) WHEN + - 4 / 8 + - 13 + + + COUNT ( * ) - - 37 + + COUNT ( * ) * + + 52 THEN - - ( - CAST ( NULL AS INTEGER ) ) / - - 24 * - 57 WHEN - 31 + - 76 THEN 72 + - 13 END + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT - - COUNT( + 81 ) / + - NULLIF ( + - 88, - 0 + - 71 ) - COUNT( * ) - - - CASE + 45 WHEN - + 50 THEN + - ( - + 17 ) + - - ( 8 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT - - COUNT ( + 81 ) / + - NULLIF ( + - 88, - 0 + - 71 ) - COUNT ( * ) - - - CASE + 45 WHEN - + 50 THEN + - ( - + 17 ) + - - ( 8 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8133
SELECT - 49 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-8133
SELECT - 49 / + 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8134
SELECT 63 / - CAST( NULL AS SIGNED ) AS col2, - 18 * ( CAST( CAST( - 84 AS SIGNED ) AS SIGNED ) )
----
NULL
1512

skipif mysql # not compatible
query II rowsort label-8134
SELECT 63 / - CAST ( NULL AS INTEGER ) AS col2, - 18 * ( CAST ( CAST ( - 84 AS INTEGER ) AS INTEGER ) )
----
NULL
1512

query II rowsort
SELECT ALL 89 * + 8 col0, 87 AS col0
----
712
87

query I rowsort
SELECT 50 + - ( + - 40 ) + - ( + 76 )
----
14

query I rowsort
SELECT - 32 * + 74 * 65 AS col2
----
-153920

query I rowsort
SELECT DISTINCT - 26 * - 32
----
832

query I rowsort
SELECT DISTINCT - ( + + 7 ) col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8140
SELECT ALL - 91 col2, - 96 DIV COUNT( * ) AS col2
----
-91
-96

skipif mysql # not compatible
query II rowsort label-8140
SELECT ALL - 91 col2, - 96 / COUNT ( * ) AS col2
----
-91
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL 46 * - - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL 46 * - - COUNT ( * ) AS col1
----
46

query I rowsort
SELECT DISTINCT 75 * 63 * + - 74
----
-349650

query I rowsort
SELECT ALL 40 + - NULLIF ( - ( + + 69 ), 89 + + 56 )
----
109

query I rowsort
SELECT ALL 51 + 49
----
100

query II rowsort
SELECT ALL - 20, + 38 AS col1
----
-20
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT + 31 * + COUNT( ALL 44 ) + - 94 + + CAST( NULL AS SIGNED ) * - COALESCE ( 93, + - 33 + ( + ( - ( - + ( + + 13 ) ) ) ) * + + 11 + + - NULLIF ( 82, 10 + 97 * - + 84 ) * - + 9, - - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT + 31 * + COUNT ( ALL 44 ) + - 94 + + CAST ( NULL AS INTEGER ) * - COALESCE ( 93, + - 33 + ( + ( - ( - + ( + + 13 ) ) ) ) * + + 11 + + - NULLIF ( 82, 10 + 97 * - + 84 ) * - + 9, - - 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8147
SELECT 61, COUNT( * ) * + - 61 AS col1
----
61
-61

skipif mysql # not compatible
query II rowsort label-8147
SELECT 61, COUNT ( * ) * + - 61 AS col1
----
61
-61

query I rowsort
SELECT ALL 4 + 19
----
23

query I rowsort
SELECT 71 + 67
----
138

query I rowsort
SELECT 50 * 35 - 4 col2
----
1746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8151
SELECT ( - - 91 ) + + + 79 - 79 * ( - 30 ) * 69 + - + 62 + + ( + + ( COUNT( * ) ) ) + 89 DIV 79 * - 57
----
163582

skipif mysql # not compatible
query I rowsort label-8151
SELECT ( - - 91 ) + + + 79 - 79 * ( - 30 ) * 69 + - + 62 + + ( + + ( COUNT ( * ) ) ) + 89 / 79 * - 57
----
163582

query II rowsort
SELECT DISTINCT 53 col0, - 69
----
53
-69

query I rowsort
SELECT 6 + + COALESCE ( - 72, - 68 ) + + + 51 + 60 * + 22 * - 39
----
-51495

query I rowsort
SELECT 16 + + + ( - ( + NULLIF ( - 46, - 92 ) ) ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT ALL COUNT( * ) + - + 98 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL COUNT ( * ) + - + 98 AS col1
----
-97

query II rowsort
SELECT - 62 AS col0, 93
----
-62
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - 74 * 24 * + COUNT( * ) + + SUM( DISTINCT - - 41 )
----
-1735

skipif mysql # not compatible
query I rowsort label-8157
SELECT - 74 * 24 * + COUNT ( * ) + + SUM ( DISTINCT - - 41 )
----
-1735

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT COUNT( * ) * 98 + + 42 + - 84
----
56

skipif mysql # not compatible
query I rowsort label-8158
SELECT COUNT ( * ) * 98 + + 42 + - 84
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8159
SELECT - CAST( + 54 AS SIGNED ) * - - COUNT( * ) AS col0, 81
----
-54
81

skipif mysql # not compatible
query II rowsort label-8159
SELECT - CAST ( + 54 AS INTEGER ) * - - COUNT ( * ) AS col0, 81
----
-54
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT ALL + SUM( DISTINCT + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL + SUM ( DISTINCT + 0 )
----
0

query I rowsort
SELECT ALL - ( + 7 ) AS col2
----
-7

query I rowsort
SELECT ALL + ( - - 46 ) AS col0
----
46

query I rowsort
SELECT + 54 * + 18 AS col1
----
972

onlyif mysql # aggregate syntax: 
query II rowsort label-8164
SELECT 91 AS col0, COUNT( * ) + 44
----
91
45

skipif mysql # not compatible
query II rowsort label-8164
SELECT 91 AS col0, COUNT ( * ) + 44
----
91
45

query I rowsort
SELECT 39 + + + 74 + + + 0 AS col2
----
113

query I rowsort
SELECT - 20 * 74
----
-1480

onlyif mysql # aggregate syntax: 
query II rowsort label-8167
SELECT - CASE + + ( 49 ) WHEN + COUNT( * ) + + + 85 THEN + 54 + 27 * 26 * - - 92 / COUNT( * ) + - - 30 - - - 10 * - 35 * - COUNT( * ) - ( - 92 ) END + - + ( + 75 ) + - - 64 * 45 * 80, ( + 75 ) AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-8167
SELECT - CASE + + ( 49 ) WHEN + COUNT ( * ) + + + 85 THEN + 54 + 27 * 26 * - - 92 / COUNT ( * ) + - - 30 - - - 10 * - 35 * - COUNT ( * ) - ( - 92 ) END + - + ( + 75 ) + - - 64 * 45 * 80, ( + 75 ) AS col1
----
NULL
75

query I rowsort
SELECT ALL + - 68 * 75
----
-5100

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT ALL COUNT( * ) AS col2, - 24 AS col0
----
1
-24

skipif mysql # not compatible
query II rowsort label-8169
SELECT ALL COUNT ( * ) AS col2, - 24 AS col0
----
1
-24

query I rowsort
SELECT ALL - ( 18 ) * 0 + + 95
----
95

query I rowsort
SELECT - 47 - + ( 3 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT DISTINCT - 44 * - 95 * - MAX( - 79 ) AS col0
----
330220

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT - 44 * - 95 * - MAX ( - 79 ) AS col0
----
330220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8173
SELECT ALL + 86 + - 39 + + 0 * + - CASE + COUNT( * ) WHEN + 69 THEN - 94 * CAST( - 19 AS SIGNED ) WHEN + MIN( DISTINCT - 6 ) + + CASE - COUNT( * ) WHEN - + 20 THEN 88 / CASE - 52 WHEN - 41 THEN NULL WHEN 80 + - 48 + + + ( + 61 ) / - - 60 THEN + 36 + - 41 END + - - 32 * + + COUNT( * ) + - - 76 - 94 / 75 ELSE - 1 END THEN NULL WHEN 57 + 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + 86 + - 39 + + 0 * + - CASE + COUNT ( * ) WHEN + 69 THEN - 94 * CAST ( - 19 AS INTEGER ) WHEN + MIN ( DISTINCT - 6 ) + + CASE - COUNT ( * ) WHEN - + 20 THEN 88 / CASE - 52 WHEN - 41 THEN NULL WHEN 80 + - 48 + + + ( + 61 ) / - - 60 THEN + 36 + - 41 END + - - 32 * + + COUNT ( * ) + - - 76 - 94 / 75 ELSE - 1 END THEN NULL WHEN 57 + 80 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - + 25 + + - 64 + + 6
----
-83

query I rowsort
SELECT + - ( + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL - NULLIF ( 71, - COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL - NULLIF ( 71, - COUNT ( * ) )
----
-71

query I rowsort
SELECT 85 - + 4 AS col2
----
81

query I rowsort
SELECT DISTINCT + 9 + 15 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL - 54 + NULLIF ( 98, + 14 ) + 12 - + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL - 54 + NULLIF ( 98, + 14 ) + 12 - + COUNT ( * )
----
55

query II rowsort
SELECT 62 * - 30, 0 AS col0
----
-1860
0

query I rowsort
SELECT ( - 81 ) + + 91 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8182
SELECT ALL 98 + - CAST( + COUNT( * ) AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL 98 + - CAST ( + COUNT ( * ) AS INTEGER )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT ALL + 92 + 33 DIV - 87
----
92

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL + 92 + 33 / - 87
----
92

query II rowsort
SELECT DISTINCT - 37 + + 22, 9 + - - 56 AS col2
----
-15
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8185
SELECT ALL COUNT( - 35 ) + 33 + + - 46 + - - 74 AS col2, + 89 AS col2
----
62
89

skipif mysql # not compatible
query II rowsort label-8185
SELECT ALL COUNT ( - 35 ) + 33 + + - 46 + - - 74 AS col2, + 89 AS col2
----
62
89

query I rowsort
SELECT ALL 20 * - 29 * + - 17 AS col2
----
9860

onlyif mysql # aggregate syntax: 
query II rowsort label-8187
SELECT 16 * 11, - COUNT( * ) col1
----
176
-1

skipif mysql # not compatible
query II rowsort label-8187
SELECT 16 * 11, - COUNT ( * ) col1
----
176
-1

query I rowsort
SELECT 87 * - 81 AS col0
----
-7047

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT + - MAX( - + 55 ) * 66 col1
----
3630

skipif mysql # not compatible
query I rowsort label-8189
SELECT + - MAX ( - + 55 ) * 66 col1
----
3630

query I rowsort
SELECT + + 14 + + 62 * + 93
----
5780

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * - + 82 + + 0 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * - + 82 + + 0 AS col0
----
-82

query I rowsort
SELECT + - 39 + - 26 * - + 0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8193
SELECT ALL - COALESCE ( ( + - 16 ), + 79 DIV - COUNT( * ) * - - 51, - + 50 )
----
16

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL - COALESCE ( ( + - 16 ), + 79 / - COUNT ( * ) * - - 51, - + 50 )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT DISTINCT + 75 - + 5 DIV - 12
----
75

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT + 75 - + 5 / - 12
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT DISTINCT - - 20 * - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT - - 20 * - COUNT ( * )
----
-20

query I rowsort
SELECT ALL + 53 * - 41 + 16 * + 32 * - 22 + 94
----
-13343

query I rowsort
SELECT + 51 - + 41 AS col2
----
10

query I rowsort
SELECT + 65 - 4 * - 89 * - 74
----
-26279

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT ALL 48 * + - CASE 89 WHEN + - 98 + + 83 + - 22 THEN NULL ELSE - 69 DIV - - 68 + - + 62 END * - + 77
----
-232848

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL 48 * + - CASE 89 WHEN + - 98 + + 83 + - 22 THEN NULL ELSE - 69 / - - 68 + - + 62 END * - + 77
----
-232848

onlyif mysql # aggregate syntax: 
query II rowsort label-8200
SELECT - + 81 * 51, - NULLIF ( + COUNT( * ), - 25 + - 98 ) * + 62 AS col2
----
-4131
-62

skipif mysql # not compatible
query II rowsort label-8200
SELECT - + 81 * 51, - NULLIF ( + COUNT ( * ), - 25 + - 98 ) * + 62 AS col2
----
-4131
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL CASE - COUNT( * ) WHEN + + 75 - + 40 THEN - 20 - - SUM( 62 ) + 7 WHEN + 84 * ( + + AVG ( + 83 ) ) * - 56 + + CASE WHEN SUM( ALL + 90 ) >= 1 THEN - + 9 + - 9 WHEN 0 * - ( 47 ) NOT BETWEEN NULL AND NULL THEN + - 27 * - CASE - - COUNT( * ) WHEN 52 THEN - 58 * 21 END END THEN NULL END + 51 / - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL CASE - COUNT ( * ) WHEN + + 75 - + 40 THEN - 20 - - SUM ( 62 ) + 7 WHEN + 84 * ( + + AVG ( + 83 ) ) * - 56 + + CASE WHEN SUM ( ALL + 90 ) >= 1 THEN - + 9 + - 9 WHEN 0 * - ( 47 ) NOT BETWEEN NULL AND NULL THEN + - 27 * - CASE - - COUNT ( * ) WHEN 52 THEN - 58 * 21 END END THEN NULL END + 51 / - 39 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT + + 12 + + - 80 * - 78 + CAST( - 70 AS SIGNED )
----
6182

skipif mysql # not compatible
query I rowsort label-8202
SELECT + + 12 + + - 80 * - 78 + CAST ( - 70 AS INTEGER )
----
6182

query I rowsort
SELECT + ( - - CASE - - ( - - COALESCE ( - 33, 49 ) ) WHEN - 87 + + ( 89 ) THEN NULL WHEN + - 42 * + 79 THEN - 65 + + + 28 * 66 ELSE NULL END ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT ALL - 57 + + 59 DIV 42
----
-56

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL - 57 + + 59 / 42
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT ALL - - 90 + + NULLIF ( - 65, - + CAST( NULL AS SIGNED ) )
----
25

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - - 90 + + NULLIF ( - 65, - + CAST ( NULL AS INTEGER ) )
----
25

query I rowsort
SELECT DISTINCT - 77 * 52
----
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL 73 * + + 49 + + + ( COUNT( * ) ) + - 3 * + ( - - SUM( DISTINCT - 58 ) ) * 86 AS col2
----
18542

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL 73 * + + 49 + + + ( COUNT ( * ) ) + - 3 * + ( - - SUM ( DISTINCT - 58 ) ) * 86 AS col2
----
18542

query I rowsort
SELECT ALL ( + 88 ) * 38 + ( 61 )
----
3405

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT ( - + ( - - 57 ) ) AS col0, COUNT( * ) * 58 AS col2
----
-57
58

skipif mysql # not compatible
query II rowsort label-8209
SELECT ( - + ( - - 57 ) ) AS col0, COUNT ( * ) * 58 AS col2
----
-57
58

query II rowsort
SELECT + 78 AS col1, NULLIF ( + 11, + - 53 * 55 ) AS col2
----
78
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ( + + CASE + 87 WHEN + + COUNT( * ) + + AVG ( + 2 ) + + ( - - 79 ) THEN + 1 WHEN - + COALESCE ( 47, - - 4 / + - 35 + 59 ) / + + 69 * 68 THEN NULL ELSE - 44 END ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-8211
SELECT ( + + CASE + 87 WHEN + + COUNT ( * ) + + AVG ( + 2 ) + + ( - - 79 ) THEN + 1 WHEN - + COALESCE ( 47, - - 4 / + - 35 + 59 ) / + + 69 * 68 THEN NULL ELSE - 44 END ) col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT ALL + ( - + CAST( - NULLIF ( - 12, CASE MAX( + ( - 69 ) ) WHEN + 52 + ( 78 ) * 73 THEN COUNT( * ) * 29 * - 21 * + 22 * + - CASE + 61 WHEN - 41 THEN NULL WHEN + CAST( NULL AS SIGNED ) - + 22 THEN AVG ( ALL + - 77 ) + - + 67 * + 8 / ( + COUNT( * ) ) + - 81 * - ( + 28 ) ELSE NULL END * 13 + - 45 WHEN + 20 THEN NULL END ) AS SIGNED ) )
----
-12

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + ( - + CAST ( - NULLIF ( - 12, CASE MAX ( + ( - 69 ) ) WHEN + 52 + ( 78 ) * 73 THEN COUNT ( * ) * 29 * - 21 * + 22 * + - CASE + 61 WHEN - 41 THEN NULL WHEN + CAST ( NULL AS INTEGER ) - + 22 THEN AVG ( ALL + - 77 ) + - + 67 * + 8 / ( + COUNT ( * ) ) + - 81 * - ( + 28 ) ELSE NULL END * 13 + - 45 WHEN + 20 THEN NULL END ) AS INTEGER ) )
----
-12

query I rowsort
SELECT ALL 10 * + 31 * - 46 + - 61 AS col0
----
-14321

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL + MIN( - - 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + MIN ( - - 33 ) AS col1
----
33

query I rowsort
SELECT ALL - 60 * + NULLIF ( - + ( - + 20 ), - 1 * + 60 )
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT DISTINCT 85 * - - 85 - NULLIF ( - COALESCE ( + 65, - + 65, - 26 * 25 ), + ( + 4 ) ) * + CASE 45 WHEN + - 17 THEN ( 2 ) + 51 END * 6 / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT 85 * - - 85 - NULLIF ( - COALESCE ( + 65, - + 65, - 26 * 25 ), + ( + 4 ) ) * + CASE 45 WHEN + - 17 THEN ( 2 ) + 51 END * 6 / - - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 51 * + 21
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT - 56 + - COUNT( + - ( 19 ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8218
SELECT - 56 + - COUNT ( + - ( 19 ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL CASE + 47 WHEN - 32 THEN + + 18 END * + 24 / - + COUNT( * ) - + 15 * + + 99 * 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL CASE + 47 WHEN - 32 THEN + + 18 END * + 24 / - + COUNT ( * ) - + 15 * + + 99 * 89 AS col1
----
NULL

query I rowsort
SELECT - 32 + + 33 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT - COALESCE ( - - ( + - 77 ), + 1 + 17 ) DIV - 77 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8221
SELECT - COALESCE ( - - ( + - 77 ), + 1 + 17 ) / - 77 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8222
SELECT NULLIF ( 85, - + CASE + + COUNT( * ) WHEN 51 THEN 73 * - NULLIF ( + CASE 99 WHEN - 73 + - ( - 39 ) THEN - 40 WHEN + 20 THEN NULL END, 70 ) WHEN + - ( - CAST( 86 AS SIGNED ) ) THEN + 52 END ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8222
SELECT NULLIF ( 85, - + CASE + + COUNT ( * ) WHEN 51 THEN 73 * - NULLIF ( + CASE 99 WHEN - 73 + - ( - 39 ) THEN - 40 WHEN + 20 THEN NULL END, 70 ) WHEN + - ( - CAST ( 86 AS INTEGER ) ) THEN + 52 END ) AS col0
----
85

query I rowsort
SELECT - 20 + 7 AS col2
----
-13

query I rowsort
SELECT - 96 + - - 60 * - 55 AS col2
----
-3396

query I rowsort
SELECT ALL + 88 * - 52
----
-4576

query I rowsort
SELECT DISTINCT + NULLIF ( + 33, + 59 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - COUNT( * ) * - 28 * + 43 + 72 AS col2
----
1276

skipif mysql # not compatible
query I rowsort label-8227
SELECT - COUNT ( * ) * - 28 * + 43 + 72 AS col2
----
1276

query I rowsort
SELECT DISTINCT - 15 * - 58 AS col1
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT + 27 * - 22 * + COUNT( * ) * - COUNT( * )
----
594

skipif mysql # not compatible
query I rowsort label-8229
SELECT + 27 * - 22 * + COUNT ( * ) * - COUNT ( * )
----
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT + COUNT( * ) + + 2 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT + COUNT ( * ) + + 2 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 55 * - + 17 AS col0
----
935

query I rowsort
SELECT + + 27 + - 45 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8233
SELECT + COALESCE ( 51, + CASE MAX( + CAST( - + 80 AS SIGNED ) ) WHEN + 1 THEN ( 93 ) * + 75 END ) col0
----
51

skipif mysql # not compatible
query I rowsort label-8233
SELECT + COALESCE ( 51, + CASE MAX ( + CAST ( - + 80 AS INTEGER ) ) WHEN + 1 THEN ( 93 ) * + 75 END ) col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT MIN( DISTINCT 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT MIN ( DISTINCT 72 ) AS col2
----
72

query I rowsort
SELECT + 25 + + 50
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT + - 96 + 44 + COUNT( * ) + + 54 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + - 96 + 44 + COUNT ( * ) + + 54 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT ALL - ( - - 35 ) + - 7 * + - CASE 29 WHEN - 45 THEN 45 + - ( + ( + 56 ) ) + + 81 * - + 22 WHEN + + 44 THEN + 73 / + 16 WHEN - 45 THEN NULL ELSE + ( + 77 ) - - + COUNT( * ) + NULLIF ( - 36, + CASE WHEN NOT + SUM( ( - 37 ) ) = + COALESCE ( + 57, + + CASE ( 61 ) WHEN 85 * 91 + AVG ( ALL 4 ) THEN 65 WHEN - 33 THEN NULL ELSE NULL END ) THEN 50 * 49 ELSE + 91 END ) + COUNT( - 18 ) / 60 END * + CASE 2 + 23 / + 54 WHEN - 14 / 74 THEN NULL WHEN 62 + COUNT( DISTINCT 13 ) THEN 33 / + 22 ELSE NULL END + 79 * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL - ( - - 35 ) + - 7 * + - CASE 29 WHEN - 45 THEN 45 + - ( + ( + 56 ) ) + + 81 * - + 22 WHEN + + 44 THEN + 73 / + 16 WHEN - 45 THEN NULL ELSE + ( + 77 ) - - + COUNT ( * ) + NULLIF ( - 36, + CASE WHEN NOT + SUM ( ( - 37 ) ) = + COALESCE ( + 57, + + CASE ( 61 ) WHEN 85 * 91 + AVG ( ALL 4 ) THEN 65 WHEN - 33 THEN NULL ELSE NULL END ) THEN 50 * 49 ELSE + 91 END ) + COUNT ( - 18 ) / 60 END * + CASE 2 + 23 / + 54 WHEN - 14 / 74 THEN NULL WHEN 62 + COUNT ( DISTINCT 13 ) THEN 33 / + 22 ELSE NULL END + 79 * - 40 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 97 + + - 66 + 67 + 63 * + + ( + - 81 ) * 7
----
-35817

onlyif mysql # aggregate syntax: 
query II rowsort label-8239
SELECT - 52 AS col1, CASE + 36 WHEN + 47 THEN - 51 ELSE + 69 * + ( COUNT( * ) ) + + - 75 + 82 END AS col2
----
-52
76

skipif mysql # not compatible
query II rowsort label-8239
SELECT - 52 AS col1, CASE + 36 WHEN + 47 THEN - 51 ELSE + 69 * + ( COUNT ( * ) ) + + - 75 + 82 END AS col2
----
-52
76

query I rowsort
SELECT DISTINCT ( + 72 ) AS col0
----
72

query I rowsort
SELECT ALL - NULLIF ( 86, + 93 / - 94 + - 45 * 26 )
----
-86

query I rowsort
SELECT + 65 * 63
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL - MAX( + ( 44 ) ) * + COUNT( * ) + MIN( + 61 ) + + 99 * - + 63
----
-6220

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL - MAX ( + ( 44 ) ) * + COUNT ( * ) + MIN ( + 61 ) + + 99 * - + 63
----
-6220

query I rowsort
SELECT DISTINCT + 78 + - 83 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - COALESCE ( - COUNT( ALL 85 ), + 15 )
----
1

skipif mysql # not compatible
query I rowsort label-8245
SELECT - COALESCE ( - COUNT ( ALL 85 ), + 15 )
----
1

query I rowsort
SELECT + - 9 + + 82 + + 94
----
167

query I rowsort
SELECT ALL 87 + 4 + - 59
----
32

query I rowsort
SELECT + CASE - 33 WHEN + 37 / - ( - - 30 ) + 55 THEN - - 82 WHEN - - 47 + + + 5 THEN NULL END * + - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8249
SELECT + COALESCE ( 5, + + SUM( - 81 ) ) DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-8249
SELECT + COALESCE ( 5, + + SUM ( - 81 ) ) / 51
----
0

query I rowsort
SELECT + 69 - - 75
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8251
SELECT ALL 6 DIV + 29 - + - 15 * 23 - + 69 - SUM( - + 38 ) + - - ( - COUNT( * ) ) * - 68
----
382

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL 6 / + 29 - + - 15 * 23 - + 69 - SUM ( - + 38 ) + - - ( - COUNT ( * ) ) * - 68
----
382

onlyif mysql # aggregate syntax: 
query II rowsort label-8252
SELECT ALL + 36, 66 * + COUNT( * ) + 31 - + 32 * - + 12 * + 19 * COUNT( * ) col0
----
36
7393

skipif mysql # not compatible
query II rowsort label-8252
SELECT ALL + 36, 66 * + COUNT ( * ) + 31 - + 32 * - + 12 * + 19 * COUNT ( * ) col0
----
36
7393

query II rowsort
SELECT + 36, 66 AS col0
----
36
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT DISTINCT - COALESCE ( - MIN( DISTINCT - 64 ), + COUNT( * ), - + 5 * CAST( NULL AS SIGNED ) + + 14 ) * COUNT( * ) + COUNT( * ) + - 62 * + MAX( + + 19 ) * - 13 * - COUNT( * )
----
-15377

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT - COALESCE ( - MIN ( DISTINCT - 64 ), + COUNT ( * ), - + 5 * CAST ( NULL AS INTEGER ) + + 14 ) * COUNT ( * ) + COUNT ( * ) + - 62 * + MAX ( + + 19 ) * - 13 * - COUNT ( * )
----
-15377

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL + CASE COUNT( * ) WHEN + - 28 THEN + COALESCE ( - 66, + + 14 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + CASE COUNT ( * ) WHEN + - 28 THEN + COALESCE ( - 66, + + 14 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT + COUNT( * ) * MIN( + - 46 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-8256
SELECT + COUNT ( * ) * MIN ( + - 46 ) col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL - 29 * + COUNT( ALL NULLIF ( + ( + 99 ), - 65 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - 29 * + COUNT ( ALL NULLIF ( + ( + 99 ), - 65 ) )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8258
SELECT DISTINCT + CASE + 48 WHEN - 52 + - ( ( + MIN( DISTINCT + - 68 ) ) ) * + 69 THEN NULL WHEN COUNT( * ) THEN NULL ELSE ( COUNT( * ) ) DIV 66 END - 54
----
-54

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT + CASE + 48 WHEN - 52 + - ( ( + MIN ( DISTINCT + - 68 ) ) ) * + 69 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE ( COUNT ( * ) ) / 66 END - 54
----
-54

query I rowsort
SELECT DISTINCT - 20 * 94 AS col2
----
-1880

query I rowsort
SELECT 93 * 30 + - + 90 AS col0
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT 45 * - + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-8261
SELECT 45 * - + COUNT ( * )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8262
SELECT ALL + NULLIF ( 75, - CAST( NULL AS SIGNED ) * + 86 + - 95 ) * - + 68 + - 59 + + 75 - 72, + COUNT( * ) AS col0
----
-5156
1

skipif mysql # not compatible
query II rowsort label-8262
SELECT ALL + NULLIF ( 75, - CAST ( NULL AS INTEGER ) * + 86 + - 95 ) * - + 68 + - 59 + + 75 - 72, + COUNT ( * ) AS col0
----
-5156
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT 15 * + - CASE + CASE 86 WHEN - + ( - 15 ) THEN ( - - 63 ) WHEN + 46 * + 49 * ( + CASE + ( - - 72 ) WHEN - + AVG ( DISTINCT + 41 ) + - 66 THEN 68 END ) + + ( - 73 ) + - 72 - + 95 THEN NULL ELSE NULL END WHEN - + 0 THEN - 98 WHEN - 63 THEN NULL WHEN + COUNT( * ) THEN + - 73 + - + 52 - - - ( 14 ) * 72 ELSE NULL END / - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT 15 * + - CASE + CASE 86 WHEN - + ( - 15 ) THEN ( - - 63 ) WHEN + 46 * + 49 * ( + CASE + ( - - 72 ) WHEN - + AVG ( DISTINCT + 41 ) + - 66 THEN 68 END ) + + ( - 73 ) + - 72 - + 95 THEN NULL ELSE NULL END WHEN - + 0 THEN - 98 WHEN - 63 THEN NULL WHEN + COUNT ( * ) THEN + - 73 + - + 52 - - - ( 14 ) * 72 ELSE NULL END / - 88 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - CASE + NULLIF ( 88, + 61 - + + 56 ) WHEN - + ( + - 3 ) THEN - + 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT + 11 * COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + 11 * COUNT ( * ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8266
SELECT DISTINCT - + 76 AS col2, COUNT( * )
----
-76
1

skipif mysql # not compatible
query II rowsort label-8266
SELECT DISTINCT - + 76 AS col2, COUNT ( * )
----
-76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT COALESCE ( + 9, 10 * 8 ) + 99 - + 67 * + COUNT( * ) * + + 21 AS col0
----
-1299

skipif mysql # not compatible
query I rowsort label-8267
SELECT COALESCE ( + 9, 10 * 8 ) + 99 - + 67 * + COUNT ( * ) * + + 21 AS col0
----
-1299

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT COUNT( * ), 64 + - - ( - 63 ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8268
SELECT COUNT ( * ), 64 + - - ( - 63 ) AS col0
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT 63 DIV + - COUNT( * ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8269
SELECT 63 / + - COUNT ( * ) AS col2
----
-63

query I rowsort
SELECT ALL + 51 + + - 11 AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT DISTINCT + + 61 DIV + 17
----
3

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT + + 61 / + 17
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT 70 * - + COUNT( * ) + 56
----
-14

skipif mysql # not compatible
query I rowsort label-8272
SELECT 70 * - + COUNT ( * ) + 56
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-8273
SELECT + 19 AS col2, - 86 DIV - 82 AS col0
----
19
1

skipif mysql # not compatible
query II rowsort label-8273
SELECT + 19 AS col2, - 86 / - 82 AS col0
----
19
1

query II rowsort
SELECT ALL + 27, 22 * + 60 AS col2
----
27
1320

query I rowsort
SELECT ALL + 1 + + 49 col2
----
50

query I rowsort
SELECT 86 + 60
----
146

query II rowsort
SELECT DISTINCT 86, 98 * + + 35 AS col0
----
86
3430

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT 32 + - COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8278
SELECT 32 + - COUNT ( * ) AS col1
----
31

query I rowsort
SELECT ALL - 10 + + - 90 + + + 98
----
-2

query II rowsort
SELECT + 41 AS col2, - 4 + 52 * - 24
----
41
-1252

query I rowsort
SELECT ALL - - 81 * 29
----
2349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT ALL + - 19 + + CAST( NULL AS SIGNED ) * - + 62 * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + - 19 + + CAST ( NULL AS INTEGER ) * - + 62 * + 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8283
SELECT + 49 - + - CAST( + 45 AS SIGNED ) + 84 - - 27 * ( + 13 ) * COUNT( + 65 ) AS col1
----
529

skipif mysql # not compatible
query I rowsort label-8283
SELECT + 49 - + - CAST ( + 45 AS INTEGER ) + 84 - - 27 * ( + 13 ) * COUNT ( + 65 ) AS col1
----
529

query I rowsort
SELECT DISTINCT + 66 * 45 + + - 11 * - 48 AS col1
----
3498

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8285
SELECT 12 + + 39 * + ( - + 34 ) AS col2, + MIN( DISTINCT + 42 ) + - + 2 DIV + 30
----
-1314
42

skipif mysql # not compatible
query II rowsort label-8285
SELECT 12 + + 39 * + ( - + 34 ) AS col2, + MIN ( DISTINCT + 42 ) + - + 2 / + 30
----
-1314
42

query I rowsort
SELECT ALL + + 6 + + + 39 * + - ( 35 )
----
-1359

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8287
SELECT CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col0, 16 * - COUNT( * ) * - ( - MAX( DISTINCT 3 ) ) - - COUNT( * )
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-8287
SELECT CAST ( NULL AS REAL ) + - COUNT ( * ) AS col0, 16 * - COUNT ( * ) * - ( - MAX ( DISTINCT 3 ) ) - - COUNT ( * )
----
NULL
-47

query I rowsort
SELECT ALL - 74 + + ( - + 71 )
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-8289
SELECT DISTINCT COUNT( * ) AS col1, - 40 + - - 2
----
1
-38

skipif mysql # not compatible
query II rowsort label-8289
SELECT DISTINCT COUNT ( * ) AS col1, - 40 + - - 2
----
1
-38

query II rowsort
SELECT 84 + 86 AS col0, + 84
----
170
84

query I rowsort
SELECT ALL - 5 - 31
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT ALL 45 DIV 91 col2
----
0

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL 45 / 91 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8293
SELECT 5 DIV - 52 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8293
SELECT 5 / - 52 + - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT 33 DIV + 12 + - 68 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-8294
SELECT 33 / + 12 + - 68 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL CASE + + 76 WHEN - 46 THEN NULL WHEN - + COALESCE ( - 11, + COUNT( * ) ) * + + 36 THEN + 73 + + 24 ELSE NULL END * + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL CASE + + 76 WHEN - 46 THEN NULL WHEN - + COALESCE ( - 11, + COUNT ( * ) ) * + + 36 THEN + 73 + + 24 ELSE NULL END * + 27 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8296
SELECT CAST( NULL AS SIGNED ) * COUNT( * ), - 15 - - - 26 AS col2
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-8296
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ), - 15 - - - 26 AS col2
----
NULL
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8297
SELECT CASE + COUNT( * ) WHEN 72 + + - 35 + NULLIF ( - 54, - CAST( + COALESCE ( AVG ( + - 34 ), - 59 / 43 - + 7 * - 12 * + - 14 + COUNT( + - 27 ), + - ( 98 ) ) AS SIGNED ) / CAST( + 55 AS SIGNED ) - + 45 ) / + COUNT( * ) THEN 8 / + COALESCE ( + COALESCE ( + 64, - 20 - 19 ), 2 ) * + 61 + - - NULLIF ( - 34, COUNT( * ) ) - COALESCE ( MIN( + 97 ) + 84, - CAST( - 65 AS SIGNED ), + ( 73 ), 25 ) / - ( COUNT( - 59 ) + 78 * ( 3 ) ) WHEN 61 * + 0 - - COALESCE ( - 90, 91, + 23 ) THEN NULL END + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT CASE + COUNT ( * ) WHEN 72 + + - 35 + NULLIF ( - 54, - CAST ( + COALESCE ( AVG ( + - 34 ), - 59 / 43 - + 7 * - 12 * + - 14 + COUNT ( + - 27 ), + - ( 98 ) ) AS INTEGER ) / CAST ( + 55 AS INTEGER ) - + 45 ) / + COUNT ( * ) THEN 8 / + COALESCE ( + COALESCE ( + 64, - 20 - 19 ), 2 ) * + 61 + - - NULLIF ( - 34, COUNT ( * ) ) - COALESCE ( MIN ( + 97 ) + 84, - CAST ( - 65 AS INTEGER ), + ( 73 ), 25 ) / - ( COUNT ( - 59 ) + 78 * ( 3 ) ) WHEN 61 * + 0 - - COALESCE ( - 90, 91, + 23 ) THEN NULL END + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8298
SELECT 0 * - + COUNT( * ) * + + 14 * - - 12 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT 0 * - + COUNT ( * ) * + + 14 * - - 12 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL MAX( + 59 ) * + - NULLIF ( + - 64, + 96 + - 82 )
----
3776

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL MAX ( + 59 ) * + - NULLIF ( + - 64, + 96 + - 82 )
----
3776

onlyif mysql # aggregate syntax: 
query II rowsort label-8300
SELECT ALL - SUM( ALL + + 60 ), - MIN( DISTINCT + + 88 ) AS col1
----
-60
-88

skipif mysql # not compatible
query II rowsort label-8300
SELECT ALL - SUM ( ALL + + 60 ), - MIN ( DISTINCT + + 88 ) AS col1
----
-60
-88

query I rowsort
SELECT ALL 79 * + 98 * - + 57
----
-441294

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ALL - SUM( DISTINCT - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL - SUM ( DISTINCT - 79 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8303
SELECT - MIN( - + ( 28 ) ) DIV 41 DIV + + 35 + - - ( - 27 ) + - ( + - 17 ) + - 61 * 47 AS col2
----
-2877

skipif mysql # not compatible
query I rowsort label-8303
SELECT - MIN ( - + ( 28 ) ) / 41 / + + 35 + - - ( - 27 ) + - ( + - 17 ) + - 61 * 47 AS col2
----
-2877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT + 48 * + CAST( NULL AS SIGNED ) / + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT + 48 * + CAST ( NULL AS INTEGER ) / + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8305
SELECT ALL MIN( + 58 ) + + - 44 - + 61 * + CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) * + + COALESCE ( 75, + SUM( DISTINCT 65 ) * + 61, + + 59, MAX( DISTINCT + + 96 ) / 64 ) + + 99 THEN + - 92 WHEN - 95 THEN + 10 + - 28 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL MIN ( + 58 ) + + - 44 - + 61 * + CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) * + + COALESCE ( 75, + SUM ( DISTINCT 65 ) * + 61, + + 59, MAX ( DISTINCT + + 96 ) / 64 ) + + 99 THEN + - 92 WHEN - 95 THEN + 10 + - 28 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 55 * 4 + 58
----
278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT 21 + - + ( ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT 21 + - + ( ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8308
SELECT 9 + 65 / CAST( NULL AS DECIMAL ) * - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT 9 + 65 / CAST ( NULL AS REAL ) * - - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT + COUNT( - 77 ) + + ( + 93 )
----
94

skipif mysql # not compatible
query I rowsort label-8309
SELECT + COUNT ( - 77 ) + + ( + 93 )
----
94

query I rowsort
SELECT DISTINCT + 72 + + 8 + ( - 91 ) AS col2
----
-11

query I rowsort
SELECT ALL - 14 + - 54
----
-68

query I rowsort
SELECT DISTINCT - ( + - ( + 25 ) ) AS col1
----
25

query I rowsort
SELECT ALL + + 58 + + - NULLIF ( - + 11, 60 * - 5 + + 86 ) * + + 75 * 37 AS col0
----
30583

onlyif mysql # aggregate syntax: 
query II rowsort label-8314
SELECT + COUNT( * ) * + 28 AS col0, SUM( ALL + 62 ) * - - 44 + + + CASE 57 WHEN - 0 THEN NULL WHEN 57 + AVG ( DISTINCT 30 ) THEN + + 43 END + + COUNT( * ) AS col1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-8314
SELECT + COUNT ( * ) * + 28 AS col0, SUM ( ALL + 62 ) * - - 44 + + + CASE 57 WHEN - 0 THEN NULL WHEN 57 + AVG ( DISTINCT 30 ) THEN + + 43 END + + COUNT ( * ) AS col1
----
28
NULL

query I rowsort
SELECT ALL 90 * 20 * + + 27
----
48600

query I rowsort
SELECT DISTINCT + 11 + 25
----
36

query I rowsort
SELECT DISTINCT - + 29 + - - 82 AS col0
----
53

query I rowsort
SELECT ALL + 78 - + 70 - 74 AS col2
----
-66

query I rowsort
SELECT 11 * + 10 + - 82
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8320
SELECT DISTINCT - - 16 / + - 22 - - - NULLIF ( + CAST( NULL AS SIGNED ), + 21 + + CAST( + + COUNT( * ) AS SIGNED ) ) - + - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT - - 16 / + - 22 - - - NULLIF ( + CAST ( NULL AS INTEGER ), + 21 + + CAST ( + + COUNT ( * ) AS INTEGER ) ) - + - 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL MIN( - + 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL MIN ( - + 8 ) AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT 47 DIV - 31
----
-1

skipif mysql # not compatible
query I rowsort label-8322
SELECT 47 / - 31
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8323
SELECT + 23 * 28 DIV 44 + - 74
----
-60

skipif mysql # not compatible
query I rowsort label-8323
SELECT + 23 * 28 / 44 + - 74
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8324
SELECT - 63 AS col1, CASE + 58 WHEN - + 19 THEN CAST( NULL AS SIGNED ) END + - 83 * COUNT( * ) * + - 69
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-8324
SELECT - 63 AS col1, CASE + 58 WHEN - + 19 THEN CAST ( NULL AS INTEGER ) END + - 83 * COUNT ( * ) * + - 69
----
-63
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8325
SELECT DISTINCT - 19 DIV NULLIF ( + - 19, CAST( + 82 AS SIGNED ) * + 50 - + 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT - 19 / NULLIF ( + - 19, CAST ( + 82 AS INTEGER ) * + 50 - + 90 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT DISTINCT CASE + - COUNT( * ) WHEN - + 24 THEN NULL ELSE CASE - COUNT( * ) WHEN 98 THEN NULL WHEN 23 THEN + + 37 - - - 72 / - 66 + - + 41 ELSE NULL END END * + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT CASE + - COUNT ( * ) WHEN - + 24 THEN NULL ELSE CASE - COUNT ( * ) WHEN 98 THEN NULL WHEN 23 THEN + + 37 - - - 72 / - 66 + - + 41 ELSE NULL END END * + 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT + 46 * + - COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + 46 * + - COUNT ( * ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT 81 * CASE + 81 WHEN + 21 THEN + - 43 WHEN - 52 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT 81 * CASE + 81 WHEN + 21 THEN + - 43 WHEN - 52 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT + 28 * - MIN( + 23 )
----
-644

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT + 28 * - MIN ( + 23 )
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT DISTINCT + COUNT( * ) * + + 44
----
44

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT + COUNT ( * ) * + + 44
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT DISTINCT COALESCE ( + CAST( + - 43 AS SIGNED ), - + 23 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT COALESCE ( + CAST ( + - 43 AS INTEGER ), - + 23 ) AS col1
----
-43

query I rowsort
SELECT - 97 * + + 63
----
-6111

query I rowsort
SELECT - 56 - + 99
----
-155

query I rowsort
SELECT NULLIF ( - 1, - - 5 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8335
SELECT ALL + CAST( + COUNT( - 23 ) AS SIGNED ) AS col1, 87 AS col1
----
1
87

skipif mysql # not compatible
query II rowsort label-8335
SELECT ALL + CAST ( + COUNT ( - 23 ) AS INTEGER ) AS col1, 87 AS col1
----
1
87

query I rowsort
SELECT DISTINCT 79 * - + 84 AS col0
----
-6636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8337
SELECT ALL 15 * + 30 DIV ( + + COUNT( * ) ) * 45 + 21 * + 4 + - ( + 26 )
----
20308

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL 15 * + 30 / ( + + COUNT ( * ) ) * 45 + 21 * + 4 + - ( + 26 )
----
20308

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT + MIN( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-8338
SELECT + MIN ( + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL - 57 * + 94 + + - ( COUNT( * ) ) * + - COUNT( * )
----
-5357

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - 57 * + 94 + + - ( COUNT ( * ) ) * + - COUNT ( * )
----
-5357

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT - 14 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT - 14 / - 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT + 20 * - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8341
SELECT + 20 * - COUNT ( * ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8342
SELECT - 31 - + 63 + + COUNT( * ) * - 71, - 10 AS col2
----
-165
-10

skipif mysql # not compatible
query II rowsort label-8342
SELECT - 31 - + 63 + + COUNT ( * ) * - 71, - 10 AS col2
----
-165
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT - ( 1 ) * - SUM( - 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT - ( 1 ) * - SUM ( - 94 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8344
SELECT + CASE - COALESCE ( + 36, 90, + + 38 * - 86 ) WHEN - 18 * - - CASE WHEN NOT 28 IS NOT NULL THEN - - 80 * - MAX( + 88 ) + + + ( 38 ) + + - 75 * 63 / - + 37 * 27 END + + MAX( + 54 ) * - 48 + + 4 * + COUNT( * ) THEN + CASE + 23 WHEN + 79 / + ( - - ( - 56 ) ) THEN CAST( NULL AS SIGNED ) ELSE + + 18 / - CAST( NULL AS SIGNED ) / 6 END + - 59 * - 58 WHEN 28 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT + CASE - COALESCE ( + 36, 90, + + 38 * - 86 ) WHEN - 18 * - - CASE WHEN NOT 28 IS NOT NULL THEN - - 80 * - MAX ( + 88 ) + + + ( 38 ) + + - 75 * 63 / - + 37 * 27 END + + MAX ( + 54 ) * - 48 + + 4 * + COUNT ( * ) THEN + CASE + 23 WHEN + 79 / + ( - - ( - 56 ) ) THEN CAST ( NULL AS INTEGER ) ELSE + + 18 / - CAST ( NULL AS INTEGER ) / 6 END + - 59 * - 58 WHEN 28 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + - 23 * - 63 AS col2
----
1449

query I rowsort
SELECT + + 54 * 21
----
1134

query II rowsort
SELECT + 3 AS col2, 70
----
3
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT DISTINCT 61 * - COUNT( * ) - 60
----
-121

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT 61 * - COUNT ( * ) - 60
----
-121

query I rowsort
SELECT ALL - + 17 * - 49 + 3 + - + 7 * - + 1
----
843

query I rowsort
SELECT + 4 - + 57 - + 91 * - 71 AS col1
----
6408

query I rowsort
SELECT DISTINCT + - ( - ( + 43 ) )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8352
SELECT DISTINCT + COUNT( * ) * + + NULLIF ( - 35, - 19 + + 24 ) * - + 69 + + 90 DIV + + 78 + 63 - + - 82
----
2561

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT + COUNT ( * ) * + + NULLIF ( - 35, - 19 + + 24 ) * - + 69 + + 90 / + + 78 + 63 - + - 82
----
2561

query I rowsort
SELECT + 62 + - - 8
----
70

query I rowsort
SELECT ALL 27 * + + 6 + - + ( 29 ) - - + 13
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT - COUNT( ALL + - 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8355
SELECT - COUNT ( ALL + - 5 ) AS col1
----
-1

query II rowsort
SELECT + 87, - 56 * - 28 AS col0
----
87
1568

query I rowsort
SELECT DISTINCT + + ( + - ( - 63 ) )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8358
SELECT ALL - 16 * + 99 + - COUNT( * ) AS col2, + 43
----
-1585
43

skipif mysql # not compatible
query II rowsort label-8358
SELECT ALL - 16 * + 99 + - COUNT ( * ) AS col2, + 43
----
-1585
43

query I rowsort
SELECT ALL + 47 - - 48
----
95

query I rowsort
SELECT ALL - 66 - + 12
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL ( + 41 ) * - - COALESCE ( - 99, + 64, - 17 ) + - 32 - - 77 + - CAST( NULL AS SIGNED ) * + ( - 85 ) + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL ( + 41 ) * - - COALESCE ( - 99, + 64, - 17 ) + - 32 - - 77 + - CAST ( NULL AS INTEGER ) * + ( - 85 ) + + 49
----
NULL

query I rowsort
SELECT ALL ( + + 76 ) AS col1
----
76

query I rowsort
SELECT - 16 + - 43
----
-59

query I rowsort
SELECT + 28 * + 88 AS col1
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT + ( + COUNT( * ) ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-8365
SELECT + ( + COUNT ( * ) ) * 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - 80 + - ( - COUNT( * ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-8366
SELECT - 80 + - ( - COUNT ( * ) ) AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT - 86 / 93 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT - 86 / 93 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8368
SELECT ALL - ( 35 ) DIV + - NULLIF ( + 29, COUNT( * ) - + 8 + + 81 + - - 76 + + 66 * + + 80 DIV + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL - ( 35 ) / + - NULLIF ( + 29, COUNT ( * ) - + 8 + + 81 + - - 76 + + 66 * + + 80 / + 38 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8369
SELECT - 98 * 97 AS col2, COUNT( * )
----
-9506
1

skipif mysql # not compatible
query II rowsort label-8369
SELECT - 98 * 97 AS col2, COUNT ( * )
----
-9506
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT - 56 + COUNT( * ) + - + 72 * 74 + + 82 * + + COALESCE ( 79, + COUNT( * ) + + 93 * + 79, 85 )
----
1095

skipif mysql # not compatible
query I rowsort label-8370
SELECT - 56 + COUNT ( * ) + - + 72 * 74 + + 82 * + + COALESCE ( 79, + COUNT ( * ) + + 93 * + 79, 85 )
----
1095

onlyif mysql # aggregate syntax: 
query II rowsort label-8371
SELECT ALL - COUNT( * ) * - CASE 77 WHEN NULLIF ( 27, - - 71 ) THEN - 80 WHEN - 99 THEN NULL ELSE NULL END * - COUNT( + 10 ) AS col0, + 24 + + COUNT( * ) + - 40
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-8371
SELECT ALL - COUNT ( * ) * - CASE 77 WHEN NULLIF ( 27, - - 71 ) THEN - 80 WHEN - 99 THEN NULL ELSE NULL END * - COUNT ( + 10 ) AS col0, + 24 + + COUNT ( * ) + - 40
----
NULL
-15

query I rowsort
SELECT DISTINCT + 88 * - 89
----
-7832

query I rowsort
SELECT ALL 38 + + - 36 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT - COUNT( * ) * + 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8374
SELECT - COUNT ( * ) * + 12 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8375
SELECT DISTINCT - SUM( + 26 ) + + 6 + - 95 AS col2, ( 92 ) * ( + 17 ) * - 88 AS col2
----
-115
-137632

skipif mysql # not compatible
query II rowsort label-8375
SELECT DISTINCT - SUM ( + 26 ) + + 6 + - 95 AS col2, ( 92 ) * ( + 17 ) * - 88 AS col2
----
-115
-137632

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT + MIN( + + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-8376
SELECT + MIN ( + + 84 )
----
84

query I rowsort
SELECT ALL + COALESCE ( + - 96, - ( 75 ), - 47 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT + - MIN( DISTINCT - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT + - MIN ( DISTINCT - 36 )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8379
SELECT DISTINCT + 55 DIV 43 - 15
----
-14

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT + 55 / 43 - 15
----
-14

query I rowsort
SELECT + 93 * - 83 * - 13
----
100347

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL COUNT( * ) * + 53 + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL COUNT ( * ) * + 53 + - COUNT ( * )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT + + 17 + - + 41 + + 49 DIV + + 96 * 62 + - 34 DIV ( - 36 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8382
SELECT + + 17 + - + 41 + + 49 / + + 96 * 62 + - 34 / ( - 36 ) AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8383
SELECT ALL + 30 * - MAX( 84 ) + 23 DIV + 62 * NULLIF ( - 53, + 38 ) * - 99 * COUNT( * ) - MIN( 92 ) DIV COALESCE ( - ( + 31 ), COUNT( * ), - - 63 + - COALESCE ( + - 25, - + 29 * - - 24 * - SUM( + 81 ) - 77 - - 68 ) + 18 ) DIV - 81 AS col2, 50 AS col1
----
-2520
50

skipif mysql # not compatible
query II rowsort label-8383
SELECT ALL + 30 * - MAX ( 84 ) + 23 / + 62 * NULLIF ( - 53, + 38 ) * - 99 * COUNT ( * ) - MIN ( 92 ) / COALESCE ( - ( + 31 ), COUNT ( * ), - - 63 + - COALESCE ( + - 25, - + 29 * - - 24 * - SUM ( + 81 ) - 77 - - 68 ) + 18 ) / - 81 AS col2, 50 AS col1
----
-2520
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT 90 * - - 91 + - COUNT( * ) col2
----
8189

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT 90 * - - 91 + - COUNT ( * ) col2
----
8189

query I rowsort
SELECT - 8 * - 3 + + 70
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8386
SELECT + COUNT( * ) DIV + ( + + 39 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT + COUNT ( * ) / + ( + + 39 ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8387
SELECT CASE - + 78 WHEN + - 57 THEN + 20 * 80 WHEN - 63 THEN NULL ELSE - - NULLIF ( + CAST( NULL AS SIGNED ), - 60 ) + CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) * + 30 * 93 THEN - 85 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT CASE - + 78 WHEN + - 57 THEN + 20 * 80 WHEN - 63 THEN NULL ELSE - - NULLIF ( + CAST ( NULL AS INTEGER ), - 60 ) + CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * + 30 * 93 THEN - 85 END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT ALL - 87 * - COUNT( * ) AS col2, 7
----
87
7

skipif mysql # not compatible
query II rowsort label-8388
SELECT ALL - 87 * - COUNT ( * ) AS col2, 7
----
87
7

query I rowsort
SELECT DISTINCT - + 32 * - 69
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT DISTINCT - - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) * - + 11 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT - - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - + 11 * + 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8391
SELECT - CASE - 95 WHEN 74 * + CAST( NULL AS SIGNED ) THEN + SUM( DISTINCT + CASE + 1 WHEN + CAST( 54 AS SIGNED ) THEN 31 ELSE NULL END ) DIV + 20 ELSE 16 END AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-8391
SELECT - CASE - 95 WHEN 74 * + CAST ( NULL AS INTEGER ) THEN + SUM ( DISTINCT + CASE + 1 WHEN + CAST ( 54 AS INTEGER ) THEN 31 ELSE NULL END ) / + 20 ELSE 16 END AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT SUM( 84 )
----
84

skipif mysql # not compatible
query I rowsort label-8392
SELECT SUM ( 84 )
----
84

query I rowsort
SELECT 26 * - 40
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ALL 68 * - 6 * + MAX( - - 32 ) AS col0
----
-13056

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL 68 * - 6 * + MAX ( - - 32 ) AS col0
----
-13056

query I rowsort
SELECT 16 * - - 81
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL 80 + - COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL 80 + - COUNT ( * ) AS col2
----
79

query I rowsort
SELECT DISTINCT - 56 * + 34 * + 92 AS col0
----
-175168

query I rowsort
SELECT ALL - 39 + 13
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8399
SELECT 41 + + + 70 + - - CAST( - - 9 AS SIGNED ) col0
----
120

skipif mysql # not compatible
query I rowsort label-8399
SELECT 41 + + + 70 + - - CAST ( - - 9 AS INTEGER ) col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT SUM( DISTINCT + 60 ) + + 35 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT SUM ( DISTINCT + 60 ) + + 35 AS col1
----
95

query I rowsort
SELECT 54 * + 70 * - 75 AS col1
----
-283500

query II rowsort
SELECT 21 col2, 82 * - 35
----
21
-2870

query I rowsort
SELECT ALL + 39 + - 0 + - - 54 AS col0
----
93

query I rowsort
SELECT DISTINCT + 21 + + + 61
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8405
SELECT ALL 20 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL 20 / 83
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8406
SELECT ALL - 63 AS col2, - 61 * + 55 - - COUNT( * ) + - - COUNT( ALL - + 92 ) * - 96
----
-63
-3450

skipif mysql # not compatible
query II rowsort label-8406
SELECT ALL - 63 AS col2, - 61 * + 55 - - COUNT ( * ) + - - COUNT ( ALL - + 92 ) * - 96
----
-63
-3450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8407
SELECT ALL - + 39 * + 2 * - 71 AS col0, CASE 46 WHEN + - NULLIF ( - - 98, COUNT( * ) + 72 - - 43 * - 0 * - CAST( NULL AS SIGNED ) + - 87 ) THEN + 53 + - - 56 + - - ( - 92 ) ELSE NULL END AS col0
----
5538
NULL

skipif mysql # not compatible
query II rowsort label-8407
SELECT ALL - + 39 * + 2 * - 71 AS col0, CASE 46 WHEN + - NULLIF ( - - 98, COUNT ( * ) + 72 - - 43 * - 0 * - CAST ( NULL AS INTEGER ) + - 87 ) THEN + 53 + - - 56 + - - ( - 92 ) ELSE NULL END AS col0
----
5538
NULL

query I rowsort
SELECT COALESCE ( + - 45, - - 59 * - 38 ) * 30 * - 8
----
10800

query I rowsort
SELECT ALL + 40 - - CASE - 94 WHEN - 32 THEN - - 11 ELSE - - 1 END AS col2
----
41

query I rowsort
SELECT 17 - - 84
----
101

query I rowsort
SELECT DISTINCT - 49 * - 42 AS col1
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT + 27 * COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8412
SELECT + 27 * COUNT ( * ) AS col1
----
27

query I rowsort
SELECT - 94 * + - 6 AS col0
----
564

query I rowsort
SELECT 32 - - + 12
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL - SUM( + CAST( + 74 AS SIGNED ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL - SUM ( + CAST ( + 74 AS INTEGER ) ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8416
SELECT ALL - COUNT( * ), 52 + - COALESCE ( + + CAST( NULL AS SIGNED ), + 17 + + - COUNT( * ) ) * - COUNT( * ) AS col2
----
-1
68

skipif mysql # not compatible
query II rowsort label-8416
SELECT ALL - COUNT ( * ), 52 + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 17 + + - COUNT ( * ) ) * - COUNT ( * ) AS col2
----
-1
68

query I rowsort
SELECT + ( - ( + 17 ) )
----
-17

query II rowsort
SELECT - 95 AS col1, + 84 + 98
----
-95
182

query I rowsort
SELECT + 60 + - + 99
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8420
SELECT 24 * MIN( DISTINCT CAST( + 97 AS SIGNED ) ) - + 89 AS col0, 0 AS col1
----
2239
0

skipif mysql # not compatible
query II rowsort label-8420
SELECT 24 * MIN ( DISTINCT CAST ( + 97 AS INTEGER ) ) - + 89 AS col0, 0 AS col1
----
2239
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8421
SELECT DISTINCT COUNT( * ) + + + 83 AS col0, - 87 AS col0
----
84
-87

skipif mysql # not compatible
query II rowsort label-8421
SELECT DISTINCT COUNT ( * ) + + + 83 AS col0, - 87 AS col0
----
84
-87

query I rowsort
SELECT ALL 75 + - + 74 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT 79 * + COUNT( * ) + AVG ( - CAST( NULL AS SIGNED ) ) - - 20 * - + COALESCE ( - 55, COALESCE ( - + 68, CASE + 60 WHEN - COUNT( * ) THEN - ( 22 ) - - 93 * + 10 END ) * - ( + COALESCE ( + 24, + + 54, + 48 ) ) * ( 63 ) ) + 45 + + + ( - 31 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT 79 * + COUNT ( * ) + AVG ( - CAST ( NULL AS INTEGER ) ) - - 20 * - + COALESCE ( - 55, COALESCE ( - + 68, CASE + 60 WHEN - COUNT ( * ) THEN - ( 22 ) - - 93 * + 10 END ) * - ( + COALESCE ( + 24, + + 54, + 48 ) ) * ( 63 ) ) + 45 + + + ( - 31 ) AS col1
----
NULL

query II rowsort
SELECT 75, - 74 AS col0
----
75
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8425
SELECT ALL 73 AS col1, 31 + + 12 + - NULLIF ( + SUM( ALL + + 91 ), - ( - COUNT( ALL 72 ) ) ) + - CAST( NULL AS SIGNED ) / MIN( DISTINCT - - 19 ) * - 65 * + 93 + + + 76 AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-8425
SELECT ALL 73 AS col1, 31 + + 12 + - NULLIF ( + SUM ( ALL + + 91 ), - ( - COUNT ( ALL 72 ) ) ) + - CAST ( NULL AS INTEGER ) / MIN ( DISTINCT - - 19 ) * - 65 * + 93 + + + 76 AS col2
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT 27 + - + COALESCE ( + 70, + + SUM( DISTINCT + 61 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT 27 + - + COALESCE ( + 70, + + SUM ( DISTINCT + 61 ) )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-8427
SELECT ALL - 15 + + 45, + COUNT( * ) * + 29 col2
----
30
29

skipif mysql # not compatible
query II rowsort label-8427
SELECT ALL - 15 + + 45, + COUNT ( * ) * + 29 col2
----
30
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT DISTINCT SUM( DISTINCT COALESCE ( - + 80, 63, - COALESCE ( 66, + 71 + + 21 ) ) ) + + - 27 AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT SUM ( DISTINCT COALESCE ( - + 80, 63, - COALESCE ( 66, + 71 + + 21 ) ) ) + + - 27 AS col0
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT ALL CAST( NULL AS SIGNED ) + 75 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL CAST ( NULL AS INTEGER ) + 75 * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ( ( COUNT( * ) ) ) * 41 + - + 73 col1
----
-32

skipif mysql # not compatible
query I rowsort label-8430
SELECT ( ( COUNT ( * ) ) ) * 41 + - + 73 col1
----
-32

query II rowsort
SELECT ALL 84 AS col2, 79
----
84
79

query I rowsort
SELECT 9 * + - 3
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT COUNT( * ) + - + 14 + + COUNT( * ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-8433
SELECT COUNT ( * ) + - + 14 + + COUNT ( * ) col0
----
-12

query I rowsort
SELECT 44 + 17 AS col1
----
61

query II rowsort
SELECT ALL 5, + 92 + 99 * + 50 AS col2
----
5
5042

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT 14 * + MIN( DISTINCT + + 50 ) AS col2
----
700

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT 14 * + MIN ( DISTINCT + + 50 ) AS col2
----
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT CASE - CAST( 69 AS SIGNED ) WHEN 36 THEN + - 11 END * 64 + + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT CASE - CAST ( 69 AS INTEGER ) WHEN 36 THEN + - 11 END * 64 + + - 48 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8438
SELECT ALL 10 AS col2, - 76 + + 24 + - NULLIF ( - CAST( + + 77 AS SIGNED ), 17 * 6 ) col2
----
10
25

skipif mysql # not compatible
query II rowsort label-8438
SELECT ALL 10 AS col2, - 76 + + 24 + - NULLIF ( - CAST ( + + 77 AS INTEGER ), 17 * 6 ) col2
----
10
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8439
SELECT - 38, - COUNT( DISTINCT + 91 ) AS col0
----
-38
-1

skipif mysql # not compatible
query II rowsort label-8439
SELECT - 38, - COUNT ( DISTINCT + 91 ) AS col0
----
-38
-1

query II rowsort
SELECT - 71 col0, 23 AS col0
----
-71
23

query II rowsort
SELECT + 22 AS col0, - 11 + 0 AS col0
----
22
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8442
SELECT + + 44 AS col1, + 75 DIV ( - SUM( + 88 ) )
----
44
0

skipif mysql # not compatible
query II rowsort label-8442
SELECT + + 44 AS col1, + 75 / ( - SUM ( + 88 ) )
----
44
0

query I rowsort
SELECT NULLIF ( - 70, 61 ) + + 48
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT 9 DIV 54 - + 72
----
-72

skipif mysql # not compatible
query I rowsort label-8444
SELECT 9 / 54 - + 72
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-8445
SELECT DISTINCT - + 16 AS col0, ( 4 ) * + ( 51 ) * - COUNT( - - 93 )
----
-16
-204

skipif mysql # not compatible
query II rowsort label-8445
SELECT DISTINCT - + 16 AS col0, ( 4 ) * + ( 51 ) * - COUNT ( - - 93 )
----
-16
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL + + 7 / CASE + COUNT( * ) WHEN + COUNT( * ) * 56 * + + ( 1 ) * + + 60 * + 17 * - + 43 THEN 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL + + 7 / CASE + COUNT ( * ) WHEN + COUNT ( * ) * 56 * + + ( 1 ) * + + 60 * + 17 * - + 43 THEN 83 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL - COUNT( ALL 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL - COUNT ( ALL 26 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8448
SELECT - COUNT( * ) DIV 97 DIV 73 + - 40 DIV 30 + 88
----
87

skipif mysql # not compatible
query I rowsort label-8448
SELECT - COUNT ( * ) / 97 / 73 + - 40 / 30 + 88
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8449
SELECT SUM( ALL + + CAST( NULL AS SIGNED ) ) / - 15 + - - 10 * - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT SUM ( ALL + + CAST ( NULL AS INTEGER ) ) / - 15 + - - 10 * - 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8450
SELECT ALL + + 32 * COUNT( * ) DIV - 65 * + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL + + 32 * COUNT ( * ) / - 65 * + 58 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT 1 + COUNT( * ) * + 66 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8451
SELECT 1 + COUNT ( * ) * + 66 AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8452
SELECT ALL + - COUNT( * ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL + - COUNT ( * ) / COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8453
SELECT ALL + - COUNT( * ) * - + MIN( DISTINCT + 85 ) + + 97 AS col1, 59 + - 65 AS col2
----
182
-6

skipif mysql # not compatible
query II rowsort label-8453
SELECT ALL + - COUNT ( * ) * - + MIN ( DISTINCT + 85 ) + + 97 AS col1, 59 + - 65 AS col2
----
182
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8454
SELECT + 18 AS col2, 89 * - COUNT( * ) AS col2
----
18
-89

skipif mysql # not compatible
query II rowsort label-8454
SELECT + 18 AS col2, 89 * - COUNT ( * ) AS col2
----
18
-89

query I rowsort
SELECT DISTINCT - 29 + - 31 - - 68
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT 4 + - - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT 4 + - - COUNT ( * ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8457
SELECT - 33 * + 39, COUNT( ALL + - 22 ) AS col2
----
-1287
1

skipif mysql # not compatible
query II rowsort label-8457
SELECT - 33 * + 39, COUNT ( ALL + - 22 ) AS col2
----
-1287
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL + 84 + + 15 + - ( + 26 ) * + 68 * - 81 * 12 * CAST( 72 AS SIGNED ) AS col0
----
123731811

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL + 84 + + 15 + - ( + 26 ) * + 68 * - 81 * 12 * CAST ( 72 AS INTEGER ) AS col0
----
123731811

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8459
SELECT DISTINCT CAST( - + 90 AS SIGNED ) + 53 DIV + 27
----
-89

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT CAST ( - + 90 AS INTEGER ) + 53 / + 27
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8460
SELECT ALL 21 + + 88 DIV 44 - 36
----
-13

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL 21 + + 88 / 44 - 36
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT 80 * 45 * - - COUNT( * )
----
3600

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT 80 * 45 * - - COUNT ( * )
----
3600

query I rowsort
SELECT DISTINCT COALESCE ( 32, 22 ) AS col2
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-8463
SELECT DISTINCT + 39 DIV - - 72, 96 AS col2
----
0
96

skipif mysql # not compatible
query II rowsort label-8463
SELECT DISTINCT + 39 / - - 72, 96 AS col2
----
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT - SUM( DISTINCT - ( 69 ) )
----
69

skipif mysql # not compatible
query I rowsort label-8464
SELECT - SUM ( DISTINCT - ( 69 ) )
----
69

query I rowsort
SELECT ALL + ( + + 83 ) - + 27 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT - COUNT( + 86 ) - - 99 col2
----
98

skipif mysql # not compatible
query I rowsort label-8466
SELECT - COUNT ( + 86 ) - - 99 col2
----
98

query I rowsort
SELECT + ( + 65 ) * - 20 * + 48
----
-62400

query II rowsort
SELECT ALL 79 * + 26 col2, - 29 * - 82
----
2054
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT - SUM( ALL 41 ) + 30
----
-11

skipif mysql # not compatible
query I rowsort label-8469
SELECT - SUM ( ALL 41 ) + 30
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) * - 6 + - 45 * - 13 + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) * - 6 + - 45 * - 13 + 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8471
SELECT + COUNT( * ) * + + 42, ( - COUNT( * ) ) AS col1
----
42
-1

skipif mysql # not compatible
query II rowsort label-8471
SELECT + COUNT ( * ) * + + 42, ( - COUNT ( * ) ) AS col1
----
42
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8472
SELECT + 55 + NULLIF ( - 88, - + CAST( NULL AS SIGNED ) + + MIN( 1 ) ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-8472
SELECT + 55 + NULLIF ( - 88, - + CAST ( NULL AS INTEGER ) + + MIN ( 1 ) ) col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8473
SELECT DISTINCT - ( - COUNT( * ) ) AS col1, - 92
----
1
-92

skipif mysql # not compatible
query II rowsort label-8473
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1, - 92
----
1
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT + 82 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT + 82 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT ALL - AVG ( 13 ) * + + NULLIF ( - - ( - CAST( NULL AS SIGNED ) ), + ( 37 ) ) + - 17 + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - AVG ( 13 ) * + + NULLIF ( - - ( - CAST ( NULL AS INTEGER ) ), + ( 37 ) ) + - 17 + 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL ( + - 17 ) * + 46 + - - 51 + - + MIN( + + 19 ) - - COUNT( * ) * + 51
----
-699

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL ( + - 17 ) * + 46 + - - 51 + - + MIN ( + + 19 ) - - COUNT ( * ) * + 51
----
-699

query I rowsort
SELECT DISTINCT ( 63 ) * 87
----
5481

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT + NULLIF ( - - 15, - 81 ) * + COUNT( * ) - - 4 * - 72 AS col1
----
-273

skipif mysql # not compatible
query I rowsort label-8478
SELECT + NULLIF ( - - 15, - 81 ) * + COUNT ( * ) - - 4 * - 72 AS col1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT ALL + - 30 * + 8 + + MAX( ALL + + 0 ) * - 49 + - 43 col1
----
-283

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL + - 30 * + 8 + + MAX ( ALL + + 0 ) * - 49 + - 43 col1
----
-283

query I rowsort
SELECT - 92 * - + 39 - - - 12 AS col1
----
3576

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT - 12 DIV - - 31 + + 12 + 92 * ( ( + 61 ) )
----
5624

skipif mysql # not compatible
query I rowsort label-8481
SELECT - 12 / - - 31 + + 12 + 92 * ( ( + 61 ) )
----
5624

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT - - 62 * - - 11 * - 11 * SUM( + 74 ) * + - 42 * - 13 col1, - 52 * - 63
----
-303110808
3276

skipif mysql # not compatible
query II rowsort label-8482
SELECT - - 62 * - - 11 * - 11 * SUM ( + 74 ) * + - 42 * - 13 col1, - 52 * - 63
----
-303110808
3276

query I rowsort
SELECT ALL + + 32 * + 56 * 39 + 78
----
69966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8484
SELECT ALL - 2 * CASE CASE 62 WHEN - 73 - + ( + 52 ) THEN NULL ELSE - - COUNT( * ) + + 39 * + 99 * + 55 + - 25 END WHEN AVG ( - 82 ) THEN - + CAST( NULL AS SIGNED ) + 37 WHEN + + 44 + + COUNT( * ) THEN NULL WHEN CAST( 83 AS DECIMAL ) THEN NULL END + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL - 2 * CASE CASE 62 WHEN - 73 - + ( + 52 ) THEN NULL ELSE - - COUNT ( * ) + + 39 * + 99 * + 55 + - 25 END WHEN AVG ( - 82 ) THEN - + CAST ( NULL AS INTEGER ) + 37 WHEN + + 44 + + COUNT ( * ) THEN NULL WHEN CAST ( 83 AS REAL ) THEN NULL END + - 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8485
SELECT ALL - 24 DIV + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL - 24 / + 65 AS col2
----
0

query I rowsort
SELECT ALL - 31 * - + 85 + + - CASE 14 WHEN - 94 THEN + 65 WHEN + 55 THEN NULL WHEN - 10 + 20 + - 60 - - - 85 THEN NULL ELSE - - 42 END * + - 6
----
2887

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8487
SELECT - 51 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT - 51 * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT DISTINCT 57 DIV ( - 78 ) * ( + + COALESCE ( - 80, + - 76 ) ) + + 5 * - 53
----
-265

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT 57 / ( - 78 ) * ( + + COALESCE ( - 80, + - 76 ) ) + + 5 * - 53
----
-265

query I rowsort
SELECT - 27 * + - 69 - 81 * - 0 * - 60 * - 19 + 69 AS col1
----
1932

query I rowsort
SELECT + 98 + 26 AS col0
----
124

query I rowsort
SELECT + 74 + - 65 + + - 10
----
-1

query I rowsort
SELECT COALESCE ( - 18, + 5 + + 81 )
----
-18

query II rowsort
SELECT COALESCE ( - 1, + - 2, 63 + - 49, 66 ), 33 col2
----
-1
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT ALL + COALESCE ( 32, + - MAX( - 64 ), - COALESCE ( 85, - 70 ) ) * - COALESCE ( + CAST( + + 25 AS SIGNED ), + ( 2 ) + - - 81, 63 * + - ( - 90 ) - - - 19 + 75 * - 59 + + + COUNT( * ) * - 16 * 63, 69 * 72 * - 54 ) * 25 - + 99 - - + 42 - - COUNT( * ) AS col2
----
-20056

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + COALESCE ( 32, + - MAX ( - 64 ), - COALESCE ( 85, - 70 ) ) * - COALESCE ( + CAST ( + + 25 AS INTEGER ), + ( 2 ) + - - 81, 63 * + - ( - 90 ) - - - 19 + 75 * - 59 + + + COUNT ( * ) * - 16 * 63, 69 * 72 * - 54 ) * 25 - + 99 - - + 42 - - COUNT ( * ) AS col2
----
-20056

query I rowsort
SELECT ALL 7 * + - 86 - + 60 + - 34 AS col0
----
-696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8496
SELECT ALL COALESCE ( - + 77, 62 + ( + 38 ) DIV + CASE - COUNT( * ) WHEN + COUNT( * ) * + - 16 * - 22 + 11 * - COUNT( * ) DIV - - MAX( DISTINCT - 31 ) DIV - 74 * - + SUM( + 32 ) THEN 12 WHEN - + 37 + - 57 + + 29 DIV + - 38 THEN NULL END + 29 + + 77 ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL COALESCE ( - + 77, 62 + ( + 38 ) / + CASE - COUNT ( * ) WHEN + COUNT ( * ) * + - 16 * - 22 + 11 * - COUNT ( * ) / - - MAX ( DISTINCT - 31 ) / - 74 * - + SUM ( + 32 ) THEN 12 WHEN - + 37 + - 57 + + 29 / + - 38 THEN NULL END + 29 + + 77 ) col2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT - 14 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-8497
SELECT - 14 / - 84
----
0

query I rowsort
SELECT - 25 * + 19 AS col0
----
-475

onlyif mysql # aggregate syntax: 
query II rowsort label-8499
SELECT - COUNT( - + ( - 38 ) ) AS col0, 44 - - 18 * - 5 AS col2
----
-1
-46

skipif mysql # not compatible
query II rowsort label-8499
SELECT - COUNT ( - + ( - 38 ) ) AS col0, 44 - - 18 * - 5 AS col2
----
-1
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8500
SELECT - 57 + CAST( + - 8 AS SIGNED ) + - ( - 52 )
----
-13

skipif mysql # not compatible
query I rowsort label-8500
SELECT - 57 + CAST ( + - 8 AS INTEGER ) + - ( - 52 )
----
-13

query I rowsort
SELECT ALL - + 66 * - - 29
----
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT - 6 + + COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8502
SELECT - 6 + + COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT DISTINCT - 62 * COUNT( * ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT - 62 * COUNT ( * ) col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8504
SELECT ALL - CASE + 41 WHEN - + 3 * + + CAST( NULL AS SIGNED ) THEN - + COUNT( - 56 ) + 40 WHEN COALESCE ( 84, 46 ) / 4 THEN - + 63 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL - CASE + 41 WHEN - + 3 * + + CAST ( NULL AS INTEGER ) THEN - + COUNT ( - 56 ) + 40 WHEN COALESCE ( 84, 46 ) / 4 THEN - + 63 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8505
SELECT ALL - + MIN( + 23 ) * + 61 AS col0, 49 AS col1
----
-1403
49

skipif mysql # not compatible
query II rowsort label-8505
SELECT ALL - + MIN ( + 23 ) * + 61 AS col0, 49 AS col1
----
-1403
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL 72 + + MIN( 95 ) + - + 23 col2
----
144

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL 72 + + MIN ( 95 ) + - + 23 col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT - - 23 * + 73 * + COUNT( * ) * - COUNT( * ) * 49
----
-82271

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - - 23 * + 73 * + COUNT ( * ) * - COUNT ( * ) * 49
----
-82271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT ALL + + 61 + 47 + - - 78 * + + CASE + CAST( + 64 AS SIGNED ) WHEN + 0 THEN NULL WHEN 22 * + 9 THEN NULL ELSE - + ( 28 ) * NULLIF ( - 78, ( - 48 ) ) - - 2 END AS col2
----
170616

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL + + 61 + 47 + - - 78 * + + CASE + CAST ( + 64 AS INTEGER ) WHEN + 0 THEN NULL WHEN 22 * + 9 THEN NULL ELSE - + ( 28 ) * NULLIF ( - 78, ( - 48 ) ) - - 2 END AS col2
----
170616

query I rowsort
SELECT + + 32 - - + 52
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8510
SELECT 40 + + - 31 * - 77 AS col2, SUM( 21 ) * - 53 + + MIN( DISTINCT + + 85 )
----
2427
-1028

skipif mysql # not compatible
query II rowsort label-8510
SELECT 40 + + - 31 * - 77 AS col2, SUM ( 21 ) * - 53 + + MIN ( DISTINCT + + 85 )
----
2427
-1028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8511
SELECT ALL - SUM( DISTINCT + 98 ) + COUNT( * ) DIV - ( + NULLIF ( 45, - 84 ) ) + 30 col0
----
-68

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL - SUM ( DISTINCT + 98 ) + COUNT ( * ) / - ( + NULLIF ( 45, - 84 ) ) + 30 col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT MIN( DISTINCT + + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8512
SELECT MIN ( DISTINCT + + 73 )
----
73

query I rowsort
SELECT ALL - 16 + + 43
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8514
SELECT ALL - MAX( ALL - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL - MAX ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8515
SELECT - + MIN( DISTINCT + 72 ) DIV - MIN( ALL + - 41 ) + + ( + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8515
SELECT - + MIN ( DISTINCT + 72 ) / - MIN ( ALL + - 41 ) + + ( + COUNT ( * ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8516
SELECT ALL COUNT( * ) + - CAST( - 79 AS SIGNED ) col0, + 8 AS col0
----
80
8

skipif mysql # not compatible
query II rowsort label-8516
SELECT ALL COUNT ( * ) + - CAST ( - 79 AS INTEGER ) col0, + 8 AS col0
----
80
8

query I rowsort
SELECT ALL 4 * - 32
----
-128

query I rowsort
SELECT ALL 16 * - - 1
----
16

query I rowsort
SELECT 35 + - 61
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL COALESCE ( + - 6, - - MAX( ALL + 1 ) + + - 68 ) - 67
----
-73

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL COALESCE ( + - 6, - - MAX ( ALL + 1 ) + + - 68 ) - 67
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8521
SELECT ALL 86 - + NULLIF ( + COUNT( * ), - - 78 * + 9 * + ( + MAX( ALL + CAST( NULL AS SIGNED ) ) ) / 42 )
----
85

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL 86 - + NULLIF ( + COUNT ( * ), - - 78 * + 9 * + ( + MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) / 42 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8522
SELECT 25 * + + CAST( NULL AS SIGNED ), 26 AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-8522
SELECT 25 * + + CAST ( NULL AS INTEGER ), 26 AS col0
----
NULL
26

query I rowsort
SELECT 60 * - + 12
----
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT ALL 38 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL 38 / + 85
----
0

query II rowsort
SELECT DISTINCT - 76 * - - 37 AS col0, 64 * 64 col0
----
-2812
4096

query I rowsort
SELECT ALL - NULLIF ( - - 14, - - 9 )
----
-14

query I rowsort
SELECT DISTINCT + 3 * - 88 AS col2
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8528
SELECT COUNT( * ) DIV + ( - - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-8528
SELECT COUNT ( * ) / + ( - - 83 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT DISTINCT 37 * - 43 * + ( + 8 ) * + - NULLIF ( - + CAST( + 52 AS SIGNED ), ( - 11 ) + - - 68 )
----
-661856

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT 37 * - 43 * + ( + 8 ) * + - NULLIF ( - + CAST ( + 52 AS INTEGER ), ( - 11 ) + - - 68 )
----
-661856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT 85 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT 85 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT DISTINCT - 4 * + COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT - 4 * + COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT - 4 * 11
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT DISTINCT - COUNT( * ) + - 26 * + ( + 10 ) AS col0
----
-261

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT - COUNT ( * ) + - 26 * + ( + 10 ) AS col0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT DISTINCT + COALESCE ( - 37, + 64 * + - 53 + - NULLIF ( 93, + 94 ) + - - 87 + - + ( - - 99 ) * - COUNT( 80 ) * + 25 + + 47 + - 16, 28 + + + 38 ) * - 61
----
2257

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT + COALESCE ( - 37, + 64 * + - 53 + - NULLIF ( 93, + 94 ) + - - 87 + - + ( - - 99 ) * - COUNT ( 80 ) * + 25 + + 47 + - 16, 28 + + + 38 ) * - 61
----
2257

query I rowsort
SELECT ALL - 72 + + 67 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8536
SELECT DISTINCT + 81 + + 44 AS col1, - 43 * - + MAX( ALL + + 6 )
----
125
258

skipif mysql # not compatible
query II rowsort label-8536
SELECT DISTINCT + 81 + + 44 AS col1, - 43 * - + MAX ( ALL + + 6 )
----
125
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT - - COUNT( 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8537
SELECT - - COUNT ( 80 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8538
SELECT DISTINCT - + MIN( - + COALESCE ( - 51, - 22 ) ) * + + 87 * + CAST( NULL AS SIGNED ) * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT - + MIN ( - + COALESCE ( - 51, - 22 ) ) * + + 87 * + CAST ( NULL AS INTEGER ) * + 11
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8539
SELECT 76 + + 87 AS col0, - COUNT( * ) * - 9
----
163
9

skipif mysql # not compatible
query II rowsort label-8539
SELECT 76 + + 87 AS col0, - COUNT ( * ) * - 9
----
163
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL - - COUNT( * ) * COALESCE ( - 53, - + COUNT( * ) * + 79 - 43, - + 73 + - SUM( + 87 ) * + + 90 )
----
-53

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL - - COUNT ( * ) * COALESCE ( - 53, - + COUNT ( * ) * + 79 - 43, - + 73 + - SUM ( + 87 ) * + + 90 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL - + COUNT( * ) + 34 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL - + COUNT ( * ) + 34 AS col1
----
33

query I rowsort
SELECT ALL - 65 - 6
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8543
SELECT - CASE 53 WHEN - 29 THEN + + 7 WHEN - - 7 * + + 95 * + - ( + - MIN( + - 7 ) ) + - + 99 THEN NULL END * 17 + - CASE + 79 WHEN - 83 + - CAST( - + 20 AS SIGNED ) THEN + ( + - 93 ) + - 10 END + - 3 - + MAX( DISTINCT + - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT - CASE 53 WHEN - 29 THEN + + 7 WHEN - - 7 * + + 95 * + - ( + - MIN ( + - 7 ) ) + - + 99 THEN NULL END * 17 + - CASE + 79 WHEN - 83 + - CAST ( - + 20 AS INTEGER ) THEN + ( + - 93 ) + - 10 END + - 3 - + MAX ( DISTINCT + - 54 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT DISTINCT - - 91 - + CAST( + 86 AS SIGNED ) * - 97 + - COUNT( * ) AS col1
----
8432

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT - - 91 - + CAST ( + 86 AS INTEGER ) * - 97 + - COUNT ( * ) AS col1
----
8432

query I rowsort
SELECT ALL - 52 - + + 70
----
-122

query I rowsort
SELECT ALL - ( + 24 ) AS col2
----
-24

query I rowsort
SELECT 19 * + 49
----
931

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT SUM( DISTINCT 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8548
SELECT SUM ( DISTINCT 5 ) AS col0
----
5

query I rowsort
SELECT 28 * + 77 * + - 5 * + 18 AS col1
----
-194040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8550
SELECT ALL - 99 AS col1, + CAST( - + 26 AS SIGNED )
----
-99
-26

skipif mysql # not compatible
query II rowsort label-8550
SELECT ALL - 99 AS col1, + CAST ( - + 26 AS INTEGER )
----
-99
-26

query I rowsort
SELECT 89 * - 67 - + - 16 * + 14 AS col0
----
-5739

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT 70 * + COUNT( * ) col0
----
70

skipif mysql # not compatible
query I rowsort label-8552
SELECT 70 * + COUNT ( * ) col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT DISTINCT 97 * COUNT( * ) * - 48 AS col0
----
-4656

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT 97 * COUNT ( * ) * - 48 AS col0
----
-4656

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL 32 * + + ( CASE 91 WHEN + - 62 - - 44 THEN NULL WHEN + - 96 THEN 47 ELSE - COUNT( * ) - + ( - 47 ) END )
----
1472

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL 32 * + + ( CASE 91 WHEN + - 62 - - 44 THEN NULL WHEN + - 96 THEN 47 ELSE - COUNT ( * ) - + ( - 47 ) END )
----
1472

query I rowsort
SELECT DISTINCT 50 * + 72 col1
----
3600

query II rowsort
SELECT + 81 * + - 49 - - 42, 42 AS col2
----
-3927
42

query I rowsort
SELECT ALL 96 * + + 29 AS col0
----
2784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8558
SELECT + 0 col0, 34 * - CAST( - 87 AS SIGNED )
----
0
2958

skipif mysql # not compatible
query II rowsort label-8558
SELECT + 0 col0, 34 * - CAST ( - 87 AS INTEGER )
----
0
2958

query I rowsort
SELECT ALL 49 + + 2
----
51

query I rowsort
SELECT + 24 * - 95 * - - 63 + + 49 AS col2
----
-143591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8561
SELECT SUM( - + 67 ) DIV COALESCE ( + + 83, - + CASE - 29 WHEN + COUNT( * ) THEN NULL ELSE - 7 + - 39 END * + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8561
SELECT SUM ( - + 67 ) / COALESCE ( + + 83, - + CASE - 29 WHEN + COUNT ( * ) THEN NULL ELSE - 7 + - 39 END * + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8562
SELECT - ( - + CASE + 9 WHEN + 0 - - - 69 * - - 88 DIV + 55 THEN - 77 ELSE - + 94 END ) + 1 - 46 DIV + + 60 + 33, 2 AS col2
----
-60
2

skipif mysql # not compatible
query II rowsort label-8562
SELECT - ( - + CASE + 9 WHEN + 0 - - - 69 * - - 88 / + 55 THEN - 77 ELSE - + 94 END ) + 1 - 46 / + + 60 + 33, 2 AS col2
----
-60
2

query I rowsort
SELECT DISTINCT 94 + - + 73 * + 27 * - ( - 99 ) * - - 19
----
-3707357

query I rowsort
SELECT - 37 * + 44
----
-1628

query I rowsort
SELECT - + 57 + 98 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8566
SELECT ALL - + 94 * + 74 + - - 53 + + + 82 + - + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL - + 94 * + 74 + - - 53 + + + 82 + - + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + + 55 + - SUM( DISTINCT - - 47 ) - 95 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-8567
SELECT + + 55 + - SUM ( DISTINCT - - 47 ) - 95 AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8568
SELECT + - 80 + - + 26 DIV - - 61 + - 91 * - 60 + NULLIF ( 4, - 62 ) * - 41
----
5216

skipif mysql # not compatible
query I rowsort label-8568
SELECT + - 80 + - + 26 / - - 61 + - 91 * - 60 + NULLIF ( 4, - 62 ) * - 41
----
5216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT DISTINCT + 69 - + ( - - SUM( ALL + CAST( NULL AS SIGNED ) ) ) / 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + 69 - + ( - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) / 76 AS col0
----
NULL

query I rowsort
SELECT ALL + 99 * + 39 AS col2
----
3861

query I rowsort
SELECT ALL NULLIF ( - 60, 57 + + NULLIF ( - - ( - - 12 ), - 8 ) + - 36 * - 2 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8572
SELECT - + 72 AS col1, 61 + CAST( NULL AS SIGNED ) + 61
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-8572
SELECT - + 72 AS col1, 61 + CAST ( NULL AS INTEGER ) + 61
----
-72
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8573
SELECT ALL COUNT( * ) AS col2, - 76 AS col0
----
1
-76

skipif mysql # not compatible
query II rowsort label-8573
SELECT ALL COUNT ( * ) AS col2, - 76 AS col0
----
1
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ( COUNT( - + 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8574
SELECT ( COUNT ( - + 49 ) )
----
1

query II rowsort
SELECT + 10 col0, 39 * + 11 AS col1
----
10
429

onlyif mysql # aggregate syntax: 
query II rowsort label-8576
SELECT - 51 * - COUNT( * ) AS col2, 72 AS col0
----
51
72

skipif mysql # not compatible
query II rowsort label-8576
SELECT - 51 * - COUNT ( * ) AS col2, 72 AS col0
----
51
72

query I rowsort
SELECT ALL + ( - - 49 ) * + 79 AS col0
----
3871

query I rowsort
SELECT 94 * + - 40 + - 25
----
-3785

query III rowsort
SELECT ALL + 15 AS col0, 50, + 45 AS col2
----
15
50
45

query II rowsort
SELECT ALL + 94 * - 58 AS col0, 26 * - + 82 AS col0
----
-5452
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT NULLIF ( 45, - + 11 + 10 * ( 35 ) - + COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-8581
SELECT NULLIF ( 45, - + 11 + 10 * ( 35 ) - + COUNT ( * ) )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8582
SELECT ALL + 34, COUNT( * ) AS col2
----
34
1

skipif mysql # not compatible
query II rowsort label-8582
SELECT ALL + 34, COUNT ( * ) AS col2
----
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT NULLIF ( + 83, 39 * - 7 + + - COUNT( * ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8583
SELECT NULLIF ( + 83, 39 * - 7 + + - COUNT ( * ) ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT COALESCE ( + - 53, COUNT( * ) )
----
-53

skipif mysql # not compatible
query I rowsort label-8584
SELECT COALESCE ( + - 53, COUNT ( * ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - COUNT( * ) * 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8585
SELECT - COUNT ( * ) * 94 AS col0
----
-94

query I rowsort
SELECT ALL 43 * + 4 AS col1
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-8587
SELECT + COUNT( + 55 ) col0, - COUNT( ALL + 84 ) * + 17 AS col0
----
1
-17

skipif mysql # not compatible
query II rowsort label-8587
SELECT + COUNT ( + 55 ) col0, - COUNT ( ALL + 84 ) * + 17 AS col0
----
1
-17

query I rowsort
SELECT + 22 + - 18 + - 55
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT + 22 * MIN( DISTINCT + 30 ) * - 3 * - 48 + 53 * - - 72 AS col0
----
98856

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT + 22 * MIN ( DISTINCT + 30 ) * - 3 * - 48 + 53 * - - 72 AS col0
----
98856

onlyif mysql # DIV for integer division: 
query II rowsort label-8590
SELECT - + 82, + ( 29 ) DIV + + 33 AS col2
----
-82
0

skipif mysql # not compatible
query II rowsort label-8590
SELECT - + 82, + ( 29 ) / + + 33 AS col2
----
-82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT ALL ( - - SUM( DISTINCT 70 ) )
----
70

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL ( - - SUM ( DISTINCT 70 ) )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT DISTINCT + - COUNT( * ) * NULLIF ( - CAST( NULL AS SIGNED ), - ( 72 ) * 91 ) + + - 88 + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT + - COUNT ( * ) * NULLIF ( - CAST ( NULL AS INTEGER ), - ( 72 ) * 91 ) + + - 88 + 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8593
SELECT + + 51 - + 25 AS col2, CASE 36 WHEN + - 42 / + AVG ( DISTINCT + - 50 ) THEN NULL ELSE - COUNT( * ) - - + 63 * - 18 END * + - MAX( DISTINCT - + 59 )
----
26
-66965

skipif mysql # not compatible
query II rowsort label-8593
SELECT + + 51 - + 25 AS col2, CASE 36 WHEN + - 42 / + AVG ( DISTINCT + - 50 ) THEN NULL ELSE - COUNT ( * ) - - + 63 * - 18 END * + - MAX ( DISTINCT - + 59 )
----
26
-66965

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT ALL - 40 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL - 40 / + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT + - 34 * - 95 * - + SUM( 26 ) AS col0
----
-83980

skipif mysql # not compatible
query I rowsort label-8595
SELECT + - 34 * - 95 * - + SUM ( 26 ) AS col0
----
-83980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8596
SELECT ALL CASE - CASE 4 WHEN + 43 + + COUNT( * ) + COALESCE ( - 40, - MIN( 15 ) ) THEN - 80 WHEN + ( - + 59 ) / + ( 87 ) + + 47 + - + 43 THEN + 92 ELSE NULL END WHEN 72 THEN NULL WHEN - + 89 THEN NULL ELSE + 7 * 60 END AS col1, SUM( DISTINCT + - 31 ) * + - 3 * - CAST( COUNT( * ) AS SIGNED )
----
420
-93

skipif mysql # not compatible
query II rowsort label-8596
SELECT ALL CASE - CASE 4 WHEN + 43 + + COUNT ( * ) + COALESCE ( - 40, - MIN ( 15 ) ) THEN - 80 WHEN + ( - + 59 ) / + ( 87 ) + + 47 + - + 43 THEN + 92 ELSE NULL END WHEN 72 THEN NULL WHEN - + 89 THEN NULL ELSE + 7 * 60 END AS col1, SUM ( DISTINCT + - 31 ) * + - 3 * - CAST ( COUNT ( * ) AS INTEGER )
----
420
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT + 38 + + COALESCE ( - 64, - 24 + + 56, 46 DIV + 30 + - + 98 )
----
-26

skipif mysql # not compatible
query I rowsort label-8597
SELECT + 38 + + COALESCE ( - 64, - 24 + + 56, 46 / + 30 + - + 98 )
----
-26

query I rowsort
SELECT + 82 * + 41 * - 77 AS col0
----
-258874

query II rowsort
SELECT - + 87 col2, 94 AS col2
----
-87
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8600
SELECT + COUNT( * ), 86 + ( + + 37 ) * - - 56 + 18 AS col0
----
1
2176

skipif mysql # not compatible
query II rowsort label-8600
SELECT + COUNT ( * ), 86 + ( + + 37 ) * - - 56 + 18 AS col0
----
1
2176

onlyif mysql # aggregate syntax: 
query II rowsort label-8601
SELECT ALL - 88 * + 59 AS col2, 10 - - 23 + - - 25 * + 98 * - COUNT( ALL + 4 ) + 32 AS col1
----
-5192
-2385

skipif mysql # not compatible
query II rowsort label-8601
SELECT ALL - 88 * + 59 AS col2, 10 - - 23 + - - 25 * + 98 * - COUNT ( ALL + 4 ) + 32 AS col1
----
-5192
-2385

query I rowsort
SELECT ALL NULLIF ( 8, - - 70 * + 1 - + AVG ( ALL - - 49 ) + + 32 * + - 19 + + - 13 ) * 78 AS col0
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT + COALESCE ( - 36, COUNT( * ) * - 83 + + ( - 7 ), - 72 - + 99 * + 69 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT + COALESCE ( - 36, COUNT ( * ) * - 83 + + ( - 7 ), - 72 - + 99 * + 69 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT DISTINCT ( - SUM( ALL + 47 ) ) * + + NULLIF ( - 57, + 31 * 71 )
----
2679

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT ( - SUM ( ALL + 47 ) ) * + + NULLIF ( - 57, + 31 * 71 )
----
2679

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT - CASE + 9 WHEN COUNT( * ) THEN NULL WHEN - 18 THEN + + 16 WHEN - 73 * - 91 - 39 + + - 58 THEN NULL ELSE - 49 - + 31 END * - - 46 AS col2
----
3680

skipif mysql # not compatible
query I rowsort label-8605
SELECT - CASE + 9 WHEN COUNT ( * ) THEN NULL WHEN - 18 THEN + + 16 WHEN - 73 * - 91 - 39 + + - 58 THEN NULL ELSE - 49 - + 31 END * - - 46 AS col2
----
3680

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + CASE - - 52 WHEN + - COUNT( * ) THEN NULL WHEN + - 69 + - 23 THEN + 86 - - 74 / - 12 + - 67 END / - - 82 + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT + CASE - - 52 WHEN + - COUNT ( * ) THEN NULL WHEN + - 69 + - 23 THEN + 86 - - 74 / - 12 + - 67 END / - - 82 + - 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT - CAST( + 29 AS SIGNED ) * CAST( NULL AS SIGNED ) * - - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT - CAST ( + 29 AS INTEGER ) * CAST ( NULL AS INTEGER ) * - - 72 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8608
SELECT DISTINCT + 53 DIV 93 DIV + 70 + + + 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT + 53 / 93 / + 70 + + + 45 AS col0
----
45

query I rowsort
SELECT DISTINCT - 46 + 81 + + 3 * + 22
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT 84 + COUNT( * ) + 7
----
92

skipif mysql # not compatible
query I rowsort label-8610
SELECT 84 + COUNT ( * ) + 7
----
92

query I rowsort
SELECT 90 * + 19 - - 63 + + 25 - + + 14 - - - 38 AS col0
----
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT 30 + - ( - CASE + + COUNT( * ) WHEN - ( - - 93 ) THEN 96 * - + 82 * - + COUNT( * ) + - + 3 ELSE NULL END ) + + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT 30 + - ( - CASE + + COUNT ( * ) WHEN - ( - - 93 ) THEN 96 * - + 82 * - + COUNT ( * ) + - + 3 ELSE NULL END ) + + 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT CASE + 16 WHEN 81 * - - 65 THEN NULL WHEN - 97 THEN + - NULLIF ( - 45, 14 * + COUNT( + 30 ) + - 97 * - 7 ) + + - 91 ELSE + + ( + - SUM( DISTINCT - - 26 ) ) END * - - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-8613
SELECT CASE + 16 WHEN 81 * - - 65 THEN NULL WHEN - 97 THEN + - NULLIF ( - 45, 14 * + COUNT ( + 30 ) + - 97 * - 7 ) + + - 91 ELSE + + ( + - SUM ( DISTINCT - - 26 ) ) END * - - COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT DISTINCT + 10 * - - SUM( + 71 ) * - 67 + - 59 AS col1
----
-47629

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT + 10 * - - SUM ( + 71 ) * - 67 + - 59 AS col1
----
-47629

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - COUNT( * ) * - 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8615
SELECT - COUNT ( * ) * - 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL + MAX( ALL - 81 ) * - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + MAX ( ALL - 81 ) * - COUNT ( * )
----
81

query I rowsort
SELECT 10 + - ( - + 99 )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT + MAX( ALL + 57 ) * - + ( - 35 ) AS col2
----
1995

skipif mysql # not compatible
query I rowsort label-8618
SELECT + MAX ( ALL + 57 ) * - + ( - 35 ) AS col2
----
1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8619
SELECT CASE 22 WHEN + - 51 THEN + CAST( NULL AS SIGNED ) + + - COUNT( * ) END * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT CASE 22 WHEN + - 51 THEN + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) END * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 17 * 92 AS col0
----
1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8621
SELECT + NULLIF ( - 81, + CAST( NULL AS SIGNED ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-8621
SELECT + NULLIF ( - 81, + CAST ( NULL AS INTEGER ) ) AS col2
----
-81

query I rowsort
SELECT - 2 + + + ( + 93 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL - MAX( - + 93 ) + + 12
----
105

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL - MAX ( - + 93 ) + + 12
----
105

query I rowsort
SELECT ALL 33 + + + 94 * - - 89 * - 85 + + - 35 AS col0
----
-711112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8625
SELECT CASE NULLIF ( CAST( - COUNT( 63 ) AS DECIMAL ), + 90 ) WHEN NULLIF ( 83, + + MIN( - CAST( - 36 AS DECIMAL ) ) ) THEN + 39 END - - ( + AVG ( ALL + 20 ) ) + - CASE - ( COALESCE ( 95, + COUNT( * ) * + 67 ) ) WHEN 58 THEN - MIN( + 40 ) / + COALESCE ( - + ( - - 14 ), - + 21 - - - 1 + 11, - 32, - 1 + + + AVG ( DISTINCT - 92 ) + + 86 * - + CASE - - 56 WHEN - 42 THEN + + 76 WHEN + COALESCE ( + 47, + 12 ) THEN NULL END / - 74 ) * - 63 + 39 + + ( 22 ) WHEN - 78 THEN 7 + 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT CASE NULLIF ( CAST ( - COUNT ( 63 ) AS REAL ), + 90 ) WHEN NULLIF ( 83, + + MIN ( - CAST ( - 36 AS REAL ) ) ) THEN + 39 END - - ( + AVG ( ALL + 20 ) ) + - CASE - ( COALESCE ( 95, + COUNT ( * ) * + 67 ) ) WHEN 58 THEN - MIN ( + 40 ) / + COALESCE ( - + ( - - 14 ), - + 21 - - - 1 + 11, - 32, - 1 + + + AVG ( DISTINCT - 92 ) + + 86 * - + CASE - - 56 WHEN - 42 THEN + + 76 WHEN + COALESCE ( + 47, + 12 ) THEN NULL END / - 74 ) * - 63 + 39 + + ( 22 ) WHEN - 78 THEN 7 + 72 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 67 AS col2, 4
----
67
4

query I rowsort
SELECT 69 + - + ( 7 )
----
62

query I rowsort
SELECT DISTINCT 39 + + 55 AS col0
----
94

query II rowsort
SELECT 59, - 25 AS col1
----
59
-25

query I rowsort
SELECT ALL 73 + 85 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT 95 * + COALESCE ( 60, 8 + + - NULLIF ( - COUNT( * ), - NULLIF ( + 3, + CASE - 40 WHEN AVG ( - 93 ) * 73 * - + 56 * - - 53 THEN NULL WHEN - 68 THEN - 5 + + 90 / + CASE 20 WHEN 13 * - 53 * 60 THEN + CASE - - NULLIF ( + 48, - 34 ) WHEN + - 80 + - + 95 THEN 33 - - - 22 + + 15 + 39 * + - 29 WHEN + 34 THEN NULL ELSE 17 END * + 4 END ELSE NULL END ) * COUNT( * ) + + 45 ) )
----
5700

skipif mysql # not compatible
query I rowsort label-8631
SELECT 95 * + COALESCE ( 60, 8 + + - NULLIF ( - COUNT ( * ), - NULLIF ( + 3, + CASE - 40 WHEN AVG ( - 93 ) * 73 * - + 56 * - - 53 THEN NULL WHEN - 68 THEN - 5 + + 90 / + CASE 20 WHEN 13 * - 53 * 60 THEN + CASE - - NULLIF ( + 48, - 34 ) WHEN + - 80 + - + 95 THEN 33 - - - 22 + + 15 + 39 * + - 29 WHEN + 34 THEN NULL ELSE 17 END * + 4 END ELSE NULL END ) * COUNT ( * ) + + 45 ) )
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT + 6 * 85 * + COUNT( * ) * + 20 * - 29 + 14 AS col1
----
-295786

skipif mysql # not compatible
query I rowsort label-8632
SELECT + 6 * 85 * + COUNT ( * ) * + 20 * - 29 + 14 AS col1
----
-295786

query I rowsort
SELECT DISTINCT 79 * + 92
----
7268

query I rowsort
SELECT ALL 38 + - 64
----
-26

query II rowsort
SELECT DISTINCT - 56 col0, 89 * - 87 + + + 11 AS col2
----
-56
-7732

query I rowsort
SELECT ALL + 32 + 37 - + + NULLIF ( 35, + - COALESCE ( 21, 64 ) ) AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT + 55 DIV 17 DIV + 96 + - COALESCE ( + + COALESCE ( - ( - 62 ), - 84, + 14 ), 17 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8637
SELECT + 55 / 17 / + 96 + - COALESCE ( + + COALESCE ( - ( - 62 ), - 84, + 14 ), 17 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8638
SELECT ALL COUNT( * ) * + - 78 * - 24 AS col1, SUM( ( 39 ) ) * 16 + - MAX( DISTINCT - 73 ) + 8 * 90 * 71 AS col0
----
1872
51817

skipif mysql # not compatible
query II rowsort label-8638
SELECT ALL COUNT ( * ) * + - 78 * - 24 AS col1, SUM ( ( 39 ) ) * 16 + - MAX ( DISTINCT - 73 ) + 8 * 90 * 71 AS col0
----
1872
51817

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8639
SELECT 69 * - 66 * + 47 + + 27 AS col2, CAST( NULL AS SIGNED )
----
-214011
NULL

skipif mysql # not compatible
query II rowsort label-8639
SELECT 69 * - 66 * + 47 + + 27 AS col2, CAST ( NULL AS INTEGER )
----
-214011
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL - + SUM( 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - + SUM ( 77 )
----
-77

query I rowsort
SELECT ALL - - 87 * + - 1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8642
SELECT DISTINCT - SUM( ALL 67 ) DIV 53 * - - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT - SUM ( ALL 67 ) / 53 * - - COUNT ( * ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT 14 * - + 4 DIV 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8643
SELECT 14 * - + 4 / 60 AS col1
----
0

query I rowsort
SELECT ALL - ( - 47 ) * - 76 col2
----
-3572

query I rowsort
SELECT 47 - - 20 + 35 - + 28 AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT - CAST( - 91 AS SIGNED ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8646
SELECT - CAST ( - 91 AS INTEGER ) AS col1
----
91

query I rowsort
SELECT + 20 + 32 AS col2
----
52

query I rowsort
SELECT - - ( - - 96 ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8649
SELECT 24 DIV + - 86 col0
----
0

skipif mysql # not compatible
query I rowsort label-8649
SELECT 24 / + - 86 col0
----
0

query I rowsort
SELECT - 33 + 13 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT SUM( DISTINCT + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8651
SELECT SUM ( DISTINCT + 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT 14 * ( - - COUNT( * ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8652
SELECT 14 * ( - - COUNT ( * ) ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT DISTINCT - - 53 + - 93 + + 11 * - 36 + + COALESCE ( 64, + COUNT( * ) ) - + NULLIF ( + 1, + - 29 * + 31 ) * - 79 col0
----
-293

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT - - 53 + - 93 + + 11 * - 36 + + COALESCE ( 64, + COUNT ( * ) ) - + NULLIF ( + 1, + - 29 * + 31 ) * - 79 col0
----
-293

query I rowsort
SELECT 17 - 51
----
-34

query I rowsort
SELECT COALESCE ( 14, - + 58 )
----
14

query I rowsort
SELECT ALL 34 + - - 25 * + - 19 AS col0
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL + 35 + COALESCE ( + SUM( - 2 ), - MAX( DISTINCT + 51 ) + 73, NULLIF ( - 30, - 42 ), - + 75 ) * + - 59 * MIN( 63 )
----
7469

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL + 35 + COALESCE ( + SUM ( - 2 ), - MAX ( DISTINCT + 51 ) + 73, NULLIF ( - 30, - 42 ), - + 75 ) * + - 59 * MIN ( 63 )
----
7469

query I rowsort
SELECT ALL - 63 + - 39 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT 33 + 5 * + ( - - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT 33 + 5 * + ( - - COUNT ( * ) )
----
38

query II rowsort
SELECT DISTINCT + 18 + 15 + 76 * - 32 * + 65 col0, 74 * 15 - + 37 * 72 + - 10 col0
----
-158047
-1564

query II rowsort
SELECT DISTINCT 85 + - 17 AS col0, 67
----
68
67

query I rowsort
SELECT ALL - 81 * + 20 - + 94
----
-1714

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT + COUNT( ALL + - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-8663
SELECT + COUNT ( ALL + - 1 )
----
1

query I rowsort
SELECT ALL 7 * 52 - - - 72
----
292

query I rowsort
SELECT DISTINCT + 77 * + 8 * 57 + 56
----
35168

query I rowsort
SELECT + 59 + + ( - + 13 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8667
SELECT DISTINCT + - COALESCE ( + - CAST( NULL AS SIGNED ), ( + COALESCE ( + 83, CASE + COUNT( * ) WHEN 6 THEN - 60 + - - 17 WHEN 19 / + - 36 THEN - ( + 65 ) ELSE NULL END * + - 8, 15 ) ) + 45 ) AS col2, 58 * + COUNT( * ) AS col1
----
-128
58

skipif mysql # not compatible
query II rowsort label-8667
SELECT DISTINCT + - COALESCE ( + - CAST ( NULL AS INTEGER ), ( + COALESCE ( + 83, CASE + COUNT ( * ) WHEN 6 THEN - 60 + - - 17 WHEN 19 / + - 36 THEN - ( + 65 ) ELSE NULL END * + - 8, 15 ) ) + 45 ) AS col2, 58 * + COUNT ( * ) AS col1
----
-128
58

query I rowsort
SELECT + 34 * + - 95
----
-3230

query I rowsort
SELECT - - 22 + + 82 - + 13 AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT ALL - 0 DIV - 52 DIV 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL - 0 / - 52 / 49 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT DISTINCT + 89 + + COUNT( * ) + + + 20 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT + 89 + + COUNT ( * ) + + + 20 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT - NULLIF ( 15, - + COUNT( * ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8672
SELECT - NULLIF ( 15, - + COUNT ( * ) ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT + 89 + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8673
SELECT + 89 + COUNT ( * ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL 58 + + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL 58 + + + COUNT ( * )
----
59

query I rowsort
SELECT + 10 + - 31 + - + 61
----
-82

query I rowsort
SELECT + 69 * 47 AS col2
----
3243

query I rowsort
SELECT ALL + 31 + - 3
----
28

query II rowsort
SELECT - 80 + - + 58 - 90 AS col0, + 51 * 8 AS col2
----
-228
408

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - COALESCE ( 86, - COUNT( * ) * - + 61 ) * + + COUNT( DISTINCT - - 22 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8679
SELECT - COALESCE ( 86, - COUNT ( * ) * - + 61 ) * + + COUNT ( DISTINCT - - 22 ) AS col2
----
-86

query I rowsort
SELECT - ( - 35 ) * + 56 AS col0
----
1960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT ALL + 4 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL + 4 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8682
SELECT - CASE COUNT( + + 30 ) WHEN + COUNT( * ) THEN NULL WHEN 62 + + 79 THEN NULL WHEN - 78 * + - 4 THEN + 55 END + CASE + - 76 WHEN + - ( 4 ) THEN - + COUNT( * ) * - 98 + 3 + 26 / + - CAST( - 83 AS SIGNED ) / + - 40 ELSE - - NULLIF ( - + 14, 95 / - COUNT( * ) - + - 30 ) * 63 + - - 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT - CASE COUNT ( + + 30 ) WHEN + COUNT ( * ) THEN NULL WHEN 62 + + 79 THEN NULL WHEN - 78 * + - 4 THEN + 55 END + CASE + - 76 WHEN + - ( 4 ) THEN - + COUNT ( * ) * - 98 + 3 + 26 / + - CAST ( - 83 AS INTEGER ) / + - 40 ELSE - - NULLIF ( - + 14, 95 / - COUNT ( * ) - + - 30 ) * 63 + - - 49 END
----
NULL

query I rowsort
SELECT ALL 62 + + 18 AS col0
----
80

query I rowsort
SELECT DISTINCT NULLIF ( - + 97, 10 ) AS col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT ALL NULLIF ( + CAST( + - 74 AS SIGNED ), - - 32 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL NULLIF ( + CAST ( + - 74 AS INTEGER ), - - 32 ) AS col1
----
-74

query II rowsort
SELECT - 38 AS col0, + 25 AS col2
----
-38
25

query I rowsort
SELECT - 2 + - 37 + - + 30 + + 28 * - 63 * 95
----
-167649

query I rowsort
SELECT - 78 + - 97 + - 26 AS col1
----
-201

query I rowsort
SELECT ALL ( - 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - COUNT( * ) * - COALESCE ( + 87, - 58 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8690
SELECT - COUNT ( * ) * - COALESCE ( + 87, - 58 ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8691
SELECT DISTINCT + COUNT( * ) * - ( - 69 ) DIV + - SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2, - 98 * - 32 + 96 * 99 DIV - COUNT( * ) AS col0
----
NULL
-6368

skipif mysql # not compatible
query II rowsort label-8691
SELECT DISTINCT + COUNT ( * ) * - ( - 69 ) / + - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2, - 98 * - 32 + 96 * 99 / - COUNT ( * ) AS col0
----
NULL
-6368

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT ALL + + MIN( + + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + + MIN ( + + 19 ) AS col0
----
19

query I rowsort
SELECT + 66 + + 29
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT + MIN( DISTINCT - 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT + MIN ( DISTINCT - 7 ) AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT - 19 / - + CASE 52 WHEN - 64 THEN + CAST( NULL AS SIGNED ) END / - 32 - - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT - 19 / - + CASE 52 WHEN - 64 THEN + CAST ( NULL AS INTEGER ) END / - 32 - - 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT COALESCE ( + 95, + COUNT( * ) + + 97 )
----
95

skipif mysql # not compatible
query I rowsort label-8696
SELECT COALESCE ( + 95, + COUNT ( * ) + + 97 )
----
95

query I rowsort
SELECT ( - + 81 ) * + 13 + 52
----
-1001

query I rowsort
SELECT + + 40 * - 72 + + + 29
----
-2851

query I rowsort
SELECT + + ( + 29 ) col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT ALL - CAST( NULL AS SIGNED ) * - - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 69 AS col1
----
NULL

query II rowsort
SELECT + 30 AS col1, 39 AS col0
----
30
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL - COUNT( * ) * + 58 * - 67 + 60
----
3946

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - COUNT ( * ) * + 58 * - 67 + 60
----
3946

query I rowsort
SELECT DISTINCT 47 * 31 - - 61 AS col2
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT 86 * + - 54 * + 43 * + + 87 - 29 + + ( + 66 ) - + + COUNT( * )
----
-17373168

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT 86 * + - 54 * + 43 * + + 87 - 29 + + ( + 66 ) - + + COUNT ( * )
----
-17373168

onlyif mysql # aggregate syntax: 
query II rowsort label-8705
SELECT COUNT( * ) * - + 48 + + 77 col1, - 32 AS col2
----
29
-32

skipif mysql # not compatible
query II rowsort label-8705
SELECT COUNT ( * ) * - + 48 + + 77 col1, - 32 AS col2
----
29
-32

query I rowsort
SELECT + 92 + 41
----
133

query I rowsort
SELECT + CASE + + 75 WHEN + 97 THEN - 44 * 42 * - 56 + 36 - - 42 WHEN + 63 THEN 20 END * - - 62 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT ALL 32 * - CASE + 24 WHEN - ( - 97 ) + - + 97 * 46 * + 66 THEN + 63 ELSE NULL END + - + CAST( NULL AS SIGNED ) * - + 19 * ( 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL 32 * - CASE + 24 WHEN - ( - 97 ) + - + 97 * 46 * + 66 THEN + 63 ELSE NULL END + - + CAST ( NULL AS INTEGER ) * - + 19 * ( 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT - ( + CASE - 39 WHEN - + 47 THEN - CASE + + MIN( 96 ) WHEN - 9 * 99 - 67 THEN + 77 WHEN COALESCE ( 97, - COALESCE ( 60, + + 78 + - - 59 * - 83, - 44 / - + 52 / - - 67 * - + ( + 36 ) * + 1 + + + 40 * - + 82 * - 44 + - - 60 ), + - 72, + COUNT( * ) * + 96 * - 69 + - - ( 93 ) ) * - 46 THEN NULL END + CASE WHEN NOT + 15 BETWEEN ( 69 ) AND NULL THEN + SUM( - ( 90 ) ) * 28 * COUNT( * ) * + + 12 - 12 - - CASE + 33 WHEN 29 THEN NULL WHEN COUNT( * ) * ( 37 * 94 ) THEN - 85 ELSE NULL END * 5 WHEN ( 50 ) IN ( 33 * MIN( + 66 ) ) THEN 29 END END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT - ( + CASE - 39 WHEN - + 47 THEN - CASE + + MIN ( 96 ) WHEN - 9 * 99 - 67 THEN + 77 WHEN COALESCE ( 97, - COALESCE ( 60, + + 78 + - - 59 * - 83, - 44 / - + 52 / - - 67 * - + ( + 36 ) * + 1 + + + 40 * - + 82 * - 44 + - - 60 ), + - 72, + COUNT ( * ) * + 96 * - 69 + - - ( 93 ) ) * - 46 THEN NULL END + CASE WHEN NOT + 15 BETWEEN ( 69 ) AND NULL THEN + SUM ( - ( 90 ) ) * 28 * COUNT ( * ) * + + 12 - 12 - - CASE + 33 WHEN 29 THEN NULL WHEN COUNT ( * ) * ( 37 * 94 ) THEN - 85 ELSE NULL END * 5 WHEN ( 50 ) IN ( 33 * MIN ( + 66 ) ) THEN 29 END END ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8710
SELECT ALL NULLIF ( - 17, - COUNT( + - CAST( - - ( - 91 ) AS SIGNED ) ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL NULLIF ( - 17, - COUNT ( + - CAST ( - - ( - 91 ) AS INTEGER ) ) ) AS col2
----
-17

query I rowsort
SELECT DISTINCT ( 90 ) * - - 25 - - 4 AS col0
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT SUM( ALL + + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-8712
SELECT SUM ( ALL + + 43 )
----
43

query II rowsort
SELECT ALL 24 AS col2, 37
----
24
37

query I rowsort
SELECT 98 * - COALESCE ( - 25, 0 + 49 ) AS col2
----
2450

query II rowsort
SELECT DISTINCT 32, - 29 AS col0
----
32
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8716
SELECT 7 - 30 * + CAST( + - 67 AS SIGNED ) * - 91 + + - 39
----
-182942

skipif mysql # not compatible
query I rowsort label-8716
SELECT 7 - 30 * + CAST ( + - 67 AS INTEGER ) * - 91 + + - 39
----
-182942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8717
SELECT COUNT( + - 79 ) * - CAST( - - 61 AS SIGNED ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-8717
SELECT COUNT ( + - 79 ) * - CAST ( - - 61 AS INTEGER ) col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8718
SELECT CAST( + + ( + 20 ) AS SIGNED ) * COUNT( * ) col2, - 14 AS col0
----
20
-14

skipif mysql # not compatible
query II rowsort label-8718
SELECT CAST ( + + ( + 20 ) AS INTEGER ) * COUNT ( * ) col2, - 14 AS col0
----
20
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8719
SELECT 32 AS col0, - CAST( NULL AS SIGNED ) * - 32 * + COUNT( * ) * 38
----
32
NULL

skipif mysql # not compatible
query II rowsort label-8719
SELECT 32 AS col0, - CAST ( NULL AS INTEGER ) * - 32 * + COUNT ( * ) * 38
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT DISTINCT + ( + CASE + 90 WHEN + COUNT( * ) THEN + COUNT( * ) END ) / + + AVG ( ALL + CASE - ( - 81 ) WHEN + 92 THEN NULL ELSE 67 * ( + 81 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT + ( + CASE + 90 WHEN + COUNT ( * ) THEN + COUNT ( * ) END ) / + + AVG ( ALL + CASE - ( - 81 ) WHEN + 92 THEN NULL ELSE 67 * ( + 81 ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT - - 0 * 45 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT - - 0 * 45 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT COUNT( * ) * + + 43
----
43

skipif mysql # not compatible
query I rowsort label-8722
SELECT COUNT ( * ) * + + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT COUNT( - - 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8723
SELECT COUNT ( - - 75 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT DISTINCT + 33 + - - 17 + + 69 * + + 10 / - CAST( NULL AS SIGNED ) - + + 38 + 61 + - 40 - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT + 33 + - - 17 + + 69 * + + 10 / - CAST ( NULL AS INTEGER ) - + + 38 + 61 + - 40 - - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ALL - NULLIF ( + COALESCE ( + NULLIF ( + COUNT( * ), 13 * NULLIF ( - 7, + 46 * 66 + COUNT( * ) ) ), + 20 * - 98 + + + 61 - 6 * + 81 ), + + 10 + - 9 + - COALESCE ( + + 47, - COALESCE ( + 54, - 69, + 54 ) ) * - 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL - NULLIF ( + COALESCE ( + NULLIF ( + COUNT ( * ), 13 * NULLIF ( - 7, + 46 * 66 + COUNT ( * ) ) ), + 20 * - 98 + + + 61 - 6 * + 81 ), + + 10 + - 9 + - COALESCE ( + + 47, - COALESCE ( + 54, - 69, + 54 ) ) * - 15 )
----
-1

query I rowsort
SELECT ALL + + 25 + + 92 + ( - 47 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8727
SELECT + 19 AS col2, + MIN( DISTINCT + 29 ) + - 69
----
19
-40

skipif mysql # not compatible
query II rowsort label-8727
SELECT + 19 AS col2, + MIN ( DISTINCT + 29 ) + - 69
----
19
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT MIN( 65 ) + - - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8728
SELECT MIN ( 65 ) + - - COUNT ( * ) AS col0
----
66

query II rowsort
SELECT - 69 AS col0, - ( - 97 ) AS col2
----
-69
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT ALL - COUNT( * ), - 47 AS col1
----
-1
-47

skipif mysql # not compatible
query II rowsort label-8730
SELECT ALL - COUNT ( * ), - 47 AS col1
----
-1
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT - 80 * ( - - 14 ) / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT - 80 * ( - - 14 ) / - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL - + MIN( + 96 ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - + MIN ( + 96 ) col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT COUNT( ALL 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8733
SELECT COUNT ( ALL 68 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT + COUNT( * ) AS col1, + 40 AS col0
----
1
40

skipif mysql # not compatible
query II rowsort label-8734
SELECT + COUNT ( * ) AS col1, + 40 AS col0
----
1
40

query II rowsort
SELECT 38 + + 28 AS col0, - ( - 72 ) AS col1
----
66
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT CASE - + 38 WHEN - 63 THEN + NULLIF ( + - ( + CASE + 51 WHEN + 74 * 48 + - 71 + + 21 THEN NULL WHEN 97 THEN - 44 * 84 + - 59 + + COUNT( * ) + 44 * + 17 + ( - + 33 ) END ), 40 ) * - 96 + - + AVG ( ALL - COALESCE ( + CASE 51 WHEN + 86 THEN NULL ELSE + 62 END, ( + + 58 ) ) ) + + ( - 55 ) * - 88 + + 79 + - COUNT( * ) ELSE NULL END * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT CASE - + 38 WHEN - 63 THEN + NULLIF ( + - ( + CASE + 51 WHEN + 74 * 48 + - 71 + + 21 THEN NULL WHEN 97 THEN - 44 * 84 + - 59 + + COUNT ( * ) + 44 * + 17 + ( - + 33 ) END ), 40 ) * - 96 + - + AVG ( ALL - COALESCE ( + CASE 51 WHEN + 86 THEN NULL ELSE + 62 END, ( + + 58 ) ) ) + + ( - 55 ) * - 88 + + 79 + - COUNT ( * ) ELSE NULL END * - 1
----
NULL

query I rowsort
SELECT ALL + 57 * - 44 AS col0
----
-2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8738
SELECT + 78 * + - 48 * - 92 * - - CAST( NULL AS SIGNED ) + - - 73 * + + MIN( 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT + 78 * + - 48 * - 92 * - - CAST ( NULL AS INTEGER ) + - - 73 * + + MIN ( 23 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 10 * + - COALESCE ( - 58, - 79 + - - 99, + 2 ) AS col0
----
580

query I rowsort
SELECT 79 * 40 * 44 * + + 93
----
12930720

query I rowsort
SELECT ALL 15 * 20
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT 69 + ( - - COUNT( * ) ) * 98 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-8742
SELECT 69 + ( - - COUNT ( * ) ) * 98 AS col1
----
167

query I rowsort
SELECT ( - - 39 ) + - 49 AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT 94 + CAST( CAST( + 60 AS SIGNED ) AS SIGNED ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-8744
SELECT 94 + CAST ( CAST ( + 60 AS INTEGER ) AS INTEGER ) AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ( + - COUNT( DISTINCT + 65 ) ) + - ( - MIN( ALL + - 88 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-8745
SELECT ( + - COUNT ( DISTINCT + 65 ) ) + - ( - MIN ( ALL + - 88 ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT DISTINCT ( COUNT( * ) ) * 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT ( COUNT ( * ) ) * 20 AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8747
SELECT ALL 25 + - 65 - 58 DIV + COALESCE ( MIN( - NULLIF ( + - 30, - 69 ) ), - + SUM( + - 27 ) * + 13 * + + 10 )
----
-41

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL 25 + - 65 - 58 / + COALESCE ( MIN ( - NULLIF ( + - 30, - 69 ) ), - + SUM ( + - 27 ) * + 13 * + + 10 )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT 23 DIV - + ( - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-8748
SELECT 23 / - + ( - 39 )
----
0

query I rowsort
SELECT ALL 1 + - 25 + - 16 * 75 + - 55
----
-1279

query I rowsort
SELECT ALL + 54 + - 71
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL + 95 * - COUNT( * ) + + + 48 + - 23 * + CASE - 91 WHEN - 13 THEN NULL WHEN + 43 - COALESCE ( - - MAX( DISTINCT - 79 ), - 89 * - 90 + - 54 * + - 61 + + + 46 + - 2 + 92 + 37 * - 23 / 44 * - + 12 ) - 65 * 76 THEN NULL ELSE - + 96 + + SUM( + + 21 ) END AS col2
----
1678

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL + 95 * - COUNT ( * ) + + + 48 + - 23 * + CASE - 91 WHEN - 13 THEN NULL WHEN + 43 - COALESCE ( - - MAX ( DISTINCT - 79 ), - 89 * - 90 + - 54 * + - 61 + + + 46 + - 2 + 92 + 37 * - 23 / 44 * - + 12 ) - 65 * 76 THEN NULL ELSE - + 96 + + SUM ( + + 21 ) END AS col2
----
1678

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8752
SELECT 68 DIV + COUNT( DISTINCT + - 57 ) + - ( + 34 ), 89 AS col2
----
34
89

skipif mysql # not compatible
query II rowsort label-8752
SELECT 68 / + COUNT ( DISTINCT + - 57 ) + - ( + 34 ), 89 AS col2
----
34
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT + 61 + + 2 * SUM( DISTINCT 8 )
----
77

skipif mysql # not compatible
query I rowsort label-8753
SELECT + 61 + + 2 * SUM ( DISTINCT 8 )
----
77

query II rowsort
SELECT ALL 84 * + 11 AS col0, 15 * + 62
----
924
930

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT - COUNT( * ) / - 92 * - NULLIF ( - - 77, - 32 ) + - 22 + 75 - + 72 + + 52 * - - 79 * - MIN( ALL CASE - + 1 WHEN 86 THEN NULL WHEN + - 58 THEN 33 ELSE NULL END ) + 74 / - 41 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT - COUNT ( * ) / - 92 * - NULLIF ( - - 77, - 32 ) + - 22 + 75 - + 72 + + 52 * - - 79 * - MIN ( ALL CASE - + 1 WHEN 86 THEN NULL WHEN + - 58 THEN 33 ELSE NULL END ) + 74 / - 41 * + 6
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8756
SELECT ALL - + 61 DIV - 70 AS col0, 9 AS col1
----
0
9

skipif mysql # not compatible
query II rowsort label-8756
SELECT ALL - + 61 / - 70 AS col0, 9 AS col1
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL - MAX( + 63 ) * + 93 * - 88 + + + 45
----
515637

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL - MAX ( + 63 ) * + 93 * - 88 + + + 45
----
515637

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT - COUNT( 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT - COUNT ( 61 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT + - NULLIF ( - + CAST( NULL AS SIGNED ), - + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT + - NULLIF ( - + CAST ( NULL AS INTEGER ), - + 99 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8760
SELECT - COALESCE ( - MAX( + COALESCE ( 20, - 37, - NULLIF ( + ( + 63 ), - 0 ), + 92 + + 5 ) ), + 57 ), - 78 DIV + 58 AS col2
----
20
-1

skipif mysql # not compatible
query II rowsort label-8760
SELECT - COALESCE ( - MAX ( + COALESCE ( 20, - 37, - NULLIF ( + ( + 63 ), - 0 ), + 92 + + 5 ) ), + 57 ), - 78 / + 58 AS col2
----
20
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT ALL - CAST( NULL AS SIGNED ) * - - 23 * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 23 * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8762
SELECT - 44 * ( ( + 30 ) ) + 13 col0, MIN( + ( + 18 ) ) * + 25 AS col1
----
-1307
450

skipif mysql # not compatible
query II rowsort label-8762
SELECT - 44 * ( ( + 30 ) ) + 13 col0, MIN ( + ( + 18 ) ) * + 25 AS col1
----
-1307
450

query I rowsort
SELECT ALL NULLIF ( 7, - ( 29 ) * - 62 ) * - + 61 AS col2
----
-427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT - ( COUNT( * ) ) + + 39 DIV + 62 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8764
SELECT - ( COUNT ( * ) ) + + 39 / + 62 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8765
SELECT + 55 AS col0, CAST( NULL AS SIGNED )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-8765
SELECT + 55 AS col0, CAST ( NULL AS INTEGER )
----
55
NULL

query II rowsort
SELECT - 9 * + 31 * + - 17 col0, - 96 AS col2
----
4743
-96

query I rowsort
SELECT - 74 * - 65 AS col1
----
4810

query I rowsort
SELECT + 79 + - 37 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT - MAX( ALL + 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8769
SELECT - MAX ( ALL + 35 ) AS col2
----
-35

query II rowsort
SELECT ALL 80 AS col0, + 19 AS col1
----
80
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL 20 * + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL 20 * + COUNT ( * ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT - COUNT( * ) - 24
----
-25

skipif mysql # not compatible
query I rowsort label-8772
SELECT - COUNT ( * ) - 24
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT ALL - 83 DIV 40 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL - 83 / 40 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT DISTINCT CASE + - 9 WHEN + MAX( ALL - - 49 ) THEN NULL WHEN - - 3 THEN - 63 WHEN - + ( - 10 ) + 31 + - NULLIF ( - + COUNT( * ), + + COUNT( DISTINCT 10 ) ) / - 90 + - 87 + ( + COUNT( * ) ) + - - 79 * + 78 + + 15 * 21 * - 24 - 29 - - 27 * - + 70 * - - 8 THEN - - 3 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT CASE + - 9 WHEN + MAX ( ALL - - 49 ) THEN NULL WHEN - - 3 THEN - 63 WHEN - + ( - 10 ) + 31 + - NULLIF ( - + COUNT ( * ), + + COUNT ( DISTINCT 10 ) ) / - 90 + - 87 + ( + COUNT ( * ) ) + - - 79 * + 78 + + 15 * 21 * - 24 - 29 - - 27 * - + 70 * - - 8 THEN - - 3 + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT - 2 - + NULLIF ( + - CAST( NULL AS SIGNED ), - 18 / - - 84 + - + 98 ) + - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT - 2 - + NULLIF ( + - CAST ( NULL AS INTEGER ), - 18 / - - 84 + - + 98 ) + - + 68
----
NULL

query I rowsort
SELECT ALL ( ( - 8 ) ) * + 38 * + 82 AS col1
----
-24928

query I rowsort
SELECT + 20 * - 78 AS col2
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL + 10 + + MAX( 53 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL + 10 + + MAX ( 53 ) AS col1
----
63

query II rowsort
SELECT 68 AS col0, + 18 AS col2
----
68
18

query I rowsort
SELECT - 84 * + 2 * - 39 AS col1
----
6552

onlyif mysql # aggregate syntax: 
query II rowsort label-8781
SELECT + 48 - + MIN( ALL - + 15 ) * + NULLIF ( - 55, - - 98 ) * - + COUNT( * ) + + - 83 AS col0, MAX( ALL 17 ) AS col2
----
790
17

skipif mysql # not compatible
query II rowsort label-8781
SELECT + 48 - + MIN ( ALL - + 15 ) * + NULLIF ( - 55, - - 98 ) * - + COUNT ( * ) + + - 83 AS col0, MAX ( ALL 17 ) AS col2
----
790
17

query I rowsort
SELECT - + ( - + 20 ) AS col0
----
20

query II rowsort
SELECT - 14 AS col1, 82 * - - 69
----
-14
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL 29 + + + 18 + COUNT( ALL + 83 )
----
48

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL 29 + + + 18 + COUNT ( ALL + 83 )
----
48

query I rowsort
SELECT + 98 * - 23
----
-2254

query I rowsort
SELECT ALL - + 17 + - - 2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT DISTINCT + ( 64 ) + - + 31 * + - 28 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT + ( 64 ) + - + 31 * + - 28 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL 56 * + + 31 + - MAX( DISTINCT - 35 ) * + - 64
----
-504

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL 56 * + + 31 + - MAX ( DISTINCT - 35 ) * + - 64
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL + CASE 76 WHEN + COUNT( * ) THEN NULL ELSE + 91 END + - 5 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + CASE 76 WHEN + COUNT ( * ) THEN NULL ELSE + 91 END + - 5 AS col0
----
86

query I rowsort
SELECT - - CASE + + 68 WHEN + ( + - COALESCE ( - 17, 10 ) ) THEN + 33 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT + + 12 DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-8791
SELECT + + 12 / - 30
----
0

query I rowsort
SELECT + 1 * - 45 AS col0
----
-45

query I rowsort
SELECT - 70 * - - 12 + - 42 + - 18 + - - 97 col0
----
-803

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT ALL + - ( - SUM( 3 ) ) AS col2, - 1 * - - 64
----
3
-64

skipif mysql # not compatible
query II rowsort label-8794
SELECT ALL + - ( - SUM ( 3 ) ) AS col2, - 1 * - - 64
----
3
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8795
SELECT 51 DIV + - 74 + + SUM( DISTINCT - 80 ) DIV + 14
----
-5

skipif mysql # not compatible
query I rowsort label-8795
SELECT 51 / + - 74 + + SUM ( DISTINCT - 80 ) / + 14
----
-5

query I rowsort
SELECT + 83 * - + 11 + - + 87 * 71 - - + 40
----
-7050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT - NULLIF ( + 97, - + COUNT( * ) - + 97 ) / - COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT - NULLIF ( + 97, - + COUNT ( * ) - + 97 ) / - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 98 * - + 59 AS col1
----
-5782

query I rowsort
SELECT DISTINCT + COALESCE ( 52, 16 )
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8800
SELECT - 56 * 47, + 29 DIV - 32 * + - CAST( - 20 AS SIGNED ) AS col0
----
-2632
0

skipif mysql # not compatible
query II rowsort label-8800
SELECT - 56 * 47, + 29 / - 32 * + - CAST ( - 20 AS INTEGER ) AS col0
----
-2632
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8801
SELECT ALL - 51 * + + SUM( - 24 ) + - COALESCE ( - COUNT( * ), - + 68 * - 17 ), + 76 AS col0
----
1225
76

skipif mysql # not compatible
query II rowsort label-8801
SELECT ALL - 51 * + + SUM ( - 24 ) + - COALESCE ( - COUNT ( * ), - + 68 * - 17 ), + 76 AS col0
----
1225
76

query I rowsort
SELECT + 31 * - 23 * + 18 * + + 68 + - 23 + + NULLIF ( - + 64, ( - 94 ) ) AS col2
----
-872799

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL 87 * - 0 + + COUNT( * ) + + - 92 + - + 13 + + + 33 * + 64 * + COUNT( * ) AS col2
----
2008

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL 87 * - 0 + + COUNT ( * ) + + - 92 + - + 13 + + + 33 * + 64 * + COUNT ( * ) AS col2
----
2008

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL + 74 * - 46 + - MIN( DISTINCT 48 ) * + 43 AS col0
----
-5468

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + 74 * - 46 + - MIN ( DISTINCT 48 ) * + 43 AS col0
----
-5468

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT DISTINCT - 69 * - 38 * - COUNT( * )
----
-2622

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT - 69 * - 38 * - COUNT ( * )
----
-2622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8806
SELECT - MAX( ALL + 55 ) * NULLIF ( + 13, + + 1 + - CAST( NULL AS SIGNED ) ) * + 3
----
-2145

skipif mysql # not compatible
query I rowsort label-8806
SELECT - MAX ( ALL + 55 ) * NULLIF ( + 13, + + 1 + - CAST ( NULL AS INTEGER ) ) * + 3
----
-2145

query I rowsort
SELECT 15 * - 20 + - 35
----
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT - 90 * - + ( + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-8808
SELECT - 90 * - + ( + COUNT ( * ) )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT DISTINCT - 34 DIV - 70 * 47 col1
----
0

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - 34 / - 70 * 47 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8810
SELECT ALL - ( + 54 ) + - COUNT( * ) + - 84 AS col1, - 18 + 48 AS col0
----
-139
30

skipif mysql # not compatible
query II rowsort label-8810
SELECT ALL - ( + 54 ) + - COUNT ( * ) + - 84 AS col1, - 18 + 48 AS col0
----
-139
30

query I rowsort
SELECT - 78 + - - ( 5 ) AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8812
SELECT - - ( - - 5 ) + + COUNT( * ) + + 75 + + - CAST( - ( + + CAST( NULL AS DECIMAL ) ) AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT - - ( - - 5 ) + + COUNT ( * ) + + 75 + + - CAST ( - ( + + CAST ( NULL AS REAL ) ) AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL - + CASE WHEN NOT - COALESCE ( - COUNT( * ), - 37, + 74 * - - 96 + + 41 + - ( - 92 ) ) IS NULL THEN - 50 + + 40 + 26 ELSE - 8 + 22 END + - 10 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL - + CASE WHEN NOT - COALESCE ( - COUNT ( * ), - 37, + 74 * - - 96 + + 41 + - ( - 92 ) ) IS NULL THEN - 50 + + 40 + 26 ELSE - 8 + 22 END + - 10 AS col2
----
-26

query II rowsort
SELECT ALL + 13 * 1, 11 AS col0
----
13
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT - - 7 + - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8815
SELECT - - 7 + - COUNT ( * )
----
6

query I rowsort
SELECT ALL + 2 * - 79 + - 16 + 14
----
-160

query I rowsort
SELECT + NULLIF ( - 12, + - 53 * - - 79 ) + - 66
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL - + 89 * + 25 * + - 9 * - - COUNT( 46 ) + 28 col0
----
20053

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - + 89 * + 25 * + - 9 * - - COUNT ( 46 ) + 28 col0
----
20053

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT - - COUNT( 61 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8819
SELECT - - COUNT ( 61 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT + SUM( + 61 ) + 35 + - - ( + 93 ) - 55 + - 97 + - - COUNT( * ) * + 38 * COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8820
SELECT + SUM ( + 61 ) + 35 + - - ( + 93 ) - 55 + - 97 + - - COUNT ( * ) * + 38 * COUNT ( * ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT ALL - MAX( ALL - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - MAX ( ALL - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT + COUNT( 81 ) + 59
----
60

skipif mysql # not compatible
query I rowsort label-8822
SELECT + COUNT ( 81 ) + 59
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT ALL - ( CAST( + ( + CAST( + ( - + 14 ) AS SIGNED ) ) AS SIGNED ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL - ( CAST ( + ( + CAST ( + ( - + 14 ) AS INTEGER ) ) AS INTEGER ) ) AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8824
SELECT ALL COUNT( * ) * - + CAST( + - 81 AS SIGNED ) * - - CAST( 19 AS SIGNED )
----
1539

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL COUNT ( * ) * - + CAST ( + - 81 AS INTEGER ) * - - CAST ( 19 AS INTEGER )
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL 15 + + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL 15 + + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT DISTINCT - SUM( - 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT - SUM ( - 33 ) AS col0
----
33

query I rowsort
SELECT 4 + + 95
----
99

query I rowsort
SELECT DISTINCT 50 + - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL COUNT( * ) + 36 * - 65 * - - 57 - + + COUNT( * ) + - 71 * - 12 col0
----
-132528

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL COUNT ( * ) + 36 * - 65 * - - 57 - + + COUNT ( * ) + - 71 * - 12 col0
----
-132528

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT + 10 + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT + 10 + COUNT ( * ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT 94 * MAX( DISTINCT - - 24 ) * + - 95 * - - COUNT( * ) * - + 28
----
6000960

skipif mysql # not compatible
query I rowsort label-8831
SELECT 94 * MAX ( DISTINCT - - 24 ) * + - 95 * - - COUNT ( * ) * - + 28
----
6000960

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL - SUM( - + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - SUM ( - + 18 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT DISTINCT 37 + + + 75 * NULLIF ( + - ( - 26 ), CAST( NULL AS SIGNED ) )
----
1987

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT 37 + + + 75 * NULLIF ( + - ( - 26 ), CAST ( NULL AS INTEGER ) )
----
1987

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT 42 * + 36 * + + NULLIF ( COUNT( * ), 39 ) AS col2
----
1512

skipif mysql # not compatible
query I rowsort label-8834
SELECT 42 * + 36 * + + NULLIF ( COUNT ( * ), 39 ) AS col2
----
1512

query I rowsort
SELECT ALL + 93 + + 17 AS col2
----
110

query I rowsort
SELECT ALL + 20 * + 17 AS col0
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL COUNT( * ) - 6 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL COUNT ( * ) - 6 AS col1
----
-5

query I rowsort
SELECT ALL - 48 - 54 AS col0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT 63 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-8839
SELECT 63 / 43
----
1

query I rowsort
SELECT 47 * 33 AS col2
----
1551

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT ALL + 85 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL + 85 / + 90 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8842
SELECT 53 - + CAST( + SUM( ALL + 69 ) + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT 53 - + CAST ( + SUM ( ALL + 69 ) + CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 58 * + 40 AS col2
----
2320

query I rowsort
SELECT 72 * 67 AS col2
----
4824

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT ALL + 86 DIV 80
----
1

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + 86 / 80
----
1

query I rowsort
SELECT ALL + 59 * 7 AS col1
----
413

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT 62 + ( + COALESCE ( COUNT( * ), - 16 * 13 ) - 14 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8847
SELECT 62 + ( + COALESCE ( COUNT ( * ), - 16 * 13 ) - 14 ) AS col0
----
49

query I rowsort
SELECT ALL + 95 * 20
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT + COUNT( * ) * 99 + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-8849
SELECT + COUNT ( * ) * 99 + COUNT ( * )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT MIN( + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8850
SELECT MIN ( + 24 ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8851
SELECT COUNT( * ) * - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8851
SELECT COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT ALL 45 + 14
----
59

query I rowsort
SELECT ALL + 96 + + 59
----
155

query I rowsort
SELECT DISTINCT - 41 + + COALESCE ( 12, 13 * + 98 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT COUNT( * ) * 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8855
SELECT COUNT ( * ) * 8 AS col2
----
8

query I rowsort
SELECT DISTINCT + 78 + 77
----
155

query I rowsort
SELECT ALL - 24 + 15 col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8858
SELECT - CAST( 66 AS SIGNED ) * - 3 + - 19 DIV 83
----
198

skipif mysql # not compatible
query I rowsort label-8858
SELECT - CAST ( 66 AS INTEGER ) * - 3 + - 19 / 83
----
198

query I rowsort
SELECT ALL ( + 85 ) + - 79
----
6

query I rowsort
SELECT ALL 61 + 3
----
64

query I rowsort
SELECT 24 * 76 + + 10 col2
----
1834

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT ( - COUNT( DISTINCT + 54 ) ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT ( - COUNT ( DISTINCT + 54 ) ) * COUNT ( * )
----
-1

query I rowsort
SELECT ( + 44 ) + 51
----
95

query I rowsort
SELECT ALL ( - 66 ) * + 76 AS col1
----
-5016

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT MAX( DISTINCT 12 ) + 33 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8865
SELECT MAX ( DISTINCT 12 ) + 33 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT DISTINCT ( COUNT( * ) ) * - ( 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT ( COUNT ( * ) ) * - ( 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT + MAX( 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8867
SELECT + MAX ( 24 ) AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT ALL CAST( NULL AS SIGNED ) * - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL CAST ( NULL AS INTEGER ) * - 10 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT ALL - - 52 DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - - 52 / - 75 AS col0
----
0

query I rowsort
SELECT 58 * + 27 AS col1
----
1566

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT ALL 62 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL 62 / - 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + COUNT( * ) + 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8872
SELECT + COUNT ( * ) + 78 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT CAST( - 86 AS SIGNED ) - + 17 * 89
----
-1599

skipif mysql # not compatible
query I rowsort label-8873
SELECT CAST ( - 86 AS INTEGER ) - + 17 * 89
----
-1599

query I rowsort
SELECT - 5 * 28 AS col0
----
-140

query I rowsort
SELECT - - 7 * 29 + + 75 AS col0
----
278

query I rowsort
SELECT 68 + 23
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT + MIN( DISTINCT 24 ) * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-8877
SELECT + MIN ( DISTINCT 24 ) * COUNT ( * )
----
24

query I rowsort
SELECT + 94 + 9 AS col2
----
103

query I rowsort
SELECT ALL 69 * 99 AS col0
----
6831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8880
SELECT - 8 + COUNT( * ) * ( COUNT( * ) DIV - 95 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8880
SELECT - 8 + COUNT ( * ) * ( COUNT ( * ) / - 95 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT - - 73 + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-8881
SELECT - - 73 + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT DISTINCT - ( COUNT( * ) ) * 42 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT - ( COUNT ( * ) ) * 42 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8883
SELECT DISTINCT + - NULLIF ( CAST( NULL AS SIGNED ), + 12 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT + - NULLIF ( CAST ( NULL AS INTEGER ), + 12 ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT + + ( COALESCE ( 50, - 8 * - COUNT( * ) ) ) * 5
----
250

skipif mysql # not compatible
query I rowsort label-8884
SELECT + + ( COALESCE ( 50, - 8 * - COUNT ( * ) ) ) * 5
----
250

query I rowsort
SELECT - - 23 + 47 AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL + 17 + - 5 * + MIN( - 73 * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + 17 + - 5 * + MIN ( - 73 * CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT - NULLIF ( - ( NULLIF ( - ( ( 18 ) ), - 6 + SUM( ALL 52 ) * CASE + 71 * + 44 WHEN + CASE - 65 WHEN 91 THEN NULL WHEN 60 THEN COUNT( * ) END / - MIN( 23 ) + 0 THEN NULL WHEN + 6 THEN - 9 * - NULLIF ( - 65, + 56 ) ELSE + 43 + COUNT( * ) END ) ), + 51 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-8887
SELECT - NULLIF ( - ( NULLIF ( - ( ( 18 ) ), - 6 + SUM ( ALL 52 ) * CASE + 71 * + 44 WHEN + CASE - 65 WHEN 91 THEN NULL WHEN 60 THEN COUNT ( * ) END / - MIN ( 23 ) + 0 THEN NULL WHEN + 6 THEN - 9 * - NULLIF ( - 65, + 56 ) ELSE + 43 + COUNT ( * ) END ) ), + 51 ) col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT - + COALESCE ( ( - COUNT( * ) ), 54 * COUNT( * ) ) + - COUNT( * ) * - CASE - 93 + - 76 WHEN 56 + + 9 THEN 54 + + 35 WHEN + COUNT( * ) + - 20 * COALESCE ( 4 + ( 81 + 94 ) * ( + 13 ), 44 * 20, 94 * ( + 13 ) + 30 ) THEN + 87 + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT - + COALESCE ( ( - COUNT ( * ) ), 54 * COUNT ( * ) ) + - COUNT ( * ) * - CASE - 93 + - 76 WHEN 56 + + 9 THEN 54 + + 35 WHEN + COUNT ( * ) + - 20 * COALESCE ( 4 + ( 81 + 94 ) * ( + 13 ), 44 * 20, 94 * ( + 13 ) + 30 ) THEN + 87 + 91 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT DISTINCT - 37 DIV + 65 col0
----
0

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT - 37 / + 65 col0
----
0

query I rowsort
SELECT DISTINCT 74 + + 3 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8891
SELECT ALL 25 * - NULLIF ( - CASE + 62 WHEN + 61 + + COUNT( * ) THEN NULL WHEN + AVG ( 49 ) THEN NULL WHEN - ( - SUM( + 88 ) ) * + 97 THEN 91 END, 30 * 95 ) * CAST( NULL AS SIGNED ) + 4 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL 25 * - NULLIF ( - CASE + 62 WHEN + 61 + + COUNT ( * ) THEN NULL WHEN + AVG ( 49 ) THEN NULL WHEN - ( - SUM ( + 88 ) ) * + 97 THEN 91 END, 30 * 95 ) * CAST ( NULL AS INTEGER ) + 4 * + 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8892
SELECT ALL + 69 * 32 * - CAST( NULL AS SIGNED ) + COALESCE ( 79 + - ( SUM( 38 ) ), 36 * + 0 + + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL + 69 * 32 * - CAST ( NULL AS INTEGER ) + COALESCE ( 79 + - ( SUM ( 38 ) ), 36 * + 0 + + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 86 * - 33 + - 61
----
-2899

query I rowsort
SELECT - 97 * + + 60 * - 8
----
46560

query I rowsort
SELECT ALL - 19 * + + 14 * 65
----
-17290

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL + MIN( DISTINCT + 6 ) * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + MIN ( DISTINCT + 6 ) * + COUNT ( * )
----
6

query I rowsort
SELECT - ( - 25 ) * + 14 AS col2
----
350

query I rowsort
SELECT COALESCE ( + 34, - 93 ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT DISTINCT + CAST( - 20 AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT + CAST ( - 20 AS INTEGER ) AS col0
----
-20

query I rowsort
SELECT DISTINCT + 82 * 21 - - NULLIF ( - 28, 3 * 0 ) AS col0
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + MIN( DISTINCT 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8901
SELECT + MIN ( DISTINCT 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT + MIN( DISTINCT - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + MIN ( DISTINCT - 16 )
----
-16

query I rowsort
SELECT ALL 49 * CASE + 43 WHEN 71 * 8 + + 39 * 80 THEN 50 ELSE NULL END - - 77
----
NULL

query I rowsort
SELECT + CASE 71 WHEN 54 THEN 29 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8905
SELECT DISTINCT - + COUNT( * ) DIV + - 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT - + COUNT ( * ) / + - 24 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8906
SELECT + + ( - COUNT( * ) ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT + + ( - COUNT ( * ) ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 34 * + 66 AS col2
----
-2244

query I rowsort
SELECT + 99 + - + 85 + - 11
----
3

query I rowsort
SELECT DISTINCT 68 * 28 AS col1
----
1904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8910
SELECT + CASE + - 4 WHEN - COUNT( * ) THEN NULL ELSE COUNT( ALL + 97 ) END DIV + MAX( ALL + 26 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8910
SELECT + CASE + - 4 WHEN - COUNT ( * ) THEN NULL ELSE COUNT ( ALL + 97 ) END / + MAX ( ALL + 26 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8911
SELECT + 65 * + - 36 + + CASE + 14 WHEN + CAST( NULL AS DECIMAL ) * + 67 THEN NULL WHEN + 84 THEN NULL ELSE COUNT( * ) * - 84 END
----
-2424

skipif mysql # not compatible
query I rowsort label-8911
SELECT + 65 * + - 36 + + CASE + 14 WHEN + CAST ( NULL AS REAL ) * + 67 THEN NULL WHEN + 84 THEN NULL ELSE COUNT ( * ) * - 84 END
----
-2424

query I rowsort
SELECT DISTINCT 14 + - - 21
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL ( CASE 43 WHEN 45 * - 57 THEN COALESCE ( 73, - COUNT( 10 ) + + 44 ) + - 58 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL ( CASE 43 WHEN 45 * - 57 THEN COALESCE ( 73, - COUNT ( 10 ) + + 44 ) + - 58 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT + - ( - - 77 ) DIV 14
----
-5

skipif mysql # not compatible
query I rowsort label-8914
SELECT + - ( - - 77 ) / 14
----
-5

query I rowsort
SELECT ALL - 13 + + 6 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT - CAST( - + 99 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-8916
SELECT - CAST ( - + 99 AS INTEGER ) AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT - - NULLIF ( + + NULLIF ( + 55, - 13 * CAST( NULL AS SIGNED ) ), 85 )
----
55

skipif mysql # not compatible
query I rowsort label-8917
SELECT - - NULLIF ( + + NULLIF ( + 55, - 13 * CAST ( NULL AS INTEGER ) ), 85 )
----
55

query I rowsort
SELECT ALL + NULLIF ( COALESCE ( - 13, 28 ), - ( 72 ) ) + + 18 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + NULLIF ( - 77, 70 * NULLIF ( 36 * - ( 3 ), + ( - COUNT( * ) ) * + 7 ) + - 24 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8919
SELECT + NULLIF ( - 77, 70 * NULLIF ( 36 * - ( 3 ), + ( - COUNT ( * ) ) * + 7 ) + - 24 ) AS col2
----
-77

query I rowsort
SELECT ALL ( + + 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT DISTINCT - 30 + + CAST( - ( 82 ) AS SIGNED ) + - COALESCE ( 14 + 58, MIN( + 56 ) ) * 70 AS col2
----
-5152

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT - 30 + + CAST ( - ( 82 ) AS INTEGER ) + - COALESCE ( 14 + 58, MIN ( + 56 ) ) * 70 AS col2
----
-5152

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + 81 - MIN( DISTINCT 61 )
----
20

skipif mysql # not compatible
query I rowsort label-8922
SELECT + 81 - MIN ( DISTINCT 61 )
----
20

query I rowsort
SELECT NULLIF ( NULLIF ( 59, ( + 42 ) ), + 19 * + 98 + 72 ) col2
----
59

query I rowsort
SELECT DISTINCT + 55 * 23 * + 41
----
51865

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL 25 + - 55 * SUM( + 42 ) AS col2
----
-2285

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL 25 + - 55 * SUM ( + 42 ) AS col2
----
-2285

query I rowsort
SELECT + ( + 63 ) - 98 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT ALL 33 + - MAX( ALL - 70 ) + + 36
----
139

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL 33 + - MAX ( ALL - 70 ) + + 36
----
139

query I rowsort
SELECT + 4 * - 69 AS col0
----
-276

query I rowsort
SELECT ALL - 24 + 63 * + 97 * + 8 - + ( - ( 75 ) ) * 16
----
50064

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT 27 * + COUNT( * ) / + CASE + ( COUNT( * ) ) WHEN 39 THEN ( + 83 ) WHEN 58 THEN ( + 55 ) * - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT 27 * + COUNT ( * ) / + CASE + ( COUNT ( * ) ) WHEN 39 THEN ( + 83 ) WHEN 58 THEN ( + 55 ) * - 3 END
----
NULL

query I rowsort
SELECT ALL 62 * + 44 AS col1
----
2728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8932
SELECT + 68 + + - COUNT( * ) DIV 86 + 0
----
68

skipif mysql # not compatible
query I rowsort label-8932
SELECT + 68 + + - COUNT ( * ) / 86 + 0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT 60 DIV + 22 - 27
----
-25

skipif mysql # not compatible
query I rowsort label-8933
SELECT 60 / + 22 - 27
----
-25

query I rowsort
SELECT - 90 * NULLIF ( - - 63, ( - ( - 37 ) ) ) * 34 + 80
----
-192700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8935
SELECT ALL + 32 / 91 * - CAST( NULL AS DECIMAL ) - + ( - 43 + 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL + 32 / 91 * - CAST ( NULL AS REAL ) - + ( - 43 + 36 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT 61 * - 52 + - 59 - + MIN( DISTINCT 23 ) AS col1
----
-3254

skipif mysql # not compatible
query I rowsort label-8936
SELECT 61 * - 52 + - 59 - + MIN ( DISTINCT 23 ) AS col1
----
-3254

query I rowsort
SELECT ALL + ( 74 ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8938
SELECT - 39 DIV 38 + COALESCE ( CAST( NULL AS SIGNED ), 18 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8938
SELECT - 39 / 38 + COALESCE ( CAST ( NULL AS INTEGER ), 18 ) AS col1
----
17

query I rowsort
SELECT - 90 + - 27
----
-117

query I rowsort
SELECT ALL - 61 * - + NULLIF ( 53, COALESCE ( 21, - 75 ) )
----
3233

query I rowsort
SELECT - 7 * 71
----
-497

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT ALL - 89 DIV - + COALESCE ( ( CASE 86 WHEN + ( 28 ) * 72 + 74 * + CASE - 26 * - 36 WHEN ( + 49 ) * - 2 THEN 6 WHEN - 3 THEN NULL ELSE NULL END THEN + 7 * + 87 + + ( + 28 + + 91 ) WHEN 73 + - 69 THEN 94 END ), + 68 - ( 75 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL - 89 / - + COALESCE ( ( CASE 86 WHEN + ( 28 ) * 72 + 74 * + CASE - 26 * - 36 WHEN ( + 49 ) * - 2 THEN 6 WHEN - 3 THEN NULL ELSE NULL END THEN + 7 * + 87 + + ( + 28 + + 91 ) WHEN 73 + - 69 THEN 94 END ), + 68 - ( 75 ) ) AS col0
----
-12

query I rowsort
SELECT DISTINCT + 16 * 5
----
80

query I rowsort
SELECT ALL - 62 * + 14
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT - 72 / + CASE - 80 WHEN - NULLIF ( 33, + 22 ) THEN COUNT( * ) WHEN + 3 * 89 + + 24 THEN 59 + + 81 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT - 72 / + CASE - 80 WHEN - NULLIF ( 33, + 22 ) THEN COUNT ( * ) WHEN + 3 * 89 + + 24 THEN 59 + + 81 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT - 27 * + 15 * + + COUNT( ALL 76 ) + 59
----
-346

skipif mysql # not compatible
query I rowsort label-8946
SELECT - 27 * + 15 * + + COUNT ( ALL 76 ) + 59
----
-346

query I rowsort
SELECT + 97 * + - 67 AS col2
----
-6499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT + COALESCE ( 32, + COALESCE ( + ( - 89 ), + 93 + + NULLIF ( - 48, 46 * 40 ), - CASE - 6 WHEN ( MIN( DISTINCT CAST( + ( CAST( - ( 70 ) AS SIGNED ) ) AS SIGNED ) ) ) + 48 THEN CASE COALESCE ( - 19, 95, - 5 * 94 ) WHEN 49 THEN 90 * + 8 END ELSE 51 + 61 END ) + + 53 ) + 63 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8948
SELECT + COALESCE ( 32, + COALESCE ( + ( - 89 ), + 93 + + NULLIF ( - 48, 46 * 40 ), - CASE - 6 WHEN ( MIN ( DISTINCT CAST ( + ( CAST ( - ( 70 ) AS INTEGER ) ) AS INTEGER ) ) ) + 48 THEN CASE COALESCE ( - 19, 95, - 5 * 94 ) WHEN 49 THEN 90 * + 8 END ELSE 51 + 61 END ) + + 53 ) + 63 AS col0
----
95

query I rowsort
SELECT ALL - 33 * - - 62 AS col2
----
-2046

query I rowsort
SELECT DISTINCT - - ( - 46 ) AS col2
----
-46

query I rowsort
SELECT ALL + + 76 + - - 51 AS col0
----
127

query I rowsort
SELECT DISTINCT - 84 + + 75 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT 78 * + CAST( NULL AS SIGNED ) - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT 78 * + CAST ( NULL AS INTEGER ) - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT 77 + + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8954
SELECT 77 + + COUNT ( * ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT - 99 - + COUNT( * ) * + 14 + + 5 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-8955
SELECT - 99 - + COUNT ( * ) * + 14 + + 5 AS col1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT DISTINCT - + SUM( DISTINCT - 93 ) + - - 22
----
115

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT - + SUM ( DISTINCT - 93 ) + - - 22
----
115

query II rowsort
SELECT + 8, 86 AS col2
----
8
86

query I rowsort
SELECT 66 + - - 35 col0
----
101

query I rowsort
SELECT ALL 87 * - 94
----
-8178

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8960
SELECT ALL CASE 82 WHEN + NULLIF ( 17, 97 ) * 85 + CAST( - COUNT( * ) AS DECIMAL ) THEN 18 END + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL CASE 82 WHEN + NULLIF ( 17, 97 ) * 85 + CAST ( - COUNT ( * ) AS REAL ) THEN 18 END + 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8961
SELECT + 65 + + CAST( NULL AS SIGNED ) / + COALESCE ( + COUNT( * ), 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT + 65 + + CAST ( NULL AS INTEGER ) / + COALESCE ( + COUNT ( * ), 37 )
----
NULL

query I rowsort
SELECT DISTINCT - 90 * - ( - 64 )
----
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT COUNT( * ) + + - 70 col1
----
-69

skipif mysql # not compatible
query I rowsort label-8963
SELECT COUNT ( * ) + + - 70 col1
----
-69

query I rowsort
SELECT ALL + + 83 + + ( - - 36 ) + 50 * 42 AS col2
----
2219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8965
SELECT ALL COUNT( * ) + - 21 DIV + 82 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL COUNT ( * ) + - 21 / + 82 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT DISTINCT COUNT( * ) - + - 57
----
58

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT COUNT ( * ) - + - 57
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8967
SELECT COALESCE ( - CAST( 43 AS SIGNED ), - - COUNT( * ) ) * 76 AS col0
----
-3268

skipif mysql # not compatible
query I rowsort label-8967
SELECT COALESCE ( - CAST ( 43 AS INTEGER ), - - COUNT ( * ) ) * 76 AS col0
----
-3268

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT 21 - COUNT( * ) + - + 4
----
16

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT 21 - COUNT ( * ) + - + 4
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8969
SELECT ALL COUNT( ( - 23 ) ) DIV - CAST( 13 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL COUNT ( ( - 23 ) ) / - CAST ( 13 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT 42 + ( + 21 ) + ( - 32 ) + COUNT( DISTINCT ( 83 ) )
----
32

skipif mysql # not compatible
query I rowsort label-8970
SELECT 42 + ( + 21 ) + ( - 32 ) + COUNT ( DISTINCT ( 83 ) )
----
32

query I rowsort
SELECT 13 * + - CASE - 35 WHEN + 69 THEN + 47 - + 0 END * 55 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8972
SELECT 51 + COUNT( - CAST( 76 AS DECIMAL ) ) col2
----
52

skipif mysql # not compatible
query I rowsort label-8972
SELECT 51 + COUNT ( - CAST ( 76 AS REAL ) ) col2
----
52

query I rowsort
SELECT ALL 8 * 98 * - - 29 AS col1
----
22736

query II rowsort
SELECT 38 * 81 AS col2, NULLIF ( + 14, - 93 ) * 35 + 63
----
3078
553

query I rowsort
SELECT DISTINCT 37 * 82 AS col1
----
3034

query I rowsort
SELECT ALL - NULLIF ( - 55, - ( + 18 ) * 39 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT SUM( + 23 ) * - CAST( - 59 AS SIGNED ) * 49 AS col0
----
66493

skipif mysql # not compatible
query I rowsort label-8977
SELECT SUM ( + 23 ) * - CAST ( - 59 AS INTEGER ) * 49 AS col0
----
66493

query I rowsort
SELECT 28 * + + 85 * - - 9 AS col2
----
21420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8979
SELECT DISTINCT COUNT( * ) * + - COALESCE ( + 21, 10 DIV - 98 )
----
-21

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT COUNT ( * ) * + - COALESCE ( + 21, 10 / - 98 )
----
-21

query I rowsort
SELECT 73 + - 93 + + + 19 * + ( 70 ) * + 8 AS col1
----
10620

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8981
SELECT DISTINCT - NULLIF ( + 67, + CAST( NULL AS DECIMAL ) )
----
-67

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT - NULLIF ( + 67, + CAST ( NULL AS REAL ) )
----
-67

query I rowsort
SELECT ALL + - 15 + + - 13 AS col1
----
-28

query I rowsort
SELECT ALL - COALESCE ( - 1, - 29 ) AS col1
----
1

query I rowsort
SELECT + 34 + - + 68 + + + 99 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT + 57 * 56 * + - 88 * - 96 + + 17 - - COALESCE ( - 41 - - 93 * + 58, 74 + COUNT( * ) )
----
26971386

skipif mysql # not compatible
query I rowsort label-8985
SELECT + 57 * 56 * + - 88 * - 96 + + 17 - - COALESCE ( - 41 - - 93 * + 58, 74 + COUNT ( * ) )
----
26971386

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL - + COALESCE ( - - MIN( - 27 ), - 13 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - + COALESCE ( - - MIN ( - 27 ), - 13 ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT ALL + - NULLIF ( SUM( DISTINCT + + 85 ), - CASE ( - MIN( 60 ) ) WHEN 63 THEN NULL WHEN 9 THEN - COALESCE ( + 98, 56 ) WHEN CAST( ( AVG ( - 78 ) ) AS SIGNED ) THEN + 61 * - COUNT( * ) + - 71 WHEN - 66 * + 3 THEN NULL ELSE NULL END ) * 55
----
-4675

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL + - NULLIF ( SUM ( DISTINCT + + 85 ), - CASE ( - MIN ( 60 ) ) WHEN 63 THEN NULL WHEN 9 THEN - COALESCE ( + 98, 56 ) WHEN CAST ( ( AVG ( - 78 ) ) AS INTEGER ) THEN + 61 * - COUNT ( * ) + - 71 WHEN - 66 * + 3 THEN NULL ELSE NULL END ) * 55
----
-4675

query I rowsort
SELECT ALL 17 + - + 68
----
-51

query I rowsort
SELECT 15 + + 10
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT - 14 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT - 14 / - 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT + + 64 * 88 + ( COUNT( * ) ) * COUNT( * ) AS col0
----
5633

skipif mysql # not compatible
query I rowsort label-8991
SELECT + + 64 * 88 + ( COUNT ( * ) ) * COUNT ( * ) AS col0
----
5633

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT DISTINCT + 80 + - MIN( 7 )
----
73

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + 80 + - MIN ( 7 )
----
73

query I rowsort
SELECT ALL - - 61 * - - 87
----
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + - MAX( + 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8994
SELECT + - MAX ( + 86 )
----
-86

query I rowsort
SELECT + 97 + - 70
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL + 30 + 21 * + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL + 30 + 21 * + COUNT ( * ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8997
SELECT - + CASE 46 WHEN - - 96 + - + 19 THEN + 73 * + NULLIF ( - SUM( + CAST( NULL AS SIGNED ) ), - ( - 19 ) * - 23 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT - + CASE 46 WHEN - - 96 + - + 19 THEN + 73 * + NULLIF ( - SUM ( + CAST ( NULL AS INTEGER ) ), - ( - 19 ) * - 23 ) END AS col1
----
NULL

query I rowsort
SELECT ALL - - 69 * 14 * - - 29
----
28014

query I rowsort
SELECT + 63 * + - NULLIF ( - - 37, 96 ) AS col2
----
-2331

query I rowsort
SELECT 30 + - 63 * + 75
----
-4695

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL + - SUM( DISTINCT 34 ) - - ( + ( + 91 ) ) - NULLIF ( - 66, - 28 + 93 * 86 ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL + - SUM ( DISTINCT 34 ) - - ( + ( + 91 ) ) - NULLIF ( - 66, - 28 + 93 * 86 ) AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT DISTINCT MIN( - - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT MIN ( - - 2 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9003
SELECT 97 + + CASE + - COUNT( * ) WHEN - COUNT( * ) + + 43 - - 38 THEN + 86 + 57 WHEN 78 THEN NULL ELSE 14 DIV + 34 + ( - 19 ) END
----
78

skipif mysql # not compatible
query I rowsort label-9003
SELECT 97 + + CASE + - COUNT ( * ) WHEN - COUNT ( * ) + + 43 - - 38 THEN + 86 + 57 WHEN 78 THEN NULL ELSE 14 / + 34 + ( - 19 ) END
----
78

query I rowsort
SELECT ALL + 6 * - 78 * + 95 AS col1
----
-44460

query I rowsort
SELECT 13 * + 46 AS col0
----
598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9006
SELECT DISTINCT + NULLIF ( - 1, COUNT( * ) + + 14 ) DIV - + MAX( ALL + 58 ) + - 33
----
-33

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT + NULLIF ( - 1, COUNT ( * ) + + 14 ) / - + MAX ( ALL + 58 ) + - 33
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9007
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) - 88 + - 13 + + COUNT( * ) * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) - 88 + - 13 + + COUNT ( * ) * 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL + 6 * - SUM( + - 10 )
----
60

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL + 6 * - SUM ( + - 10 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT COUNT( * ) - + - 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9009
SELECT COUNT ( * ) - + - 80 AS col1
----
81

onlyif mysql # aggregate syntax: 
query III rowsort label-9010
SELECT DISTINCT COUNT( * ) AS col2, 76 * 67 AS col0, + + 27 + + + ( + 12 ) * - 81 AS col2
----
1
5092
-945

skipif mysql # not compatible
query III rowsort label-9010
SELECT DISTINCT COUNT ( * ) AS col2, 76 * 67 AS col0, + + 27 + + + ( + 12 ) * - 81 AS col2
----
1
5092
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9011
SELECT ALL - CAST( NULL AS SIGNED ) * + - 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 35 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT 48 * - 94 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT 48 * - 94 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT CASE - 15 WHEN + - 92 + - - 27 THEN - 29 ELSE NULL END * - 46
----
NULL

query I rowsort
SELECT 31 + 39 * + 26 * 16 + - 79 + + 90
----
16266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9015
SELECT COUNT( * ) DIV - 64 - 3 + + 11
----
8

skipif mysql # not compatible
query I rowsort label-9015
SELECT COUNT ( * ) / - 64 - 3 + + 11
----
8

query I rowsort
SELECT 38 * + + 40 * + - 86 * - 44 col0
----
5751680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9017
SELECT CAST( + + SUM( + 50 ) AS SIGNED ) - 59
----
-9

skipif mysql # not compatible
query I rowsort label-9017
SELECT CAST ( + + SUM ( + 50 ) AS INTEGER ) - 59
----
-9

query I rowsort
SELECT ALL 74 * - COALESCE ( - 5, + 30 ) + 52 AS col0
----
422

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT 35 * + + COUNT( * ) + + 67 * 29 AS col1
----
1978

skipif mysql # not compatible
query I rowsort label-9019
SELECT 35 * + + COUNT ( * ) + + 67 * 29 AS col1
----
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT + - 97 + - MIN( DISTINCT 70 ) + 34 + SUM( 88 ) - 45
----
-90

skipif mysql # not compatible
query I rowsort label-9020
SELECT + - 97 + - MIN ( DISTINCT 70 ) + 34 + SUM ( 88 ) - 45
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL + - COUNT( + NULLIF ( - 85, + - 66 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + - COUNT ( + NULLIF ( - 85, + - 66 ) ) AS col2
----
-1

query I rowsort
SELECT + + 22 + - 81
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL - 4 * - 35 * COALESCE ( + + 78, + - 60 + COUNT( * ) ) + COUNT( * ) * + 83 + - 2 * COALESCE ( - 67, 61 ) AS col0
----
11137

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL - 4 * - 35 * COALESCE ( + + 78, + - 60 + COUNT ( * ) ) + COUNT ( * ) * + 83 + - 2 * COALESCE ( - 67, 61 ) AS col0
----
11137

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT + COUNT( + + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-9024
SELECT + COUNT ( + + 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT DISTINCT - + ( - COUNT( * ) ) * + + 30 + + COUNT( ALL - 82 ) + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT - + ( - COUNT ( * ) ) * + + 30 + + COUNT ( ALL - 82 ) + + COUNT ( * )
----
32

query II rowsort
SELECT + + 83 AS col1, - 78 AS col1
----
83
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT - 0 * - - MIN( ALL + + COALESCE ( 68, + - 67 * 50 ) ) + 51 * + 42
----
2142

skipif mysql # not compatible
query I rowsort label-9027
SELECT - 0 * - - MIN ( ALL + + COALESCE ( 68, + - 67 * 50 ) ) + 51 * + 42
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT - + 75 * + - COUNT( * ) + - - 23 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9028
SELECT - + 75 * + - COUNT ( * ) + - - 23 AS col2
----
98

query I rowsort
SELECT ALL - - 62 * 34 - + 47 col2
----
2061

query I rowsort
SELECT + - 95 * + 91 * + 12 AS col1
----
-103740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9031
SELECT DISTINCT - + ( - CASE - NULLIF ( COUNT( * ), + + 39 + - 48 ) WHEN + 9 * + CAST( NULL AS SIGNED ) THEN NULL WHEN MIN( - 82 ) * + 32 THEN - 91 + - 28 * + 13 END ) * 48 - - COUNT( * ) * 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT - + ( - CASE - NULLIF ( COUNT ( * ), + + 39 + - 48 ) WHEN + 9 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN MIN ( - 82 ) * + 32 THEN - 91 + - 28 * + 13 END ) * 48 - - COUNT ( * ) * 19 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT DISTINCT + CAST( + CAST( - COUNT( DISTINCT 89 ) AS SIGNED ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT + CAST ( + CAST ( - COUNT ( DISTINCT 89 ) AS INTEGER ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL COUNT( * ) - - 0 + 78 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL COUNT ( * ) - - 0 + 78 AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9034
SELECT - MAX( - 74 ) * - + 97 AS col2, 77 AS col0
----
-7178
77

skipif mysql # not compatible
query II rowsort label-9034
SELECT - MAX ( - 74 ) * - + 97 AS col2, 77 AS col0
----
-7178
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT + + 18 + - + 60 + + MAX( DISTINCT 31 )
----
-11

skipif mysql # not compatible
query I rowsort label-9035
SELECT + + 18 + - + 60 + + MAX ( DISTINCT 31 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT - + 13 - - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9036
SELECT - + 13 - - COUNT ( * )
----
-12

query I rowsort
SELECT DISTINCT + 7 * + 94
----
658

query I rowsort
SELECT 43 * 96 + - + ( - 97 )
----
4225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9039
SELECT - COUNT( * ) DIV + + 39 col0
----
0

skipif mysql # not compatible
query I rowsort label-9039
SELECT - COUNT ( * ) / + + 39 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL - 74 * + - SUM( DISTINCT - 9 ) * - MIN( ALL + - 72 ) AS col1
----
-47952

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - 74 * + - SUM ( DISTINCT - 9 ) * - MIN ( ALL + - 72 ) AS col1
----
-47952

query I rowsort
SELECT + 45 * - 50
----
-2250

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9042
SELECT - 51 + + - ( - + NULLIF ( + MAX( DISTINCT - 17 ), - CAST( NULL AS DECIMAL ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-9042
SELECT - 51 + + - ( - + NULLIF ( + MAX ( DISTINCT - 17 ), - CAST ( NULL AS REAL ) ) )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9043
SELECT ALL COALESCE ( + 65, - COALESCE ( + 82, ( + AVG ( 31 ) ) * + COUNT( * ), 22 * CAST( + 62 AS SIGNED ) ) DIV 93, - SUM( DISTINCT 97 ) ) col1
----
65

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL COALESCE ( + 65, - COALESCE ( + 82, ( + AVG ( 31 ) ) * + COUNT ( * ), 22 * CAST ( + 62 AS INTEGER ) ) / 93, - SUM ( DISTINCT 97 ) ) col1
----
65

query I rowsort
SELECT - 21 * + 29 * + - 90 AS col1
----
54810

query II rowsort
SELECT 38 AS col1, 79 + - 71 col0
----
38
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT ALL CASE - 97 WHEN + COUNT( * ) THEN NULL WHEN + - CAST( - 28 AS SIGNED ) THEN - 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL CASE - 97 WHEN + COUNT ( * ) THEN NULL WHEN + - CAST ( - 28 AS INTEGER ) THEN - 89 ELSE NULL END
----
NULL

query I rowsort
SELECT - 38 + - 49 + + + 9
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL COUNT( * ) * - COALESCE ( - 29, + ( + 83 ) * + 25 - 4, 8, + 30 )
----
29

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL COUNT ( * ) * - COALESCE ( - 29, + ( + 83 ) * + 25 - 4, 8, + 30 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9049
SELECT - 91 + - + COUNT( * ) AS col1, 23 * 97 AS col0
----
-92
2231

skipif mysql # not compatible
query II rowsort label-9049
SELECT - 91 + - + COUNT ( * ) AS col1, 23 * 97 AS col0
----
-92
2231

query I rowsort
SELECT - 55 * + 6
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL ( + COUNT( ALL + - 82 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL ( + COUNT ( ALL + - 82 ) )
----
1

query I rowsort
SELECT ALL - 3 + + + 83 * ( + 90 ) + 30 col0
----
7497

query II rowsort
SELECT - 36, 37 + 68 AS col0
----
-36
105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9054
SELECT + CAST( NULL AS DECIMAL ) + - - 65 + ( + 25 ) * + CASE 67 WHEN COUNT( * ) THEN 3 * COUNT( * ) + 0 * 88 WHEN - 48 THEN 10 END / + 85 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT + CAST ( NULL AS REAL ) + - - 65 + ( + 25 ) * + CASE 67 WHEN COUNT ( * ) THEN 3 * COUNT ( * ) + 0 * 88 WHEN - 48 THEN 10 END / + 85 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT - NULLIF ( - 93, + 70 * - 43 * + - COUNT( * ) * 91 + + MAX( 19 ) ) * 34 col0
----
3162

skipif mysql # not compatible
query I rowsort label-9055
SELECT - NULLIF ( - 93, + 70 * - 43 * + - COUNT ( * ) * 91 + + MAX ( 19 ) ) * 34 col0
----
3162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9056
SELECT ALL + MAX( - 59 ) DIV + MIN( DISTINCT 14 ) + - - 15 * - 60 - - 30
----
-874

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + MAX ( - 59 ) / + MIN ( DISTINCT 14 ) + - - 15 * - 60 - - 30
----
-874

query I rowsort
SELECT ALL 36 * - 51
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT DISTINCT + CASE + - 14 WHEN + + 65 THEN + - 94 * - COUNT( * ) - - 92 ELSE NULL END + + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT + CASE + - 14 WHEN + + 65 THEN + - 94 * - COUNT ( * ) - - 92 ELSE NULL END + + 65 col2
----
NULL

query II rowsort
SELECT ALL + 40 AS col0, - 25 AS col0
----
40
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9060
SELECT - 20 DIV + + SUM( 40 )
----
0

skipif mysql # not compatible
query I rowsort label-9060
SELECT - 20 / + + SUM ( 40 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9061
SELECT ALL + AVG ( DISTINCT + 66 ) / - CASE - + MAX( 27 ) WHEN 60 THEN 25 ELSE - 16 END + 15 / + CASE 80 WHEN COUNT( * ) + + 14 / CASE ( 5 ) WHEN - 90 THEN NULL WHEN - 42 * + 60 - ( - COUNT( * ) ) THEN - CASE CAST( - COALESCE ( - ( 30 ), + 84 * + 66 ) AS SIGNED ) WHEN CASE - 54 WHEN 4 THEN 67 * 62 WHEN 52 - 75 THEN NULL END * + 15 THEN NULL ELSE - 53 END ELSE - NULLIF ( - 13, 31 ) END THEN ( + CASE + 7 WHEN 39 THEN 18 + 83 END ) WHEN 5 THEN + 8 / 43 WHEN + 49 + 56 * + 57 THEN 47 - - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL + AVG ( DISTINCT + 66 ) / - CASE - + MAX ( 27 ) WHEN 60 THEN 25 ELSE - 16 END + 15 / + CASE 80 WHEN COUNT ( * ) + + 14 / CASE ( 5 ) WHEN - 90 THEN NULL WHEN - 42 * + 60 - ( - COUNT ( * ) ) THEN - CASE CAST ( - COALESCE ( - ( 30 ), + 84 * + 66 ) AS INTEGER ) WHEN CASE - 54 WHEN 4 THEN 67 * 62 WHEN 52 - 75 THEN NULL END * + 15 THEN NULL ELSE - 53 END ELSE - NULLIF ( - 13, 31 ) END THEN ( + CASE + 7 WHEN 39 THEN 18 + 83 END ) WHEN 5 THEN + 8 / 43 WHEN + 49 + 56 * + 57 THEN 47 - - 66 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9062
SELECT DISTINCT + CAST( - 13 AS SIGNED ) * + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT + CAST ( - 13 AS INTEGER ) * + COUNT ( * )
----
-13

query II rowsort
SELECT + 69 AS col0, 42 AS col1
----
69
42

query II rowsort
SELECT + 3 AS col2, 67
----
3
67

query I rowsort
SELECT + + 85 * - - 85 col0
----
7225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9066
SELECT + + 29 col0, - CASE + 28 WHEN - 96 THEN - COUNT( * ) WHEN + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-9066
SELECT + + 29 col0, - CASE + 28 WHEN - 96 THEN - COUNT ( * ) WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT + ( SUM( DISTINCT + - 53 ) ) + + MAX( ALL - 56 )
----
-109

skipif mysql # not compatible
query I rowsort label-9067
SELECT + ( SUM ( DISTINCT + - 53 ) ) + + MAX ( ALL - 56 )
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9068
SELECT DISTINCT 56 DIV + 26 + + - MAX( DISTINCT - 67 ) + 73 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT 56 / + 26 + + - MAX ( DISTINCT - 67 ) + 73 AS col0
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT ALL 94 DIV + 53 - - - 2
----
-1

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL 94 / + 53 - - - 2
----
-1

query II rowsort
SELECT + 26 AS col2, 57
----
26
57

query II rowsort
SELECT + 37, + 23 AS col0
----
37
23

query I rowsort
SELECT ALL - - 85 * + 36 - - 88 col1
----
3148

query I rowsort
SELECT + 23 - + 44 + + + 55
----
34

query II rowsort
SELECT ALL + 65 AS col1, CASE + + 3 WHEN + + 8 THEN 69 ELSE NULL END col1
----
65
NULL

query II rowsort
SELECT DISTINCT + + 1, + ( + - 91 ) + - 24 + ( 72 ) AS col2
----
1
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL 76 * - 73 + + COUNT( * )
----
-5547

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL 76 * - 73 + + COUNT ( * )
----
-5547

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9077
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 17 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 24 * - 99 + 65 AS col0
----
-2311

query I rowsort
SELECT + - 89 + - - 21 AS col2
----
-68

query I rowsort
SELECT + + ( - 73 ) * - 64
----
4672

onlyif mysql # DIV for integer division: 
query II rowsort label-9081
SELECT ALL + 78 * 8 AS col1, COALESCE ( - 11, + ( + + 82 ) * - 67 - 55, 12 DIV 17 + 91 ) AS col2
----
624
-11

skipif mysql # not compatible
query II rowsort label-9081
SELECT ALL + 78 * 8 AS col1, COALESCE ( - 11, + ( + + 82 ) * - 67 - 55, 12 / 17 + 91 ) AS col2
----
624
-11

query I rowsort
SELECT DISTINCT + - NULLIF ( - 9, - 30 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT + - COUNT( * ) - 16 - ( - 44 )
----
27

skipif mysql # not compatible
query I rowsort label-9083
SELECT + - COUNT ( * ) - 16 - ( - 44 )
----
27

query I rowsort
SELECT + 21 * 25
----
525

query I rowsort
SELECT - 27 * 14
----
-378

query II rowsort
SELECT ALL - 43 * 75 AS col0, 16 * - - 81 AS col0
----
-3225
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL + NULLIF ( MAX( DISTINCT + 99 ), MAX( 26 ) ) * + + 22 + - NULLIF ( + 47, - 24 / COUNT( * ) + 61 ) * NULLIF ( + 0, MAX( - 17 ) * + 66 ) + COALESCE ( 31 + COUNT( * ), + COUNT( * ) ) AS col1
----
2210

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL + NULLIF ( MAX ( DISTINCT + 99 ), MAX ( 26 ) ) * + + 22 + - NULLIF ( + 47, - 24 / COUNT ( * ) + 61 ) * NULLIF ( + 0, MAX ( - 17 ) * + 66 ) + COALESCE ( 31 + COUNT ( * ), + COUNT ( * ) ) AS col1
----
2210

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL - 34 * - + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL - 34 * - + COUNT ( * ) AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT DISTINCT 14 DIV - + 5
----
-2

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT 14 / - + 5
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT DISTINCT COUNT( DISTINCT - + 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT COUNT ( DISTINCT - + 2 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL 49 + - - ( MIN( DISTINCT - 67 ) ) * - - 19 + + 10
----
-1214

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL 49 + - - ( MIN ( DISTINCT - 67 ) ) * - - 19 + + 10
----
-1214

query I rowsort
SELECT + 55 + + 44
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9093
SELECT + COUNT( * ) * 76 AS col0, 60 + - 54 * 80 col2
----
76
-4260

skipif mysql # not compatible
query II rowsort label-9093
SELECT + COUNT ( * ) * 76 AS col0, 60 + - 54 * 80 col2
----
76
-4260

query I rowsort
SELECT ALL + 71 + - ( - 98 )
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT ALL CAST( + 78 AS SIGNED ) * - 69 * - ( + 25 ) + 27 + + 24 * 85 AS col1
----
136617

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL CAST ( + 78 AS INTEGER ) * - 69 * - ( + 25 ) + 27 + + 24 * 85 AS col1
----
136617

query I rowsort
SELECT 66 + 99 AS col1
----
165

query I rowsort
SELECT ALL 7 + + - 33 * - 56 AS col2
----
1855

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT 76 + - - 45 + - 23 * - COUNT( * ) * - + 73 + + 7 * + + MIN( ALL 31 )
----
-1341

skipif mysql # not compatible
query I rowsort label-9098
SELECT 76 + - - 45 + - 23 * - COUNT ( * ) * - + 73 + + 7 * + + MIN ( ALL 31 )
----
-1341

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL - 8 + - 85 + COUNT( + 68 ) * + 79 * + + 42 * 28
----
92811

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL - 8 + - 85 + COUNT ( + 68 ) * + 79 * + + 42 * 28
----
92811

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL - SUM( DISTINCT 63 ) + - 26
----
-89

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - SUM ( DISTINCT 63 ) + - 26
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9101
SELECT 45 * - - COUNT( * ) + - 86 - + CAST( NULL AS SIGNED ) * + + 73 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT 45 * - - COUNT ( * ) + - 86 - + CAST ( NULL AS INTEGER ) * + + 73 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT - MAX( - + 78 ) * 1 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9102
SELECT - MAX ( - + 78 ) * 1 AS col2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9103
SELECT + - COUNT( * ) DIV + 60 + + 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-9103
SELECT + - COUNT ( * ) / + 60 + + 85 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL - MIN( - + 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL - MIN ( - + 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT 66 * 56 * + + COUNT( * ) * + ( 17 ) * - 86 + 33 DIV 99 col1
----
-5403552

skipif mysql # not compatible
query I rowsort label-9105
SELECT 66 * 56 * + + COUNT ( * ) * + ( 17 ) * - 86 + 33 / 99 col1
----
-5403552

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL - SUM( DISTINCT - + ( 1 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL - SUM ( DISTINCT - + ( 1 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9107
SELECT + ( + + 23 ) * + 59 + + 70 DIV + + COUNT( * ) + + + 76
----
1503

skipif mysql # not compatible
query I rowsort label-9107
SELECT + ( + + 23 ) * + 59 + + 70 / + + COUNT ( * ) + + + 76
----
1503

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT ALL 53 DIV + - 20 + + ( - 61 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL 53 / + - 20 + + ( - 61 ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT 38 DIV 22 + - 84 * 21 AS col2
----
-1763

skipif mysql # not compatible
query I rowsort label-9109
SELECT 38 / 22 + - 84 * 21 AS col2
----
-1763

onlyif mysql # aggregate syntax: 
query II rowsort label-9110
SELECT ALL - - MIN( DISTINCT - 0 ) AS col1, 37
----
0
37

skipif mysql # not compatible
query II rowsort label-9110
SELECT ALL - - MIN ( DISTINCT - 0 ) AS col1, 37
----
0
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT + - MAX( DISTINCT + COALESCE ( + ( - 97 ), 94 ) )
----
97

skipif mysql # not compatible
query I rowsort label-9111
SELECT + - MAX ( DISTINCT + COALESCE ( + ( - 97 ), 94 ) )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9112
SELECT ALL - 97, + 41 + + - 2 + - NULLIF ( - 23, - COUNT( 97 ) * + CASE ( - 67 ) WHEN - 22 THEN - NULLIF ( 2, 16 ) ELSE + CAST( - 36 AS SIGNED ) END ) * COUNT( * ) AS col1
----
-97
62

skipif mysql # not compatible
query II rowsort label-9112
SELECT ALL - 97, + 41 + + - 2 + - NULLIF ( - 23, - COUNT ( 97 ) * + CASE ( - 67 ) WHEN - 22 THEN - NULLIF ( 2, 16 ) ELSE + CAST ( - 36 AS INTEGER ) END ) * COUNT ( * ) AS col1
----
-97
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9113
SELECT 38 * - CAST( + 30 AS SIGNED ) * 65 + + 29 AS col2
----
-74071

skipif mysql # not compatible
query I rowsort label-9113
SELECT 38 * - CAST ( + 30 AS INTEGER ) * 65 + + 29 AS col2
----
-74071

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL - CASE - 50 WHEN - 99 * - 0 - + - 11 THEN + COUNT( * ) WHEN MAX( - 87 ) + + ( 72 ) THEN 86 + - 22 * 4 ELSE + 3 END col1
----
-3

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - CASE - 50 WHEN - 99 * - 0 - + - 11 THEN + COUNT ( * ) WHEN MAX ( - 87 ) + + ( 72 ) THEN 86 + - 22 * 4 ELSE + 3 END col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT - ( - COUNT( * ) ) * - 89 + - 93 * 9 DIV - 23 col1
----
-53

skipif mysql # not compatible
query I rowsort label-9115
SELECT - ( - COUNT ( * ) ) * - 89 + - 93 * 9 / - 23 col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT ALL 62 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL 62 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 51 * - 18
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT 22 + + 33 + - CASE ( ( ( + - 44 ) ) ) WHEN - - MIN( DISTINCT + 73 ) - 23 * + 3 THEN NULL WHEN - 58 THEN + 6 - AVG ( - 77 ) END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT 22 + + 33 + - CASE ( ( ( + - 44 ) ) ) WHEN - - MIN ( DISTINCT + 73 ) - 23 * + 3 THEN NULL WHEN - 58 THEN + 6 - AVG ( - 77 ) END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 57 + + 50 AS col2
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-9120
SELECT - 64 AS col2, COUNT( * )
----
-64
1

skipif mysql # not compatible
query II rowsort label-9120
SELECT - 64 AS col2, COUNT ( * )
----
-64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT DISTINCT 8 + + + 53 * + + COALESCE ( + + ( - + 62 ), + 21 * + - 52 * + 89 * ( + NULLIF ( 83, + 60 * - 2 ) ) + - 35 * - ( + MIN( DISTINCT 38 ) ) ) + + 39 * - 53 AS col2
----
-5345

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT 8 + + + 53 * + + COALESCE ( + + ( - + 62 ), + 21 * + - 52 * + 89 * ( + NULLIF ( 83, + 60 * - 2 ) ) + - 35 * - ( + MIN ( DISTINCT 38 ) ) ) + + 39 * - 53 AS col2
----
-5345

query I rowsort
SELECT ALL 43 + + - 4 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT 47 + + CASE - 77 WHEN 88 + 47 - + + NULLIF ( + - 72, + 4 ) + NULLIF ( SUM( CAST( NULL AS SIGNED ) ) + + MIN( + 76 ), - 87 + + CASE - 47 WHEN 18 / - 36 THEN NULL WHEN 81 THEN COUNT( * ) WHEN 83 THEN NULL ELSE NULL END ) * 56 THEN NULL WHEN 67 * - 6 THEN COALESCE ( 87, ( 63 ) + 20 * + 99, 45 ) ELSE COUNT( ( 45 ) ) END
----
48

skipif mysql # not compatible
query I rowsort label-9123
SELECT 47 + + CASE - 77 WHEN 88 + 47 - + + NULLIF ( + - 72, + 4 ) + NULLIF ( SUM ( CAST ( NULL AS INTEGER ) ) + + MIN ( + 76 ), - 87 + + CASE - 47 WHEN 18 / - 36 THEN NULL WHEN 81 THEN COUNT ( * ) WHEN 83 THEN NULL ELSE NULL END ) * 56 THEN NULL WHEN 67 * - 6 THEN COALESCE ( 87, ( 63 ) + 20 * + 99, 45 ) ELSE COUNT ( ( 45 ) ) END
----
48

query I rowsort
SELECT DISTINCT 73 + - 4
----
69

query I rowsort
SELECT DISTINCT - 94 + 9
----
-85

query I rowsort
SELECT DISTINCT 42 + - + 41 AS col1
----
1

query I rowsort
SELECT DISTINCT - 86 * + 92
----
-7912

query II rowsort
SELECT 95, ( 28 ) AS col1
----
95
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9129
SELECT ALL 60 DIV 60 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL 60 / 60 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT SUM( ALL - - ( + - 75 ) ) DIV - + 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9130
SELECT SUM ( ALL - - ( + - 75 ) ) / - + 50 AS col2
----
1

query I rowsort
SELECT ALL 95 - - + 24
----
119

query I rowsort
SELECT 25 + 31 AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT 12 DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9133
SELECT 12 / + 67 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9134
SELECT ALL 66 AS col1, + 78 + + 58 + - 64 DIV - 12 AS col0
----
66
141

skipif mysql # not compatible
query II rowsort label-9134
SELECT ALL 66 AS col1, + 78 + + 58 + - 64 / - 12 AS col0
----
66
141

query I rowsort
SELECT + + ( 56 )
----
56

query I rowsort
SELECT DISTINCT - + 93 col1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT + + 47 * 74 + + COUNT( * ) + + 74 - + 38 + - 12 * ( - CAST( NULL AS SIGNED ) ) * ( 12 - 36 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT + + 47 * 74 + + COUNT ( * ) + + 74 - + 38 + - 12 * ( - CAST ( NULL AS INTEGER ) ) * ( 12 - 36 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9138
SELECT 73 DIV - 84 + - COUNT( ALL - 60 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9138
SELECT 73 / - 84 + - COUNT ( ALL - 60 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9139
SELECT ALL - MAX( ALL + CASE 7 WHEN 17 THEN + - 45 + - 21 + 2 WHEN 92 THEN - ( 26 ) DIV + 39 ELSE - 2 * 33 END )
----
66

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL - MAX ( ALL + CASE 7 WHEN 17 THEN + - 45 + - 21 + 2 WHEN 92 THEN - ( 26 ) / + 39 ELSE - 2 * 33 END )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9140
SELECT DISTINCT - COUNT( * ) * + - ( CAST( - 42 AS SIGNED ) ) * CASE COALESCE ( - - 75, + 44 * - NULLIF ( 85, + ( + 74 ) + 18 ), 82 ) WHEN + 76 + 20 THEN - 91 WHEN - ( + ( + 70 ) ) * 25 - + 52 THEN 17 * + MIN( ALL 86 ) + 73 * 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT - COUNT ( * ) * + - ( CAST ( - 42 AS INTEGER ) ) * CASE COALESCE ( - - 75, + 44 * - NULLIF ( 85, + ( + 74 ) + 18 ), 82 ) WHEN + 76 + 20 THEN - 91 WHEN - ( + ( + 70 ) ) * 25 - + 52 THEN 17 * + MIN ( ALL 86 ) + 73 * 1 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL - - ( + 69 ) * + + 47 + + - 41 + - CASE NULLIF ( - 59, + 16 ) WHEN 84 THEN - 18 * 26 WHEN + 4 - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL - - ( + 69 ) * + + 47 + + - 41 + - CASE NULLIF ( - 59, + 16 ) WHEN 84 THEN - 18 * 26 WHEN + 4 - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 84 * + 82 AS col2
----
6888

query I rowsort
SELECT - - 46 * + 24 - - + 63 * - - 70
----
5514

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT - MIN( + - 17 ) * - 76
----
-1292

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT - MIN ( + - 17 ) * - 76
----
-1292

query I rowsort
SELECT ALL 3 + - 45
----
-42

query I rowsort
SELECT ALL + ( + 74 ) + + - 69 AS col1
----
5

query I rowsort
SELECT 22 * - - 98 * + - 30
----
-64680

query I rowsort
SELECT 32 * - - 42 AS col0
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL - 71 + + COALESCE ( - 24, + 83 * - - COUNT( * ) * COALESCE ( 63, - SUM( + 66 ) ) + + 0 ) * 5
----
-191

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - 71 + + COALESCE ( - 24, + 83 * - - COUNT ( * ) * COALESCE ( 63, - SUM ( + 66 ) ) + + 0 ) * 5
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT - SUM( ALL - 99 ) * - + 76 * + 81 + + - 11
----
-609455

skipif mysql # not compatible
query I rowsort label-9150
SELECT - SUM ( ALL - 99 ) * - + 76 * + 81 + + - 11
----
-609455

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT - 26 * - CASE - 78 WHEN - 37 THEN 52 END AS col0, - 55 * - + 74 * + 73 + + + COUNT( * ) + 61 * - 37 AS col0
----
NULL
294854

skipif mysql # not compatible
query II rowsort label-9151
SELECT - 26 * - CASE - 78 WHEN - 37 THEN 52 END AS col0, - 55 * - + 74 * + 73 + + + COUNT ( * ) + 61 * - 37 AS col0
----
NULL
294854

query I rowsort
SELECT DISTINCT 55 + - 26 + - 49 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL COUNT( * ) + + + 0
----
1

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL COUNT ( * ) + + + 0
----
1

query I rowsort
SELECT DISTINCT - 36 * - 47 AS col0
----
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + COUNT( * ) * - - ( - + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-9155
SELECT + COUNT ( * ) * - - ( - + 93 )
----
-93

query I rowsort
SELECT ALL 54 - 45 - - 94 * - + 23 - + - 13 + + 17 - - - 83
----
-2206

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT - SUM( ALL - 16 ) * 13
----
208

skipif mysql # not compatible
query I rowsort label-9157
SELECT - SUM ( ALL - 16 ) * 13
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT - SUM( 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9158
SELECT - SUM ( 52 )
----
-52

query I rowsort
SELECT + - 12 - + 28
----
-40

query I rowsort
SELECT ALL + + 70 * - 31 + 23 AS col0
----
-2147

query I rowsort
SELECT + ( + 10 ) + + 49 * - 86
----
-4204

onlyif mysql # aggregate syntax: 
query II rowsort label-9162
SELECT + 3 + 56 AS col1, - COUNT( * )
----
59
-1

skipif mysql # not compatible
query II rowsort label-9162
SELECT + 3 + 56 AS col1, - COUNT ( * )
----
59
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9163
SELECT ALL + - 87 * - COUNT( * ) * ( + + CAST( - CASE 93 WHEN - 79 THEN NULL WHEN 7 THEN + 52 * 70 ELSE - COUNT( * ) END AS SIGNED ) ) col2
----
87

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL + - 87 * - COUNT ( * ) * ( + + CAST ( - CASE 93 WHEN - 79 THEN NULL WHEN 7 THEN + 52 * 70 ELSE - COUNT ( * ) END AS INTEGER ) ) col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9164
SELECT + COUNT( * ) DIV 12 * - 41 + + + 40 + + - 0 + + 61 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-9164
SELECT + COUNT ( * ) / 12 * - 41 + + + 40 + + - 0 + + 61 AS col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9165
SELECT ALL + CAST( NULL AS DECIMAL ) / - 9 * - + 22 / + - SUM( - 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL + CAST ( NULL AS REAL ) / - 9 * - + 22 / + - SUM ( - 82 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9166
SELECT + 55 + - - 89 DIV 53 * - 85 col0, + CAST( NULL AS SIGNED ) * - - 4
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-9166
SELECT + 55 + - - 89 / 53 * - 85 col0, + CAST ( NULL AS INTEGER ) * - - 4
----
-30
NULL

query I rowsort
SELECT + - 71 - 29
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT + ( - - ( - 36 ) ) + - COUNT( ALL 75 ) + NULLIF ( + 77, + 97 ) * + MIN( 90 ) - 61 * 39 AS col0
----
4514

skipif mysql # not compatible
query I rowsort label-9168
SELECT + ( - - ( - 36 ) ) + - COUNT ( ALL 75 ) + NULLIF ( + 77, + 97 ) * + MIN ( 90 ) - 61 * 39 AS col0
----
4514

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9169
SELECT ALL + 91 * + - CAST( NULL AS SIGNED ) / - CAST( + - 83 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL + 91 * + - CAST ( NULL AS INTEGER ) / - CAST ( + - 83 AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9170
SELECT + - 85 / - NULLIF ( + ( + + CASE - + 99 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 33 / + COUNT( * ) THEN - ( - 46 ) END ), 78 / + ( ( + 1 ) ) + 29 * 64 ) + - 24 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT + - 85 / - NULLIF ( + ( + + CASE - + 99 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 33 / + COUNT ( * ) THEN - ( - 46 ) END ), 78 / + ( ( + 1 ) ) + 29 * 64 ) + - 24 * - 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9171
SELECT - - SUM( DISTINCT 57 ) DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-9171
SELECT - - SUM ( DISTINCT 57 ) / 37
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9172
SELECT - - NULLIF ( 48, + + 91 ) + + 70 DIV + COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-9172
SELECT - - NULLIF ( 48, + + 91 ) + + 70 / + COUNT ( * )
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9173
SELECT ALL - CAST( - + 24 AS SIGNED ) * ( - 97 ) + - - COUNT( DISTINCT 62 ) + + MAX( DISTINCT + 24 ) + COUNT( * )
----
-2302

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL - CAST ( - + 24 AS INTEGER ) * ( - 97 ) + - - COUNT ( DISTINCT 62 ) + + MAX ( DISTINCT + 24 ) + COUNT ( * )
----
-2302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT - 11 / + + 8 * + 89 * - 15 + - 83 - CAST( + 7 AS SIGNED ) + - 86 + - + CAST( NULL AS SIGNED ) + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT - 11 / + + 8 * + 89 * - 15 + - 83 - CAST ( + 7 AS INTEGER ) + - 86 + - + CAST ( NULL AS INTEGER ) + 1 AS col0
----
NULL

query I rowsort
SELECT + + 61 + + 58 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL + - ( COUNT( * ) ) * 0 + + - 68 / + NULLIF ( CASE 9 WHEN + ( 77 ) THEN 89 + + 54 * 16 WHEN 69 * - 50 THEN NULL END, 93 * + ( 65 ) + - 12 ) * + 87 + + 86 * 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL + - ( COUNT ( * ) ) * 0 + + - 68 / + NULLIF ( CASE 9 WHEN + ( 77 ) THEN 89 + + 54 * 16 WHEN 69 * - 50 THEN NULL END, 93 * + ( 65 ) + - 12 ) * + 87 + + 86 * 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL + CASE 5 WHEN CASE + 78 WHEN + 92 - 2 + + 14 THEN + MAX( + 24 ) WHEN + 3 THEN 92 END * 21 + COUNT( * ) THEN + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + CASE 5 WHEN CASE + 78 WHEN + 92 - 2 + + 14 THEN + MAX ( + 24 ) WHEN + 3 THEN 92 END * 21 + COUNT ( * ) THEN + 41 ELSE NULL END
----
NULL

query I rowsort
SELECT + 39 * + 51 * + 16 * 75
----
2386800

query II rowsort
SELECT + 51 AS col1, 52 * - 52
----
51
-2704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9180
SELECT - 74 DIV - 53 + COUNT( + 70 )
----
2

skipif mysql # not compatible
query I rowsort label-9180
SELECT - 74 / - 53 + COUNT ( + 70 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9181
SELECT - SUM( ALL - 13 ) * + COUNT( * ) AS col0, - 69
----
13
-69

skipif mysql # not compatible
query II rowsort label-9181
SELECT - SUM ( ALL - 13 ) * + COUNT ( * ) AS col0, - 69
----
13
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT 98 * - COUNT( * ) * + 91 + - 66 * + 1 + COUNT( * ) AS col0
----
-8983

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT 98 * - COUNT ( * ) * + 91 + - 66 * + 1 + COUNT ( * ) AS col0
----
-8983

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT CASE 10 WHEN ( + + 85 ) * 9 THEN NULL WHEN + 33 THEN MAX( - 76 ) + + - COUNT( DISTINCT - - 23 ) * 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT CASE 10 WHEN ( + + 85 ) * 9 THEN NULL WHEN + 33 THEN MAX ( - 76 ) + + - COUNT ( DISTINCT - - 23 ) * 80 END AS col2
----
NULL

query I rowsort
SELECT ALL + 12 * 63
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT - COUNT( * ) + 47 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9185
SELECT - COUNT ( * ) + 47 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT DISTINCT - 53 * + 44 * - ( - 89 ) + + 53 + + - 16 + + 48 - + ( ( 65 ) ) + + MIN( - 94 )
----
-207622

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT - 53 * + 44 * - ( - 89 ) + + 53 + + - 16 + + 48 - + ( ( 65 ) ) + + MIN ( - 94 )
----
-207622

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT 12 * 34 + CASE - + COUNT( DISTINCT - + 52 ) WHEN + 36 * - + 30 + + 72 THEN + - 93 ELSE + 73 * + COUNT( * ) END
----
481

skipif mysql # not compatible
query I rowsort label-9187
SELECT 12 * 34 + CASE - + COUNT ( DISTINCT - + 52 ) WHEN + 36 * - + 30 + + 72 THEN + - 93 ELSE + 73 * + COUNT ( * ) END
----
481

query I rowsort
SELECT DISTINCT 54 * + ( + 71 ) - 43 * 96 AS col0
----
-294

query I rowsort
SELECT ALL + ( ( NULLIF ( + - 31, 28 ) ) )
----
-31

query I rowsort
SELECT ALL + 13 * 5
----
65

query I rowsort
SELECT DISTINCT + 95 * + 28 AS col0
----
2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9192
SELECT - CAST( NULL AS SIGNED ) * - SUM( - - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT - CAST ( NULL AS INTEGER ) * - SUM ( - - 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT - COUNT( * ) + + 25
----
24

skipif mysql # not compatible
query I rowsort label-9193
SELECT - COUNT ( * ) + + 25
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9194
SELECT ALL + 50 DIV - ( + 53 ) * + CAST( + - 55 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL + 50 / - ( + 53 ) * + CAST ( + - 55 AS INTEGER )
----
0

query I rowsort
SELECT - 73 + + - 14 * - 25 * - 77
----
-27023

query I rowsort
SELECT ALL + 55 * 30
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT NULLIF ( + - 23, - COUNT( * ) ) col1
----
-23

skipif mysql # not compatible
query I rowsort label-9197
SELECT NULLIF ( + - 23, - COUNT ( * ) ) col1
----
-23

query I rowsort
SELECT + 0 * 28 + 81 + + 49
----
130

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9199
SELECT ALL + + 68 * + 95 * 29 + 58 - 17 + - 92 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + + 68 * + 95 * 29 + 58 - 17 + - 92 * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT - + NULLIF ( + 25, COUNT( * ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9200
SELECT - + NULLIF ( + 25, COUNT ( * ) ) AS col0
----
-25

query II rowsort
SELECT + + 0 + - + 20 * + 60, + 10 AS col2
----
-1200
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT ALL + - CAST( NULL AS SIGNED ) * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 43
----
NULL

query I rowsort
SELECT - 49 * - 50 AS col1
----
2450

query I rowsort
SELECT - + 56 * - - 1 * - - 69 * + 90 AS col1
----
-347760

query I rowsort
SELECT + + 51 + - 44 * 62 AS col0
----
-2677

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ALL 15 + + ( ( + 10 ) ) - + + 87 + 9 + COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL 15 + + ( ( + 10 ) ) - + + 87 + 9 + COUNT ( * ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT + 3 * + COUNT( DISTINCT 55 )
----
3

skipif mysql # not compatible
query I rowsort label-9207
SELECT + 3 * + COUNT ( DISTINCT 55 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT ALL - 79 DIV - 6 - - 97 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL - 79 / - 6 - - 97 AS col0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT ALL + + 75 DIV 23 + - + 32 - + - NULLIF ( 96, - 40 * - 5 + + 72 ) + - 99 + 53
----
21

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL + + 75 / 23 + - + 32 - + - NULLIF ( 96, - 40 * - 5 + + 72 ) + - 99 + 53
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT ALL + - ( + 1 ) / CAST( NULL AS SIGNED ) * - + 53 + 70 + - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + - ( + 1 ) / CAST ( NULL AS INTEGER ) * - + 53 + 70 + - + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - + COUNT( * ) - + - 3
----
2

skipif mysql # not compatible
query I rowsort label-9211
SELECT - + COUNT ( * ) - + - 3
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + - 24 * + + ( 80 ) * + ( + 25 ) + + ( 80 ) * CASE - - 66 WHEN + 78 THEN + MIN( + 50 ) * 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT + - 24 * + + ( 80 ) * + ( + 25 ) + + ( 80 ) * CASE - - 66 WHEN + 78 THEN + MIN ( + 50 ) * 69 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT ALL + 18 DIV + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL + 18 / + 72 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9214
SELECT ALL - 6, 61 DIV COUNT( * ) * + - 94 AS col2
----
-6
-5734

skipif mysql # not compatible
query II rowsort label-9214
SELECT ALL - 6, 61 / COUNT ( * ) * + - 94 AS col2
----
-6
-5734

query I rowsort
SELECT DISTINCT 86 * + 36
----
3096

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9216
SELECT DISTINCT - 83 AS col1, + CAST( NULL AS SIGNED ) * + + 20
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-9216
SELECT DISTINCT - 83 AS col1, + CAST ( NULL AS INTEGER ) * + + 20
----
-83
NULL

query II rowsort
SELECT ALL - 22, 62 AS col0
----
-22
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9218
SELECT ALL - 96 AS col0, 88 + - 8 + + 9 * + 22 * 36 * + - ( COUNT( * ) ) * ( - 44 )
----
-96
313712

skipif mysql # not compatible
query II rowsort label-9218
SELECT ALL - 96 AS col0, 88 + - 8 + + 9 * + 22 * 36 * + - ( COUNT ( * ) ) * ( - 44 )
----
-96
313712

query I rowsort
SELECT DISTINCT 50 * - 79 AS col0
----
-3950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9220
SELECT NULLIF ( + 86, - - MIN( 53 ) * + 41 + + 68 + 36 ) * - COALESCE ( - - 5, 8 / + 78 + 72, CASE CAST( - 26 AS SIGNED ) WHEN 6 + 4 / - 0 THEN + 88 * 52 + 60 * - 48 END - + 96 ) * 80 + + CAST( NULL AS DECIMAL ) - + SUM( DISTINCT 18 ) * + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT NULLIF ( + 86, - - MIN ( 53 ) * + 41 + + 68 + 36 ) * - COALESCE ( - - 5, 8 / + 78 + 72, CASE CAST ( - 26 AS INTEGER ) WHEN 6 + 4 / - 0 THEN + 88 * 52 + 60 * - 48 END - + 96 ) * 80 + + CAST ( NULL AS REAL ) - + SUM ( DISTINCT 18 ) * + 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL 43 - NULLIF ( + - COUNT( * ), - ( 54 ) / ( SUM( ALL - 65 ) ) - - 67 + + 23 - + 34 / 33 + - COALESCE ( COUNT( ALL + 96 ), 9 * 14, 48 + - 50 * + 22 ) )
----
44

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL 43 - NULLIF ( + - COUNT ( * ), - ( 54 ) / ( SUM ( ALL - 65 ) ) - - 67 + + 23 - + 34 / 33 + - COALESCE ( COUNT ( ALL + 96 ), 9 * 14, 48 + - 50 * + 22 ) )
----
44

query I rowsort
SELECT 86 * + 39
----
3354

query II rowsort
SELECT 73 AS col2, + 48
----
73
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9224
SELECT + 75 AS col0, SUM( DISTINCT + + ( - - 28 ) ) + 54 + 42 / CASE + 50 WHEN 73 + - 62 - + + 45 + + ( - 83 + - 9 ) THEN COUNT( * ) / ( - COALESCE ( - MIN( 55 ), 54 ) ) WHEN + 35 * 62 + + COUNT( * ) THEN NULL WHEN - 39 THEN NULL ELSE NULL END + 80
----
75
NULL

skipif mysql # not compatible
query II rowsort label-9224
SELECT + 75 AS col0, SUM ( DISTINCT + + ( - - 28 ) ) + 54 + 42 / CASE + 50 WHEN 73 + - 62 - + + 45 + + ( - 83 + - 9 ) THEN COUNT ( * ) / ( - COALESCE ( - MIN ( 55 ), 54 ) ) WHEN + 35 * 62 + + COUNT ( * ) THEN NULL WHEN - 39 THEN NULL ELSE NULL END + 80
----
75
NULL

query I rowsort
SELECT DISTINCT 78 - + + 98 AS col1
----
-20

query II rowsort
SELECT ALL - 31, 73 AS col0
----
-31
73

query II rowsort
SELECT 81, - 39 AS col0
----
81
-39

query I rowsort
SELECT 5 - + 64
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL - NULLIF ( - 87, 3 + + + COUNT( ALL 63 ) * - + 14 * + + CASE - - 68 WHEN + SUM( DISTINCT + + 50 ) + + 96 + - COUNT( * ) THEN COALESCE ( COUNT( * ), + 12 ) - ( 63 - + 86 ) * 19 END * + 54 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - NULLIF ( - 87, 3 + + + COUNT ( ALL 63 ) * - + 14 * + + CASE - - 68 WHEN + SUM ( DISTINCT + + 50 ) + + 96 + - COUNT ( * ) THEN COALESCE ( COUNT ( * ), + 12 ) - ( 63 - + 86 ) * 19 END * + 54 ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT CAST( - 67 AS SIGNED ) * - + NULLIF ( - 8, + 81 )
----
-536

skipif mysql # not compatible
query I rowsort label-9230
SELECT CAST ( - 67 AS INTEGER ) * - + NULLIF ( - 8, + 81 )
----
-536

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL - NULLIF ( + 42, COUNT( DISTINCT - ( + - 39 ) ) ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL - NULLIF ( + 42, COUNT ( DISTINCT - ( + - 39 ) ) ) col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9232
SELECT - 40 AS col1, - COUNT( DISTINCT + - 59 ) * 53 * 89
----
-40
-4717

skipif mysql # not compatible
query II rowsort label-9232
SELECT - 40 AS col1, - COUNT ( DISTINCT + - 59 ) * 53 * 89
----
-40
-4717

query II rowsort
SELECT DISTINCT 42 AS col2, + 79
----
42
79

query I rowsort
SELECT 1 * - - 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - + SUM( - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9235
SELECT - + SUM ( - 12 ) AS col1
----
12

query I rowsort
SELECT DISTINCT - - 53 * + 20 * - + 38 AS col0
----
-40280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT + 85 / CAST( NULL AS SIGNED ) + - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT + 85 / CAST ( NULL AS INTEGER ) + - 44 AS col2
----
NULL

query I rowsort
SELECT 90 + 15 + + + NULLIF ( - 56, - - 17 )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT - + 33 AS col0, + 29 + + - ( - + SUM( DISTINCT - 10 ) ) + - 28
----
-33
-9

skipif mysql # not compatible
query II rowsort label-9239
SELECT - + 33 AS col0, + 29 + + - ( - + SUM ( DISTINCT - 10 ) ) + - 28
----
-33
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9240
SELECT ALL CAST( + - 32 AS SIGNED ), + 16 AS col1
----
-32
16

skipif mysql # not compatible
query II rowsort label-9240
SELECT ALL CAST ( + - 32 AS INTEGER ), + 16 AS col1
----
-32
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT + COUNT( * ) + + - NULLIF ( 55, 75 )
----
-54

skipif mysql # not compatible
query I rowsort label-9241
SELECT + COUNT ( * ) + + - NULLIF ( 55, 75 )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9242
SELECT 36, + COUNT( * ) AS col0
----
36
1

skipif mysql # not compatible
query II rowsort label-9242
SELECT 36, + COUNT ( * ) AS col0
----
36
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9243
SELECT - 51 + - 6 + + 17 * + - COUNT( * ) * COALESCE ( + COALESCE ( 63, 53 ), - + CAST( - ( - - 0 ) AS SIGNED ) * 69, 47 ) AS col2
----
-1128

skipif mysql # not compatible
query I rowsort label-9243
SELECT - 51 + - 6 + + 17 * + - COUNT ( * ) * COALESCE ( + COALESCE ( 63, 53 ), - + CAST ( - ( - - 0 ) AS INTEGER ) * 69, 47 ) AS col2
----
-1128

onlyif mysql # DIV for integer division: 
query I rowsort label-9244
SELECT - 21 DIV - 9 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9244
SELECT - 21 / - 9 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL - + ( + COUNT( * ) ) + + - ( + - CASE - COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE - 4 END ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - + ( + COUNT ( * ) ) + + - ( + - CASE - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE - 4 END ) col1
----
-5

query I rowsort
SELECT - 60 - - 35
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-9247
SELECT 59 + - 20 DIV + 46 * 6, 61 AS col1
----
59
61

skipif mysql # not compatible
query II rowsort label-9247
SELECT 59 + - 20 / + 46 * 6, 61 AS col1
----
59
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT + - SUM( DISTINCT - ( + - 58 ) ) + + 18 * - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT + - SUM ( DISTINCT - ( + - 58 ) ) + + 18 * - COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL + 8 * - COALESCE ( 43, - COUNT( * ), + 8 * + CASE + 85 WHEN + 21 + - + 61 THEN + NULLIF ( + 3, ( 15 ) * + 65 ) WHEN - 76 / + 4 THEN NULL END )
----
-344

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + 8 * - COALESCE ( 43, - COUNT ( * ), + 8 * + CASE + 85 WHEN + 21 + - + 61 THEN + NULLIF ( + 3, ( 15 ) * + 65 ) WHEN - 76 / + 4 THEN NULL END )
----
-344

query I rowsort
SELECT + 1 + - ( 71 ) AS col1
----
-70

query I rowsort
SELECT ALL + ( - + 26 ) + 73
----
47

query II rowsort
SELECT DISTINCT 42, 89 AS col1
----
42
89

query I rowsort
SELECT 28 - - 34
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9254
SELECT - - 15 AS col2, 35 + - NULLIF ( - ( + + 6 ), - 95 ) DIV - COUNT( * ) * COUNT( * ) + + - 5 AS col1
----
15
24

skipif mysql # not compatible
query II rowsort label-9254
SELECT - - 15 AS col2, 35 + - NULLIF ( - ( + + 6 ), - 95 ) / - COUNT ( * ) * COUNT ( * ) + + - 5 AS col1
----
15
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + 67 + + - 66 * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9255
SELECT + 67 + + - 66 * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT - COUNT( * ) + 17 * + 5 + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-9256
SELECT - COUNT ( * ) + 17 * + 5 + COUNT ( * )
----
85

query II rowsort
SELECT 34 AS col2, + 28
----
34
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT 45 * - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT 45 * - COUNT ( * )
----
-45

query I rowsort
SELECT ALL 3 - 8 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT 50 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-9260
SELECT 50 / + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT COUNT( * ) * 34 + 78
----
112

skipif mysql # not compatible
query I rowsort label-9261
SELECT COUNT ( * ) * 34 + 78
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT + COUNT( * ) DIV - 77 + - 57 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9262
SELECT + COUNT ( * ) / - 77 + - 57 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9263
SELECT 76 DIV ( - + CAST( 56 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9263
SELECT 76 / ( - + CAST ( 56 AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT 11 * + 44 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT 11 * + 44 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ALL 31 * + ( + - COUNT( * ) ) * + 4 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL 31 * + ( + - COUNT ( * ) ) * + 4 AS col0
----
-124

query I rowsort
SELECT 82 + + - 31 col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT DISTINCT - 77 DIV + 34
----
-2

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT - 77 / + 34
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ( CASE 66 WHEN + 85 * + - ( + 59 ) + - 29 THEN NULL WHEN + 29 THEN + + COUNT( * ) ELSE + + 35 + + + 71 END ) + 50
----
156

skipif mysql # not compatible
query I rowsort label-9268
SELECT ( CASE 66 WHEN + 85 * + - ( + 59 ) + - 29 THEN NULL WHEN + 29 THEN + + COUNT ( * ) ELSE + + 35 + + + 71 END ) + 50
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT - MAX( ALL + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT - MAX ( ALL + 2 )
----
-2

query II rowsort
SELECT ALL 95 * + - 5, 84 * - + 67 * - + 11 - - + ( - 3 ) * + + 59 AS col1
----
-475
61731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9271
SELECT CAST( NULL AS SIGNED ) + COUNT( ALL + 98 ), + 23 col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-9271
SELECT CAST ( NULL AS INTEGER ) + COUNT ( ALL + 98 ), + 23 col0
----
NULL
23

onlyif mysql # DIV for integer division: 
query II rowsort label-9272
SELECT 4 * 32 DIV + 67 * + 47 DIV + + 37 - + 18 + 48 AS col2, 74
----
31
74

skipif mysql # not compatible
query II rowsort label-9272
SELECT 4 * 32 / + 67 * + 47 / + + 37 - + 18 + 48 AS col2, 74
----
31
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9273
SELECT - 91 + - - 53 DIV + 75 + - 69
----
-160

skipif mysql # not compatible
query I rowsort label-9273
SELECT - 91 + - - 53 / + 75 + - 69
----
-160

query I rowsort
SELECT + 58 * - ( - - 4 ) + + 35 * - ( + 30 ) * + 29 * + 77
----
-2344882

query I rowsort
SELECT DISTINCT 37 + 13 col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT ALL - 43 + + 20 DIV - - 87 + + 50 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - 43 + + 20 / - - 87 + + 50 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9277
SELECT ALL - + 25 * + 31 + + COUNT( * ) DIV + 47
----
-775

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL - + 25 * + 31 + + COUNT ( * ) / + 47
----
-775

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT - 24 * - 88 * + - NULLIF ( + 86, + COUNT( ALL - + CASE 67 WHEN + 80 + 21 THEN + 3 + + - 16 / - ( - 11 ) WHEN 49 THEN + 16 * 50 END ) * - COUNT( * ) - 48 )
----
-181632

skipif mysql # not compatible
query I rowsort label-9278
SELECT - 24 * - 88 * + - NULLIF ( + 86, + COUNT ( ALL - + CASE 67 WHEN + 80 + 21 THEN + 3 + + - 16 / - ( - 11 ) WHEN 49 THEN + 16 * 50 END ) * - COUNT ( * ) - 48 )
----
-181632

query II rowsort
SELECT - 94 * + 79, ( + 55 ) AS col0
----
-7426
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9280
SELECT - COALESCE ( - 93, 58 + - 49 + - 50 ) + + + COUNT( * ) + - - 93 DIV + + 97
----
94

skipif mysql # not compatible
query I rowsort label-9280
SELECT - COALESCE ( - 93, 58 + - 49 + - 50 ) + + + COUNT ( * ) + - - 93 / + + 97
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT - - MIN( DISTINCT + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9281
SELECT - - MIN ( DISTINCT + 26 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT DISTINCT - CAST( - ( ( + 46 ) ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT - CAST ( - ( ( + 46 ) ) AS INTEGER )
----
46

query II rowsort
SELECT - - 96 * 81 AS col1, 28
----
7776
28

query I rowsort
SELECT DISTINCT ( 22 ) col1
----
22

query I rowsort
SELECT ALL + - 21 - + 33 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - ( + SUM( - COALESCE ( + 80, 59 + - 60 ) ) )
----
80

skipif mysql # not compatible
query I rowsort label-9286
SELECT - ( + SUM ( - COALESCE ( + 80, 59 + - 60 ) ) )
----
80

query I rowsort
SELECT ALL CASE + - 44 WHEN - 37 * - - 34 THEN + 38 * + 4 + + NULLIF ( + + 56, - 75 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - COUNT( * ) + + + 33 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9288
SELECT - COUNT ( * ) + + + 33 AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT DISTINCT + 80 DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + 80 / + 34
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT 32 * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT 32 * COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT - MAX( + - 5 ) - + ( - 76 )
----
81

skipif mysql # not compatible
query I rowsort label-9291
SELECT - MAX ( + - 5 ) - + ( - 76 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9292
SELECT COALESCE ( - 4, - COUNT( * ) + + 16 + 33 DIV + - ( - ( ( + CAST( - SUM( + + 41 ) AS SIGNED ) ) ) ) DIV + 37 * - 39 + 20 * - 12, 11 * 90 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9292
SELECT COALESCE ( - 4, - COUNT ( * ) + + 16 + 33 / + - ( - ( ( + CAST ( - SUM ( + + 41 ) AS INTEGER ) ) ) ) / + 37 * - 39 + 20 * - 12, 11 * 90 ) AS col0
----
-4

query I rowsort
SELECT 63 * ( + 99 ) + - + ( 29 ) AS col0
----
6208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9294
SELECT + 49 + COALESCE ( 69, + 99 * + 16 * - CAST( + COALESCE ( + 54, 31 + - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) col1
----
118

skipif mysql # not compatible
query I rowsort label-9294
SELECT + 49 + COALESCE ( 69, + 99 * + 16 * - CAST ( + COALESCE ( + 54, 31 + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) col1
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT DISTINCT - 81 * + - AVG ( ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT - 81 * + - AVG ( ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9296
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + 82 ) AS col1, 77 DIV - - 84
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9296
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + 82 ) AS col1, 77 / - - 84
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL - 91 * - COALESCE ( - ( - + COUNT( * ) ), - - 4 )
----
91

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL - 91 * - COALESCE ( - ( - + COUNT ( * ) ), - - 4 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT + CASE COALESCE ( SUM( ALL + + 63 ), - ( COUNT( * ) ) ) WHEN + - 66 * 86 * 52 - - 85 THEN + 68 ELSE NULL END * + COUNT( * ) + + - 2 * + CAST( NULL AS SIGNED ) - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT + CASE COALESCE ( SUM ( ALL + + 63 ), - ( COUNT ( * ) ) ) WHEN + - 66 * 86 * 52 - - 85 THEN + 68 ELSE NULL END * + COUNT ( * ) + + - 2 * + CAST ( NULL AS INTEGER ) - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT CASE 84 WHEN + + 48 + - 72 THEN - 29 WHEN + COUNT( * ) * 75 + + COUNT( * ) + - - 76 * 64 + + 47 * + 35 THEN - + 21 ELSE 42 + ( + CASE + 82 WHEN - 48 + + 41 * - 25 THEN COUNT( * ) - 29 ELSE NULL END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT CASE 84 WHEN + + 48 + - 72 THEN - 29 WHEN + COUNT ( * ) * 75 + + COUNT ( * ) + - - 76 * 64 + + 47 * + 35 THEN - + 21 ELSE 42 + ( + CASE + 82 WHEN - 48 + + 41 * - 25 THEN COUNT ( * ) - 29 ELSE NULL END ) END
----
NULL

query I rowsort
SELECT ALL 22 * 95 + 60
----
2150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT + 66 DIV - COUNT( * ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-9301
SELECT + 66 / - COUNT ( * ) col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9302
SELECT + CASE 96 WHEN + + COUNT( * ) - + CAST( - 96 AS SIGNED ) / COALESCE ( + 85, - - COUNT( * ) - - 72 ) / 96 THEN + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT + CASE 96 WHEN + + COUNT ( * ) - + CAST ( - 96 AS INTEGER ) / COALESCE ( + 85, - - COUNT ( * ) - - 72 ) / 96 THEN + 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL - COUNT( * ) * - MAX( ALL 82 ) + + COALESCE ( 57, + 50 * - - 74 * + - 44 + + - COUNT( * ) ) + 3
----
142

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - COUNT ( * ) * - MAX ( ALL 82 ) + + COALESCE ( 57, + 50 * - - 74 * + - 44 + + - COUNT ( * ) ) + 3
----
142

query I rowsort
SELECT COALESCE ( ( + + 29 ), ( - 28 ) )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9305
SELECT 28 col0, CAST( 7 AS SIGNED ) AS col0
----
28
7

skipif mysql # not compatible
query II rowsort label-9305
SELECT 28 col0, CAST ( 7 AS INTEGER ) AS col0
----
28
7

query I rowsort
SELECT + - 13 * + 69 AS col2
----
-897

onlyif mysql # aggregate syntax: 
query II rowsort label-9307
SELECT ALL - 55 * - 81 + - + 56 + + - 90 + ( + + 17 ) AS col1, COUNT( * )
----
4326
1

skipif mysql # not compatible
query II rowsort label-9307
SELECT ALL - 55 * - 81 + - + 56 + + - 90 + ( + + 17 ) AS col1, COUNT ( * )
----
4326
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT + + COALESCE ( + + 63, - 77 ) * + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT + + COALESCE ( + + 63, - 77 ) * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 95 * + 96 + - 24 - 86 AS col0
----
9010

query I rowsort
SELECT + 40 * + 5 + - 26 - 77 col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT ALL + 63 DIV + 30
----
2

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL + 63 / + 30
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT DISTINCT - 61 * 37 + 30 + + COUNT( * ) DIV + 43 * - 18 * COUNT( * )
----
-2227

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT - 61 * 37 + 30 + + COUNT ( * ) / + 43 * - 18 * COUNT ( * )
----
-2227

query II rowsort
SELECT DISTINCT 47 AS col1, 8 AS col0
----
47
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9314
SELECT ALL - ( - - SUM( 90 ) ), + 45 * + 49 AS col0
----
-90
2205

skipif mysql # not compatible
query II rowsort label-9314
SELECT ALL - ( - - SUM ( 90 ) ), + 45 * + 49 AS col0
----
-90
2205

onlyif mysql # aggregate syntax: 
query II rowsort label-9315
SELECT ( + SUM( DISTINCT + + ( - 3 ) ) ) AS col0, 92 * + + 67 - 23 * 59 * 35
----
-3
-41331

skipif mysql # not compatible
query II rowsort label-9315
SELECT ( + SUM ( DISTINCT + + ( - 3 ) ) ) AS col0, 92 * + + 67 - 23 * 59 * 35
----
-3
-41331

query I rowsort
SELECT DISTINCT - 14 * + + 83 AS col1
----
-1162

query II rowsort
SELECT - - 88 AS col2, - 85
----
88
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-9318
SELECT - - COUNT( * ) AS col2, - 80 - + 19 - 44 * + - CASE - - 80 WHEN + 35 + 26 THEN - + 97 ELSE NULL END + + ( + 88 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9318
SELECT - - COUNT ( * ) AS col2, - 80 - + 19 - 44 * + - CASE - - 80 WHEN + 35 + 26 THEN - + 97 ELSE NULL END + + ( + 88 ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9319
SELECT - ( + CAST( - COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9319
SELECT - ( + CAST ( - COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL + COUNT( * ) - 58
----
-57

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL + COUNT ( * ) - 58
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9321
SELECT 89 AS col0, CAST( NULL AS DECIMAL ) * + - 20
----
89
NULL

skipif mysql # not compatible
query II rowsort label-9321
SELECT 89 AS col0, CAST ( NULL AS REAL ) * + - 20
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT + + 67 + - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9322
SELECT + + 67 + - COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + - 51 + 68 * - + COALESCE ( + CASE + - 87 WHEN + - 74 THEN - 21 END, CASE COUNT( DISTINCT + 95 ) WHEN COUNT( * ) THEN 78 * - 67 * 24 + - COUNT( * ) ELSE NULL END ) AS col1
----
8528849

skipif mysql # not compatible
query I rowsort label-9323
SELECT + - 51 + 68 * - + COALESCE ( + CASE + - 87 WHEN + - 74 THEN - 21 END, CASE COUNT ( DISTINCT + 95 ) WHEN COUNT ( * ) THEN 78 * - 67 * 24 + - COUNT ( * ) ELSE NULL END ) AS col1
----
8528849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT + CAST( 55 AS SIGNED ) + - + 70
----
-15

skipif mysql # not compatible
query I rowsort label-9324
SELECT + CAST ( 55 AS INTEGER ) + - + 70
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9325
SELECT - COUNT( * ), + 64 AS col0
----
-1
64

skipif mysql # not compatible
query II rowsort label-9325
SELECT - COUNT ( * ), + 64 AS col0
----
-1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + MAX( - ( 34 ) ) + + - 7 + + 60 * - - 60 col1
----
3559

skipif mysql # not compatible
query I rowsort label-9326
SELECT + MAX ( - ( 34 ) ) + + - 7 + + 60 * - - 60 col1
----
3559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9327
SELECT ALL 68 DIV - 75 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL 68 / - 75 * + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT - 38 + + COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9328
SELECT - 38 + + COUNT ( * ) AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT ALL 20 * - 80 * + + 54 * + CAST( NULL AS SIGNED ) * + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL 20 * - 80 * + + 54 * + CAST ( NULL AS INTEGER ) * + - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT - COALESCE ( + 45, - + COUNT( * ) ) + SUM( - - 1 ) * + CASE + 38 WHEN + 86 THEN - 79 WHEN + COALESCE ( + - 59, + + 95, + 93 * 9 ) + - 91 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT - COALESCE ( + 45, - + COUNT ( * ) ) + SUM ( - - 1 ) * + CASE + 38 WHEN + 86 THEN - 79 WHEN + COALESCE ( + - 59, + + 95, + 93 * 9 ) + - 91 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + COUNT( * ) * COUNT( - + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-9331
SELECT + COUNT ( * ) * COUNT ( - + 96 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9332
SELECT DISTINCT CASE + 52 WHEN - 94 + - MIN( ALL - CASE + CAST( NULL AS SIGNED ) WHEN + 4 / 16 THEN + + 21 ELSE + 62 END ) THEN 88 + + AVG ( ALL 83 ) * - + ( 87 ) * 12 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT CASE + 52 WHEN - 94 + - MIN ( ALL - CASE + CAST ( NULL AS INTEGER ) WHEN + 4 / 16 THEN + + 21 ELSE + 62 END ) THEN 88 + + AVG ( ALL 83 ) * - + ( 87 ) * 12 END AS col1
----
NULL

query II rowsort
SELECT ALL NULLIF ( 55, + + 72 + - 55 ) col0, + 86
----
55
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL + CASE - COALESCE ( - CASE - + ( + - COALESCE ( + 78, COUNT( * ) * - 15 ) ) WHEN - 29 THEN - + 28 * COALESCE ( - ( - 94 ), - 6 * + 89 ) * + 32 - + 76 END, - CASE MAX( + 87 ) WHEN - COUNT( * ) + 2 THEN + 71 WHEN - AVG ( 57 ) THEN NULL END ) WHEN + 91 + COUNT( * ) THEN NULL ELSE + 26 * + COUNT( * ) + MAX( 1 ) END
----
27

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL + CASE - COALESCE ( - CASE - + ( + - COALESCE ( + 78, COUNT ( * ) * - 15 ) ) WHEN - 29 THEN - + 28 * COALESCE ( - ( - 94 ), - 6 * + 89 ) * + 32 - + 76 END, - CASE MAX ( + 87 ) WHEN - COUNT ( * ) + 2 THEN + 71 WHEN - AVG ( 57 ) THEN NULL END ) WHEN + 91 + COUNT ( * ) THEN NULL ELSE + 26 * + COUNT ( * ) + MAX ( 1 ) END
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9335
SELECT ALL - 12 DIV - COUNT( * ) + 77 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL - 12 / - COUNT ( * ) + 77 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT - 90 * + COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9336
SELECT - 90 * + COUNT ( * ) AS col1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9337
SELECT ALL 18 DIV + ( + - MIN( 39 ) ) + - 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL 18 / + ( + - MIN ( 39 ) ) + - 95 AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9338
SELECT + ( - 70 ) * COUNT( * ) + + - ( + 57 ) AS col0, - CAST( + MIN( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) + 16
----
-127
NULL

skipif mysql # not compatible
query II rowsort label-9338
SELECT + ( - 70 ) * COUNT ( * ) + + - ( + 57 ) AS col0, - CAST ( + MIN ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + 16
----
-127
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9339
SELECT - 60 - 80 DIV MIN( 56 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9339
SELECT - 60 - 80 / MIN ( 56 ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT + MAX( - + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-9340
SELECT + MAX ( - + 73 )
----
-73

query I rowsort
SELECT - 30 + - - ( - 5 ) * + + ( - - 54 )
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + CASE 87 WHEN 67 THEN - COUNT( * ) + - + ( 32 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT + CASE 87 WHEN 67 THEN - COUNT ( * ) + - + ( 32 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9343
SELECT ALL - 69 DIV COUNT( * ) + 62 + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL - 69 / COUNT ( * ) + 62 + - COUNT ( * )
----
-8

query I rowsort
SELECT ALL - 67 * - 41 AS col2
----
2747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9345
SELECT ALL + 57 * + + ( + - 13 ) * - COUNT( * ) * MIN( ALL - ( + 94 ) ) - MAX( ALL CASE - - 49 WHEN 62 + 53 THEN CAST( NULL AS DECIMAL ) WHEN + COALESCE ( - 28, - COALESCE ( CAST( + 9 AS SIGNED ), - 24, + 51 ) ) / - 30 THEN NULL WHEN 75 THEN NULL END ) + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL + 57 * + + ( + - 13 ) * - COUNT ( * ) * MIN ( ALL - ( + 94 ) ) - MAX ( ALL CASE - - 49 WHEN 62 + 53 THEN CAST ( NULL AS REAL ) WHEN + COALESCE ( - 28, - COALESCE ( CAST ( + 9 AS INTEGER ), - 24, + 51 ) ) / - 30 THEN NULL WHEN 75 THEN NULL END ) + - 33
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9346
SELECT ALL - + 97 * 28 DIV - 1 + - - 38 AS col0, NULLIF ( - 65, 33 + 42 ) AS col1
----
2754
-65

skipif mysql # not compatible
query II rowsort label-9346
SELECT ALL - + 97 * 28 / - 1 + - - 38 AS col0, NULLIF ( - 65, 33 + 42 ) AS col1
----
2754
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT - 25 * 60 + COUNT( * ) AS col2
----
-1499

skipif mysql # not compatible
query I rowsort label-9347
SELECT - 25 * 60 + COUNT ( * ) AS col2
----
-1499

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT DISTINCT + ( - + 38 ) AS col0, + MIN( ALL - 34 ) * 16
----
-38
-544

skipif mysql # not compatible
query II rowsort label-9348
SELECT DISTINCT + ( - + 38 ) AS col0, + MIN ( ALL - 34 ) * 16
----
-38
-544

query I rowsort
SELECT 3 * + + 68
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT + 90 + 20 + + COUNT( * ) * + + 20 * - 43
----
-750

skipif mysql # not compatible
query I rowsort label-9350
SELECT + 90 + 20 + + COUNT ( * ) * + + 20 * - 43
----
-750

query I rowsort
SELECT DISTINCT - 2 * - - 61 * - 16 * - COALESCE ( - - 87, - + 44 + 10 )
----
-169824

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT ALL + - 49 DIV + 77 - + - 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL + - 49 / + 77 - + - 69 AS col2
----
69

query I rowsort
SELECT DISTINCT + ( - 10 ) - - - 5 + 88 * 36
----
3153

query I rowsort
SELECT ALL 86 * 79 * + - NULLIF ( - - 5, + - 28 ) AS col1
----
-33970

query I rowsort
SELECT - 70 * + 68 * 29 + - 99 * + 22 + - 47 col2
----
-140265

query I rowsort
SELECT DISTINCT 44 * + 39 - 19 AS col1
----
1697

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT - COUNT( * ) * + ( - - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT - COUNT ( * ) * + ( - - 20 )
----
-20

query II rowsort
SELECT - 57 AS col0, + 0 + - 80 * + 14 AS col2
----
-57
-1120

query I rowsort
SELECT ALL 85 + 33 * + ( 33 ) - - - ( - 0 ) AS col1
----
1174

query I rowsort
SELECT 85 - ( + 28 ) * + + 86 col0
----
-2323

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ALL MAX( + 80 ) + + 32 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL MAX ( + 80 ) + + 32 AS col2
----
112

query I rowsort
SELECT DISTINCT + 18 + 40 * + ( ( - 93 ) ) + 87
----
-3615

onlyif mysql # aggregate syntax: 
query II rowsort label-9363
SELECT ALL 22 AS col1, 75 + + COUNT( * ) AS col1
----
22
76

skipif mysql # not compatible
query II rowsort label-9363
SELECT ALL 22 AS col1, 75 + + COUNT ( * ) AS col1
----
22
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9364
SELECT ALL 72 + - + COUNT( * ) DIV - 44 AS col0, - 16 * - ( + 18 ) * + COUNT( * ) DIV + + 85 * + 44 + + 18 + + ( 55 ) + - CASE + 9 WHEN + 81 * - 49 THEN - 31 * COALESCE ( - COUNT( * ), + 89 ) WHEN + 31 THEN 68 * 99 + - COALESCE ( + 44, - 42 ) ELSE NULL END * + 9
----
72
NULL

skipif mysql # not compatible
query II rowsort label-9364
SELECT ALL 72 + - + COUNT ( * ) / - 44 AS col0, - 16 * - ( + 18 ) * + COUNT ( * ) / + + 85 * + 44 + + 18 + + ( 55 ) + - CASE + 9 WHEN + 81 * - 49 THEN - 31 * COALESCE ( - COUNT ( * ), + 89 ) WHEN + 31 THEN 68 * 99 + - COALESCE ( + 44, - 42 ) ELSE NULL END * + 9
----
72
NULL

query II rowsort
SELECT DISTINCT 7 + + 22 * - - 14 + - 97 + 71 AS col1, + 35
----
289
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT 37 * + 74 DIV NULLIF ( 74, 69 * - - 61 ) + - 58 + - 82
----
-103

skipif mysql # not compatible
query I rowsort label-9366
SELECT 37 * + 74 / NULLIF ( 74, 69 * - - 61 ) + - 58 + - 82
----
-103

query I rowsort
SELECT 36 + - 50 + - 89 + + 82 + 83 / 69 * + CASE - + 55 WHEN - 4 + - 45 THEN - 55 END * 83
----
NULL

query I rowsort
SELECT 39 * - + 55 * - 62 col1
----
132990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9369
SELECT ALL - CASE - + CAST( NULL AS SIGNED ) WHEN - COUNT( ALL 38 ) * + NULLIF ( 6, - 48 * 78 * - + MAX( ALL 43 ) + + 25 + + 93 + 99 ) THEN NULL WHEN - COALESCE ( + 84, + 42 + 85 ) THEN 51 ELSE - 21 END
----
21

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - CASE - + CAST ( NULL AS INTEGER ) WHEN - COUNT ( ALL 38 ) * + NULLIF ( 6, - 48 * 78 * - + MAX ( ALL 43 ) + + 25 + + 93 + 99 ) THEN NULL WHEN - COALESCE ( + 84, + 42 + 85 ) THEN 51 ELSE - 21 END
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT CAST( NULL AS SIGNED ) * + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT CAST ( NULL AS INTEGER ) * + 47 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9371
SELECT DISTINCT 71 + - - CAST( - COALESCE ( 23, + 74, - - MIN( + 47 ) ) AS SIGNED ) DIV - + 82 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT 71 + - - CAST ( - COALESCE ( 23, + 74, - - MIN ( + 47 ) ) AS INTEGER ) / - + 82 AS col0
----
71

query II rowsort
SELECT DISTINCT - + 36 AS col0, + 46 AS col2
----
-36
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9373
SELECT DISTINCT + 58 - + MIN( ALL - 40 ) + + CAST( + 77 AS SIGNED )
----
175

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT + 58 - + MIN ( ALL - 40 ) + + CAST ( + 77 AS INTEGER )
----
175

query II rowsort
SELECT 63 AS col1, 36 * 72 AS col1
----
63
2592

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT ALL - COUNT( * ) - + COUNT( * ) * 2 AS col2, COUNT( * ) + - - 35 + + + SUM( + - 51 ) col2
----
-3
-15

skipif mysql # not compatible
query II rowsort label-9375
SELECT ALL - COUNT ( * ) - + COUNT ( * ) * 2 AS col2, COUNT ( * ) + - - 35 + + + SUM ( + - 51 ) col2
----
-3
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT DISTINCT - 14 DIV - 67 col0
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT - 14 / - 67 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - MIN( + + 77 ) * - COUNT( * ) * + + ( + COUNT( * ) ) - - ( - + 56 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9377
SELECT - MIN ( + + 77 ) * - COUNT ( * ) * + + ( + COUNT ( * ) ) - - ( - + 56 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT - COUNT( * ) * 19 + - 50 - + 95 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-9378
SELECT - COUNT ( * ) * 19 + - 50 - + 95 AS col0
----
-164

query II rowsort
SELECT ( + 77 ) * 72 AS col0, 94
----
5544
94

query I rowsort
SELECT ALL - 64 - - 31 - + 15 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9381
SELECT - 72, - COUNT( * ) AS col0
----
-72
-1

skipif mysql # not compatible
query II rowsort label-9381
SELECT - 72, - COUNT ( * ) AS col0
----
-72
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9382
SELECT - COUNT( * ) * + + 68 + - CAST( NULL AS SIGNED ) + COUNT( * ) + - - 10 * - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT - COUNT ( * ) * + + 68 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) + - - 10 * - 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 73 * - 96 AS col2
----
-7008

query I rowsort
SELECT DISTINCT + 62 * 46 col2
----
2852

query I rowsort
SELECT 97 * 58
----
5626

query I rowsort
SELECT ALL - - ( ( - 86 ) ) AS col0
----
-86

query II rowsort
SELECT DISTINCT 0, 59 * - - 93 AS col2
----
0
5487

query I rowsort
SELECT ALL + ( - - 11 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + ( + COALESCE ( - + COUNT( * ), + 38 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9389
SELECT + ( + COALESCE ( - + COUNT ( * ), + 38 ) ) AS col2
----
-1

query I rowsort
SELECT ( - 94 ) * - + 19 + - 23
----
1763

query I rowsort
SELECT ALL + 79 + + 51 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT + 14 * 18 + - 38 + + + 52 * 74 + COUNT( * ) AS col2
----
4063

skipif mysql # not compatible
query I rowsort label-9392
SELECT + 14 * 18 + - 38 + + + 52 * 74 + COUNT ( * ) AS col2
----
4063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT DISTINCT + 49 + - 31 * - 75 * - 93 + 47 + 12 * + + ( 36 ) DIV + - COUNT( * ) AS col0
----
-216561

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT + 49 + - 31 * - 75 * - 93 + 47 + 12 * + + ( 36 ) / + - COUNT ( * ) AS col0
----
-216561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9394
SELECT - 52 AS col0, + 59 * CAST( NULL AS SIGNED ) + - 65 * 50 * + NULLIF ( - 2, - 25 ) * - 67 - + - 26 + AVG ( + + 88 ) * - - ( - - 63 ) + - SUM( 46 ) / COUNT( * )
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-9394
SELECT - 52 AS col0, + 59 * CAST ( NULL AS INTEGER ) + - 65 * 50 * + NULLIF ( - 2, - 25 ) * - 67 - + - 26 + AVG ( + + 88 ) * - - ( - - 63 ) + - SUM ( 46 ) / COUNT ( * )
----
-52
NULL

query II rowsort
SELECT ALL + 4 + - 96 AS col1, - 29
----
-92
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT DISTINCT - 50 + + COALESCE ( + COUNT( * ), + 55 ) DIV 21 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - 50 + + COALESCE ( + COUNT ( * ), + 55 ) / 21 AS col0
----
-50

query I rowsort
SELECT ALL 67 + - 45
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9398
SELECT 95 + CASE - - MIN( - - 67 ) WHEN + - 25 THEN + 99 ELSE NULL END + - + 8 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT 95 + CASE - - MIN ( - - 67 ) WHEN + - 25 THEN + 99 ELSE NULL END + - + 8 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL - 32 + - 43 * + - 0 * 15 * ( + COUNT( * ) ) + - + 85
----
-117

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL - 32 + - 43 * + - 0 * 15 * ( + COUNT ( * ) ) + - + 85
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT MAX( + - ( - + 75 ) )
----
75

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT MAX ( + - ( - + 75 ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT COUNT( * ) + - - ( - - 33 ) + - 38 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9401
SELECT COUNT ( * ) + - - ( - - 33 ) + - 38 AS col0
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9402
SELECT 66 AS col2, - 9 AS col2, + - CAST( NULL AS DECIMAL )
----
66
-9
NULL

skipif mysql # not compatible
query III rowsort label-9402
SELECT 66 AS col2, - 9 AS col2, + - CAST ( NULL AS REAL )
----
66
-9
NULL

query I rowsort
SELECT ALL 31 + + 51
----
82

query I rowsort
SELECT 20 * 73 * - ( 57 ) AS col2
----
-83220

query I rowsort
SELECT ( - + 29 ) + 40 + - + 15 col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - MAX( - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-9406
SELECT - MAX ( - 81 )
----
81

query I rowsort
SELECT 39 + - 78 col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT + MAX( 71 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-9408
SELECT + MAX ( 71 ) col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9409
SELECT + + COUNT( * ), 76 AS col2
----
1
76

skipif mysql # not compatible
query II rowsort label-9409
SELECT + + COUNT ( * ), 76 AS col2
----
1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT + COUNT( DISTINCT - 91 ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-9410
SELECT + COUNT ( DISTINCT - 91 ) * 75
----
75

query I rowsort
SELECT ALL 92 * + 66 AS col1
----
6072

query II rowsort
SELECT + 33 AS col2, + 7 AS col2
----
33
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT + - NULLIF ( + 17, COUNT( * ) ) * CAST( + 44 AS SIGNED ) * 2 * + + COUNT( * ) * MAX( - 92 ) - - + 14 + + 15 + + 94 AS col2
----
137755

skipif mysql # not compatible
query I rowsort label-9413
SELECT + - NULLIF ( + 17, COUNT ( * ) ) * CAST ( + 44 AS INTEGER ) * 2 * + + COUNT ( * ) * MAX ( - 92 ) - - + 14 + + 15 + + 94 AS col2
----
137755

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT + NULLIF ( + - NULLIF ( 51, 95 + - 55 ), + SUM( - 27 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT + NULLIF ( + - NULLIF ( 51, 95 + - 55 ), + SUM ( - 27 ) )
----
-51

query I rowsort
SELECT ALL 19 * - 31
----
-589

query I rowsort
SELECT + 88 * + 94 + + 24 AS col0
----
8296

query I rowsort
SELECT - 58 * 84 col2
----
-4872

query II rowsort
SELECT DISTINCT + + ( 16 ) AS col1, 59
----
16
59

query I rowsort
SELECT + - 38 + + 86 * - 62 col0
----
-5370

onlyif mysql # aggregate syntax: 
query II rowsort label-9420
SELECT DISTINCT + 94 AS col1, COUNT( - 42 )
----
94
1

skipif mysql # not compatible
query II rowsort label-9420
SELECT DISTINCT + 94 AS col1, COUNT ( - 42 )
----
94
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9421
SELECT DISTINCT - + COUNT( * ) DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT - + COUNT ( * ) / + 84
----
0

query II rowsort
SELECT + 1, 32 AS col1
----
1
32

query I rowsort
SELECT - 74 + + 17
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT - COUNT( DISTINCT + 86 ) * - 8 + 54 * - 85
----
-4582

skipif mysql # not compatible
query I rowsort label-9424
SELECT - COUNT ( DISTINCT + 86 ) * - 8 + 54 * - 85
----
-4582

query I rowsort
SELECT DISTINCT - 90 + + - 63
----
-153

query I rowsort
SELECT DISTINCT - 45 * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT DISTINCT MAX( DISTINCT - 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT MAX ( DISTINCT - 35 ) AS col1
----
-35

query I rowsort
SELECT ALL + 73 + 54 AS col0
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9429
SELECT - NULLIF ( - 38, - 56 + COALESCE ( + AVG ( 56 ), + + 3, + 48 + - CAST( NULL AS SIGNED ) ) ) - 99 col0, + 32 AS col1
----
-61
32

skipif mysql # not compatible
query II rowsort label-9429
SELECT - NULLIF ( - 38, - 56 + COALESCE ( + AVG ( 56 ), + + 3, + 48 + - CAST ( NULL AS INTEGER ) ) ) - 99 col0, + 32 AS col1
----
-61
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT - 13 DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9430
SELECT - 13 / - 87 AS col1
----
0

query II rowsort
SELECT + 19 * 28 AS col1, - 32
----
532
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT - MAX( DISTINCT - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-9432
SELECT - MAX ( DISTINCT - 28 )
----
28

query I rowsort
SELECT ALL 78 * + 30 AS col0
----
2340

query I rowsort
SELECT - 83 - 13
----
-96

query I rowsort
SELECT - 1 + 17 + - 76 col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT - MAX( DISTINCT - 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9436
SELECT - MAX ( DISTINCT - 47 ) AS col0
----
47

query I rowsort
SELECT DISTINCT - 83 * + 24
----
-1992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9438
SELECT ALL ( COALESCE ( + 96, + 94, + 10 + - COUNT( + 27 ) + COUNT( + 70 ) + + 5 - + COUNT( * ) * + 91 + + CASE WHEN NOT ( NULL ) = + NULLIF ( + 33, + 38 ) THEN CAST( COUNT( * ) AS SIGNED ) END + COALESCE ( 14, + NULLIF ( 38, CASE + 96 WHEN 94 THEN 24 * + 49 END * 17 + - 20 / 94 ) ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL ( COALESCE ( + 96, + 94, + 10 + - COUNT ( + 27 ) + COUNT ( + 70 ) + + 5 - + COUNT ( * ) * + 91 + + CASE WHEN NOT ( NULL ) = + NULLIF ( + 33, + 38 ) THEN CAST ( COUNT ( * ) AS INTEGER ) END + COALESCE ( 14, + NULLIF ( 38, CASE + 96 WHEN 94 THEN 24 * + 49 END * 17 + - 20 / 94 ) ) ) )
----
96

query I rowsort
SELECT + 53 * 78
----
4134

onlyif mysql # DIV for integer division: 
query I rowsort label-9440
SELECT - + 1 * - + 72 DIV + 89 + - - 73 * + 98 + 15 AS col1
----
7169

skipif mysql # not compatible
query I rowsort label-9440
SELECT - + 1 * - + 72 / + 89 + - - 73 * + 98 + 15 AS col1
----
7169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9441
SELECT 28 DIV - 16 + - COALESCE ( 33, - + 9 ) + + - NULLIF ( CASE + 94 WHEN 40 * - 8 + + COUNT( * ) THEN - - 7 ELSE + - 86 END, + 14 - + - 74 )
----
52

skipif mysql # not compatible
query I rowsort label-9441
SELECT 28 / - 16 + - COALESCE ( 33, - + 9 ) + + - NULLIF ( CASE + 94 WHEN 40 * - 8 + + COUNT ( * ) THEN - - 7 ELSE + - 86 END, + 14 - + - 74 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9442
SELECT ALL + MAX( 18 ) col1, + 37 AS col2
----
18
37

skipif mysql # not compatible
query II rowsort label-9442
SELECT ALL + MAX ( 18 ) col1, + 37 AS col2
----
18
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT 34 * - + 35 * 96 + COUNT( * ) + + ( + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * + + NULLIF ( - 30, - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT 34 * - + 35 * 96 + COUNT ( * ) + + ( + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + + NULLIF ( - 30, - + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT + 22 * + SUM( + 7 )
----
154

skipif mysql # not compatible
query I rowsort label-9444
SELECT + 22 * + SUM ( + 7 )
----
154

query I rowsort
SELECT + 75 - 1 AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT + + CAST( - - 3 AS SIGNED ) * 42 - + + 56
----
70

skipif mysql # not compatible
query I rowsort label-9446
SELECT + + CAST ( - - 3 AS INTEGER ) * 42 - + + 56
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT DISTINCT 5 * COALESCE ( - 22, + + ( - 60 ) + - + 58 DIV - 44, + + 84 * - 97 ) + + 44
----
-66

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT 5 * COALESCE ( - 22, + + ( - 60 ) + - + 58 / - 44, + + 84 * - 97 ) + + 44
----
-66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9448
SELECT CAST( - 29 AS DECIMAL ) * 29 / + CAST( NULL AS SIGNED ) * - 77 + + 27 * + - 92 - + 16 + - 0 + + - CAST( 59 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT CAST ( - 29 AS REAL ) * 29 / + CAST ( NULL AS INTEGER ) * - 77 + + 27 * + - 92 - + 16 + - 0 + + - CAST ( 59 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL 3 * + ( - COUNT( * ) ) * + MIN( 23 ) * + - 40 * - COUNT( * ) + - COALESCE ( + + CASE 10 WHEN - 76 THEN + CAST( 42 AS SIGNED ) - + 43 WHEN - 51 THEN - 89 ELSE NULL END, 17 )
----
-2777

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL 3 * + ( - COUNT ( * ) ) * + MIN ( 23 ) * + - 40 * - COUNT ( * ) + - COALESCE ( + + CASE 10 WHEN - 76 THEN + CAST ( 42 AS INTEGER ) - + 43 WHEN - 51 THEN - 89 ELSE NULL END, 17 )
----
-2777

query II rowsort
SELECT ALL + 24 col1, 0 * - CASE - 19 WHEN + 65 * + 60 THEN 89 END AS col2
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT MIN( - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9451
SELECT MIN ( - 51 ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL 28 * ( - 24 ) + + COUNT( * ) AS col1
----
-671

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL 28 * ( - 24 ) + + COUNT ( * ) AS col1
----
-671

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT + SUM( + 23 ) + - - 1
----
24

skipif mysql # not compatible
query I rowsort label-9453
SELECT + SUM ( + 23 ) + - - 1
----
24

query I rowsort
SELECT - 67 * 49
----
-3283

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT + 38 + - + SUM( ALL 64 )
----
-26

skipif mysql # not compatible
query I rowsort label-9455
SELECT + 38 + - + SUM ( ALL 64 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9456
SELECT ALL COALESCE ( - 9, + COUNT( * ) ), 89 DIV - CAST( + 59 AS SIGNED ) AS col1
----
-9
-1

skipif mysql # not compatible
query II rowsort label-9456
SELECT ALL COALESCE ( - 9, + COUNT ( * ) ), 89 / - CAST ( + 59 AS INTEGER ) AS col1
----
-9
-1

query I rowsort
SELECT + ( - 20 ) + - ( + 4 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT + 90 + - 80 * + - SUM( DISTINCT 37 ) * - 30 AS col1
----
-88710

skipif mysql # not compatible
query I rowsort label-9458
SELECT + 90 + - 80 * + - SUM ( DISTINCT 37 ) * - 30 AS col1
----
-88710

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT COUNT( + + 5 ) - 42
----
-41

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT COUNT ( + + 5 ) - 42
----
-41

query I rowsort
SELECT - 84 + - 17 AS col1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL MIN( DISTINCT - - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL MIN ( DISTINCT - - 94 )
----
94

query I rowsort
SELECT DISTINCT 48 * - NULLIF ( - 93, + 18 )
----
4464

query I rowsort
SELECT - 77 * 79 * + - 4 col0
----
24332

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT DISTINCT - ( 70 ) * ( + MAX( DISTINCT 23 ) ) AS col2
----
-1610

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT - ( 70 ) * ( + MAX ( DISTINCT 23 ) ) AS col2
----
-1610

query II rowsort
SELECT ALL 84 AS col0, 57 AS col1
----
84
57

query I rowsort
SELECT 23 + 74 col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT - - CAST( - 75 AS SIGNED ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9467
SELECT - - CAST ( - 75 AS INTEGER ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9468
SELECT + + CAST( 24 AS SIGNED ) * + 40 + - 53, + 75 AS col2
----
907
75

skipif mysql # not compatible
query II rowsort label-9468
SELECT + + CAST ( 24 AS INTEGER ) * + 40 + - 53, + 75 AS col2
----
907
75

query I rowsort
SELECT DISTINCT + 85 * + + CASE 64 WHEN - 91 + - 21 THEN NULL WHEN - + 18 THEN NULL ELSE + 65 * ( 83 ) - 85 END col1
----
451350

onlyif mysql # DIV for integer division: 
query I rowsort label-9470
SELECT DISTINCT + + COALESCE ( 59, 47 * 16 DIV + + ( + 65 ) ) + 17 + + + 50 DIV 76 DIV 95 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT + + COALESCE ( 59, 47 * 16 / + + ( + 65 ) ) + 17 + + + 50 / 76 / 95 AS col1
----
76

query I rowsort
SELECT ALL 37 * - - 25 AS col2
----
925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9472
SELECT - 7 DIV SUM( DISTINCT - ( 19 ) ) * - + COUNT( * ) - 6 - 57 * 83 * 47
----
-222363

skipif mysql # not compatible
query I rowsort label-9472
SELECT - 7 / SUM ( DISTINCT - ( 19 ) ) * - + COUNT ( * ) - 6 - 57 * 83 * 47
----
-222363

query I rowsort
SELECT + 46 + - + 4 col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT - MIN( 52 ) * + + ( - + 43 ) - - 2 + + + COUNT( * )
----
2239

skipif mysql # not compatible
query I rowsort label-9474
SELECT - MIN ( 52 ) * + + ( - + 43 ) - - 2 + + + COUNT ( * )
----
2239

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT - 50 * - ( + SUM( ALL + ( - 57 ) ) )
----
-2850

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - 50 * - ( + SUM ( ALL + ( - 57 ) ) )
----
-2850

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9476
SELECT + + 46 DIV - 97 + + CAST( - + 13 AS SIGNED ) + 97 DIV - 41 * 30 DIV - 26 + + 43
----
32

skipif mysql # not compatible
query I rowsort label-9476
SELECT + + 46 / - 97 + + CAST ( - + 13 AS INTEGER ) + 97 / - 41 * 30 / - 26 + + 43
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9477
SELECT + COUNT( - 94 ) * + - CAST( NULL AS SIGNED ) + + COUNT( * ) + - + 95 - + 65 * + + 8 + + - 86 + - + ( - MAX( DISTINCT - - 85 ) ), - 10 * + 71 AS col1
----
NULL
-710

skipif mysql # not compatible
query II rowsort label-9477
SELECT + COUNT ( - 94 ) * + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - + 95 - + 65 * + + 8 + + - 86 + - + ( - MAX ( DISTINCT - - 85 ) ), - 10 * + 71 AS col1
----
NULL
-710

query I rowsort
SELECT DISTINCT - - ( 2 )
----
2

query I rowsort
SELECT ALL 26 + - 55
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9480
SELECT - 96 + - MAX( ALL + 53 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT - 96 + - MAX ( ALL + 53 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 82 + 34
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT DISTINCT - + 88 AS col1, ( + NULLIF ( + COALESCE ( 59, 9 - + MAX( - 18 ), + - 56 ), + 88 ) )
----
-88
59

skipif mysql # not compatible
query II rowsort label-9482
SELECT DISTINCT - + 88 AS col1, ( + NULLIF ( + COALESCE ( 59, 9 - + MAX ( - 18 ), + - 56 ), + 88 ) )
----
-88
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT ALL - MIN( CAST( 26 AS SIGNED ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL - MIN ( CAST ( 26 AS INTEGER ) ) AS col1
----
-26

query I rowsort
SELECT ( - 59 ) + + ( + 20 )
----
-39

query I rowsort
SELECT DISTINCT 15 - - 58
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9486
SELECT 79 * - NULLIF ( 88, + 22 + ( + 9 ) / - CAST( NULL AS SIGNED ) - - 62 ) AS col0
----
-6952

skipif mysql # not compatible
query I rowsort label-9486
SELECT 79 * - NULLIF ( 88, + 22 + ( + 9 ) / - CAST ( NULL AS INTEGER ) - - 62 ) AS col0
----
-6952

query I rowsort
SELECT NULLIF ( - - 49, 21 * + 77 + 21 ) + - NULLIF ( - 1, - 61 )
----
50

query I rowsort
SELECT 30 + - 90 - 57 AS col2
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-9489
SELECT NULLIF ( ( 26 ), 92 ) DIV 66 * + 47 + + 7
----
7

skipif mysql # not compatible
query I rowsort label-9489
SELECT NULLIF ( ( 26 ), 92 ) / 66 * + 47 + + 7
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9490
SELECT ALL COUNT( * ) * - - 19 AS col2, + 35 * - 9
----
19
-315

skipif mysql # not compatible
query II rowsort label-9490
SELECT ALL COUNT ( * ) * - - 19 AS col2, + 35 * - 9
----
19
-315

query I rowsort
SELECT ( + + 4 ) * - 76 AS col2
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT 10 - - 22 + + 51 * - 51 - - - COALESCE ( + - 48, + - 51 * - SUM( + ( - - 29 ) ), - 36 * + MAX( ALL + + 73 ) ) * + 14 * + 84
----
53879

skipif mysql # not compatible
query I rowsort label-9492
SELECT 10 - - 22 + + 51 * - 51 - - - COALESCE ( + - 48, + - 51 * - SUM ( + ( - - 29 ) ), - 36 * + MAX ( ALL + + 73 ) ) * + 14 * + 84
----
53879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9493
SELECT COUNT( * ) * - - 64 AS col1, - 66 DIV CAST( + + 53 AS SIGNED ) AS col0, COALESCE ( - - 34, COUNT( * ) ) * + NULLIF ( - - 17, + 35 ) + - 18 col1
----
64
-1
560

skipif mysql # not compatible
query III rowsort label-9493
SELECT COUNT ( * ) * - - 64 AS col1, - 66 / CAST ( + + 53 AS INTEGER ) AS col0, COALESCE ( - - 34, COUNT ( * ) ) * + NULLIF ( - - 17, + 35 ) + - 18 col1
----
64
-1
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9494
SELECT 48 * - 57 AS col2, + 66 / + 90 + - + 84 / CASE - + COUNT( * ) WHEN + 28 + 30 THEN NULL WHEN - SUM( - - 62 ) * 79 THEN - 64 / 89 WHEN - - CASE + 4 WHEN + - ( 98 ) * + 57 + ( - 98 + + 51 ) THEN NULL WHEN + 58 / 64 THEN 42 END THEN NULL END * - CAST( NULL AS SIGNED )
----
-2736
NULL

skipif mysql # not compatible
query II rowsort label-9494
SELECT 48 * - 57 AS col2, + 66 / + 90 + - + 84 / CASE - + COUNT ( * ) WHEN + 28 + 30 THEN NULL WHEN - SUM ( - - 62 ) * 79 THEN - 64 / 89 WHEN - - CASE + 4 WHEN + - ( 98 ) * + 57 + ( - 98 + + 51 ) THEN NULL WHEN + 58 / 64 THEN 42 END THEN NULL END * - CAST ( NULL AS INTEGER )
----
-2736
NULL

query I rowsort
SELECT ( 78 ) - 40
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT ( 80 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT ( 80 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT COUNT( * ) * 7 DIV - - 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT COUNT ( * ) * 7 / - - 37 AS col0
----
0

query I rowsort
SELECT DISTINCT ( + 40 ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), 13 ) + 70
----
83

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), 13 ) + 70
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT 71 - - COALESCE ( - + 89, - 93 DIV - - 11 ) * - + 22 - + 40 + + - 22 * + - 50 AS col0
----
3089

skipif mysql # not compatible
query I rowsort label-9500
SELECT 71 - - COALESCE ( - + 89, - 93 / - - 11 ) * - + 22 - + 40 + + - 22 * + - 50 AS col0
----
3089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL + 56 * + 61 + - - CAST( 62 AS SIGNED )
----
3478

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + 56 * + 61 + - - CAST ( 62 AS INTEGER )
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT 2 * + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9502
SELECT 2 * + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9503
SELECT 18 - COALESCE ( + 93, + - CAST( NULL AS SIGNED ) ) DIV - 92 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9503
SELECT 18 - COALESCE ( + 93, + - CAST ( NULL AS INTEGER ) ) / - 92 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT - - COALESCE ( 0, - + 8, + 90 * ( COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9504
SELECT - - COALESCE ( 0, - + 8, + 90 * ( COUNT ( * ) ) )
----
0

query I rowsort
SELECT ALL + - 88 + + - 1 col2
----
-89

query I rowsort
SELECT - ( 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT 82 * + NULLIF ( 92, - 89 ) * 82 + - COUNT( * ) AS col2
----
618607

skipif mysql # not compatible
query I rowsort label-9507
SELECT 82 * + NULLIF ( 92, - 89 ) * 82 + - COUNT ( * ) AS col2
----
618607

query I rowsort
SELECT ALL - + ( - CASE - 95 WHEN - 28 THEN + 18 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT ( - 89 ) * - 23 * + + 74 + - - 24
----
151502

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9510
SELECT ALL - 34 * - + 56 + - - 15 * + CAST( NULL AS DECIMAL ) AS col0, 45 col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-9510
SELECT ALL - 34 * - + 56 + - - 15 * + CAST ( NULL AS REAL ) AS col0, 45 col1
----
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT + 84 * - 40 * COUNT( * ) + 48
----
-3312

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + 84 * - 40 * COUNT ( * ) + 48
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL + + MIN( ( 17 ) ) * - 80 + - - 26
----
-1334

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + + MIN ( ( 17 ) ) * - 80 + - - 26
----
-1334

query I rowsort
SELECT 79 * - 39
----
-3081

query I rowsort
SELECT NULLIF ( + 13, - 93 ) * - ( + 23 ) AS col0
----
-299

query I rowsort
SELECT 85 + 63 - 87 AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9516
SELECT NULLIF ( + 68, - 2 ) DIV 55 + 84 + 59
----
144

skipif mysql # not compatible
query I rowsort label-9516
SELECT NULLIF ( + 68, - 2 ) / 55 + 84 + 59
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT MIN( + 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9517
SELECT MIN ( + 86 ) AS col1
----
86

query I rowsort
SELECT ALL - 14 * - 94
----
1316

query I rowsort
SELECT 4 * - - 27
----
108

query I rowsort
SELECT 5 * - ( + 14 ) * - - NULLIF ( - 41, - 41 + - 96 - + 69 * 58 + 84 * - 44 * 49 ) - + 66 + + 83
----
2887

query I rowsort
SELECT 14 * + - 30 AS col1
----
-420

query I rowsort
SELECT + 37 * 79
----
2923

query I rowsort
SELECT - 25 + + + 70 AS col2
----
45

query I rowsort
SELECT + 30 - - 82
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT ALL CAST( - CAST( - - 20 AS SIGNED ) AS SIGNED ) + + 70 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL CAST ( - CAST ( - - 20 AS INTEGER ) AS INTEGER ) + + 70 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT + COALESCE ( 36, + SUM( ALL + 60 ) ) - - 60
----
96

skipif mysql # not compatible
query I rowsort label-9526
SELECT + COALESCE ( 36, + SUM ( ALL + 60 ) ) - - 60
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL 89 + + COUNT( * ) + + 7
----
97

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL 89 + + COUNT ( * ) + + 7
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9528
SELECT ALL + 7 + + ( - CAST( NULL AS SIGNED ) ) + - - 91 * + - COUNT( ALL - 71 ) * ( + - 87 ) AS col0, - 3
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-9528
SELECT ALL + 7 + + ( - CAST ( NULL AS INTEGER ) ) + - - 91 * + - COUNT ( ALL - 71 ) * ( + - 87 ) AS col0, - 3
----
NULL
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9529
SELECT DISTINCT - 49 + + - 30 - - 87, - COALESCE ( + - 33, - + 97 + 88 + - - MAX( + 18 ) ) AS col0
----
8
33

skipif mysql # not compatible
query II rowsort label-9529
SELECT DISTINCT - 49 + + - 30 - - 87, - COALESCE ( + - 33, - + 97 + 88 + - - MAX ( + 18 ) ) AS col0
----
8
33

query I rowsort
SELECT ALL - COALESCE ( ( + 2 ), - 42 * - 13 + + 74 )
----
-2

query I rowsort
SELECT ALL - 16 + + 74 + - + 44
----
14

query I rowsort
SELECT + - 47 + 65 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + + 36 * COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9533
SELECT + + 36 * COUNT ( * ) AS col0
----
36

query II rowsort
SELECT - 75 AS col0, 13
----
-75
13

query I rowsort
SELECT + NULLIF ( + 12, + 17 ) + + 72 * - 36
----
-2580

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT + NULLIF ( + 68, - - COUNT( * ) ) + + 77 * + 37
----
2917

skipif mysql # not compatible
query I rowsort label-9536
SELECT + NULLIF ( + 68, - - COUNT ( * ) ) + + 77 * + 37
----
2917

query I rowsort
SELECT - 11 * - 95 AS col0
----
1045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9538
SELECT DISTINCT + ( 33 ) + + - 47 - - COUNT( * ) + - + ( - 85 ) - MAX( DISTINCT - + 23 ) DIV + 33 * - - 30 * ( COUNT( * ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT + ( 33 ) + + - 47 - - COUNT ( * ) + - + ( - 85 ) - MAX ( DISTINCT - + 23 ) / + 33 * - - 30 * ( COUNT ( * ) ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL + COALESCE ( - - COUNT( ALL 20 ), + 1 ) - + + 92 + 62
----
-29

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL + COALESCE ( - - COUNT ( ALL 20 ), + 1 ) - + + 92 + 62
----
-29

query I rowsort
SELECT DISTINCT - 94 * 78 - - 59
----
-7273

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9541
SELECT ( + + 75 ) DIV - + ( 82 ) * ( - - 68 ) + + 59 + + COUNT( * ) AS col0, + 48 + + COUNT( * )
----
60
49

skipif mysql # not compatible
query II rowsort label-9541
SELECT ( + + 75 ) / - + ( 82 ) * ( - - 68 ) + + 59 + + COUNT ( * ) AS col0, + 48 + + COUNT ( * )
----
60
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT - - CAST( NULL AS SIGNED ) * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT - - CAST ( NULL AS INTEGER ) * + 11 AS col2
----
NULL

query I rowsort
SELECT ALL + 39 * + + 88 AS col0
----
3432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT + 44 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT + 44 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 83 * 22
----
1826

query I rowsort
SELECT - 48 * - 11 + - 26
----
502

query I rowsort
SELECT - ( + ( 76 ) ) - - + 35 * - - 73
----
2479

query I rowsort
SELECT - 3 * + 66 AS col1
----
-198

query II rowsort
SELECT + ( 14 ), - 39 AS col1
----
14
-39

query II rowsort
SELECT ALL + 55 col1, 99 + 16 * - + 12 * - 48
----
55
9315

onlyif mysql # DIV for integer division: 
query I rowsort label-9551
SELECT DISTINCT - 56 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT - 56 / - 85
----
0

query I rowsort
SELECT NULLIF ( + - 55, ( ( + 79 ) ) ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT ALL 58 * + 23 * + + 66 + + - 48 + - CAST( + + 62 AS SIGNED ) * - 41 AS col0
----
90538

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL 58 * + 23 * + + 66 + + - 48 + - CAST ( + + 62 AS INTEGER ) * - 41 AS col0
----
90538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9554
SELECT ALL + COALESCE ( 95, - 80 * - COALESCE ( 92, 62 + - + CASE 19 WHEN + ( - 79 ) + - 57 THEN - 27 ELSE NULL END, - + CASE - - 99 WHEN 88 THEN NULL WHEN - ( + MAX( ALL - ( 18 ) ) ) THEN 44 + - - 41 * 84 ELSE + CAST( NULL AS SIGNED ) - + 85 END + - 91 * 52 ), 53 ) * - 17 + - 0 DIV 77 AS col2
----
-1615

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + COALESCE ( 95, - 80 * - COALESCE ( 92, 62 + - + CASE 19 WHEN + ( - 79 ) + - 57 THEN - 27 ELSE NULL END, - + CASE - - 99 WHEN 88 THEN NULL WHEN - ( + MAX ( ALL - ( 18 ) ) ) THEN 44 + - - 41 * 84 ELSE + CAST ( NULL AS INTEGER ) - + 85 END + - 91 * 52 ), 53 ) * - 17 + - 0 / 77 AS col2
----
-1615

onlyif mysql # aggregate syntax: 
query II rowsort label-9555
SELECT COUNT( * ) AS col0, + 79 * - + COUNT( * ) AS col1
----
1
-79

skipif mysql # not compatible
query II rowsort label-9555
SELECT COUNT ( * ) AS col0, + 79 * - + COUNT ( * ) AS col1
----
1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL + 74 * - COUNT( * ) + + 26
----
-48

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL + 74 * - COUNT ( * ) + + 26
----
-48

query I rowsort
SELECT ALL - 56 + - 26 - - 92
----
10

query I rowsort
SELECT - - 50 * 18 + + 23 - 10 AS col1
----
913

query I rowsort
SELECT DISTINCT ( + ( 23 ) ) col1
----
23

query II rowsort
SELECT - 31, - 40 * + - 38 col1
----
-31
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - 17 - - + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-9561
SELECT - 17 - - + COUNT ( * )
----
-16

query I rowsort
SELECT + ( + - 21 ) * 2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT - COALESCE ( 20, - - COUNT( ALL + + 97 ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9563
SELECT - COALESCE ( 20, - - COUNT ( ALL + + 97 ) ) AS col0
----
-20

query I rowsort
SELECT - 30 + + 36 AS col2
----
6

query II rowsort
SELECT - 54, 27 AS col2
----
-54
27

query I rowsort
SELECT ALL - + 29 * - - 48 + - + 47 - - 5 * + 1 AS col1
----
-1434

query II rowsort
SELECT ALL + 44 AS col1, 16 AS col1
----
44
16

query I rowsort
SELECT DISTINCT - 2 - + 61 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + - MAX( ALL + 50 ) - + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9569
SELECT + - MAX ( ALL + 50 ) - + - COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT ALL 50 - + NULLIF ( 36, - COUNT( * ) + + + 93 )
----
14

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL 50 - + NULLIF ( 36, - COUNT ( * ) + + + 93 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT + MIN( + 21 ) * - MIN( 58 ) col1
----
-1218

skipif mysql # not compatible
query I rowsort label-9571
SELECT + MIN ( + 21 ) * - MIN ( 58 ) col1
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - - MAX( - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9572
SELECT - - MAX ( - 42 ) AS col0
----
-42

query II rowsort
SELECT - 77 AS col1, + 14 + + 24 AS col1
----
-77
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9574
SELECT - - ( - 48 ) DIV - + 99 - + 1 + + 52 * - 30 + + ( - + COUNT( * ) ) * + - 54 * 40 + + 67 + + ( - 52 ) * - - 66 + - 29 + - - 51 AS col2, - CAST( NULL AS SIGNED ) - MIN( DISTINCT 41 ) + + COALESCE ( - 69, 47 + - COUNT( * ), AVG ( ( - 26 ) ) * 71 )
----
-2744
NULL

skipif mysql # not compatible
query II rowsort label-9574
SELECT - - ( - 48 ) / - + 99 - + 1 + + 52 * - 30 + + ( - + COUNT ( * ) ) * + - 54 * 40 + + 67 + + ( - 52 ) * - - 66 + - 29 + - - 51 AS col2, - CAST ( NULL AS INTEGER ) - MIN ( DISTINCT 41 ) + + COALESCE ( - 69, 47 + - COUNT ( * ), AVG ( ( - 26 ) ) * 71 )
----
-2744
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT + 16 DIV - 59 * 54
----
0

skipif mysql # not compatible
query I rowsort label-9575
SELECT + 16 / - 59 * 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT + + MAX( DISTINCT + - 60 ) * - + 46 * + 24 * + 63
----
4173120

skipif mysql # not compatible
query I rowsort label-9576
SELECT + + MAX ( DISTINCT + - 60 ) * - + 46 * + 24 * + 63
----
4173120

query I rowsort
SELECT + + 91 + - 0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL + CASE 7 WHEN + - 62 + - COUNT( * ) * 68 THEN NULLIF ( + 67, + 80 ) * + 77 * + COUNT( * ) ELSE NULL END / MAX( ALL 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL + CASE 7 WHEN + - 62 + - COUNT ( * ) * 68 THEN NULLIF ( + 67, + 80 ) * + 77 * + COUNT ( * ) ELSE NULL END / MAX ( ALL 11 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9579
SELECT ALL + COUNT( DISTINCT NULLIF ( - 79, - - CAST( NULL AS DECIMAL ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + COUNT ( DISTINCT NULLIF ( - 79, - - CAST ( NULL AS REAL ) ) )
----
1

query II rowsort
SELECT + 91 * + 84 col0, 26
----
7644
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9581
SELECT DISTINCT 56 DIV - + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT 56 / - + COUNT ( * )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT + 67 DIV + + 70 * + - 91 * + ( 71 )
----
0

skipif mysql # not compatible
query I rowsort label-9582
SELECT + 67 / + + 70 * + - 91 * + ( 71 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9583
SELECT CAST( CASE - + 66 WHEN + 68 * - 85 THEN NULL ELSE 85 + + 65 - - 50 END AS SIGNED ) AS col1, COUNT( * ) AS col1
----
200
1

skipif mysql # not compatible
query II rowsort label-9583
SELECT CAST ( CASE - + 66 WHEN + 68 * - 85 THEN NULL ELSE 85 + + 65 - - 50 END AS INTEGER ) AS col1, COUNT ( * ) AS col1
----
200
1

query I rowsort
SELECT 30 * - - 94 AS col0
----
2820

onlyif mysql # aggregate syntax: 
query II rowsort label-9585
SELECT - COUNT( * ) * 96 - + 38 AS col2, ( - ( - 6 ) ) + 61
----
-134
67

skipif mysql # not compatible
query II rowsort label-9585
SELECT - COUNT ( * ) * 96 - + 38 AS col2, ( - ( - 6 ) ) + 61
----
-134
67

query I rowsort
SELECT 49 * 45
----
2205

query I rowsort
SELECT 20 + + 81 col2
----
101

query I rowsort
SELECT ALL 83 + - 13 + - - ( ( + 12 ) ) * - 40
----
-410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT DISTINCT ( + - 8 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT ( + - 8 ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT + 10 * + + 4 - + 81 + + 50 DIV 52 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9590
SELECT + 10 * + + 4 - + 81 + + 50 / 52 AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + - + 52 + 68
----
15

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + - + 52 + 68
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT 64 + - COUNT( * ) col2
----
63

skipif mysql # not compatible
query I rowsort label-9592
SELECT 64 + - COUNT ( * ) col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL - 80 * + 1 * - NULLIF ( - + CASE - 61 WHEN 53 THEN - - COUNT( * ) * + 18 WHEN 94 / - + 69 - - COUNT( * ) THEN - 75 * 76 END, + - 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL - 80 * + 1 * - NULLIF ( - + CASE - 61 WHEN 53 THEN - - COUNT ( * ) * + 18 WHEN 94 / - + 69 - - COUNT ( * ) THEN - 75 * 76 END, + - 63 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 7 * - 33
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT + 1 + + CAST( NULL AS SIGNED ) + - 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT + 1 + + CAST ( NULL AS INTEGER ) + - 55 col2
----
NULL

query I rowsort
SELECT 46 - - 80 AS col1
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9597
SELECT NULLIF ( 69, COUNT( * ) ) * - 20 * + + CAST( NULL AS SIGNED ) AS col0, - 14 + 76 * - 77 AS col1
----
NULL
-5866

skipif mysql # not compatible
query II rowsort label-9597
SELECT NULLIF ( 69, COUNT ( * ) ) * - 20 * + + CAST ( NULL AS INTEGER ) AS col0, - 14 + 76 * - 77 AS col1
----
NULL
-5866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT + CAST( + - 71 AS SIGNED ) - + 58 - 34 * + + 66 AS col0
----
-2373

skipif mysql # not compatible
query I rowsort label-9598
SELECT + CAST ( + - 71 AS INTEGER ) - + 58 - 34 * + + 66 AS col0
----
-2373

onlyif mysql # aggregate syntax: 
query II rowsort label-9599
SELECT ALL - 22 * + - 11, CASE - 78 WHEN - - 92 * - MAX( - 2 ) * ( 66 ) + MIN( DISTINCT - + 72 ) THEN NULL WHEN - COUNT( * ) THEN - + COUNT( * ) ELSE NULL END + + 14 AS col2
----
242
NULL

skipif mysql # not compatible
query II rowsort label-9599
SELECT ALL - 22 * + - 11, CASE - 78 WHEN - - 92 * - MAX ( - 2 ) * ( 66 ) + MIN ( DISTINCT - + 72 ) THEN NULL WHEN - COUNT ( * ) THEN - + COUNT ( * ) ELSE NULL END + + 14 AS col2
----
242
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9600
SELECT - 51 + + 9 + - 37 DIV 72 * 5 * - - 56 - + 14 + COALESCE ( - - COUNT( CAST( - 62 AS SIGNED ) ), - 80 - + 34 + - + 70 + + - 13 ) * - 1 * - - 67 DIV 58
----
-57

skipif mysql # not compatible
query I rowsort label-9600
SELECT - 51 + + 9 + - 37 / 72 * 5 * - - 56 - + 14 + COALESCE ( - - COUNT ( CAST ( - 62 AS INTEGER ) ), - 80 - + 34 + - + 70 + + - 13 ) * - 1 * - - 67 / 58
----
-57

query I rowsort
SELECT 95 * - + 5
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT CASE - - 55 WHEN - 38 * COUNT( * ) + 96 THEN - 70 + 31 WHEN + 0 * - 27 THEN 74 END + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT CASE - - 55 WHEN - 38 * COUNT ( * ) + 96 THEN - 70 + 31 WHEN + 0 * - 27 THEN 74 END + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT - MIN( ( - 19 ) )
----
19

skipif mysql # not compatible
query I rowsort label-9603
SELECT - MIN ( ( - 19 ) )
----
19

query I rowsort
SELECT + 40 + + + 82 + 35 col0
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT + COUNT( * ) + 89 AS col1, - ( + ( - - SUM( + 26 ) ) ) * - + 43 + - + 25 AS col2
----
90
1093

skipif mysql # not compatible
query II rowsort label-9605
SELECT + COUNT ( * ) + 89 AS col1, - ( + ( - - SUM ( + 26 ) ) ) * - + 43 + - + 25 AS col2
----
90
1093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9606
SELECT ALL + 57 * 11 / + - CAST( + - SUM( DISTINCT - 49 ) AS SIGNED ) + CAST( NULL AS SIGNED ) * - MIN( + - 90 ) AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9606
SELECT ALL + 57 * 11 / + - CAST ( + - SUM ( DISTINCT - 49 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) * - MIN ( + - 90 ) AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9607
SELECT ( + 84 ) * - 40 * MAX( + CAST( NULL AS SIGNED ) ) * + - 82 + - CAST( NULL AS SIGNED ) / + 30 * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT ( + 84 ) * - 40 * MAX ( + CAST ( NULL AS INTEGER ) ) * + - 82 + - CAST ( NULL AS INTEGER ) / + 30 * + 43
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT ALL - - 85 DIV 76
----
1

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - - 85 / 76
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT DISTINCT - 29 * + CASE - + COUNT( * ) WHEN 67 THEN 26 * - - 61 * + - ( 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT - 29 * + CASE - + COUNT ( * ) WHEN 67 THEN 26 * - - 61 * + - ( 65 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT ALL CAST( + COALESCE ( - - 11, - - 21 / + AVG ( 92 ) * + - 71 - + + 55 ) AS SIGNED ) + + 48
----
59

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL CAST ( + COALESCE ( - - 11, - - 21 / + AVG ( 92 ) * + - 71 - + + 55 ) AS INTEGER ) + + 48
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT DISTINCT - CAST( 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT - CAST ( 77 AS INTEGER )
----
-77

query II rowsort
SELECT DISTINCT - 71 AS col1, - 11
----
-71
-11

query I rowsort
SELECT ALL 43 + - 4 + 52 * 59 AS col1
----
3107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT CASE - 43 WHEN + COUNT( CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) + 92 THEN + 69 * + ( + ( - + 12 ) ) - - 32 ELSE NULL END + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT CASE - 43 WHEN + COUNT ( CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + 92 THEN + 69 * + ( + ( - + 12 ) ) - - 32 ELSE NULL END + 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT 84 * 86 + CASE 13 WHEN + COUNT( * ) THEN NULL WHEN - + 29 + - + 9 THEN COUNT( * ) ELSE NULL END * - 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT 84 * 86 + CASE 13 WHEN + COUNT ( * ) THEN NULL WHEN - + 29 + - + 9 THEN COUNT ( * ) ELSE NULL END * - 41 col0
----
NULL

query I rowsort
SELECT ALL 72 * + 55
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL + ( - + 4 ) + + 27 + - 77 - + 71 * COUNT( * ) - - COUNT( * ) * - + 91 + ( - - 67 ) - 52 * - - 96
----
-5141

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + ( - + 4 ) + + 27 + - 77 - + 71 * COUNT ( * ) - - COUNT ( * ) * - + 91 + ( - - 67 ) - 52 * - - 96
----
-5141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT ALL 66 + - NULLIF ( - + NULLIF ( + CAST( NULL AS SIGNED ), 90 ), - NULLIF ( - - 70, + ( - 37 ) ) + 23 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL 66 + - NULLIF ( - + NULLIF ( + CAST ( NULL AS INTEGER ), 90 ), - NULLIF ( - - 70, + ( - 37 ) ) + 23 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL 77 + - 7 - MIN( ALL 54 ) * + NULLIF ( + 91, 54 + 10 * + COUNT( * ) ) + - ( - - 3 ) + - + COUNT( * )
----
-4848

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL 77 + - 7 - MIN ( ALL 54 ) * + NULLIF ( + 91, 54 + 10 * + COUNT ( * ) ) + - ( - - 3 ) + - + COUNT ( * )
----
-4848

query I rowsort
SELECT + 43 * + - 43 + - 54 - NULLIF ( - ( - 4 ), - NULLIF ( 0, - ( 73 ) ) )
----
-1907

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT + SUM( ALL 68 )
----
68

skipif mysql # not compatible
query I rowsort label-9621
SELECT + SUM ( ALL 68 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9622
SELECT DISTINCT - 6 col0, MAX( 74 ) AS col1
----
-6
74

skipif mysql # not compatible
query II rowsort label-9622
SELECT DISTINCT - 6 col0, MAX ( 74 ) AS col1
----
-6
74

query I rowsort
SELECT ALL 30 * 89
----
2670

query I rowsort
SELECT 44 * - 78 AS col1
----
-3432

query II rowsort
SELECT 1 AS col2, 92 col1
----
1
92

query II rowsort
SELECT + 82 AS col1, 71
----
82
71

query I rowsort
SELECT + 55 + + 8 col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9628
SELECT + NULLIF ( - 58, NULLIF ( 19, - SUM( - ( - 22 ) ) + + 9 ) + - CAST( NULL AS SIGNED ) + + ( 43 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-9628
SELECT + NULLIF ( - 58, NULLIF ( 19, - SUM ( - ( - 22 ) ) + + 9 ) + - CAST ( NULL AS INTEGER ) + + ( 43 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT MAX( + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT MAX ( + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT - 35 - 16 * NULLIF ( - - 60, - COUNT( ALL - 90 ) )
----
-995

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT - 35 - 16 * NULLIF ( - - 60, - COUNT ( ALL - 90 ) )
----
-995

query I rowsort
SELECT ALL + + 54 * - 48 * + + 26 AS col0
----
-67392

query II rowsort
SELECT DISTINCT 72, - 69 AS col0
----
72
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9633
SELECT CAST( + + ( + 58 ) AS SIGNED ) + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT CAST ( + + ( + 58 ) AS INTEGER ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT ALL - CASE AVG ( DISTINCT COALESCE ( + 76, + 51, - 17 ) ) WHEN + 16 + - 29 * + 30 * + 89 THEN - 49 * - 38 * - COUNT( * ) * - - CAST( ( AVG ( ALL - 70 ) ) AS SIGNED ) WHEN - - 84 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL - CASE AVG ( DISTINCT COALESCE ( + 76, + 51, - 17 ) ) WHEN + 16 + - 29 * + 30 * + 89 THEN - 49 * - 38 * - COUNT ( * ) * - - CAST ( ( AVG ( ALL - 70 ) ) AS INTEGER ) WHEN - - 84 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ALL + + 62 * - + MAX( + 27 ) + + 9
----
-1665

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL + + 62 * - + MAX ( + 27 ) + + 9
----
-1665

query I rowsort
SELECT 51 * + 77 * - 66 * + 25
----
-6479550

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT + 15 - COUNT( * ) * + 23 + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9637
SELECT + 15 - COUNT ( * ) * + 23 + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9638
SELECT 91 AS col2, MIN( + - 1 )
----
91
-1

skipif mysql # not compatible
query II rowsort label-9638
SELECT 91 AS col2, MIN ( + - 1 )
----
91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL - + COUNT( * ) * - 14 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL - + COUNT ( * ) * - 14 AS col0
----
14

query II rowsort
SELECT - 73 AS col1, 27 * 32
----
-73
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9641
SELECT 40 + - + ( + 22 ) * + COALESCE ( + 63, + 22 + - 97 DIV - 64, + + 8 ) * - + 9 + + + 76 - + - 79 + - NULLIF ( + 2, ( + 0 ) ) AS col1, COUNT( * ) AS col1
----
12667
1

skipif mysql # not compatible
query II rowsort label-9641
SELECT 40 + - + ( + 22 ) * + COALESCE ( + 63, + 22 + - 97 / - 64, + + 8 ) * - + 9 + + + 76 - + - 79 + - NULLIF ( + 2, ( + 0 ) ) AS col1, COUNT ( * ) AS col1
----
12667
1

query I rowsort
SELECT ALL + 69 + + + 62 AS col1
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9643
SELECT DISTINCT + - 20 * 46 DIV + + NULLIF ( - 46, + MIN( DISTINCT 23 ) - + - ( - 37 ) + + NULLIF ( 40, + - 11 ) ), 78 * 86 + - - 21 AS col1
----
20
6729

skipif mysql # not compatible
query II rowsort label-9643
SELECT DISTINCT + - 20 * 46 / + + NULLIF ( - 46, + MIN ( DISTINCT 23 ) - + - ( - 37 ) + + NULLIF ( 40, + - 11 ) ), 78 * 86 + - - 21 AS col1
----
20
6729

query I rowsort
SELECT ALL - - 57 * + 50 AS col1
----
2850

query II rowsort
SELECT DISTINCT - 7 AS col1, - 2 AS col0
----
-7
-2

query I rowsort
SELECT DISTINCT - 69 + - 24 AS col1
----
-93

query I rowsort
SELECT - 50 * 48 AS col1
----
-2400

query I rowsort
SELECT DISTINCT - 2 * 94 + + + 54
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT 31 * - COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT 31 * - COUNT ( * ) AS col2
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9650
SELECT COALESCE ( + 49, MAX( ALL + 54 ) + - 70 DIV + 14 + + COUNT( * ), + COALESCE ( 68, 82, - 79 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9650
SELECT COALESCE ( + 49, MAX ( ALL + 54 ) + - 70 / + 14 + + COUNT ( * ), + COALESCE ( 68, 82, - 79 ) ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL + NULLIF ( 76, + ( + COUNT( * ) ) * - - 44 ) * 8 AS col2
----
608

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL + NULLIF ( 76, + ( + COUNT ( * ) ) * - - 44 ) * 8 AS col2
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT 16 * - CASE 80 WHEN + + COUNT( - 64 ) * - 61 * 15 THEN + 53 ELSE - + 22 END - - 73
----
425

skipif mysql # not compatible
query I rowsort label-9652
SELECT 16 * - CASE 80 WHEN + + COUNT ( - 64 ) * - 61 * 15 THEN + 53 ELSE - + 22 END - - 73
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + SUM( + + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9653
SELECT + SUM ( + + 95 )
----
95

query I rowsort
SELECT - 12 + - 11 AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT ALL 82 DIV - 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL 82 / - 89 col0
----
0

query I rowsort
SELECT + 14 * + 63 + 66 AS col1
----
948

query I rowsort
SELECT DISTINCT 35 * - 54 - + + 70
----
-1960

onlyif mysql # DIV for integer division: 
query II rowsort label-9658
SELECT DISTINCT + + COALESCE ( 51, 97 ) DIV - + 91 AS col2, - 69 AS col1
----
0
-69

skipif mysql # not compatible
query II rowsort label-9658
SELECT DISTINCT + + COALESCE ( 51, 97 ) / - + 91 AS col2, - 69 AS col1
----
0
-69

query I rowsort
SELECT ALL + ( - - ( + 45 ) ) AS col0
----
45

query I rowsort
SELECT + - 36 + + - 80 + - 86 AS col1
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT ALL + MIN( - - 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL + MIN ( - - 35 ) AS col1
----
35

query I rowsort
SELECT + + 61 + + 48 AS col1
----
109

query I rowsort
SELECT ALL + 56 * 48 AS col2
----
2688

onlyif mysql # aggregate syntax: 
query II rowsort label-9664
SELECT + 42 * 55 AS col0, COUNT( * )
----
2310
1

skipif mysql # not compatible
query II rowsort label-9664
SELECT + 42 * 55 AS col0, COUNT ( * )
----
2310
1

query I rowsort
SELECT + - 87 + + 55 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - + 6 * - ( - - ( 48 ) ) - + + 65 * + 32 * + COUNT( * ) AS col2
----
-1792

skipif mysql # not compatible
query I rowsort label-9666
SELECT - + 6 * - ( - - ( 48 ) ) - + + 65 * + 32 * + COUNT ( * ) AS col2
----
-1792

query I rowsort
SELECT + 8 * - 86
----
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT + COUNT( * ) + + 62 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9668
SELECT + COUNT ( * ) + + 62 AS col0
----
63

query I rowsort
SELECT - 82 + - 47
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT + SUM( DISTINCT + - 5 ) * + - 28 - - - 27 + + COUNT( * ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT + SUM ( DISTINCT + - 5 ) * + - 28 - - - 27 + + COUNT ( * ) AS col2
----
114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9671
SELECT DISTINCT - ( + ( - 7 ) ) + - 17 DIV 17 + - COUNT( ALL + CAST( 43 AS DECIMAL ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT - ( + ( - 7 ) ) + - 17 / 17 + - COUNT ( ALL + CAST ( 43 AS REAL ) ) AS col1
----
5

query II rowsort
SELECT ALL + 40 + 15, - 61 * - + 70 + 46 AS col0
----
55
4316

query I rowsort
SELECT DISTINCT 9 + + 30 * + - 47 * + + 17
----
-23961

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + + 60 + SUM( + + 63 )
----
123

skipif mysql # not compatible
query I rowsort label-9674
SELECT + + 60 + SUM ( + + 63 )
----
123

query I rowsort
SELECT DISTINCT 27 + 93 - - 49
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - MIN( - 49 ) + + 64 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - MIN ( - 49 ) + + 64 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + 50 + + + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9677
SELECT + 50 + + + COUNT ( * ) AS col2
----
51

query I rowsort
SELECT - ( 62 ) AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9679
SELECT + 26 + + COUNT( - 83 ) AS col2, COUNT( * ) + CAST( - 96 AS SIGNED ) AS col1
----
27
-95

skipif mysql # not compatible
query II rowsort label-9679
SELECT + 26 + + COUNT ( - 83 ) AS col2, COUNT ( * ) + CAST ( - 96 AS INTEGER ) AS col1
----
27
-95

query I rowsort
SELECT + 85 * - - 47
----
3995

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + COUNT( * ) + + + 64
----
65

skipif mysql # not compatible
query I rowsort label-9681
SELECT + COUNT ( * ) + + + 64
----
65

query I rowsort
SELECT DISTINCT 26 * - 45 AS col0
----
-1170

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT - 96 + - 39 DIV 25 + + - 99
----
-196

skipif mysql # not compatible
query I rowsort label-9683
SELECT - 96 + - 39 / 25 + + - 99
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL 60 * + + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL 60 * + + COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT - COUNT( * ) * + + 87 * - + 48 AS col1
----
4176

skipif mysql # not compatible
query I rowsort label-9685
SELECT - COUNT ( * ) * + + 87 * - + 48 AS col1
----
4176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT + 98 / - CAST( NULL AS SIGNED ) + + - ( - + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT + 98 / - CAST ( NULL AS INTEGER ) + + - ( - + 30 )
----
NULL

query I rowsort
SELECT + 60 * - 24
----
-1440

query I rowsort
SELECT - 25 + - ( 57 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - SUM( DISTINCT - 15 ) * + + 25 * - 37 * 41
----
-568875

skipif mysql # not compatible
query I rowsort label-9689
SELECT - SUM ( DISTINCT - 15 ) * + + 25 * - 37 * 41
----
-568875

query I rowsort
SELECT - ( + 78 ) * - 9
----
702

query I rowsort
SELECT + COALESCE ( 94, + - 44 * + 94 + + 40 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT + 76 * - + NULLIF ( - - COUNT( * ), - - 37 + 2 + + + 12 * COALESCE ( + NULLIF ( + 15, 49 ), - CASE 38 WHEN + + CASE 94 WHEN - 73 THEN + ( + + 68 ) END THEN ( - 35 ) WHEN + 75 THEN NULL ELSE - 37 + - 62 END + - 32, + 0 ) + - - 34 + 79 * 69 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + 76 * - + NULLIF ( - - COUNT ( * ), - - 37 + 2 + + + 12 * COALESCE ( + NULLIF ( + 15, 49 ), - CASE 38 WHEN + + CASE 94 WHEN - 73 THEN + ( + + 68 ) END THEN ( - 35 ) WHEN + 75 THEN NULL ELSE - 37 + - 62 END + - 32, + 0 ) + - - 34 + 79 * 69 ) AS col2
----
-76

query I rowsort
SELECT DISTINCT + COALESCE ( + ( - 69 ), 25 ) AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9694
SELECT ALL + SUM( + 13 ) * 29 - - 90 DIV + 73 AS col0, 14
----
378
14

skipif mysql # not compatible
query II rowsort label-9694
SELECT ALL + SUM ( + 13 ) * 29 - - 90 / + 73 AS col0, 14
----
378
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT - - COUNT( * ) + - + 23 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9695
SELECT - - COUNT ( * ) + - + 23 AS col0
----
-22

query I rowsort
SELECT ALL + NULLIF ( 22, + + 61 ) * - 6
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL + SUM( DISTINCT + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL + SUM ( DISTINCT + 92 ) AS col0
----
92

query I rowsort
SELECT DISTINCT + - 20 * 89 col1
----
-1780

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ALL + ( - - 35 ) * + MIN( 45 ) AS col2
----
1575

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + ( - - 35 ) * + MIN ( 45 ) AS col2
----
1575

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT + 44 DIV + 45 * + + 86
----
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT + 44 / + 45 * + + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT + MAX( DISTINCT - 4 ) + + COALESCE ( 28, - 63 ) col0
----
24

skipif mysql # not compatible
query I rowsort label-9701
SELECT + MAX ( DISTINCT - 4 ) + + COALESCE ( 28, - 63 ) col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9702
SELECT + COALESCE ( - 73, + + COUNT( * ) ) DIV - ( 14 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9702
SELECT + COALESCE ( - 73, + + COUNT ( * ) ) / - ( 14 ) AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT ALL + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - + 46 + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 46 + - 31
----
NULL

query I rowsort
SELECT + 19 * + 82
----
1558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT ALL - + CASE 39 WHEN ( 58 ) * COUNT( * ) + + + 48 THEN + + 50 DIV + 71 ELSE 22 END DIV + 11 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - + CASE 39 WHEN ( 58 ) * COUNT ( * ) + + + 48 THEN + + 50 / + 71 ELSE 22 END / + 11 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + 81 * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + 81 * + 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT DISTINCT - 42 + - CASE 89 WHEN + AVG ( + + 87 ) + - CAST( NULL AS SIGNED ) * + - 99 * 94 THEN NULL WHEN + + 70 * + MIN( ALL + COALESCE ( + 7, - CAST( + + 17 AS SIGNED ) + + 86 ) ) / - 50 THEN - 35 + + COUNT( * ) / 5 WHEN - 20 THEN + - 4 * + MAX( + 35 ) END - + 26 * + - 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT - 42 + - CASE 89 WHEN + AVG ( + + 87 ) + - CAST ( NULL AS INTEGER ) * + - 99 * 94 THEN NULL WHEN + + 70 * + MIN ( ALL + COALESCE ( + 7, - CAST ( + + 17 AS INTEGER ) + + 86 ) ) / - 50 THEN - 35 + + COUNT ( * ) / 5 WHEN - 20 THEN + - 4 * + MAX ( + 35 ) END - + 26 * + - 23 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT COUNT( * ) + - 18 + 93 * - - 73 AS col1
----
6772

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT COUNT ( * ) + - 18 + 93 * - - 73 AS col1
----
6772

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL ( - + NULLIF ( - COALESCE ( 1, - - 74, - 20 * - 2 * + 51 ), 8 * + - 80 * ( - - COUNT( * ) ) ) ) + - 24 + + + 92 * - + 30
----
-2783

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL ( - + NULLIF ( - COALESCE ( 1, - - 74, - 20 * - 2 * + 51 ), 8 * + - 80 * ( - - COUNT ( * ) ) ) ) + - 24 + + + 92 * - + 30
----
-2783

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT - MAX( - + 44 ) - + - 86
----
130

skipif mysql # not compatible
query I rowsort label-9710
SELECT - MAX ( - + 44 ) - + - 86
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-9711
SELECT 56 AS col2, - NULLIF ( - COUNT( ALL 74 ), - COUNT( * ) ) AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-9711
SELECT 56 AS col2, - NULLIF ( - COUNT ( ALL 74 ), - COUNT ( * ) ) AS col0
----
56
NULL

query I rowsort
SELECT 23 + 51
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT 93, 50 * + COUNT( * ) AS col0
----
93
50

skipif mysql # not compatible
query II rowsort label-9713
SELECT 93, 50 * + COUNT ( * ) AS col0
----
93
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT 14 - - - 61 - - 0 * - - COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT 14 - - - 61 - - 0 * - - COUNT ( * ) AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9715
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * + 3 + + COUNT( * ) - + 28 + + - ( - + 46 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * + 3 + + COUNT ( * ) - + 28 + + - ( - + 46 ) AS col0
----
22

query I rowsort
SELECT ALL 49 - + 59 + + + 57
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9717
SELECT 80 AS col2, + ( + 83 ) DIV CAST( - 56 AS SIGNED ) col1
----
80
-1

skipif mysql # not compatible
query II rowsort label-9717
SELECT 80 AS col2, + ( + 83 ) / CAST ( - 56 AS INTEGER ) col1
----
80
-1

query II rowsort
SELECT ALL 53 AS col2, 7 AS col2
----
53
7

query II rowsort
SELECT DISTINCT 4 AS col1, 94
----
4
94

query II rowsort
SELECT ALL 13 - + - ( - + ( + NULLIF ( 51, 99 ) ) ) AS col1, 13 AS col1
----
-38
13

query II rowsort
SELECT 72 AS col2, - 36 * + 44 * 40
----
72
-63360

onlyif mysql # aggregate syntax: 
query II rowsort label-9722
SELECT ALL 7 * + 43 AS col1, + COUNT( * )
----
301
1

skipif mysql # not compatible
query II rowsort label-9722
SELECT ALL 7 * + 43 AS col1, + COUNT ( * )
----
301
1

query I rowsort
SELECT ALL + 90 * - - 70
----
6300

query I rowsort
SELECT ALL 71 * + 85
----
6035

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT - ( - - NULLIF ( + 71, - 87 * + CASE + - 94 WHEN + 55 THEN + 93 + - - 15 + COUNT( * ) * + 46 + - MIN( 28 ) * - 42 + - + COUNT( - 53 ) + 82 + + 41 * + - 36 * 19 ELSE NULL END ) )
----
-71

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT - ( - - NULLIF ( + 71, - 87 * + CASE + - 94 WHEN + 55 THEN + 93 + - - 15 + COUNT ( * ) * + 46 + - MIN ( 28 ) * - 42 + - + COUNT ( - 53 ) + 82 + + 41 * + - 36 * 19 ELSE NULL END ) )
----
-71

query II rowsort
SELECT ALL 47 * + 89 col2, 74
----
4183
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9727
SELECT DISTINCT - 21, - ( - 73 ) * - MIN( + - 27 ) AS col1
----
-21
1971

skipif mysql # not compatible
query II rowsort label-9727
SELECT DISTINCT - 21, - ( - 73 ) * - MIN ( + - 27 ) AS col1
----
-21
1971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT ALL COUNT( + NULLIF ( 77, - CAST( 74 AS SIGNED ) ) ) * - COUNT( * ) * + + 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL COUNT ( + NULLIF ( 77, - CAST ( 74 AS INTEGER ) ) ) * - COUNT ( * ) * + + 47 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9729
SELECT - CAST( NULL AS SIGNED ) * - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT - CAST ( NULL AS INTEGER ) * - + 17
----
NULL

query I rowsort
SELECT ALL - - 30 + + + 32
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9731
SELECT COUNT( * ) * 84 - COUNT( * ) + + + MAX( - CAST( + 64 AS SIGNED ) ) * 41 AS col0
----
-2541

skipif mysql # not compatible
query I rowsort label-9731
SELECT COUNT ( * ) * 84 - COUNT ( * ) + + + MAX ( - CAST ( + 64 AS INTEGER ) ) * 41 AS col0
----
-2541

query II rowsort
SELECT DISTINCT - 67 AS col1, - 58 AS col0
----
-67
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9733
SELECT + 34 DIV + + 87 + COUNT( * ) * - 62 + - 90
----
-152

skipif mysql # not compatible
query I rowsort label-9733
SELECT + 34 / + + 87 + COUNT ( * ) * - 62 + - 90
----
-152

query I rowsort
SELECT + 68 + + 13 + 76
----
157

query I rowsort
SELECT - ( - - 21 ) * - 81 + + 12
----
1713

query I rowsort
SELECT ALL - - 42 + 64
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9737
SELECT CAST( NULL AS SIGNED ) AS col2, - 40 AS col1
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-9737
SELECT CAST ( NULL AS INTEGER ) AS col2, - 40 AS col1
----
NULL
-40

query I rowsort
SELECT ALL + 4 + - 70 * + - 53 + - + 72 + - 30 AS col2
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ALL - - COALESCE ( 38, - + 58, - + 44, 81 * - + COUNT( * ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL - - COALESCE ( 38, - + 58, - + 44, 81 * - + COUNT ( * ) ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT 87 + + + 86 + - 41 + + 16 - + ( 64 ) + + + 45 + - MIN( ALL + - 8 )
----
137

skipif mysql # not compatible
query I rowsort label-9740
SELECT 87 + + + 86 + - 41 + + 16 - + ( 64 ) + + + 45 + - MIN ( ALL + - 8 )
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-9741
SELECT DISTINCT - - 0 * + - 61 DIV 61 * + - 51 col0
----
0

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT - - 0 * + - 61 / 61 * + - 51 col0
----
0

query I rowsort
SELECT 64 * + - 73 + 82 AS col1
----
-4590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9743
SELECT - COALESCE ( + 14, 76 + - 47, + MIN( ALL - 17 ), - - 14 DIV 0 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9743
SELECT - COALESCE ( + 14, 76 + - 47, + MIN ( ALL - 17 ), - - 14 / 0 ) AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9744
SELECT + CASE - - 17 WHEN + - 29 THEN - 23 * + + 33 + - + CAST( - MAX( DISTINCT + + 77 ) AS SIGNED ) * - 88 WHEN AVG ( + 76 ) + + - 37 THEN - 57 * + 60 ELSE + 35 END * - 41 - 46 + - - 66 + 96 * + 94 - + ( ( - NULLIF ( 31, - + CAST( NULL AS SIGNED ) * + 68 ) ) )
----
7640

skipif mysql # not compatible
query I rowsort label-9744
SELECT + CASE - - 17 WHEN + - 29 THEN - 23 * + + 33 + - + CAST ( - MAX ( DISTINCT + + 77 ) AS INTEGER ) * - 88 WHEN AVG ( + 76 ) + + - 37 THEN - 57 * + 60 ELSE + 35 END * - 41 - 46 + - - 66 + 96 * + 94 - + ( ( - NULLIF ( 31, - + CAST ( NULL AS INTEGER ) * + 68 ) ) )
----
7640

query II rowsort
SELECT 97 AS col2, 38
----
97
38

query I rowsort
SELECT 39 * - + 36
----
-1404

onlyif mysql # aggregate syntax: 
query II rowsort label-9747
SELECT COALESCE ( + 99, - 95 - + 26 * - 46 ) + - ( - - 40 ) - - ( 55 ) + COUNT( * ) AS col2, - 90
----
115
-90

skipif mysql # not compatible
query II rowsort label-9747
SELECT COALESCE ( + 99, - 95 - + 26 * - 46 ) + - ( - - 40 ) - - ( 55 ) + COUNT ( * ) AS col2, - 90
----
115
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9748
SELECT DISTINCT - 75 DIV - 14, 89 * 66 * + + COALESCE ( - 68, - + 80 * - 91 - - - COUNT( * ) DIV - MAX( + 22 ) ) col2
----
5
-399432

skipif mysql # not compatible
query II rowsort label-9748
SELECT DISTINCT - 75 / - 14, 89 * 66 * + + COALESCE ( - 68, - + 80 * - 91 - - - COUNT ( * ) / - MAX ( + 22 ) ) col2
----
5
-399432

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT 67 + COUNT( DISTINCT - 26 ) - 8 - - COALESCE ( + - ( + 33 ), - + 74 ) * - 25 * 45 * + - COUNT( * )
----
-37065

skipif mysql # not compatible
query I rowsort label-9749
SELECT 67 + COUNT ( DISTINCT - 26 ) - 8 - - COALESCE ( + - ( + 33 ), - + 74 ) * - 25 * 45 * + - COUNT ( * )
----
-37065

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT 74 * + MIN( DISTINCT + 91 ) AS col1
----
6734

skipif mysql # not compatible
query I rowsort label-9750
SELECT 74 * + MIN ( DISTINCT + 91 ) AS col1
----
6734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9751
SELECT ALL 31 * + + 80 AS col1, - COUNT( * ) + + 88 * - + 21 + + - CAST( - 77 AS SIGNED ) * ( - COUNT( * ) ) AS col0
----
2480
-1926

skipif mysql # not compatible
query II rowsort label-9751
SELECT ALL 31 * + + 80 AS col1, - COUNT ( * ) + + 88 * - + 21 + + - CAST ( - 77 AS INTEGER ) * ( - COUNT ( * ) ) AS col0
----
2480
-1926

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9752
SELECT 45 + + ( + SUM( CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT 45 + + ( + SUM ( CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9753
SELECT 64 * - ( - CAST( NULL AS SIGNED ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT 64 * - ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 85 * + 0 AS col2
----
0

query II rowsort
SELECT DISTINCT 30 * + 65 col2, + 31
----
1950
31

query I rowsort
SELECT DISTINCT 6 + - + 44
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT + 51 DIV 49 * - + 90 + - 70 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 51 / 49 * - + 90 + - 70 AS col2
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT - - MAX( ALL + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT - - MAX ( ALL + 62 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9759
SELECT ALL + 65 * 44 DIV 78 + MAX( - 92 )
----
-56

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL + 65 * 44 / 78 + MAX ( - 92 )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-9760
SELECT + 38 * + - 55, - COUNT( * ) AS col0
----
-2090
-1

skipif mysql # not compatible
query II rowsort label-9760
SELECT + 38 * + - 55, - COUNT ( * ) AS col0
----
-2090
-1

query I rowsort
SELECT + 8 + + 61 * - 68 + + 49 AS col2
----
-4091

query I rowsort
SELECT ALL + + 33 * - 31 + - ( - 86 ) AS col0
----
-937

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT + - COALESCE ( - + COUNT( * ), + + 21 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9763
SELECT + - COALESCE ( - + COUNT ( * ), + + 21 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9764
SELECT - - CAST( NULL AS SIGNED ) * - COUNT( * ) + + 35 - + 67 * + 37 * + CAST( + - 95 AS SIGNED ) + - - CAST( NULL AS SIGNED ) - 60 + - 65 + + + 37 + - 29 - - 85 + - + 93 / - 15 + + COUNT( * ) * + 84 / - 78 * + - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 35 - + 67 * + 37 * + CAST ( + - 95 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) - 60 + - 65 + + + 37 + - 29 - - 85 + - + 93 / - 15 + + COUNT ( * ) * + 84 / - 78 * + - 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT ALL - 29 * - 48 + + 22, 28 + + + 88 + + 4 + + COUNT( * ) AS col1
----
1414
121

skipif mysql # not compatible
query II rowsort label-9765
SELECT ALL - 29 * - 48 + + 22, 28 + + + 88 + + 4 + + COUNT ( * ) AS col1
----
1414
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT DISTINCT + - ( + 5 ) * - 35 + - + 26 - + CASE COUNT( * ) WHEN 85 THEN + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT + - ( + 5 ) * - 35 + - + 26 - + CASE COUNT ( * ) WHEN 85 THEN + + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT CASE + - 89 WHEN - 1 THEN + 76 END * - + ( - + ( - MAX( DISTINCT 73 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT CASE + - 89 WHEN - 1 THEN + 76 END * - + ( - + ( - MAX ( DISTINCT 73 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT + MIN( - + 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9768
SELECT + MIN ( - + 95 ) AS col2
----
-95

query I rowsort
SELECT + - 61 - - 89
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT + COALESCE ( + 37, - CASE - 92 WHEN - + ( 32 ) * - COUNT( * ) THEN + 13 * - + 42 + 29 WHEN + 94 THEN - 97 END ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9770
SELECT + COALESCE ( + 37, - CASE - 92 WHEN - + ( 32 ) * - COUNT ( * ) THEN + 13 * - + 42 + 29 WHEN + 94 THEN - 97 END ) AS col1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT DISTINCT + 59 - - NULLIF ( - 2, + 74 ) DIV ( + 98 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT + 59 - - NULLIF ( - 2, + 74 ) / ( + 98 ) AS col0
----
59

query I rowsort
SELECT ALL + + 35 - 22
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT - SUM( + 76 ) * - 63 AS col0
----
4788

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT - SUM ( + 76 ) * - 63 AS col0
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT COUNT( + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT COUNT ( + 21 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9775
SELECT ALL + COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL + COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT - 20 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-9776
SELECT - 20 / - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT - COUNT( * ) * + 69 * - 12
----
828

skipif mysql # not compatible
query I rowsort label-9777
SELECT - COUNT ( * ) * + 69 * - 12
----
828

query I rowsort
SELECT ALL + 62 * - 70 AS col2
----
-4340

query I rowsort
SELECT ALL NULLIF ( + 3, 9 + - ( + 10 ) * + 14 ) AS col0
----
3

query I rowsort
SELECT - 96 + - - 14 * - 4 AS col0
----
-152

query II rowsort
SELECT 56 col2, 85
----
56
85

query I rowsort
SELECT ALL ( 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9783
SELECT - COUNT( + + ( + 58 ) ) DIV + 97 DIV 15 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT - COUNT ( + + ( + 58 ) ) / + 97 / 15 * + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL COUNT( DISTINCT + ( - 86 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL COUNT ( DISTINCT + ( - 86 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL NULLIF ( 42, 21 + + - COUNT( DISTINCT + 62 ) + + 26 + - 32 * + MAX( 80 ) * - 29 + 5 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL NULLIF ( 42, 21 + + - COUNT ( DISTINCT + 62 ) + + 26 + - 32 * + MAX ( 80 ) * - 29 + 5 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9786
SELECT - 19 AS col2, + COUNT( * ) * - 29 AS col1
----
-19
-29

skipif mysql # not compatible
query II rowsort label-9786
SELECT - 19 AS col2, + COUNT ( * ) * - 29 AS col1
----
-19
-29

query I rowsort
SELECT DISTINCT NULLIF ( 25, - 32 ) AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT ALL COUNT( ALL - + 80 ) + - 58 + + 31 + + COUNT( * ) DIV - - 33 * + - 19 * COUNT( * ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL COUNT ( ALL - + 80 ) + - 58 + + 31 + + COUNT ( * ) / - - 33 * + - 19 * COUNT ( * ) col2
----
-26

query I rowsort
SELECT ALL ( - + 91 ) AS col0
----
-91

query I rowsort
SELECT DISTINCT + 18 + - + ( + 2 )
----
16

query I rowsort
SELECT - 47 - - 35
----
-12

query I rowsort
SELECT ALL + 0 + + - COALESCE ( - 16, + + 8 * - 38 ) * + 6
----
96

query I rowsort
SELECT DISTINCT 76 + - + 40 AS col2
----
36

query I rowsort
SELECT - + 34 + - 42
----
-76

query I rowsort
SELECT + 6 * 56 + - 51 AS col2
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT ALL - - 23 DIV - + 7 + 93 * + ( - 87 ) AS col0
----
-8094

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL - - 23 / - + 7 + 93 * + ( - 87 ) AS col0
----
-8094

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT - + 68 * + ( + + 18 ) * - + 95 - COUNT( * ) + + 27
----
116306

skipif mysql # not compatible
query I rowsort label-9797
SELECT - + 68 * + ( + + 18 ) * - + 95 - COUNT ( * ) + + 27
----
116306

query I rowsort
SELECT ALL - 62 * + - 70 AS col1
----
4340

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT ALL + NULLIF ( - - 71, 20 ) DIV 30 + - 43 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL + NULLIF ( - - 71, 20 ) / 30 + - 43 AS col0
----
-41

query I rowsort
SELECT ALL + + 59 * + 25 AS col2
----
1475

query II rowsort
SELECT ALL + NULLIF ( + 98, - 93 ) AS col0, + 84 AS col1
----
98
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT + COALESCE ( - 30, + - 83, + + 21 * + 87 + + + 60 + - - 98 + - 12 + 13 * 68 DIV + - 53 DIV - MIN( - ( + 64 ) ) * - 88 )
----
-30

skipif mysql # not compatible
query I rowsort label-9802
SELECT + COALESCE ( - 30, + - 83, + + 21 * + 87 + + + 60 + - - 98 + - 12 + 13 * 68 / + - 53 / - MIN ( - ( + 64 ) ) * - 88 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT + MAX( ALL + 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-9803
SELECT + MAX ( ALL + 81 ) col0
----
81

query I rowsort
SELECT + 52 + + 42 - 39
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT 10 * + - COUNT( ALL 30 ) + + + 64 - + - 80 + 2
----
136

skipif mysql # not compatible
query I rowsort label-9805
SELECT 10 * + - COUNT ( ALL 30 ) + + + 64 - + - 80 + 2
----
136

query I rowsort
SELECT + + 52 * - 97 AS col2
----
-5044

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT + 66 + 36 - 92 - + + 25 + + ( + + COUNT( * ) ) * - 95
----
-110

skipif mysql # not compatible
query I rowsort label-9807
SELECT + 66 + 36 - 92 - + + 25 + + ( + + COUNT ( * ) ) * - 95
----
-110

query I rowsort
SELECT ALL + 2 * - 48 + 31 + - + 99 - 75
----
-239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9809
SELECT DISTINCT - COUNT( * ) DIV + + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT - COUNT ( * ) / + + 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT + + COUNT( DISTINCT + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-9810
SELECT + + COUNT ( DISTINCT + 25 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT + CAST( + 92 AS SIGNED ) * COUNT( * ) * 68 * + COUNT( * ) AS col0
----
6256

skipif mysql # not compatible
query I rowsort label-9811
SELECT + CAST ( + 92 AS INTEGER ) * COUNT ( * ) * 68 * + COUNT ( * ) AS col0
----
6256

query II rowsort
SELECT + 32 + + - 42, + 25 AS col2
----
-10
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL COUNT( * ) * - COUNT( - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL COUNT ( * ) * - COUNT ( - 43 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9814
SELECT DISTINCT + COUNT( + 6 ) AS col0, SUM( ALL - 86 ) + + 95
----
1
9

skipif mysql # not compatible
query II rowsort label-9814
SELECT DISTINCT + COUNT ( + 6 ) AS col0, SUM ( ALL - 86 ) + + 95
----
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT - ( COUNT( * ) ) + - + 93
----
-94

skipif mysql # not compatible
query I rowsort label-9815
SELECT - ( COUNT ( * ) ) + - + 93
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT - ( 0 ) DIV 88 + - 1 + - 66 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-9816
SELECT - ( 0 ) / 88 + - 1 + - 66 AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9817
SELECT ALL 32 DIV CAST( NULL AS SIGNED ) AS col2, 8 DIV - 98 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9817
SELECT ALL 32 / CAST ( NULL AS INTEGER ) AS col2, 8 / - 98 AS col2
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9818
SELECT + 14 * 76 DIV 18
----
59

skipif mysql # not compatible
query I rowsort label-9818
SELECT + 14 * 76 / 18
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9819
SELECT ALL NULLIF ( - 94, - COALESCE ( + COUNT( * ), - + 51 / ( + COUNT( * ) ) - + + 44, + + 79 + CAST( NULL AS SIGNED ), COUNT( * ) ) ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL NULLIF ( - 94, - COALESCE ( + COUNT ( * ), - + 51 / ( + COUNT ( * ) ) - + + 44, + + 79 + CAST ( NULL AS INTEGER ), COUNT ( * ) ) ) col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT ALL + 79 * + CAST( NULL AS SIGNED ) + - AVG ( - - 91 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL + 79 * + CAST ( NULL AS INTEGER ) + - AVG ( - - 91 ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL COUNT( * ) * + 29 + + 32 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL COUNT ( * ) * + 29 + + 32 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT ( COALESCE ( CASE + - ( + 35 ) WHEN - 49 THEN ( + 4 ) * - CASE + 70 WHEN 45 + - SUM( + + 86 ) - + NULLIF ( + - 93, + 48 ) * MAX( + 57 ) THEN + + CASE WHEN 70 NOT IN ( - COUNT( * ) * - ( + + COUNT( * ) ) ) THEN - 69 * + 12 END + - 19 WHEN 52 THEN NULL END + + COUNT( DISTINCT 87 ) END, 62 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT ( COALESCE ( CASE + - ( + 35 ) WHEN - 49 THEN ( + 4 ) * - CASE + 70 WHEN 45 + - SUM ( + + 86 ) - + NULLIF ( + - 93, + 48 ) * MAX ( + 57 ) THEN + + CASE WHEN 70 NOT IN ( - COUNT ( * ) * - ( + + COUNT ( * ) ) ) THEN - 69 * + 12 END + - 19 WHEN 52 THEN NULL END + + COUNT ( DISTINCT 87 ) END, 62 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL + COUNT( * ) + + - 27
----
-26

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL + COUNT ( * ) + + - 27
----
-26

query I rowsort
SELECT ALL - 76 + + - NULLIF ( + ( 56 ), + 52 ) AS col2
----
-132

query I rowsort
SELECT - 42 + - 83
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL NULLIF ( CASE + - 97 WHEN - 47 * + - 55 + + + 1 THEN - COUNT( 94 ) ELSE + 92 END, - 58 * + - 51 * 61 * + SUM( 1 ) * + - 74 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL NULLIF ( CASE + - 97 WHEN - 47 * + - 55 + + + 1 THEN - COUNT ( 94 ) ELSE + 92 END, - 58 * + - 51 * 61 * + SUM ( 1 ) * + - 74 ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9827
SELECT DISTINCT + 13 + CAST( NULL AS SIGNED ), - 15 AS col2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-9827
SELECT DISTINCT + 13 + CAST ( NULL AS INTEGER ), - 15 AS col2
----
NULL
-15

query I rowsort
SELECT ALL + 40 * - 47
----
-1880

query I rowsort
SELECT ALL + 31 + - 38 AS col0
----
-7

query I rowsort
SELECT - 24 + 52 col0
----
28

query I rowsort
SELECT - ( 65 ) * - + 72 * + 54 col1
----
252720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9832
SELECT - CAST( NULL AS SIGNED ) + 55 + + 10 * 22 + + COUNT( * ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT - CAST ( NULL AS INTEGER ) + 55 + + 10 * 22 + + COUNT ( * ) * + 57
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9833
SELECT - 6 DIV 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9833
SELECT - 6 / 56 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9834
SELECT DISTINCT + 95 + - ( COUNT( * ) ) DIV - - 49 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT + 95 + - ( COUNT ( * ) ) / - - 49 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9835
SELECT DISTINCT + + 69 + - 91 DIV 34 + - - 4
----
71

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT + + 69 + - 91 / 34 + - - 4
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT MIN( DISTINCT + + 92 ) * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9836
SELECT MIN ( DISTINCT + + 92 ) * + COUNT ( * )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT ALL + + CAST( NULL AS SIGNED ) / + ( COUNT( * ) ) + - ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL + + CAST ( NULL AS INTEGER ) / + ( COUNT ( * ) ) + - ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT 1 + 76 * 62 * - COUNT( * ) + + 79 AS col1
----
-4632

skipif mysql # not compatible
query I rowsort label-9838
SELECT 1 + 76 * 62 * - COUNT ( * ) + + 79 AS col1
----
-4632

query I rowsort
SELECT DISTINCT + 75 - - ( 42 ) AS col1
----
117

query I rowsort
SELECT + 70 + - + 37 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9841
SELECT ALL - 25 * + 0 DIV + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - 25 * + 0 / + 26 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9842
SELECT 80 DIV - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-9842
SELECT 80 / - COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL + + MAX( - 69 ) * 31 * 5 * - + 26 AS col0
----
278070

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + + MAX ( - 69 ) * 31 * 5 * - + 26 AS col0
----
278070

query I rowsort
SELECT DISTINCT + 34 * 64 + + - 52 + + 1 * - 73
----
2051

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL + + COUNT( + - ( + 6 ) ) * + MAX( ALL - ( - 16 ) ) col2
----
16

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL + + COUNT ( + - ( + 6 ) ) * + MAX ( ALL - ( - 16 ) ) col2
----
16

query I rowsort
SELECT 49 * + + 14 + 55 AS col2
----
741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL - + CASE - CAST( NULL AS SIGNED ) WHEN - 6 + 72 * - + CASE - 3 WHEN - - 87 THEN - 32 WHEN 24 THEN NULL ELSE + + 35 END + - 69 * - - 77 / 33 THEN - 13 * + 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - + CASE - CAST ( NULL AS INTEGER ) WHEN - 6 + 72 * - + CASE - 3 WHEN - - 87 THEN - 32 WHEN 24 THEN NULL ELSE + + 35 END + - 69 * - - 77 / 33 THEN - 13 * + 0 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT 29 DIV 11 * 92 AS col2
----
184

skipif mysql # not compatible
query I rowsort label-9848
SELECT 29 / 11 * 92 AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT - COUNT( * ) * - 34 + - NULLIF ( + 43, + CASE + + 3 WHEN - + 93 THEN - 18 * + 68 + - 70 ELSE 89 END * + 16 )
----
-9

skipif mysql # not compatible
query I rowsort label-9849
SELECT - COUNT ( * ) * - 34 + - NULLIF ( + 43, + CASE + + 3 WHEN - + 93 THEN - 18 * + 68 + - 70 ELSE 89 END * + 16 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT 38 - - ( - NULLIF ( - - 26, - 59 * + - 20 ) ) - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT 38 - - ( - NULLIF ( - - 26, - 59 * + - 20 ) ) - + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9851
SELECT CAST( - 94 AS SIGNED ) * MAX( ALL + 98 )
----
-9212

skipif mysql # not compatible
query I rowsort label-9851
SELECT CAST ( - 94 AS INTEGER ) * MAX ( ALL + 98 )
----
-9212

query I rowsort
SELECT ALL 8 * + 57
----
456

query II rowsort
SELECT + 46 AS col1, + 58 col0
----
46
58

query I rowsort
SELECT DISTINCT 43 * 84 AS col1
----
3612

query I rowsort
SELECT 67 * - 73
----
-4891

query I rowsort
SELECT ALL 55 + + + 87 col1
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT ALL 78 + - - 32 + - + ( + MIN( 91 ) ) AS col2, 76 * 74 * 71 - + 41 AS col0
----
19
399263

skipif mysql # not compatible
query II rowsort label-9857
SELECT ALL 78 + - - 32 + - + ( + MIN ( 91 ) ) AS col2, 76 * 74 * 71 - + 41 AS col0
----
19
399263

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ALL 37 + + 71 * + COUNT( * ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL 37 + + 71 * + COUNT ( * ) AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9859
SELECT CASE - + 17 WHEN + 5 + - + 47 THEN NULL WHEN + CAST( + 89 AS DECIMAL ) THEN - 91 + 58 * 13 * MIN( + + 62 ) ELSE NULL END - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT CASE - + 17 WHEN + 5 + - + 47 THEN NULL WHEN + CAST ( + 89 AS REAL ) THEN - 91 + 58 * 13 * MIN ( + + 62 ) ELSE NULL END - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9860
SELECT DISTINCT 7 + - 7 + CASE 28 WHEN - 97 + 48 THEN NULL WHEN - CAST( 39 AS SIGNED ) * - 84 / 65 - + SUM( + + 90 ) THEN + 76 ELSE NULL END + + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT 7 + - 7 + CASE 28 WHEN - 97 + 48 THEN NULL WHEN - CAST ( 39 AS INTEGER ) * - 84 / 65 - + SUM ( + + 90 ) THEN + 76 ELSE NULL END + + 34 AS col0
----
NULL

query I rowsort
SELECT 92 * 39
----
3588

query I rowsort
SELECT ALL 42 + 2 * - + 65
----
-88

query I rowsort
SELECT ALL 1 + - 91 AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9864
SELECT CASE - 29 WHEN + - 86 THEN - 87 WHEN - ( + CAST( - 36 AS SIGNED ) ) * MAX( DISTINCT + 67 ) / - COUNT( * ) + - - 37 + - + 84 THEN NULL END * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT CASE - 29 WHEN + - 86 THEN - 87 WHEN - ( + CAST ( - 36 AS INTEGER ) ) * MAX ( DISTINCT + 67 ) / - COUNT ( * ) + - - 37 + - + 84 THEN NULL END * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9865
SELECT 24 + - + COUNT( * ) - - CASE + 42 WHEN 74 THEN + 3 + - 14 * 2 END, ( - - ( - 91 ) ) DIV - ( + + 82 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9865
SELECT 24 + - + COUNT ( * ) - - CASE + 42 WHEN 74 THEN + 3 + - 14 * 2 END, ( - - ( - 91 ) ) / - ( + + 82 ) AS col0
----
NULL
1

query I rowsort
SELECT 27 * - 13 col1
----
-351

query I rowsort
SELECT ALL + ( + 36 ) + + 6
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT CAST( + - 86 AS SIGNED ) * + 9 AS col1
----
-774

skipif mysql # not compatible
query I rowsort label-9868
SELECT CAST ( + - 86 AS INTEGER ) * + 9 AS col1
----
-774

query II rowsort
SELECT + 59 + 7 - - + 61 * - + COALESCE ( + 35, 65 ) AS col2, 21
----
-2069
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9870
SELECT - 54, CAST( - + 81 AS SIGNED ) col2
----
-54
-81

skipif mysql # not compatible
query II rowsort label-9870
SELECT - 54, CAST ( - + 81 AS INTEGER ) col2
----
-54
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT NULLIF ( - 10, - + COUNT( * ) * - 0 * - - COUNT( 39 ) + - 62 + + 24 * 85 * - NULLIF ( + - 64, 54 ) ) - + - 94 + + 29
----
113

skipif mysql # not compatible
query I rowsort label-9871
SELECT NULLIF ( - 10, - + COUNT ( * ) * - 0 * - - COUNT ( 39 ) + - 62 + + 24 * 85 * - NULLIF ( + - 64, 54 ) ) - + - 94 + + 29
----
113

query I rowsort
SELECT 8 * + 70 col2
----
560

onlyif mysql # aggregate syntax: 
query II rowsort label-9873
SELECT DISTINCT - 67 AS col1, + COUNT( * )
----
-67
1

skipif mysql # not compatible
query II rowsort label-9873
SELECT DISTINCT - 67 AS col1, + COUNT ( * )
----
-67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT + COUNT( + NULLIF ( 77, - 54 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9874
SELECT + COUNT ( + NULLIF ( 77, - 54 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - 8 * 5 - - 96 - 8 * + MAX( ALL - 43 ) * - 51 AS col0
----
-17488

skipif mysql # not compatible
query I rowsort label-9875
SELECT - 8 * 5 - - 96 - 8 * + MAX ( ALL - 43 ) * - 51 AS col0
----
-17488

query I rowsort
SELECT DISTINCT - - NULLIF ( 68, 85 ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9877
SELECT - + 22 / - CAST( NULL AS SIGNED ) / + ( + - 20 ) - 34 AS col1, 18 + + + MAX( - - 36 ) * - 15 col0
----
NULL
-522

skipif mysql # not compatible
query II rowsort label-9877
SELECT - + 22 / - CAST ( NULL AS INTEGER ) / + ( + - 20 ) - 34 AS col1, 18 + + + MAX ( - - 36 ) * - 15 col0
----
NULL
-522

query I rowsort
SELECT ALL + 78 + 82 AS col2
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9879
SELECT - 28 DIV + 71 - 82 * + COUNT( ALL + 11 ) - - - COALESCE ( + 57, + + COUNT( * ) ) * 35 * + - 48 + - + ( + 52 ) + - 19 AS col2
----
95607

skipif mysql # not compatible
query I rowsort label-9879
SELECT - 28 / + 71 - 82 * + COUNT ( ALL + 11 ) - - - COALESCE ( + 57, + + COUNT ( * ) ) * 35 * + - 48 + - + ( + 52 ) + - 19 AS col2
----
95607

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT 2 DIV - 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT 2 / - 51 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9881
SELECT 39 * - CASE - - 48 WHEN - + 46 * + ( + - COUNT( * ) ) + + 3 THEN - 70 ELSE NULL END - + + 44, 43 AS col2
----
NULL
43

skipif mysql # not compatible
query II rowsort label-9881
SELECT 39 * - CASE - - 48 WHEN - + 46 * + ( + - COUNT ( * ) ) + + 3 THEN - 70 ELSE NULL END - + + 44, 43 AS col2
----
NULL
43

query I rowsort
SELECT ALL + 48 + + 54
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9883
SELECT 58 + - + 82, COUNT( ALL - 43 ) DIV - + 16 * + + 20 AS col2
----
-24
0

skipif mysql # not compatible
query II rowsort label-9883
SELECT 58 + - + 82, COUNT ( ALL - 43 ) / - + 16 * + + 20 AS col2
----
-24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT COUNT( * ) * + + 34 + - 90
----
-56

skipif mysql # not compatible
query I rowsort label-9884
SELECT COUNT ( * ) * + + 34 + - 90
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9885
SELECT ALL 61 + COUNT( * ) DIV - CAST( + - 21 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL 61 + COUNT ( * ) / - CAST ( + - 21 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9886
SELECT ALL - COUNT( * ) AS col1, 55 * + 54
----
-1
2970

skipif mysql # not compatible
query II rowsort label-9886
SELECT ALL - COUNT ( * ) AS col1, 55 * + 54
----
-1
2970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT ALL 37 + - - CAST( 2 AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL 37 + - - CAST ( 2 AS INTEGER ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9888
SELECT AVG ( DISTINCT 11 ) * 31 + + + 48 + - 89 + + + 42 + + CAST( + + ( + - NULLIF ( - COALESCE ( - 48, - + 60 + + 74 + + - ( NULLIF ( - + 19, + 92 * + + 75 * 97 ) ) ), + 61 ) ) AS SIGNED ) / - + 32 + + - 9 * - 11 * - SUM( + 72 ) * 32 * - 0 + - - COUNT( * ) * 51 + + + CAST( NULL AS SIGNED ) + 4 * - CAST( NULL AS SIGNED ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT AVG ( DISTINCT 11 ) * 31 + + + 48 + - 89 + + + 42 + + CAST ( + + ( + - NULLIF ( - COALESCE ( - 48, - + 60 + + 74 + + - ( NULLIF ( - + 19, + 92 * + + 75 * 97 ) ) ), + 61 ) ) AS INTEGER ) / - + 32 + + - 9 * - 11 * - SUM ( + 72 ) * 32 * - 0 + - - COUNT ( * ) * 51 + + + CAST ( NULL AS INTEGER ) + 4 * - CAST ( NULL AS INTEGER ) + + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL - 40 * + COUNT( * ) * - 81 * - 89 col1
----
-288360

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL - 40 * + COUNT ( * ) * - 81 * - 89 col1
----
-288360

query I rowsort
SELECT DISTINCT - NULLIF ( + 54, + + 3 )
----
-54

query I rowsort
SELECT DISTINCT - 31 + 91 AS col0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9892
SELECT + 58 AS col1, 53 + + COUNT( * ) AS col1
----
58
54

skipif mysql # not compatible
query II rowsort label-9892
SELECT + 58 AS col1, 53 + + COUNT ( * ) AS col1
----
58
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9893
SELECT 64 AS col0, COUNT( * ) AS col2
----
64
1

skipif mysql # not compatible
query II rowsort label-9893
SELECT 64 AS col0, COUNT ( * ) AS col2
----
64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT DISTINCT - ( + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT - ( + - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL 1 + + + 57 AS col0
----
58

query II rowsort
SELECT ALL 69 AS col2, - 29 AS col1
----
69
-29

query I rowsort
SELECT ALL - 14 - + 28 AS col1
----
-42

query I rowsort
SELECT ALL 88 * - ( - - 59 ) AS col0
----
-5192

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL ( MIN( ALL - ( 4 ) ) ) - - 72 - + + 37 - - 72
----
103

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL ( MIN ( ALL - ( 4 ) ) ) - - 72 - + + 37 - - 72
----
103

query I rowsort
SELECT + 70 + + ( COALESCE ( - 26, 63 ) )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9901
SELECT + 29 DIV + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9901
SELECT + 29 / + 74 AS col1
----
0

query II rowsort
SELECT - 71 AS col1, 31 col2
----
-71
31

query I rowsort
SELECT ALL + 58 * - 58
----
-3364

onlyif mysql # aggregate syntax: 
query II rowsort label-9904
SELECT - COUNT( * ) col2, - 70 + + COUNT( DISTINCT + 37 ) AS col2
----
-1
-69

skipif mysql # not compatible
query II rowsort label-9904
SELECT - COUNT ( * ) col2, - 70 + + COUNT ( DISTINCT + 37 ) AS col2
----
-1
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9905
SELECT + + COUNT( * ) DIV - - ( ( - + MAX( DISTINCT + - 19 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9905
SELECT + + COUNT ( * ) / - - ( ( - + MAX ( DISTINCT + - 19 ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + + COALESCE ( 95, + - 6 ) * - + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-9906
SELECT + + COALESCE ( 95, + - 6 ) * - + COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + + 3 + - 97 + - - 86 * + NULLIF ( - COUNT( * ), + 16 - + - 80 ) + + + COALESCE ( + + 29, - 59 * - 16 * - COUNT( * ) ) * + COUNT( * ) * COALESCE ( - COUNT( * ), + COALESCE ( - COUNT( * ), - COUNT( * ) ) )
----
-209

skipif mysql # not compatible
query I rowsort label-9907
SELECT + + 3 + - 97 + - - 86 * + NULLIF ( - COUNT ( * ), + 16 - + - 80 ) + + + COALESCE ( + + 29, - 59 * - 16 * - COUNT ( * ) ) * + COUNT ( * ) * COALESCE ( - COUNT ( * ), + COALESCE ( - COUNT ( * ), - COUNT ( * ) ) )
----
-209

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT DISTINCT 44 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT 44 / + 88
----
0

query I rowsort
SELECT + - 28 + + 73 * + - 61 AS col0
----
-4481

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT - MAX( DISTINCT + + 41 ) + - + 71
----
-112

skipif mysql # not compatible
query I rowsort label-9910
SELECT - MAX ( DISTINCT + + 41 ) + - + 71
----
-112

query I rowsort
SELECT COALESCE ( - 45, + 94 )
----
-45

query II rowsort
SELECT ALL - 43 AS col0, 15 * - - 13 * + - 86
----
-43
-16770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9913
SELECT + 41 + - + CAST( NULL AS SIGNED ) AS col2, CASE 64 WHEN - CAST( NULL AS SIGNED ) + + CASE 51 WHEN - + 35 THEN COUNT( * ) ELSE NULL END + + 22 / - ( - + COALESCE ( - 49, - 79 * + + 33, 87 ) ) THEN COUNT( * ) + - - 82 END / - ( + COALESCE ( - 38, + 25 * + 76 + + 82 + + - COUNT( * ) ) ) + + 66 + 48
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9913
SELECT + 41 + - + CAST ( NULL AS INTEGER ) AS col2, CASE 64 WHEN - CAST ( NULL AS INTEGER ) + + CASE 51 WHEN - + 35 THEN COUNT ( * ) ELSE NULL END + + 22 / - ( - + COALESCE ( - 49, - 79 * + + 33, 87 ) ) THEN COUNT ( * ) + - - 82 END / - ( + COALESCE ( - 38, + 25 * + 76 + + 82 + + - COUNT ( * ) ) ) + + 66 + 48
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT DISTINCT - 51 * + + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT - 51 * + + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + NULLIF ( - + 42, - 2 * + MIN( ALL + 44 ) + MAX( - - 30 ) + - - COUNT( * ) ) * ( + + 62 ) AS col0
----
-2604

skipif mysql # not compatible
query I rowsort label-9915
SELECT + NULLIF ( - + 42, - 2 * + MIN ( ALL + 44 ) + MAX ( - - 30 ) + - - COUNT ( * ) ) * ( + + 62 ) AS col0
----
-2604

query I rowsort
SELECT - + 13 + 32
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT ALL + 96 * - CAST( + 8 AS SIGNED ) * - AVG ( DISTINCT - 2 ) + - CASE ( - ( + + 45 ) ) WHEN + + 54 * CASE + + ( - - 23 ) WHEN + 14 THEN - 1 / - 89 * + + NULLIF ( + - 18, 8 ) END THEN + 12 WHEN - 96 THEN NULL ELSE NULL END - - 1 * + - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + 96 * - CAST ( + 8 AS INTEGER ) * - AVG ( DISTINCT - 2 ) + - CASE ( - ( + + 45 ) ) WHEN + + 54 * CASE + + ( - - 23 ) WHEN + 14 THEN - 1 / - 89 * + + NULLIF ( + - 18, 8 ) END THEN + 12 WHEN - 96 THEN NULL ELSE NULL END - - 1 * + - 87 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 71 ) * + 25
----
-1775

query I rowsort
SELECT - 4 + - 92 + - + 58 + - 34 - + 85 + 32 AS col2
----
-241

query II rowsort
SELECT ALL + 81 * - 5 + + 43 - - 98 AS col1, - 89 + + + 70
----
-264
-19

query I rowsort
SELECT + - 52 * 67 * + 82 AS col1
----
-285688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9922
SELECT CAST( NULL AS SIGNED ) * MIN( - 35 ) + - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT CAST ( NULL AS INTEGER ) * MIN ( - 35 ) + - + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT + MAX( DISTINCT 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + MAX ( DISTINCT 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL 26 * - - MAX( + COALESCE ( + 17, + 84, - 22 ) ) + - + 11
----
431

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL 26 * - - MAX ( + COALESCE ( + 17, + 84, - 22 ) ) + - + 11
----
431

query I rowsort
SELECT COALESCE ( + - 51, - 37 * - - 39 ) col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL 63 * - + 46 + - 33 + CASE - - 64 WHEN 73 - + - ( 73 ) + - + 81 THEN - + 73 WHEN - 70 THEN NULL END + 61 * + 35 * 91 * - CASE + 7 WHEN - COUNT( + COALESCE ( - 42, 18 ) ) THEN + 80 + - + 30 + + 28 * + 65 / - + COALESCE ( - 22, - 41 ) WHEN 66 THEN 98 + - ( - 34 ) END * + COUNT( * ) / 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL 63 * - + 46 + - 33 + CASE - - 64 WHEN 73 - + - ( 73 ) + - + 81 THEN - + 73 WHEN - 70 THEN NULL END + 61 * + 35 * 91 * - CASE + 7 WHEN - COUNT ( + COALESCE ( - 42, 18 ) ) THEN + 80 + - + 30 + + 28 * + 65 / - + COALESCE ( - 22, - 41 ) WHEN 66 THEN 98 + - ( - 34 ) END * + COUNT ( * ) / 31 AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - ( - 79 ), + 16 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9928
SELECT ALL - NULLIF ( - + CASE - - 87 WHEN - + 64 THEN - 65 END, CAST( NULL AS SIGNED ) ) * + + 75 * + - 99 / - 98 + + - 58 - + + CAST( - 96 AS SIGNED ) + + + 5 * - 12 / - 35 + COUNT( * ) * + 15 AS col0, ( + + 83 ) * 71
----
NULL
5893

skipif mysql # not compatible
query II rowsort label-9928
SELECT ALL - NULLIF ( - + CASE - - 87 WHEN - + 64 THEN - 65 END, CAST ( NULL AS INTEGER ) ) * + + 75 * + - 99 / - 98 + + - 58 - + + CAST ( - 96 AS INTEGER ) + + + 5 * - 12 / - 35 + COUNT ( * ) * + 15 AS col0, ( + + 83 ) * 71
----
NULL
5893

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT DISTINCT + CASE + + NULLIF ( - ( + - 90 ), + - 32 * 4 + - + COUNT( * ) ) WHEN 73 THEN + 65 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT + CASE + + NULLIF ( - ( + - 90 ), + - 32 * 4 + - + COUNT ( * ) ) WHEN 73 THEN + 65 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 0 * + 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT + ( NULLIF ( - + ( ( - COALESCE ( + - 28, + + 30 ) ) ), 38 + - - NULLIF ( + - 29, - - 20 * 45 * - + 95 + + 41 + + + COUNT( * ) ) / + - 19 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT + ( NULLIF ( - + ( ( - COALESCE ( + - 28, + + 30 ) ) ), 38 + - - NULLIF ( + - 29, - - 20 * 45 * - + 95 + + 41 + + + COUNT ( * ) ) / + - 19 ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL - 32 * MAX( - 48 ) - NULLIF ( - - 53, + 73 + - + 46 )
----
1483

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - 32 * MAX ( - 48 ) - NULLIF ( - - 53, + 73 + - + 46 )
----
1483

query I rowsort
SELECT - 53 * - 49 col0
----
2597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9934
SELECT ALL - 9 * + - 57, + 52 DIV - NULLIF ( - + 68, + + 61 - - - CAST( + + COUNT( * ) AS SIGNED ) ) AS col0
----
513
0

skipif mysql # not compatible
query II rowsort label-9934
SELECT ALL - 9 * + - 57, + 52 / - NULLIF ( - + 68, + + 61 - - - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col0
----
513
0

query I rowsort
SELECT - 29 - + 92 * - 73
----
6687

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9936
SELECT ALL - CASE + - 99 WHEN - ( - 43 ) THEN - + 94 ELSE - 25 END * - 18 - + - 62 AS col1, 6 DIV + MAX( + 26 ) AS col1
----
-388
0

skipif mysql # not compatible
query II rowsort label-9936
SELECT ALL - CASE + - 99 WHEN - ( - 43 ) THEN - + 94 ELSE - 25 END * - 18 - + - 62 AS col1, 6 / + MAX ( + 26 ) AS col1
----
-388
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT + + COUNT( * ) * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-9937
SELECT + + COUNT ( * ) * - 1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9938
SELECT CAST( - - 96 AS SIGNED ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9938
SELECT CAST ( - - 96 AS INTEGER ) AS col2
----
96

query I rowsort
SELECT - + CASE 13 WHEN 64 * - - 87 THEN + 24 * - 5 ELSE 85 * - - 69 END + + + 39 + + + 21 * 4 * + ( + 45 ) * - - 89 AS col0
----
330594

query I rowsort
SELECT - 3 * - + ( + - 51 ) AS col1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + 72 + - 43 + NULLIF ( + + 87, - 31 ) + - 3 + ( COUNT( + 38 ) ) + + - 73 * - - NULLIF ( 14, + + 73 )
----
-908

skipif mysql # not compatible
query I rowsort label-9941
SELECT + 72 + - 43 + NULLIF ( + + 87, - 31 ) + - 3 + ( COUNT ( + 38 ) ) + + - 73 * - - NULLIF ( 14, + + 73 )
----
-908

query I rowsort
SELECT DISTINCT COALESCE ( + 67, 75 ) AS col0
----
67

query I rowsort
SELECT ALL 60 * ( 15 )
----
900

query I rowsort
SELECT ALL + 2 * - 43 + + + 30
----
-56

query I rowsort
SELECT + 43 + + - 92 AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT + - ( NULLIF ( + - 7, + 23 + + + MAX( ALL + 19 ) * + COALESCE ( + - CASE + - ( - + 36 ) WHEN + - 82 THEN 39 * + 54 * - 62 * - + 79 END, 30 * COALESCE ( - - 97, 45 * - ( + 65 ) + 15 + - COUNT( * ) ) ) + + 87 ) ) DIV + 3
----
2

skipif mysql # not compatible
query I rowsort label-9946
SELECT + - ( NULLIF ( + - 7, + 23 + + + MAX ( ALL + 19 ) * + COALESCE ( + - CASE + - ( - + 36 ) WHEN + - 82 THEN 39 * + 54 * - 62 * - + 79 END, 30 * COALESCE ( - - 97, 45 * - ( + 65 ) + 15 + - COUNT ( * ) ) ) + + 87 ) ) / + 3
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9947
SELECT - + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT - + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9948
SELECT ALL CAST( NULL AS SIGNED ) + - 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL CAST ( NULL AS INTEGER ) + - 2 col2
----
NULL

query I rowsort
SELECT + 19 + - - 87 * 71
----
6196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9950
SELECT + COUNT( * ) DIV + - COUNT( * ), + 3 * 99 DIV 21 * - + CAST( - COUNT( * ) AS SIGNED ) DIV - 37 DIV - COUNT( * ) + - - ( - 3 ) col2
----
-1
-3

skipif mysql # not compatible
query II rowsort label-9950
SELECT + COUNT ( * ) / + - COUNT ( * ), + 3 * 99 / 21 * - + CAST ( - COUNT ( * ) AS INTEGER ) / - 37 / - COUNT ( * ) + - - ( - 3 ) col2
----
-1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL CASE - COUNT( * ) WHEN + - 38 THEN 30 ELSE + 43 + + - 8 END + - + ( 39 ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL CASE - COUNT ( * ) WHEN + - 38 THEN 30 ELSE + 43 + + - 8 END + - + ( 39 ) col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9952
SELECT ALL 53 DIV COUNT( * ) DIV + - 13 + - 21 * COALESCE ( 65, 66 * + MIN( ALL - - 70 ) + - 12 + + COALESCE ( - COUNT( - - 87 ), - + 99, + - 95 * 77 * - - 54 DIV COALESCE ( 78, 59 DIV + - 74 ) ) DIV - - 26 + + ( - COUNT( * ) ) + + COUNT( * ), - 19 * 91 + 86 + 47 * 31 ) * + 39 + + 98
----
-53141

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL 53 / COUNT ( * ) / + - 13 + - 21 * COALESCE ( 65, 66 * + MIN ( ALL - - 70 ) + - 12 + + COALESCE ( - COUNT ( - - 87 ), - + 99, + - 95 * 77 * - - 54 / COALESCE ( 78, 59 / + - 74 ) ) / - - 26 + + ( - COUNT ( * ) ) + + COUNT ( * ), - 19 * 91 + 86 + 47 * 31 ) * + 39 + + 98
----
-53141

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT DISTINCT 16 DIV - - 44 + ( ( 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT 16 / - - 44 + ( ( 18 ) )
----
18

query I rowsort
SELECT ALL + CASE + - 93 WHEN 82 THEN 39 END
----
NULL

query I rowsort
SELECT ALL - 85 * - 88 * - 85
----
-635800

onlyif mysql # DIV for integer division: 
query I rowsort label-9956
SELECT ALL 90 DIV + 47 - - 5 + + 13
----
19

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL 90 / + 47 - - 5 + + 13
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT + COUNT( * ) * - + 38
----
-38

skipif mysql # not compatible
query I rowsort label-9957
SELECT + COUNT ( * ) * - + 38
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT CAST( - 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-9958
SELECT CAST ( - 99 AS INTEGER )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL - NULLIF ( 35, 47 / + MAX( ALL 78 ) ) - - - 47 * - 4 * + ( + 71 ) AS col1
----
13313

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL - NULLIF ( 35, 47 / + MAX ( ALL 78 ) ) - - - 47 * - 4 * + ( + 71 ) AS col1
----
13313

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ALL - CASE + COUNT( * ) WHEN + 73 THEN - - 4 + 27 WHEN + + 74 THEN - - COUNT( * ) / AVG ( DISTINCT 55 ) + + 85 - + 54 - 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL - CASE + COUNT ( * ) WHEN + 73 THEN - - 4 + 27 WHEN + + 74 THEN - - COUNT ( * ) / AVG ( DISTINCT 55 ) + + 85 - + 54 - 23 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9961
SELECT 8 DIV - + 60 * + - 90 * - + 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT 8 / - + 60 * + - 90 * - + 64 AS col0
----
0

query II rowsort
SELECT 17 + - 26 - 79 AS col2, - 34 AS col0
----
-88
-34

query I rowsort
SELECT ALL + 23 * + COALESCE ( - - 63, + 99 ) AS col2
----
1449

query I rowsort
SELECT 27 + - 40 AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9965
SELECT ALL + 51 DIV - + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + 51 / - + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9966
SELECT COUNT( * ) * + 25 + - 33 AS col2, ( 30 ) AS col1
----
-8
30

skipif mysql # not compatible
query II rowsort label-9966
SELECT COUNT ( * ) * + 25 + - 33 AS col2, ( 30 ) AS col1
----
-8
30

query I rowsort
SELECT 43 * 68
----
2924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9968
SELECT 61 * + + 34 + + + 19 + + 79 AS col1, - CAST( NULL AS SIGNED ) * - + 66 + - 27 + - ( + + 94 ) + - ( + - 78 ) / - + CASE + CASE + 25 WHEN + 8 THEN NULL ELSE - 25 END WHEN + 29 THEN 59 * - 5 ELSE NULL END * - 88 / + + CASE - NULLIF ( 84, + + 44 + - 98 - - - COUNT( ALL + - 41 ) * + 87 * - 9 * + + 67 / + 32 * ( ( - 55 ) ) * - 76 ) WHEN - 15 THEN NULL ELSE + 28 END
----
2172
NULL

skipif mysql # not compatible
query II rowsort label-9968
SELECT 61 * + + 34 + + + 19 + + 79 AS col1, - CAST ( NULL AS INTEGER ) * - + 66 + - 27 + - ( + + 94 ) + - ( + - 78 ) / - + CASE + CASE + 25 WHEN + 8 THEN NULL ELSE - 25 END WHEN + 29 THEN 59 * - 5 ELSE NULL END * - 88 / + + CASE - NULLIF ( 84, + + 44 + - 98 - - - COUNT ( ALL + - 41 ) * + 87 * - 9 * + + 67 / + 32 * ( ( - 55 ) ) * - 76 ) WHEN - 15 THEN NULL ELSE + 28 END
----
2172
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9969
SELECT DISTINCT - ( - ( - CAST( AVG ( ALL + 5 ) AS SIGNED ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT - ( - ( - CAST ( AVG ( ALL + 5 ) AS INTEGER ) ) )
----
-5

query I rowsort
SELECT ALL - - 22 * - + 57
----
-1254

query I rowsort
SELECT 93 * - 12 col0
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT - MAX( + 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9972
SELECT - MAX ( + 72 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL - - 9 + - SUM( + 94 ) - - - 57 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL - - 9 + - SUM ( + 94 ) - - - 57 AS col1
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT 70 + 37 + - 55 * - + 17 * - - COUNT( * )
----
1042

skipif mysql # not compatible
query I rowsort label-9974
SELECT 70 + 37 + - 55 * - + 17 * - - COUNT ( * )
----
1042

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT - 15 + + COUNT( * ) + - - 42 col2
----
28

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT - 15 + + COUNT ( * ) + - - 42 col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT - 37 + + COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9976
SELECT - 37 + + COUNT ( * ) AS col1
----
-36

query I rowsort
SELECT ALL - + 42 + - - 92 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT 49 + - - COUNT( * ) + + + 36 * + 76
----
2786

skipif mysql # not compatible
query I rowsort label-9978
SELECT 49 + - - COUNT ( * ) + + + 36 * + 76
----
2786

query I rowsort
SELECT DISTINCT NULLIF ( - 66, 6 / + 45 * - + ( + + 82 ) ) AS col1
----
-66

query II rowsort
SELECT - ( + 37 ) + + - 49 AS col0, + ( - + 55 )
----
-86
-55

query I rowsort
SELECT DISTINCT 51 + + 78 * + NULLIF ( - - 18, - AVG ( 82 ) * - 30 )
----
1455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9982
SELECT ALL - 99 + - 70 + CASE NULLIF ( 67, + ( - MAX( + 93 ) ) + + ( - ( - 77 ) ) ) WHEN 64 THEN NULL WHEN + MIN( ALL 78 ) + - ( 68 ) THEN + 68 WHEN 8 * + 24 THEN - NULLIF ( + 36, - - 16 ) * 8 + + - 10 - - + 35 DIV - CASE - + 76 WHEN + 17 THEN COUNT( * ) ELSE NULL END ELSE - 21 END - 68 DIV 74 AS col0
----
-190

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL - 99 + - 70 + CASE NULLIF ( 67, + ( - MAX ( + 93 ) ) + + ( - ( - 77 ) ) ) WHEN 64 THEN NULL WHEN + MIN ( ALL 78 ) + - ( 68 ) THEN + 68 WHEN 8 * + 24 THEN - NULLIF ( + 36, - - 16 ) * 8 + + - 10 - - + 35 / - CASE - + 76 WHEN + 17 THEN COUNT ( * ) ELSE NULL END ELSE - 21 END - 68 / 74 AS col0
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT + COUNT( 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9983
SELECT + COUNT ( 11 ) AS col0
----
1

query I rowsort
SELECT ALL - NULLIF ( 19, - 34 ) AS col0
----
-19

query I rowsort
SELECT - NULLIF ( 43, - 56 * + - 42 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT + MIN( 0 ) + 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9986
SELECT + MIN ( 0 ) + 92 AS col1
----
92

query I rowsort
SELECT ALL - 44 - 98 AS col0
----
-142

query I rowsort
SELECT ALL 26 - - 50 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT MAX( - 27 ) * - 75
----
2025

skipif mysql # not compatible
query I rowsort label-9989
SELECT MAX ( - 27 ) * - 75
----
2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9990
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2, 88 * + + 71 AS col1
----
NULL
6248

skipif mysql # not compatible
query II rowsort label-9990
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2, 88 * + + 71 AS col1
----
NULL
6248

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9991
SELECT CAST( NULL AS DECIMAL ) * - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT CAST ( NULL AS REAL ) * - 39 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9992
SELECT - CAST( 17 AS SIGNED ) * 97 + - 95 * - - 27 + 6 DIV + 88 + 73 + - COALESCE ( 82, + 84 ) * 68 AS col1, 39 AS col2
----
-9717
39

skipif mysql # not compatible
query II rowsort label-9992
SELECT - CAST ( 17 AS INTEGER ) * 97 + - 95 * - - 27 + 6 / + 88 + 73 + - COALESCE ( 82, + 84 ) * 68 AS col1, 39 AS col2
----
-9717
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT DISTINCT 13 DIV - 33 col2
----
0

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT 13 / - 33 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL COUNT( DISTINCT - 68 ) - + 76
----
-75

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL COUNT ( DISTINCT - 68 ) - + 76
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL COALESCE ( + ( - - 82 ), 99 ) * - COUNT( * ) + + 30 + - 68 * 1 col2
----
-120

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL COALESCE ( + ( - - 82 ), 99 ) * - COUNT ( * ) + + 30 + - 68 * 1 col2
----
-120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9996
SELECT CAST( NULL AS DECIMAL ) * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT CAST ( NULL AS REAL ) * + 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9997
SELECT ALL ( + 25 ) * + 54 - 32 AS col2, - 87 * 40 - + MAX( + - 87 ) + 93 * + + 61 AS col1
----
1318
2280

skipif mysql # not compatible
query II rowsort label-9997
SELECT ALL ( + 25 ) * + 54 - 32 AS col2, - 87 * 40 - + MAX ( + - 87 ) + 93 * + + 61 AS col1
----
1318
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT 56 * + SUM( - 53 ) - - + 84 + ( - + 84 ) col0
----
-2968

skipif mysql # not compatible
query I rowsort label-9998
SELECT 56 * + SUM ( - 53 ) - - + 84 + ( - + 84 ) col0
----
-2968

query I rowsort
SELECT ALL + 35 + - 5 AS col0
----
30

