sqllogictest
Artifact Content
Not logged in

Artifact 38a88f2c970fccd68dce6edb03dd8111bfae413a:


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 ) * +