sqllogictest
Artifact Content
Not logged in

Artifact f873a33632cb28b7b0861bf0d27170b4467e618d:


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)

query I rowsort
SELECT COALESCE ( - 52, 93 ) AS col2
----
-52

query I rowsort
SELECT CASE 35 WHEN + 15 THEN 99 - - 44 WHEN - 3 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT SUM( DISTINCT + 95 ) * - 42 AS col2
----
-3990

skipif mysql # not compatible
query I rowsort label-2
SELECT SUM ( DISTINCT + 95 ) * - 42 AS col2
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT + CASE + 23 WHEN + COUNT( DISTINCT + 62 ) + 45 THEN ( 16 ) * 35 ELSE NULL END * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3
SELECT + CASE + 23 WHEN + COUNT ( DISTINCT + 62 ) + 45 THEN ( 16 ) * 35 ELSE NULL END * 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT 64 + 36 - 18 * + COUNT( * ) * 3 col1
----
46

skipif mysql # not compatible
query I rowsort label-4
SELECT 64 + 36 - 18 * + COUNT ( * ) * 3 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT DISTINCT 86 * + COUNT( * ) * 12
----
1032

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT 86 * + COUNT ( * ) * 12
----
1032

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

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL - NULLIF ( 80, + COUNT ( * ) )
----
-80

query I rowsort
SELECT DISTINCT - ( + - 53 ) col2
----
53

query I rowsort
SELECT DISTINCT 26 * + + 67 AS col2
----
1742

query I rowsort
SELECT DISTINCT 43 * 41
----
1763

query I rowsort
SELECT 83 * + 19 AS col1
----
1577

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT CASE + - 31 WHEN + 68 THEN ( 70 ) WHEN + 54 THEN ( 32 ) * + SUM( + ( ( 56 ) ) ) ELSE - 39 END - + 81
----
-120

skipif mysql # not compatible
query I rowsort label-11
SELECT CASE + - 31 WHEN + 68 THEN ( 70 ) WHEN + 54 THEN ( 32 ) * + SUM ( + ( ( 56 ) ) ) ELSE - 39 END - + 81
----
-120

query I rowsort
SELECT ALL - 76 + 28
----
-48

query I rowsort
SELECT 63 + - + ( 14 )
----
49

query I rowsort
SELECT 8 * 88 AS col2
----
704

query I rowsort
SELECT ALL + 4 + - 57
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT ALL 42 + COUNT( DISTINCT 94 )
----
43

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL 42 + COUNT ( DISTINCT 94 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT DISTINCT + COUNT( DISTINCT 87 ) * 50
----
50

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT + COUNT ( DISTINCT 87 ) * 50
----
50

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

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL COALESCE ( COUNT ( * ), + 59 )
----
1

query I rowsort
SELECT DISTINCT - 59 + + - 83
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT ALL + 65 * + CASE - AVG ( - ( + 89 ) ) WHEN + COUNT( * ) THEN - 53 + - AVG ( DISTINCT 97 - - 56 ) * 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL + 65 * + CASE - AVG ( - ( + 89 ) ) WHEN + COUNT ( * ) THEN - 53 + - AVG ( DISTINCT 97 - - 56 ) * 4 END
----
NULL

query I rowsort
SELECT DISTINCT - - 37 + + 47 col0
----
84

query I rowsort
SELECT - NULLIF ( - 84, 98 ) + 29 AS col2
----
113

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

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - - CAST ( NULL AS REAL ) + + 96
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT - - 16 + - - CASE COUNT( * ) WHEN + 51 + + MIN( ALL - 89 + 68 ) * 61 THEN - CASE + 74 WHEN - 17 THEN + 0 ELSE NULL END END + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-25
SELECT - - 16 + - - CASE COUNT ( * ) WHEN + 51 + + MIN ( ALL - 89 + 68 ) * 61 THEN - CASE + 74 WHEN - 17 THEN + 0 ELSE NULL END END + + 93
----
NULL

query I rowsort
SELECT - + 10 * + 72
----
-720

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

skipif mysql # not compatible
query I rowsort label-27
SELECT - + COUNT ( * ) + + - 45 AS col1
----
-46

query I rowsort
SELECT ALL + + 95 - - 85 * + 61
----
5280

query I rowsort
SELECT DISTINCT + + 78 * 27
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT - 15 * - - COUNT( * ) * CASE WHEN NOT CASE 95 WHEN + COUNT( * ) THEN NULL ELSE + 17 END * 81 <= 42 * + 10 + - 7 * 11 THEN NULL ELSE 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT - 15 * - - COUNT ( * ) * CASE WHEN NOT CASE 95 WHEN + COUNT ( * ) THEN NULL ELSE + 17 END * 81 <= 42 * + 10 + - 7 * 11 THEN NULL ELSE 16 END
----
NULL

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

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

query I rowsort
SELECT ALL + - NULLIF ( + 98, 62 - 92 ) - 62 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT DISTINCT 73 * COUNT( * ) + ( 86 ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT 73 * COUNT ( * ) + ( 86 ) AS col0
----
159

query I rowsort
SELECT - + NULLIF ( - 99, - 27 + + 21 ) * 81 AS col0
----
8019

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT - + 35 DIV - + 59 + + 31
----
31

skipif mysql # not compatible
query I rowsort label-35
SELECT - + 35 / - + 59 + + 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT + COUNT( - - 5 ) - 71
----
-70

skipif mysql # not compatible
query I rowsort label-36
SELECT + COUNT ( - - 5 ) - 71
----
-70

query I rowsort
SELECT DISTINCT 30 * - - 36
----
1080

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

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

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

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

query I rowsort
SELECT - ( 42 ) + - 91 AS col2
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-41
SELECT + COUNT( 26 ) DIV - + NULLIF ( 24, - ( 71 ) * 3 + + 13 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-41
SELECT + COUNT ( 26 ) / - + NULLIF ( 24, - ( 71 ) * 3 + + 13 ) * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-42
SELECT DISTINCT + CASE 51 WHEN + 92 * - ( CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) * ( + 1 ) ELSE NULL END * - NULLIF ( + COUNT( * ) + MAX( 48 ), + ( 54 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT + CASE 51 WHEN + 92 * - ( CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) * ( + 1 ) ELSE NULL END * - NULLIF ( + COUNT ( * ) + MAX ( 48 ), + ( 54 ) ) AS col2
----
NULL

query I rowsort
SELECT 35 * + 52 + + 39 AS col1
----
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT + CASE - 76 WHEN 95 * ( - 16 ) + + COUNT( * ) THEN - SUM( DISTINCT - 79 ) WHEN + 90 THEN 86 + + 20 WHEN + 87 - COUNT( * ) THEN NULL END / 55
----
NULL

skipif mysql # not compatible
query I rowsort label-44
SELECT + CASE - 76 WHEN 95 * ( - 16 ) + + COUNT ( * ) THEN - SUM ( DISTINCT - 79 ) WHEN + 90 THEN 86 + + 20 WHEN + 87 - COUNT ( * ) THEN NULL END / 55
----
NULL

query I rowsort
SELECT + 58 * 79 * 3 + 70 AS col1
----
13816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-46
SELECT ALL + 9 col2, CASE COUNT( * ) WHEN + 16 THEN - 53 + + 65 WHEN + 10 THEN NULL ELSE MAX( DISTINCT - ( + CASE WHEN NOT ( NULL ) NOT BETWEEN CAST( NULL AS SIGNED ) AND - COALESCE ( ( 22 ), 8 ) THEN + 10 + - 79 * 91 ELSE NULL END ) ) END * - 24
----
9
NULL

skipif mysql # not compatible
query II rowsort label-46
SELECT ALL + 9 col2, CASE COUNT ( * ) WHEN + 16 THEN - 53 + + 65 WHEN + 10 THEN NULL ELSE MAX ( DISTINCT - ( + CASE WHEN NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND - COALESCE ( ( 22 ), 8 ) THEN + 10 + - 79 * 91 ELSE NULL END ) ) END * - 24
----
9
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-47
SELECT CASE + 55 WHEN - 4 THEN 97 * - 7 + - NULLIF ( - 30, + 32 ) WHEN 38 THEN 28 * 85 + - 98 * + MIN( 59 ) ELSE + ( + CAST( NULL AS SIGNED ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT CASE + 55 WHEN - 4 THEN 97 * - 7 + - NULLIF ( - 30, + 32 ) WHEN 38 THEN 28 * 85 + - 98 * + MIN ( 59 ) ELSE + ( + CAST ( NULL AS INTEGER ) ) END col1
----
NULL

query I rowsort
SELECT + 55 + 28 - 32 + 61 AS col0
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-49
SELECT COUNT( + 53 ) * 37 + ( + 71 - + ( + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) * 27 ) * 8 + 60
----
665

skipif mysql # not compatible
query I rowsort label-49
SELECT COUNT ( + 53 ) * 37 + ( + 71 - + ( + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * 27 ) * 8 + 60
----
665

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-50
SELECT CASE - + 73 WHEN + CAST( NULL AS DECIMAL ) THEN 48 + 53 WHEN 82 * 66 THEN 14 WHEN - 47 THEN + 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-50
SELECT CASE - + 73 WHEN + CAST ( NULL AS REAL ) THEN 48 + 53 WHEN 82 * 66 THEN 14 WHEN - 47 THEN + 36 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL 89 * + 26 * + 21 + MAX( DISTINCT 15 )
----
48609

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL 89 * + 26 * + 21 + MAX ( DISTINCT 15 )
----
48609

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT 8 * - 68 + - + 72 * ( + COUNT( * ) ) AS col0
----
-616

skipif mysql # not compatible
query I rowsort label-52
SELECT 8 * - 68 + - + 72 * ( + COUNT ( * ) ) AS col0
----
-616

query I rowsort
SELECT ALL 32 * + + 57 * - 19 + 21 * + 69
----
-33207

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT ALL 26 * 35 DIV - - 27 + 85
----
118

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL 26 * 35 / - - 27 + 85
----
118

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

skipif mysql # not compatible
query I rowsort label-55
SELECT + ( + 43 ) + - COUNT ( * ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT ALL + 0 * + COUNT( DISTINCT + ( - 39 ) ) * 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + 0 * + COUNT ( DISTINCT + ( - 39 ) ) * 83 AS col1
----
0

query I rowsort
SELECT ALL + 69 * - ( + 16 ) + - 3 AS col0
----
-1107

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT - 66 + + 63 + COUNT( * ) + 51 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-58
SELECT - 66 + + 63 + COUNT ( * ) + 51 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL 75 * NULLIF ( MAX( + 90 ), ( AVG ( ALL ( 91 ) ) ) - - 27 ) + COUNT( * ) * CASE + 79 WHEN - 28 THEN + 76 * 62 + MAX( 55 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL 75 * NULLIF ( MAX ( + 90 ), ( AVG ( ALL ( 91 ) ) ) - - 27 ) + COUNT ( * ) * CASE + 79 WHEN - 28 THEN + 76 * 62 + MAX ( 55 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT COUNT( DISTINCT 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-60
SELECT COUNT ( DISTINCT 12 ) AS col2
----
1

query I rowsort
SELECT ALL 76 * ( + 27 ) + + 10 * 7
----
2122

query I rowsort
SELECT NULLIF ( + + 93, - + 42 + 45 )
----
93

query I rowsort
SELECT + 59 + - 42
----
17

query II rowsort
SELECT - 87 AS col2, 96 AS col2
----
-87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT - - CASE - 58 WHEN + + 18 THEN NULL WHEN COUNT( * ) * + CASE WHEN NOT NULL <> NULL THEN 63 * - 22 END THEN - 11 ELSE CASE COUNT( * ) WHEN 96 THEN + 80 ELSE NULL END / - 71 + + CASE + COUNT( * ) + + 23 WHEN + ( + MAX( + 96 ) ) THEN 59 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT - - CASE - 58 WHEN + + 18 THEN NULL WHEN COUNT ( * ) * + CASE WHEN NOT NULL <> NULL THEN 63 * - 22 END THEN - 11 ELSE CASE COUNT ( * ) WHEN 96 THEN + 80 ELSE NULL END / - 71 + + CASE + COUNT ( * ) + + 23 WHEN + ( + MAX ( + 96 ) ) THEN 59 END END AS col2
----
NULL

query I rowsort
SELECT - 47 + 24
----
-23

query II rowsort
SELECT 43, + 60 + + COALESCE ( 28, - 89 ) AS col1
----
43
88

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - COUNT( * ) * ( - 49 ) * - CASE - COUNT( * ) WHEN + 96 THEN 11 WHEN + MAX( ALL + 33 ) THEN NULL END - + 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT - COUNT ( * ) * ( - 49 ) * - CASE - COUNT ( * ) WHEN + 96 THEN 11 WHEN + MAX ( ALL + 33 ) THEN NULL END - + 17 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT ALL - 93 * + ( - - SUM( + 37 ) ) col2
----
-3441

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL - 93 * + ( - - SUM ( + 37 ) ) col2
----
-3441

query I rowsort
SELECT - - 87 + + 37 col0
----
124

query I rowsort
SELECT - + 13 + + 44 AS col2
----
31

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

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

query I rowsort
SELECT - - 38 * + 11
----
418

query I rowsort
SELECT ALL - 32 * - - 77 * - - 18 col0
----
-44352

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-76
SELECT - - COUNT( * ) AS col2, - 44 * COALESCE ( CAST( NULL AS SIGNED ), 38 )
----
1
-1672

skipif mysql # not compatible
query II rowsort label-76
SELECT - - COUNT ( * ) AS col2, - 44 * COALESCE ( CAST ( NULL AS INTEGER ), 38 )
----
1
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - 58 + - - 37 * - COUNT( ALL - 28 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-77
SELECT - 58 + - - 37 * - COUNT ( ALL - 28 ) AS col2
----
-95

query I rowsort
SELECT DISTINCT + 41 * + + 33 AS col0
----
1353

query I rowsort
SELECT - 2 * - + 77 + 45 + 94 * ( 19 * - 65 ) AS col0
----
-115891

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-80
SELECT ALL CAST( + AVG ( ALL + - 2 ) AS SIGNED ) DIV + 44 + 12
----
12

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL CAST ( + AVG ( ALL + - 2 ) AS INTEGER ) / + 44 + 12
----
12

query I rowsort
SELECT - ( - 39 ) * + 33 * 91
----
117117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-82
SELECT - 16 / - COUNT( * ) - - 43 + - CASE - NULLIF ( 11, 56 ) WHEN 65 THEN MAX( DISTINCT + 97 ) * - 52 END * MAX( DISTINCT ( + CAST( NULL AS SIGNED ) ) + 80 ) * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT - 16 / - COUNT ( * ) - - 43 + - CASE - NULLIF ( 11, 56 ) WHEN 65 THEN MAX ( DISTINCT + 97 ) * - 52 END * MAX ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) + 80 ) * - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-83
SELECT ALL COALESCE ( + + 40, - + COALESCE ( - + ( - 51 ), - ( - SUM( 21 ) ) ) - + 89 ) DIV + 40 + 53
----
54

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL COALESCE ( + + 40, - + COALESCE ( - + ( - 51 ), - ( - SUM ( 21 ) ) ) - + 89 ) / + 40 + 53
----
54

query II rowsort
SELECT + ( - 82 ) AS col0, 14 + - - 57 AS col2
----
-82
71

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT ALL 16 DIV NULLIF ( 67, - + 95 ) + 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL 16 / NULLIF ( 67, - + 95 ) + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL 55 * 4 * - COUNT( * ) col1
----
-220

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL 55 * 4 * - COUNT ( * ) col1
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT + SUM( CASE + - 94 WHEN + 70 THEN + 55 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-87
SELECT + SUM ( CASE + - 94 WHEN + 70 THEN + 55 END )
----
NULL

query I rowsort
SELECT ALL 31 + 89 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT DISTINCT + 59 + - MAX( DISTINCT 57 )
----
2

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT + 59 + - MAX ( DISTINCT 57 )
----
2

query I rowsort
SELECT DISTINCT 43 + + NULLIF ( - - 79, - + 50 ) col1
----
122

query II rowsort
SELECT DISTINCT 54 * + + 15, - 71 - - 59 AS col0
----
810
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-92
SELECT 8 DIV - - 65 AS col0, 40
----
0
40

skipif mysql # not compatible
query II rowsort label-92
SELECT 8 / - - 65 AS col0, 40
----
0
40

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT MIN( ALL - 22 ) + - 86
----
-108

skipif mysql # not compatible
query I rowsort label-93
SELECT MIN ( ALL - 22 ) + - 86
----
-108

query I rowsort
SELECT 89 + - - 98 * 65 + + - 53 - + 45 AS col1
----
6361

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

skipif mysql # not compatible
query I rowsort label-95
SELECT - 17 / - 90 + COUNT ( * )
----
1

query I rowsort
SELECT 20 * + + 9 col0
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-97
SELECT - SUM( ALL 67 ) AS col1, 50 * 32 AS col2
----
-67
1600

skipif mysql # not compatible
query II rowsort label-97
SELECT - SUM ( ALL 67 ) AS col1, 50 * 32 AS col2
----
-67
1600

query I rowsort
SELECT ALL - 97 * 28
----
-2716

query I rowsort
SELECT DISTINCT 49 - 90 AS col1
----
-41

query II rowsort
SELECT ALL - - 78 * + 23 AS col2, + 30 AS col2
----
1794
30

query I rowsort
SELECT ALL - 53 * + + ( 67 ) + + 15
----
-3536

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT + 11 + 13 DIV + 53
----
11

skipif mysql # not compatible
query I rowsort label-102
SELECT + 11 + 13 / + 53
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT 38 + - 6 + - 83 + - COUNT( ALL 56 ) + 42 * - 62
----
-2656

skipif mysql # not compatible
query I rowsort label-104
SELECT 38 + - 6 + - 83 + - COUNT ( ALL 56 ) + 42 * - 62
----
-2656

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-105
SELECT - 33 * + 76 AS col2, CAST( NULL AS DECIMAL )
----
-2508
NULL

skipif mysql # not compatible
query II rowsort label-105
SELECT - 33 * + 76 AS col2, CAST ( NULL AS REAL )
----
-2508
NULL

query I rowsort
SELECT - + NULLIF ( + 73, - 53 * + 38 )
----
-73

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-108
SELECT + COUNT( * ) DIV 4 AS col0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT ALL - - 61 + + 93 + - 33 DIV - 72 * 44 + 1
----
155

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL - - 61 + + 93 + - 33 / - 72 * 44 + 1
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT ALL 68 DIV 43 DIV - 16 * + + 13
----
0

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL 68 / 43 / - 16 * + + 13
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-112
SELECT COUNT ( * ) + + 3 * + 28 AS col0
----
85

query I rowsort
SELECT DISTINCT - 99 * - - 33
----
-3267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT ALL + 44 + - - CAST( + 28 AS SIGNED ) - - COALESCE ( - + 52, + COUNT( DISTINCT 79 ) )
----
20

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL + 44 + - - CAST ( + 28 AS INTEGER ) - - COALESCE ( - + 52, + COUNT ( DISTINCT 79 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT + CASE + 83 WHEN - COUNT( * ) - - 38 THEN - + 26 * + 47 WHEN 95 THEN NULL WHEN 80 THEN NULL ELSE - 1 END * COUNT( * ) - 89 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-115
SELECT + CASE + 83 WHEN - COUNT ( * ) - - 38 THEN - + 26 * + 47 WHEN 95 THEN NULL WHEN 80 THEN NULL ELSE - 1 END * COUNT ( * ) - 89 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-116
SELECT + 44 AS col0, 11 DIV 5
----
44
2

skipif mysql # not compatible
query II rowsort label-116
SELECT + 44 AS col0, 11 / 5
----
44
2

query I rowsort
SELECT 63 + - + 37 col2
----
26

query I rowsort
SELECT 99 * - + 93 AS col2
----
-9207

query I rowsort
SELECT 81 * + + 89 + + 37 AS col1
----
7246

query I rowsort
SELECT DISTINCT - COALESCE ( - 46, + + 4 * - 10 * + + 51 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL + 45 + NULLIF ( - 41, - COUNT( * ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + 45 + NULLIF ( - 41, - COUNT ( * ) ) AS col0
----
4

query I rowsort
SELECT + 5 * 95 + 50 * 65 AS col0
----
3725

query II rowsort
SELECT ALL - 63 col2, + 61 * 92 col0
----
-63
5612

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT ALL - COUNT( * ) - - - 27 + + 91 + - + 21 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - COUNT ( * ) - - - 27 + + 91 + - + 21 AS col1
----
42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT DISTINCT - ( - CASE + - CASE - 58 WHEN + 51 + 10 THEN NULL ELSE + 64 + - 43 END WHEN - 58 * - COUNT( * ) + + 53 THEN NULL WHEN 0 THEN - CAST( NULL AS SIGNED ) ELSE NULLIF ( - 54, + 21 ) END )
----
-54

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT - ( - CASE + - CASE - 58 WHEN + 51 + 10 THEN NULL ELSE + 64 + - 43 END WHEN - 58 * - COUNT ( * ) + + 53 THEN NULL WHEN 0 THEN - CAST ( NULL AS INTEGER ) ELSE NULLIF ( - 54, + 21 ) END )
----
-54

query I rowsort
SELECT 88 * - 18 AS col0
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT DISTINCT - CASE - + 79 WHEN + COUNT( * ) - 6 + + 13 * + COUNT( * ) * COUNT( * ) THEN 15 * - 28 END * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT - CASE - + 79 WHEN + COUNT ( * ) - 6 + + 13 * + COUNT ( * ) * COUNT ( * ) THEN 15 * - 28 END * 14
----
NULL

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

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

query I rowsort
SELECT DISTINCT 76 * - 49
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT COALESCE ( - - 73, COUNT( * ) ) * - 83
----
-6059

skipif mysql # not compatible
query I rowsort label-131
SELECT COALESCE ( - - 73, COUNT ( * ) ) * - 83
----
-6059

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT DISTINCT 94 * - 48 + + CASE + 93 WHEN - 4 - + 34 * - COUNT( * ) THEN NULL WHEN + 3 + + 73 THEN CASE - 57 WHEN + MIN( 13 ) + - SUM( DISTINCT - 73 + 82 ) THEN + 0 / + 11 WHEN 84 THEN NULL ELSE + 40 * 56 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT 94 * - 48 + + CASE + 93 WHEN - 4 - + 34 * - COUNT ( * ) THEN NULL WHEN + 3 + + 73 THEN CASE - 57 WHEN + MIN ( 13 ) + - SUM ( DISTINCT - 73 + 82 ) THEN + 0 / + 11 WHEN 84 THEN NULL ELSE + 40 * 56 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT ALL - + SUM( - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL - + SUM ( - 70 ) AS col2
----
70

query II rowsort
SELECT + 0 AS col0, 23 AS col0
----
0
23

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

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL - + COUNT ( * ) * 98 + - ( - 53 ) AS col2
----
-45

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

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

query II rowsort
SELECT ALL 62 AS col1, 92 AS col0
----
62
92

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

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

query I rowsort
SELECT + 57 + - 33
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-140
SELECT DISTINCT 96 DIV + CAST( + 24 AS SIGNED ) col0
----
4

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT 96 / + CAST ( + 24 AS INTEGER ) col0
----
4

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

query I rowsort
SELECT DISTINCT 63 + + 39 AS col0
----
102

query I rowsort
SELECT - 7 + - - 29
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-144
SELECT DISTINCT - ( + 52 ) * 11 * - + COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT SUM( - ( 59 ) ) + 4 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-147
SELECT SUM ( - ( 59 ) ) + 4 AS col2
----
-55

query I rowsort
SELECT DISTINCT 80 * - 36 col0
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL 26 + + MIN( + 94 ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL 26 + + MIN ( + 94 ) AS col2
----
120

query I rowsort
SELECT DISTINCT 85 + + 94 * + + 81
----
7699

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT CASE COUNT( * ) WHEN + 29 + - 89 / - + 95 THEN 71 * 67 ELSE 78 END AS col2
----
78

skipif mysql # not compatible
query I rowsort label-151
SELECT CASE COUNT ( * ) WHEN + 29 + - 89 / - + 95 THEN 71 * 67 ELSE 78 END AS col2
----
78

query I rowsort
SELECT COALESCE ( - ( + 99 ), 76 * - 88 ) AS col1
----
-99

query I rowsort
SELECT ALL + 41 * + - 25 * - - 23
----
-23575

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT DISTINCT 14 DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT 14 / + 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + 78 - - 85 * - + 22 * + COUNT( * )
----
-1792

skipif mysql # not compatible
query I rowsort label-155
SELECT + 78 - - 85 * - + 22 * + COUNT ( * )
----
-1792

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT - 60 DIV + + 31
----
-1

skipif mysql # not compatible
query I rowsort label-156
SELECT - 60 / + + 31
----
-1

query I rowsort
SELECT NULLIF ( - 46, 55 ) AS col1
----
-46

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

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

query I rowsort
SELECT NULLIF ( + 29, + - 57 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-160
SELECT ALL COUNT( * ) * - 11 DIV - 62 * + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL COUNT ( * ) * - 11 / - 62 * + 88 AS col0
----
0

query I rowsort
SELECT DISTINCT 71 * + 37 col2
----
2627

query I rowsort
SELECT ALL + - 83 col0
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-163
SELECT - 52 - - ( 59 ) DIV - 21 DIV COUNT( * ) + + MAX( DISTINCT 1 ) * COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-163
SELECT - 52 - - ( 59 ) / - 21 / COUNT ( * ) + + MAX ( DISTINCT 1 ) * COUNT ( * ) AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-164
SELECT ALL - + 69 * - + 95 * 21 DIV - COUNT( * ) col2
----
-137655

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL - + 69 * - + 95 * 21 / - COUNT ( * ) col2
----
-137655

onlyif mysql # aggregate syntax: 
query II rowsort label-165
SELECT ALL + + 5, + CASE MIN( DISTINCT - 90 ) WHEN + 23 THEN NULL WHEN - - COUNT( * ) THEN + 43 ELSE NULL END AS col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-165
SELECT ALL + + 5, + CASE MIN ( DISTINCT - 90 ) WHEN + 23 THEN NULL WHEN - - COUNT ( * ) THEN + 43 ELSE NULL END AS col1
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT MAX( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-166
SELECT MAX ( - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT + - NULLIF ( + COUNT( * ), + + 80 + - 4 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-167
SELECT + - NULLIF ( + COUNT ( * ), + + 80 + - 4 ) AS col1
----
-1

query I rowsort
SELECT - + ( - 6 ) * - 45 - + + 89 + 76
----
-283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT ALL - + 4 * - 19 + - CASE WHEN NULL NOT BETWEEN ( + 44 ) AND + 69 DIV 40 OR + 53 BETWEEN ( NULL ) AND NULL THEN NULL WHEN NOT + 44 NOT BETWEEN 7 AND + SUM( ALL + 47 ) DIV ( 90 ) - 84 THEN NULL ELSE + 9 * 3 END DIV 3
----
67

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - + 4 * - 19 + - CASE WHEN NULL NOT BETWEEN ( + 44 ) AND + 69 / 40 OR + 53 BETWEEN ( NULL ) AND NULL THEN NULL WHEN NOT + 44 NOT BETWEEN 7 AND + SUM ( ALL + 47 ) / ( 90 ) - 84 THEN NULL ELSE + 9 * 3 END / 3
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT - - 56 + - 78 DIV 80 + + 4 * + - ( + 44 ) col0
----
-120

skipif mysql # not compatible
query I rowsort label-170
SELECT - - 56 + - 78 / 80 + + 4 * + - ( + 44 ) col0
----
-120

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-172
SELECT ALL + 70 * + NULLIF ( - - 82, - COUNT( * ) + + - CAST( - + 42 AS SIGNED ) + + 21 / - 8 ) + 0
----
5740

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + 70 * + NULLIF ( - - 82, - COUNT ( * ) + + - CAST ( - + 42 AS INTEGER ) + + 21 / - 8 ) + 0
----
5740

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT DISTINCT + SUM( ALL + 97 ) + - - 51
----
148

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT + SUM ( ALL + 97 ) + - - 51
----
148

onlyif mysql # DIV for integer division: 
query II rowsort label-175
SELECT DISTINCT + - 52 DIV - 71 + 2 * + 82 AS col2, 63 AS col1
----
164
63

skipif mysql # not compatible
query II rowsort label-175
SELECT DISTINCT + - 52 / - 71 + 2 * + 82 AS col2, 63 AS col1
----
164
63

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

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL 12 + 36 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 0, - ( - 40 ) ) * 10 col1
----
0

query I rowsort
SELECT ALL - CASE - 98 WHEN + - 54 THEN NULL WHEN + 17 THEN - 1 - - 27 + + 97 * 10 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL - COALESCE ( - 27, - + 54, COUNT( * ) * ( + COUNT( * ) ) * + 0 ) + ( + 29 )
----
56

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL - COALESCE ( - 27, - + 54, COUNT ( * ) * ( + COUNT ( * ) ) * + 0 ) + ( + 29 )
----
56

query I rowsort
SELECT - - 54 * - 84 AS col1
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT - 27 + + COUNT( * ) * 78
----
51

skipif mysql # not compatible
query I rowsort label-181
SELECT - 27 + + COUNT ( * ) * 78
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT + MIN( 81 ) * + + 94
----
7614

skipif mysql # not compatible
query I rowsort label-182
SELECT + MIN ( 81 ) * + + 94
----
7614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-183
SELECT ALL COUNT( * ) DIV - 19 col0
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL COUNT ( * ) / - 19 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT ALL COUNT( * ) - - - ( 41 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL COUNT ( * ) - - - ( 41 ) AS col2
----
-40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT ALL 79 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL 79 / - 62
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT - COALESCE ( + 34, 90 * - - 24 * + 88, - 22 - - MIN( ALL - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-187
SELECT - COALESCE ( + 34, 90 * - - 24 * + 88, - 22 - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) ) AS col2
----
-34

query II rowsort
SELECT ALL 73 * + 68 AS col0, - 91
----
4964
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT - COALESCE ( + 30, - 91 * - MIN( - 58 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-189
SELECT - COALESCE ( + 30, - 91 * - MIN ( - 58 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT CASE - - 90 WHEN + - 45 THEN COUNT( * ) WHEN + ( - AVG ( 10 ) ) THEN NULL ELSE NULL END / 39 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT CASE - - 90 WHEN + - 45 THEN COUNT ( * ) WHEN + ( - AVG ( 10 ) ) THEN NULL ELSE NULL END / 39 + + COUNT ( * )
----
NULL

query I rowsort
SELECT 46 * 7 - + 42 col0
----
280

query I rowsort
SELECT + 19 * + - 9 * + 0 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-193
SELECT ALL COUNT( * ) * + 75, - 73 * - 46 AS col1
----
75
3358

skipif mysql # not compatible
query II rowsort label-193
SELECT ALL COUNT ( * ) * + 75, - 73 * - 46 AS col1
----
75
3358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-194
SELECT - COUNT( * ) DIV - - 92 - + ( ( 13 ) ) * - 61 + 90 DIV + CAST( 2 * 72 - 7 DIV + 29 AS SIGNED ) AS col2
----
793

skipif mysql # not compatible
query I rowsort label-194
SELECT - COUNT ( * ) / - - 92 - + ( ( 13 ) ) * - 61 + 90 / + CAST ( 2 * 72 - 7 / + 29 AS INTEGER ) AS col2
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT DISTINCT SUM( DISTINCT - + 35 ) * - 16
----
560

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT SUM ( DISTINCT - + 35 ) * - 16
----
560

query I rowsort
SELECT - 59 * - 67 + 16 * - 98 * + 4 AS col2
----
-2319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-197
SELECT + 50 DIV - 13 + + NULLIF ( + 10, + 78 * - + 75 + + - 75 + COUNT( * ) DIV + 28 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-197
SELECT + 50 / - 13 + + NULLIF ( + 10, + 78 * - + 75 + + - 75 + COUNT ( * ) / + 28 ) AS col2
----
7

query I rowsort
SELECT + - ( + 74 ) * 36 * - 89 AS col0
----
237096

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT ALL + MAX( CASE 26 WHEN - NULLIF ( - 24, - 53 ) THEN - + 54 END ) / - 70 + - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + MAX ( CASE 26 WHEN - NULLIF ( - 24, - 53 ) THEN - + 54 END ) / - 70 + - 15 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT + CAST( - 63 AS SIGNED ) * 55 + - 92 + + COUNT( + - 31 ) * - ( COUNT( * ) )
----
-3558

skipif mysql # not compatible
query I rowsort label-200
SELECT + CAST ( - 63 AS INTEGER ) * 55 + - 92 + + COUNT ( + - 31 ) * - ( COUNT ( * ) )
----
-3558

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT + 26 * - - 8 + 24 DIV - 73 * + + 48 + - 99 + - + 3 + 19 DIV 35
----
106

skipif mysql # not compatible
query I rowsort label-201
SELECT + 26 * - - 8 + 24 / - 73 * + + 48 + - 99 + - + 3 + 19 / 35
----
106

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-203
SELECT + 62 * - COUNT( DISTINCT 59 ) * + 46 * ( - CAST( - CASE + 49 WHEN 53 + + 62 THEN 76 ELSE NULL END AS SIGNED ) ) + - 55 + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT + 62 * - COUNT ( DISTINCT 59 ) * + 46 * ( - CAST ( - CASE + 49 WHEN 53 + + 62 THEN 76 ELSE NULL END AS INTEGER ) ) + - 55 + 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT ( + COUNT( * ) ) * - 40 + 31
----
-9

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT ( + COUNT ( * ) ) * - 40 + 31
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT ALL + COUNT( - 59 ) * + 54 + + 10 + - + CAST( 25 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + COUNT ( - 59 ) * + 54 + + 10 + - + CAST ( 25 AS INTEGER )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-206
SELECT - - COUNT( * ) DIV 63 DIV - COALESCE ( + CASE + + ( - 41 ) WHEN - CAST( - 71 AS SIGNED ) * + 76 + 25 THEN 39 WHEN 4 + 76 THEN NULL ELSE + 81 * COUNT( * ) END, - 67 ) + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-206
SELECT - - COUNT ( * ) / 63 / - COALESCE ( + CASE + + ( - 41 ) WHEN - CAST ( - 71 AS INTEGER ) * + 76 + 25 THEN 39 WHEN 4 + 76 THEN NULL ELSE + 81 * COUNT ( * ) END, - 67 ) + 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT DISTINCT - 7 * + COUNT( * ) * - - 37 + - 0 AS col1
----
-259

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT - 7 * + COUNT ( * ) * - - 37 + - 0 AS col1
----
-259

query I rowsort
SELECT ALL CASE 65 WHEN - 63 THEN NULL WHEN + ( + 98 ) + - 29 * + 93 + - 29 THEN 85 * COALESCE ( - 95, 34 ) END * 32 + + 85 * 53
----
NULL

query I rowsort
SELECT - 46 * + 70 - + 55
----
-3275

onlyif mysql # DIV for integer division: 
query I rowsort label-210
SELECT - NULLIF ( - 10, - 90 + + 88 ) * - 78 DIV - 74 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-210
SELECT - NULLIF ( - 10, - 90 + + 88 ) * - 78 / - 74 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT MIN( DISTINCT 35 ) + NULLIF ( + COUNT( * ), - + 18 * + - NULLIF ( + + 64, + 22 ) + - 12 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-211
SELECT MIN ( DISTINCT 35 ) + NULLIF ( + COUNT ( * ), - + 18 * + - NULLIF ( + + 64, + 22 ) + - 12 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-212
SELECT NULLIF ( - NULLIF ( - + 5, - CAST( + 77 AS DECIMAL ) ), - 95 + - COALESCE ( + CAST( 45 AS DECIMAL ), - 98 ) + CAST( 27 AS SIGNED ) ) + SUM( + 63 ) * MAX( ALL + 69 ) AS col0
----
4352

skipif mysql # not compatible
query I rowsort label-212
SELECT NULLIF ( - NULLIF ( - + 5, - CAST ( + 77 AS REAL ) ), - 95 + - COALESCE ( + CAST ( 45 AS REAL ), - 98 ) + CAST ( 27 AS INTEGER ) ) + SUM ( + 63 ) * MAX ( ALL + 69 ) AS col0
----
4352

query I rowsort
SELECT 82 * - 76 * + 48
----
-299136

query I rowsort
SELECT ALL + 86 * + - 51 col1
----
-4386

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-215
SELECT AVG ( - - 45 ) + + ( - CAST( NULL AS DECIMAL ) ) + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT AVG ( - - 45 ) + + ( - CAST ( NULL AS REAL ) ) + 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-216
SELECT ALL 43 col2, + COUNT( * ) - - 83
----
43
84

skipif mysql # not compatible
query II rowsort label-216
SELECT ALL 43 col2, + COUNT ( * ) - - 83
----
43
84

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

skipif mysql # not compatible
query I rowsort label-217
SELECT COUNT ( * ) / + - MIN ( ALL + + 70 ) AS col2
----
0

query I rowsort
SELECT 72 * - + 11
----
-792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-219
SELECT ALL + AVG ( - + CAST( NULL AS SIGNED ) ) * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL + AVG ( - + CAST ( NULL AS INTEGER ) ) * - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-220
SELECT 19, - NULLIF ( 90, CASE 79 WHEN + ( 22 ) + 95 + + AVG ( ALL - 22 ) THEN + SUM( - 97 ) END ) * - CAST( NULL AS SIGNED ) AS col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-220
SELECT 19, - NULLIF ( 90, CASE 79 WHEN + ( 22 ) + 95 + + AVG ( ALL - 22 ) THEN + SUM ( - 97 ) END ) * - CAST ( NULL AS INTEGER ) AS col2
----
19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT COUNT( * ) + + 82 + - 16 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-221
SELECT COUNT ( * ) + + 82 + - 16 AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT 27 DIV 12
----
2

skipif mysql # not compatible
query I rowsort label-222
SELECT 27 / 12
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-223
SELECT 33 + - ( 27 ) AS col1, - COUNT( * )
----
6
-1

skipif mysql # not compatible
query II rowsort label-223
SELECT 33 + - ( 27 ) AS col1, - COUNT ( * )
----
6
-1

query I rowsort
SELECT DISTINCT 78 * - 61
----
-4758

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

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

query I rowsort
SELECT DISTINCT 13 * - + 88 AS col1
----
-1144

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-227
SELECT ALL CAST( - 62 AS SIGNED ) + + 45 DIV - - 90 * 5 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL CAST ( - 62 AS INTEGER ) + + 45 / - - 90 * 5 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-228
SELECT - ( + 93 ) - 0 col1, + MAX( - 33 ) * + 11 * + 63 AS col0
----
-93
-22869

skipif mysql # not compatible
query II rowsort label-228
SELECT - ( + 93 ) - 0 col1, + MAX ( - 33 ) * + 11 * + 63 AS col0
----
-93
-22869

query I rowsort
SELECT + - 10 col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT - 62 * - COALESCE ( - 24, + 85, - COALESCE ( - 51, - 71, CAST( 41 AS SIGNED ), 39 ) ) AS col1
----
-1488

skipif mysql # not compatible
query I rowsort label-230
SELECT - 62 * - COALESCE ( - 24, + 85, - COALESCE ( - 51, - 71, CAST ( 41 AS INTEGER ), 39 ) ) AS col1
----
-1488

query I rowsort
SELECT - 1 - - ( + + 55 ) + - - 23 AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT DISTINCT + 87 + - 39 + - 43 DIV + 72
----
48

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT + 87 + - 39 + - 43 / + 72
----
48

query I rowsort
SELECT - 28 * - 47 AS col1
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL - 84 + 63 + + + 69 + + 59 * NULLIF ( COUNT( * ), + - 49 * + ( - 15 ) ) + 41
----
148

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - 84 + 63 + + + 69 + + 59 * NULLIF ( COUNT ( * ), + - 49 * + ( - 15 ) ) + 41
----
148

query I rowsort
SELECT + 50 - - CASE - 48 WHEN - 35 - + - CASE - 59 WHEN 60 * 12 THEN - 75 WHEN - 10 + + 58 THEN 85 END THEN NULL ELSE 28 END - 79
----
-1

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

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

query I rowsort
SELECT ALL ( - + 72 ) + 9 * - 65 col2
----
-657

query I rowsort
SELECT - 3 * - 39 + 28 * + 22 * - ( ( - ( + - 34 ) ) )
----
-20827

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-241
SELECT 7 + - - 42 + + + 81 - + 73 * 22 DIV - 2 col0
----
933

skipif mysql # not compatible
query I rowsort label-241
SELECT 7 + - - 42 + + + 81 - + 73 * 22 / - 2 col0
----
933

query I rowsort
SELECT - 0 * - ( + - 38 ) + + - 68 - + 78 AS col2
----
-146

query II rowsort
SELECT DISTINCT - - 74 col0, 27 AS col2
----
74
27

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + - COUNT( * ) * - - 39 - + COUNT( * ) * COUNT( * ) + + - 72 + - 33 AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-244
SELECT + - COUNT ( * ) * - - 39 - + COUNT ( * ) * COUNT ( * ) + + - 72 + - 33 AS col1
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT 97 - + - MIN( + ( - - 19 ) )
----
116

skipif mysql # not compatible
query I rowsort label-245
SELECT 97 - + - MIN ( + ( - - 19 ) )
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT ALL - CAST( + 21 AS SIGNED ) - 78
----
-99

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL - CAST ( + 21 AS INTEGER ) - 78
----
-99

query I rowsort
SELECT ALL 3 * + 15 AS col1
----
45

query I rowsort
SELECT DISTINCT 62 * + + 91
----
5642

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT SUM( DISTINCT - - 76 ) - + + 84 + COUNT( * ) * COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-251
SELECT SUM ( DISTINCT - - 76 ) - + + 84 + COUNT ( * ) * COUNT ( * )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT 36 + - 55 - + - 9 DIV - 78 * 39 + 57 col0
----
38

skipif mysql # not compatible
query I rowsort label-252
SELECT 36 + - 55 - + - 9 / - 78 * 39 + 57 col0
----
38

query I rowsort
SELECT 7 * + 11
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-254
SELECT ALL - 19 * + COUNT( * ), 37 col1
----
-19
37

skipif mysql # not compatible
query II rowsort label-254
SELECT ALL - 19 * + COUNT ( * ), 37 col1
----
-19
37

onlyif mysql # aggregate syntax: 
query II rowsort label-255
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col1, 91
----
-1
91

skipif mysql # not compatible
query II rowsort label-255
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col1, 91
----
-1
91

query I rowsort
SELECT DISTINCT - 37 + + + 9
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-257
SELECT DISTINCT COUNT( - - 69 ) AS col2, + 54
----
1
54

skipif mysql # not compatible
query II rowsort label-257
SELECT DISTINCT COUNT ( - - 69 ) AS col2, + 54
----
1
54

query I rowsort
SELECT ALL - ( - 93 ) + - 32 * - 55 AS col2
----
1853

query I rowsort
SELECT ALL - ( + 29 ) + 18 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT 13 + - COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-260
SELECT 13 + - COUNT ( * ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT DISTINCT COUNT( ALL - + ( 23 ) )
----
1

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT COUNT ( ALL - + ( 23 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT 38 * + - 4 - + 67 + COUNT( DISTINCT + - 88 ) - + ( 95 ) * + - 33 AS col1
----
2917

skipif mysql # not compatible
query I rowsort label-262
SELECT 38 * + - 4 - + 67 + COUNT ( DISTINCT + - 88 ) - + ( 95 ) * + - 33 AS col1
----
2917

query I rowsort
SELECT + 99 + - - 50 * NULLIF ( + 79, - 28 * + + ( 67 ) * + + 49 - - - ( 24 ) ) AS col0
----
4049

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL 75 * - 9 - + MAX( DISTINCT - 39 ) + - 68 AS col2
----
-704

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL 75 * - 9 - + MAX ( DISTINCT - 39 ) + - 68 AS col2
----
-704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT ALL + CAST( - - 0 AS SIGNED ) * + + 44 * - CASE - 92 WHEN 97 THEN - 13 + + 17 WHEN - 30 THEN NULL ELSE NULL END + + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL + CAST ( - - 0 AS INTEGER ) * + + 44 * - CASE - 92 WHEN 97 THEN - 13 + + 17 WHEN - 30 THEN NULL ELSE NULL END + + 85 AS col2
----
NULL

query I rowsort
SELECT 4 * - 89 * - 54 + - 51
----
19173

query II rowsort
SELECT DISTINCT - 6 * - ( + - 76 ) + ( + 30 ) col2, 0
----
-426
0

query II rowsort
SELECT ALL 74 * + + 97 AS col1, - 41 * - - 4 + + 82 AS col1
----
7178
-82

query I rowsort
SELECT ALL 79 * 88 AS col1
----
6952

query II rowsort
SELECT 83 * - 61, + 90 AS col2
----
-5063
90

query I rowsort
SELECT 42 + + ( - + 5 )
----
37

query I rowsort
SELECT ALL - 31 * + - 98 + - - 41 AS col2
----
3079

query I rowsort
SELECT + CASE + 27 WHEN - - ( - 87 ) * - + 26 THEN NULL WHEN + 89 THEN NULL ELSE - + 24 END AS col2
----
-24

query I rowsort
SELECT + NULLIF ( - NULLIF ( - - ( - 74 ), 66 ), + + 66 ) * - 86 + - 48 + + 6 * + 73 AS col0
----
-5974

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-276
SELECT ( 64 ) * - - 99 * - 29 + NULLIF ( - 69, ( - COALESCE ( - 42, + 65 ) ) + 4 ) - - COUNT( * ) DIV + 37 * + 81
----
-183813

skipif mysql # not compatible
query I rowsort label-276
SELECT ( 64 ) * - - 99 * - 29 + NULLIF ( - 69, ( - COALESCE ( - 42, + 65 ) ) + 4 ) - - COUNT ( * ) / + 37 * + 81
----
-183813

query I rowsort
SELECT + - 76 * - 6 AS col2
----
456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-278
SELECT ALL - 70 * + - MIN( DISTINCT + 78 ) + - 24 * - 8 + + ( + CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - 70 * + - MIN ( DISTINCT + 78 ) + - 24 * - 8 + + ( + CAST ( NULL AS REAL ) ) col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT ALL 86 DIV 62 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL 86 / 62 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-281
SELECT + 44 DIV + 40
----
1

skipif mysql # not compatible
query I rowsort label-281
SELECT + 44 / + 40
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT ALL 50 DIV - 7
----
-7

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL 50 / - 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT + COUNT( DISTINCT + 16 ) + - 28 * + 21
----
-587

skipif mysql # not compatible
query I rowsort label-283
SELECT + COUNT ( DISTINCT + 16 ) + - 28 * + 21
----
-587

query I rowsort
SELECT + 54 * + 63 * + + 57 - + 36 * 9
----
193590

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

skipif mysql # not compatible
query I rowsort label-285
SELECT - COUNT ( * ) + - COUNT ( DISTINCT + 73 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-286
SELECT DISTINCT 98 AS col0, SUM( - - ( 22 ) ) AS col2
----
98
22

skipif mysql # not compatible
query II rowsort label-286
SELECT DISTINCT 98 AS col0, SUM ( - - ( 22 ) ) AS col2
----
98
22

query I rowsort
SELECT ALL 14 + + 20 + + 44
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT DISTINCT COUNT( + 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-288
SELECT DISTINCT COUNT ( + 14 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + 2 + - COUNT( * ) * - - 81
----
-79

skipif mysql # not compatible
query I rowsort label-290
SELECT + 2 + - COUNT ( * ) * - - 81
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT DISTINCT 7 + + + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT 7 + + + COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL + ( - COALESCE ( 64, + - 80 + - + 60, + COUNT( * ) * + 12 ) ) + MIN( 89 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL + ( - COALESCE ( 64, + - 80 + - + 60, + COUNT ( * ) * + 12 ) ) + MIN ( 89 ) AS col2
----
25

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

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT SUM ( 87 )
----
87

query I rowsort
SELECT - 53 + 78 + 37 * + + 8 col2
----
321

query I rowsort
SELECT ALL - 87 + + 70 + + 86 + - 76 + + 84
----
77

query II rowsort
SELECT ALL 64 AS col1, - 41 AS col1
----
64
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT - SUM( - - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-297
SELECT - SUM ( - - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL - COUNT( * ) * - + 47 * + + 44 + - 62 AS col0
----
2006

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - COUNT ( * ) * - + 47 * + + 44 + - 62 AS col0
----
2006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-299
SELECT - 19 * 30 DIV 77 + + 86 + 62 * CASE - + MIN( ALL - 74 ) WHEN 26 THEN NULL ELSE - + 19 * 46 END
----
-54109

skipif mysql # not compatible
query I rowsort label-299
SELECT - 19 * 30 / 77 + + 86 + 62 * CASE - + MIN ( ALL - 74 ) WHEN 26 THEN NULL ELSE - + 19 * 46 END
----
-54109

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-302
SELECT - + CAST( + 98 AS SIGNED ) - + COUNT( * ) AS col2, 64 * 13 * - - 53 * + + MIN( - - 83 )
----
-99
3659968

skipif mysql # not compatible
query II rowsort label-302
SELECT - + CAST ( + 98 AS INTEGER ) - + COUNT ( * ) AS col2, 64 * 13 * - - 53 * + + MIN ( - - 83 )
----
-99
3659968

query I rowsort
SELECT - + 65 * + 78 AS col2
----
-5070

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-305
SELECT CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) + - + 32 / - - 99 THEN 44 * - 90 - + COUNT( * ) - + - 77 - 12 + - 14 ELSE NULL END * + 92 - - CAST( 95 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) + - + 32 / - - 99 THEN 44 * - 90 - + COUNT ( * ) - + - 77 - 12 + - 14 ELSE NULL END * + 92 - - CAST ( 95 AS REAL ) AS col0
----
NULL

query II rowsort
SELECT 1 AS col0, 26 AS col1
----
1
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-307
SELECT ALL + 15 * COUNT( * ) - - 28 DIV - 70 DIV + + ( + COUNT( - - 50 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL + 15 * COUNT ( * ) - - 28 / - 70 / + + ( + COUNT ( - - 50 ) ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-308
SELECT ALL + - 91 AS col2, + ( - 83 ) - + - COUNT( * )
----
-91
-82

skipif mysql # not compatible
query II rowsort label-308
SELECT ALL + - 91 AS col2, + ( - 83 ) - + - COUNT ( * )
----
-91
-82

query II rowsort
SELECT ALL + - 96, 83 + 90 col0
----
-96
173

query I rowsort
SELECT - - 39 * + ( - 94 ) AS col2
----
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT + 68 * + - 16 * + COALESCE ( - + 74, + 66 + - 85, - MAX( ALL - + 27 ) - 30 + + - 46 ) AS col2
----
80512

skipif mysql # not compatible
query I rowsort label-311
SELECT + 68 * + - 16 * + COALESCE ( - + 74, + 66 + - 85, - MAX ( ALL - + 27 ) - 30 + + - 46 ) AS col2
----
80512

query I rowsort
SELECT - ( + 61 ) + - ( + 53 ) + - 5
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-313
SELECT + CASE + CAST( - 19 AS SIGNED ) WHEN + 75 THEN - + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-313
SELECT + CASE + CAST ( - 19 AS INTEGER ) WHEN + 75 THEN - + 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT COALESCE ( + 12, - - 68 + + 49 + - COUNT( * ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-314
SELECT COALESCE ( + 12, - - 68 + + 49 + - COUNT ( * ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT CASE - + COUNT( * ) WHEN + - 83 * - - COUNT( * ) + - COUNT( * ) - - + 91 + + + 65 / 72 / + 83 THEN NULL WHEN MIN( 72 ) THEN + 69 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT CASE - + COUNT ( * ) WHEN + - 83 * - - COUNT ( * ) + - COUNT ( * ) - - + 91 + + + 65 / 72 / + 83 THEN NULL WHEN MIN ( 72 ) THEN + 69 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT - 23 * + + 43 + 70 - + + SUM( + - 50 ) AS col1
----
-869

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - 23 * + + 43 + 70 - + + SUM ( + - 50 ) AS col1
----
-869

query I rowsort
SELECT - NULLIF ( + 14, + - 3 * + 12 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL + NULLIF ( + + ( 24 ), - 99 ) * - 25 * - 48 + CAST( NULL AS SIGNED ) * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + NULLIF ( + + ( 24 ), - 99 ) * - 25 * - 48 + CAST ( NULL AS INTEGER ) * 56 AS col0
----
NULL

query II rowsort
SELECT + 2 * + - 99 AS col2, + 21 + - ( - 41 ) * - 94 * - + 85 AS col2
----
-198
327611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-320
SELECT DISTINCT - 46 * ( + + CAST( - AVG ( - - 94 ) AS SIGNED ) ) * - + ( 67 ) * 3 + - + ( 34 ) + - 28 + 25 AS col1
----
-869161

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT - 46 * ( + + CAST ( - AVG ( - - 94 ) AS INTEGER ) ) * - + ( 67 ) * 3 + - + ( 34 ) + - 28 + 25 AS col1
----
-869161

query II rowsort
SELECT ALL 4 AS col1, 98
----
4
98

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT + 37 + + ( + 79 ) + - - ( + COALESCE ( + MAX( - - 36 ), 43 + 96 + + 62 ) ) AS col2
----
152

skipif mysql # not compatible
query I rowsort label-322
SELECT + 37 + + ( + 79 ) + - - ( + COALESCE ( + MAX ( - - 36 ), 43 + 96 + + 62 ) ) AS col2
----
152

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

skipif mysql # not compatible
query I rowsort label-323
SELECT SUM ( + ( - - 3 ) )
----
3

query I rowsort
SELECT + 66 + + 85 col0
----
151

query I rowsort
SELECT + 42 + 15
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-326
SELECT + NULLIF ( - 16, SUM( + CAST( - 80 AS DECIMAL ) ) ) * 22, - 50 * - CAST( - COUNT( DISTINCT - 76 ) AS SIGNED ) - - 67 AS col1
----
-352
17

skipif mysql # not compatible
query II rowsort label-326
SELECT + NULLIF ( - 16, SUM ( + CAST ( - 80 AS REAL ) ) ) * 22, - 50 * - CAST ( - COUNT ( DISTINCT - 76 ) AS INTEGER ) - - 67 AS col1
----
-352
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-327
SELECT - COALESCE ( + 3, + 0, - 71 DIV - 48 ) DIV - 61 * 72 + - 92 * + 84 - + - 27 - + - CAST( 46 AS SIGNED ) + 62
----
-7593

skipif mysql # not compatible
query I rowsort label-327
SELECT - COALESCE ( + 3, + 0, - 71 / - 48 ) / - 61 * 72 + - 92 * + 84 - + - 27 - + - CAST ( 46 AS INTEGER ) + 62
----
-7593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-328
SELECT - CAST( NULL AS SIGNED ) AS col0, MAX( DISTINCT - 83 ) * + - 64, + 2 AS col1
----
NULL
5312
2

skipif mysql # not compatible
query III rowsort label-328
SELECT - CAST ( NULL AS INTEGER ) AS col0, MAX ( DISTINCT - 83 ) * + - 64, + 2 AS col1
----
NULL
5312
2

query I rowsort
SELECT ALL - NULLIF ( - 33, - 41 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT + + 61 - - + 45 + + CAST( 90 AS SIGNED ) * + 57 AS col1
----
5236

skipif mysql # not compatible
query I rowsort label-330
SELECT + + 61 - - + 45 + + CAST ( 90 AS INTEGER ) * + 57 AS col1
----
5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-331
SELECT ALL - 55 - + - 58 - + - 92 * - COUNT( * ) * 80 + 72 + - CAST( NULL AS SIGNED ) + - + COUNT( * ) + + 76 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - 55 - + - 58 - + - 92 * - COUNT ( * ) * 80 + 72 + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + + 76 * - 38
----
NULL

query I rowsort
SELECT + - 86 + - - COALESCE ( + + 54, + + 79 )
----
-32

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

skipif mysql # not compatible
query I rowsort label-333
SELECT + + 75 + + + COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT + + 16 * - COUNT( * ) + 68
----
52

skipif mysql # not compatible
query I rowsort label-334
SELECT + + 16 * - COUNT ( * ) + 68
----
52

query I rowsort
SELECT - + 11 * 41 AS col0
----
-451

query I rowsort
SELECT + 70 + + 35 + + - 34 col2
----
71

query II rowsort
SELECT + 27, ( + + 38 ) AS col1
----
27
38

query I rowsort
SELECT 13 + + 97 + 1 + 38 * 96 - + - 92
----
3851

query I rowsort
SELECT + + 25 * + 91 * + 48 * + 18 - - + 77
----
1965677

onlyif mysql # aggregate syntax: 
query II rowsort label-340
SELECT - COUNT( - 39 ), - 50 AS col2
----
-1
-50

skipif mysql # not compatible
query II rowsort label-340
SELECT - COUNT ( - 39 ), - 50 AS col2
----
-1
-50

query I rowsort
SELECT 5 * 75 * 22 + - 46
----
8204

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL - - SUM( - 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - - SUM ( - 2 ) AS col0
----
-2

query II rowsort
SELECT DISTINCT - 64 AS col2, - 84
----
-64
-84

query I rowsort
SELECT DISTINCT + 48 * + 27
----
1296

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT + 44 DIV - + 87 + + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-345
SELECT + 44 / - + 87 + + 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT ALL - + 3 AS col0, + 34 + + - COUNT( * )
----
-3
33

skipif mysql # not compatible
query II rowsort label-346
SELECT ALL - + 3 AS col0, + 34 + + - COUNT ( * )
----
-3
33

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

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

query I rowsort
SELECT + 46 + - 96 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT - 55 * - - 65 / - CASE - ( + 13 ) WHEN 22 * - + ( ( + ( - 51 ) ) ) * - - 77 * 74 + 72 THEN NULL WHEN + 61 * 64 THEN NULL WHEN CASE + 73 WHEN 53 / 87 THEN COUNT( * ) + 45 WHEN - COALESCE ( COALESCE ( + 67, NULLIF ( 72, + COUNT( * ) ) + 27 * - ( - 83 ) ), - MIN( 3 ), 70, - COUNT( * ) + - ( COALESCE ( 92, COUNT( * ) * - 25, 75 ) + 40 ) * 24 ) THEN - 64 - + 21 * - 71 ELSE NULL END THEN 43 * - 5 WHEN - 93 THEN - COUNT( 4 ) + 86 END * + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT - 55 * - - 65 / - CASE - ( + 13 ) WHEN 22 * - + ( ( + ( - 51 ) ) ) * - - 77 * 74 + 72 THEN NULL WHEN + 61 * 64 THEN NULL WHEN CASE + 73 WHEN 53 / 87 THEN COUNT ( * ) + 45 WHEN - COALESCE ( COALESCE ( + 67, NULLIF ( 72, + COUNT ( * ) ) + 27 * - ( - 83 ) ), - MIN ( 3 ), 70, - COUNT ( * ) + - ( COALESCE ( 92, COUNT ( * ) * - 25, 75 ) + 40 ) * 24 ) THEN - 64 - + 21 * - 71 ELSE NULL END THEN 43 * - 5 WHEN - 93 THEN - COUNT ( 4 ) + 86 END * + 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL - - 61 + - COUNT( DISTINCT + 31 )
----
60

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL - - 61 + - COUNT ( DISTINCT + 31 )
----
60

query I rowsort
SELECT - 21 * - 74 + + - 95
----
1459

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-353
SELECT DISTINCT - 23 + + + 60, - 73 + - + COALESCE ( - 22, - 73 / - 24 * - + 78 * COUNT( * ) ) - + + CAST( NULL AS SIGNED ) col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-353
SELECT DISTINCT - 23 + + + 60, - 73 + - + COALESCE ( - 22, - 73 / - 24 * - + 78 * COUNT ( * ) ) - + + CAST ( NULL AS INTEGER ) col2
----
37
NULL

query I rowsort
SELECT DISTINCT - 51 + - 69
----
-120

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT DISTINCT + 78 DIV 15
----
5

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT + 78 / 15
----
5

query II rowsort
SELECT 7 * 37 AS col2, 76 * - + 77 AS col2
----
259
-5852

query II rowsort
SELECT 13 + 88, 5 col1
----
101
5

query I rowsort
SELECT 23 + 40 + - 14
----
49

query I rowsort
SELECT DISTINCT + 89 * - ( - + 94 ) AS col2
----
8366

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT 58 + + 8 + + MAX( + - 6 ) * 66 * - 98 col0
----
38874

skipif mysql # not compatible
query I rowsort label-361
SELECT 58 + + 8 + + MAX ( + - 6 ) * 66 * - 98 col0
----
38874

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

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

query II rowsort
SELECT ALL + ( 40 ) AS col1, + 44 AS col1
----
40
44

query I rowsort
SELECT - 1 + - + 5 AS col1
----
-6

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

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

query I rowsort
SELECT - 28 * - + 55 AS col1
----
1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-367
SELECT + 37 + NULLIF ( + + 15, + COUNT( DISTINCT - 75 ) ) + + 95 + + + MAX( 97 ) / - 87 + + CAST( NULL AS SIGNED ) * 51 + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT + 37 + NULLIF ( + + 15, + COUNT ( DISTINCT - 75 ) ) + + 95 + + + MAX ( 97 ) / - 87 + + CAST ( NULL AS INTEGER ) * 51 + - 16
----
NULL

query I rowsort
SELECT ALL - 43 * - 46 + - 9 - + - 60
----
2029

onlyif mysql # aggregate syntax: 
query II rowsort label-369
SELECT ALL - 94 * MIN( + 50 ) + + 94 + + 69, 9 AS col2
----
-4537
9

skipif mysql # not compatible
query II rowsort label-369
SELECT ALL - 94 * MIN ( + 50 ) + + 94 + + 69, 9 AS col2
----
-4537
9

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT + CASE + 39 WHEN - + 82 / + - 5 * + + CASE WHEN + 15 = NULL THEN NULL ELSE + 84 END THEN + 73 * COUNT( * ) + - + 86 WHEN + 75 * + 67 - 68 * + 32 THEN NULL WHEN 75 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT + CASE + 39 WHEN - + 82 / + - 5 * + + CASE WHEN + 15 = NULL THEN NULL ELSE + 84 END THEN + 73 * COUNT ( * ) + - + 86 WHEN + 75 * + 67 - 68 * + 32 THEN NULL WHEN 75 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 50 * - 64 AS col2, + 66 AS col1
----
3200
66

query I rowsort
SELECT - 44 * - 14 * + 33 * + ( - - ( + + 0 ) ) * + 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT MAX( ALL - - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-373
SELECT MAX ( ALL - - 28 )
----
28

query I rowsort
SELECT ALL - ( + 79 ) + - NULLIF ( - + 71, + 5 ) + - 40 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-375
SELECT MAX( CAST( 78 AS SIGNED ) )
----
78

skipif mysql # not compatible
query I rowsort label-375
SELECT MAX ( CAST ( 78 AS INTEGER ) )
----
78

query I rowsort
SELECT 27 - + 75
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT ALL + CAST( 16 AS SIGNED ) * - - 47
----
752

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + CAST ( 16 AS INTEGER ) * - - 47
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT DISTINCT ( + MIN( ALL + 96 ) ) + - 82 + 16 + - 31 * + 93 - 22 * + 55 + - 5 AS col1
----
-4068

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT ( + MIN ( ALL + 96 ) ) + - 82 + 16 + - 31 * + 93 - 22 * + 55 + - 5 AS col1
----
-4068

query II rowsort
SELECT + 48, 50 AS col0
----
48
50

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT 52 * 35 DIV 95
----
19

skipif mysql # not compatible
query I rowsort label-380
SELECT 52 * 35 / 95
----
19

query I rowsort
SELECT 26 + + ( + 60 ) AS col1
----
86

query II rowsort
SELECT 6 AS col1, + 56 * - 1 * - 65 AS col0
----
6
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT 42 * - SUM( ALL + 98 )
----
-4116

skipif mysql # not compatible
query I rowsort label-383
SELECT 42 * - SUM ( ALL + 98 )
----
-4116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT ALL - 29 / 49 / + CAST( NULL AS SIGNED ) / - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - 29 / 49 / + CAST ( NULL AS INTEGER ) / - 31
----
NULL

query I rowsort
SELECT ALL + 75 - 86 * + - 4
----
419

query I rowsort
SELECT DISTINCT - 11 * - 28 * + 47 col1
----
14476

query I rowsort
SELECT ALL 59 * + 20 AS col0
----
1180

query I rowsort
SELECT 67 * + 27 * + + 77 * + + 13
----
1810809

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT ALL - 30 DIV 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL - 30 / 55 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT - 43 DIV - 50 * + NULLIF ( 51, - + 78 ) + + + 77 - - 59 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-390
SELECT - 43 / - 50 * + NULLIF ( 51, - + 78 ) + + + 77 - - 59 AS col0
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-391
SELECT - + 83 + + + NULLIF ( + - 96, - + CAST( 43 AS SIGNED ) + + 68 + - 50 + + COUNT( * ) * 43 + - 42 + - AVG ( + - 64 ) * CAST( 3 AS SIGNED ) + + 58 ) * 40 AS col2
----
-3923

skipif mysql # not compatible
query I rowsort label-391
SELECT - + 83 + + + NULLIF ( + - 96, - + CAST ( 43 AS INTEGER ) + + 68 + - 50 + + COUNT ( * ) * 43 + - 42 + - AVG ( + - 64 ) * CAST ( 3 AS INTEGER ) + + 58 ) * 40 AS col2
----
-3923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT + 26 * - 93 - - + CASE + 61 WHEN + CAST( NULL AS SIGNED ) * + - 19 THEN NULL WHEN COUNT( DISTINCT + + 62 ) + + + 29 * - ( 98 ) THEN - - 80 WHEN + 92 THEN + 98 * 4 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT + 26 * - 93 - - + CASE + 61 WHEN + CAST ( NULL AS INTEGER ) * + - 19 THEN NULL WHEN COUNT ( DISTINCT + + 62 ) + + + 29 * - ( 98 ) THEN - - 80 WHEN + 92 THEN + 98 * 4 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - - 64, + 17 ) * + 90 AS col0
----
5760

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT - - ( + COALESCE ( + 57, 74 ) ) + ( - 56 ) + - - 85 + - + 48 DIV + ( - ( + 29 ) ) + - 73 * + - 35 * 18
----
46077

skipif mysql # not compatible
query I rowsort label-394
SELECT - - ( + COALESCE ( + 57, 74 ) ) + ( - 56 ) + - - 85 + - + 48 / + ( - ( + 29 ) ) + - 73 * + - 35 * 18
----
46077

query I rowsort
SELECT ALL NULLIF ( 29, + 87 )
----
29

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

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

query I rowsort
SELECT - - ( ( 66 ) )
----
66

query I rowsort
SELECT - 88 - + 1 col1
----
-89

query I rowsort
SELECT ALL - 53 * + 74
----
-3922

query I rowsort
SELECT + 1 + + - 56 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT + 15 + + 75 + + 12 - ( - 49 ) - - + COUNT( + 43 ) * 23 * + CASE COUNT( * ) WHEN - - 61 THEN + 16 END * 30 + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT + 15 + + 75 + + 12 - ( - 49 ) - - + COUNT ( + 43 ) * 23 * + CASE COUNT ( * ) WHEN - - 61 THEN + 16 END * 30 + 89 AS col0
----
NULL

query I rowsort
SELECT ALL + 62 + - 19 col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - - SUM( DISTINCT - 51 ) + - - 9 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-403
SELECT - - SUM ( DISTINCT - 51 ) + - - 9 AS col1
----
-42

query II rowsort
SELECT 70 AS col2, 41 * - ( - + 9 ) * - 30
----
70
-11070

query II rowsort
SELECT ALL + 86, + 97 AS col0
----
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL + 38 * ( CASE - 6 WHEN + 70 THEN - 36 ELSE NULL END ) + 69 * - ( + NULLIF ( + AVG ( 49 ), + COUNT( DISTINCT - 96 ) * + 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL + 38 * ( CASE - 6 WHEN + 70 THEN - 36 ELSE NULL END ) + 69 * - ( + NULLIF ( + AVG ( 49 ), + COUNT ( DISTINCT - 96 ) * + 76 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT ALL 89 * - - MAX( DISTINCT 17 ) + - 34 + - + 2 AS col0
----
1477

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL 89 * - - MAX ( DISTINCT 17 ) + - 34 + - + 2 AS col0
----
1477

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT 5 DIV + 65 + 99
----
99

skipif mysql # not compatible
query I rowsort label-408
SELECT 5 / + 65 + 99
----
99

query I rowsort
SELECT + NULLIF ( 84, 8 )
----
84

query I rowsort
SELECT DISTINCT 85 * + - ( - 40 ) AS col0
----
3400

onlyif mysql # DIV for integer division: 
query III rowsort label-411
SELECT ALL - 81 * ( - + 55 ) - - 55 DIV - 84 col2, + 66 - + + 54, + - 25 * - 16 AS col1
----
4455
12
400

skipif mysql # not compatible
query III rowsort label-411
SELECT ALL - 81 * ( - + 55 ) - - 55 / - 84 col2, + 66 - + + 54, + - 25 * - 16 AS col1
----
4455
12
400

query I rowsort
SELECT 79 * 11 + + - 73 AS col0
----
796

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT + 26 DIV 96 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-413
SELECT + 26 / 96 / 91 AS col1
----
0

query I rowsort
SELECT + 31 * + + 26
----
806

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

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL COUNT ( * ) / + 81 AS col1
----
0

query II rowsort
SELECT + 2 * 8 col1, + 39
----
16
39

query I rowsort
SELECT 6 * - + 98 + 82 AS col1
----
-506

query I rowsort
SELECT + 72 * - 60
----
-4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT + 89 + - - ( CASE + - 28 WHEN + COUNT( * ) / - 46 / - ( - 25 ) + 4 + - - 77 THEN - + 63 ELSE CASE - ( + 77 ) WHEN - ( + 47 ) THEN + 46 END * 47 END ) + 28 * 7 * CAST( + 57 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT + 89 + - - ( CASE + - 28 WHEN + COUNT ( * ) / - 46 / - ( - 25 ) + 4 + - - 77 THEN - + 63 ELSE CASE - ( + 77 ) WHEN - ( + 47 ) THEN + 46 END * 47 END ) + 28 * 7 * CAST ( + 57 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - + 47, - 4 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-421
SELECT + 55 * COUNT( * ) + - CAST( + 8 AS SIGNED ) + 52, 84 AS col1
----
99
84

skipif mysql # not compatible
query II rowsort label-421
SELECT + 55 * COUNT ( * ) + - CAST ( + 8 AS INTEGER ) + 52, 84 AS col1
----
99
84

onlyif mysql # aggregate syntax: 
query II rowsort label-422
SELECT ALL 30 * + 9 * - - 70 * 82 * 84 AS col0, CASE - 98 WHEN - COUNT( * ) THEN NULL WHEN + 46 THEN - 56 ELSE NULL END AS col1
----
130183200
NULL

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL 30 * + 9 * - - 70 * 82 * 84 AS col0, CASE - 98 WHEN - COUNT ( * ) THEN NULL WHEN + 46 THEN - 56 ELSE NULL END AS col1
----
130183200
NULL

query I rowsort
SELECT + 36 * 58
----
2088

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT + 53 + 32 DIV 64 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-424
SELECT + 53 + 32 / 64 AS col0
----
53

query I rowsort
SELECT - 6 + - 9 + 61 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-426
SELECT + + COUNT( * ) * 36 AS col2, 51 col1
----
36
51

skipif mysql # not compatible
query II rowsort label-426
SELECT + + COUNT ( * ) * 36 AS col2, 51 col1
----
36
51

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT - MIN( + 42 ) + - 62 + + MAX( DISTINCT + - 96 ) AS col0
----
-200

skipif mysql # not compatible
query I rowsort label-427
SELECT - MIN ( + 42 ) + - 62 + + MAX ( DISTINCT + - 96 ) AS col0
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT + 24 + + NULLIF ( 37, - 97 / 27 * + COUNT( * ) * + 54 )
----
61

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT + 24 + + NULLIF ( 37, - 97 / 27 * + COUNT ( * ) * + 54 )
----
61

query I rowsort
SELECT DISTINCT - 61 * 92 AS col0
----
-5612

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

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT + + 67 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT - - 22 DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-431
SELECT - - 22 / - - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - + 5 + - + SUM( ALL ( 86 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-432
SELECT - + 5 + - + SUM ( ALL ( 86 ) ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-433
SELECT ALL - + MIN( ALL + CAST( + 18 AS SIGNED ) ) * + + 55 AS col1
----
-990

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - + MIN ( ALL + CAST ( + 18 AS INTEGER ) ) * + + 55 AS col1
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT - + 36 * 64 * + 19 - - 26 + COUNT( * )
----
-43749

skipif mysql # not compatible
query I rowsort label-434
SELECT - + 36 * 64 * + 19 - - 26 + COUNT ( * )
----
-43749

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT - - SUM( DISTINCT 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-435
SELECT - - SUM ( DISTINCT 55 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-436
SELECT ALL + - 41 + + CASE - - 16 WHEN + + 75 * - + 26 * CAST( + + 70 AS SIGNED ) + + 74 + - 65 * + 93 - + 5 + COUNT( * ) THEN - 91 ELSE 79 * 75 END + + 92 * 73 AS col1
----
12600

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL + - 41 + + CASE - - 16 WHEN + + 75 * - + 26 * CAST ( + + 70 AS INTEGER ) + + 74 + - 65 * + 93 - + 5 + COUNT ( * ) THEN - 91 ELSE 79 * 75 END + + 92 * 73 AS col1
----
12600

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT MAX( ALL + ( + 80 ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT MAX ( ALL + ( + 80 ) ) AS col1
----
80

query II rowsort
SELECT DISTINCT - 92 + + 32 * + NULLIF ( - 87, 28 ) + - + 1 AS col0, + 65 + - 79
----
-2877
-14

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

skipif mysql # not compatible
query I rowsort label-439
SELECT - 50 * COUNT ( * )
----
-50

query I rowsort
SELECT + 56 * 18 AS col0
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT - 26 - - SUM( - - 67 ) + 79 + - 60 * + 43 + 79
----
-2381

skipif mysql # not compatible
query I rowsort label-441
SELECT - 26 - - SUM ( - - 67 ) + 79 + - 60 * + 43 + 79
----
-2381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-442
SELECT ALL MIN( ALL 73 ) DIV - 84 - - + 42 * 27 DIV + COALESCE ( + - 72, 60 * + COUNT( + - 35 ), 61 ) * + COUNT( * ) + + 40 col2
----
25

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL MIN ( ALL 73 ) / - 84 - - + 42 * 27 / + COALESCE ( + - 72, 60 * + COUNT ( + - 35 ), 61 ) * + COUNT ( * ) + + 40 col2
----
25

query I rowsort
SELECT 11 * - 10 * 84 + 94 AS col2
----
-9146

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT - 20 * CASE ( + COUNT( DISTINCT + 28 ) ) WHEN 73 * + - COUNT( * ) + - - COUNT( * ) / + COUNT( * ) * COUNT( * ) * - 52 THEN - 16 * 90 * 51 + ( 98 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT - 20 * CASE ( + COUNT ( DISTINCT + 28 ) ) WHEN 73 * + - COUNT ( * ) + - - COUNT ( * ) / + COUNT ( * ) * COUNT ( * ) * - 52 THEN - 16 * 90 * 51 + ( 98 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-445
SELECT ALL ( - 90 ) DIV ( - ( + 50 ) ) - 95 - - COUNT( * ) + 39
----
-54

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL ( - 90 ) / ( - ( + 50 ) ) - 95 - - COUNT ( * ) + 39
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-446
SELECT + SUM( - 78 ) DIV 43 * + + 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-446
SELECT + SUM ( - 78 ) / 43 * + + 20 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT DISTINCT CASE - 18 WHEN - 31 * - 58 THEN 41 + 23 WHEN + 95 + + COUNT( * ) + - 85 * + COUNT( * ) * + 95 THEN - - CAST( NULL AS SIGNED ) ELSE 17 * - 30 + 99 * - COUNT( - 9 + + 18 * 94 ) END * - 21 AS col2
----
12789

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT CASE - 18 WHEN - 31 * - 58 THEN 41 + 23 WHEN + 95 + + COUNT ( * ) + - 85 * + COUNT ( * ) * + 95 THEN - - CAST ( NULL AS INTEGER ) ELSE 17 * - 30 + 99 * - COUNT ( - 9 + + 18 * 94 ) END * - 21 AS col2
----
12789

query I rowsort
SELECT + 51 * - 12 + + 26 + + - ( - - COALESCE ( - + 78, + 82 ) ) + 74 * - 96 * 22 AS col0
----
-156796

query I rowsort
SELECT 51 + + ( + + 47 ) AS col2
----
98

query I rowsort
SELECT DISTINCT 83 + + 90 * + + 46
----
4223

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT 46 - + 27 DIV - 38 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-451
SELECT 46 - + 27 / - 38 AS col1
----
46

query I rowsort
SELECT ALL + 56 + 4 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT + + MIN( DISTINCT 96 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-453
SELECT + + MIN ( DISTINCT 96 ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT - NULLIF ( + 26, + COUNT( * ) * - - 20 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-454
SELECT - NULLIF ( + 26, + COUNT ( * ) * - - 20 ) AS col1
----
-26

query I rowsort
SELECT ALL + - 94 + + NULLIF ( - + 9, - + 86 )
----
-103

query I rowsort
SELECT ALL + 95 + 39 AS col0
----
134

query II rowsort
SELECT 2 * - + 0 * - 23 + - 68 - + - 52, - 54 AS col2
----
-16
-54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-459
SELECT DISTINCT CASE - COUNT( * ) WHEN - NULLIF ( 11, - 15 DIV - + 52 ) + COUNT( * ) THEN - COUNT( * ) DIV - + 42 WHEN + 43 * - 96 * + + COALESCE ( + 93, - + 60, + 78 ) * - ( 69 ) + + 53 THEN - 49 DIV 43 ELSE 31 + - 86 END * MIN( 30 + - 22 ) AS col1
----
-440

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT CASE - COUNT ( * ) WHEN - NULLIF ( 11, - 15 / - + 52 ) + COUNT ( * ) THEN - COUNT ( * ) / - + 42 WHEN + 43 * - 96 * + + COALESCE ( + 93, - + 60, + 78 ) * - ( 69 ) + + 53 THEN - 49 / 43 ELSE 31 + - 86 END * MIN ( 30 + - 22 ) AS col1
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-460
SELECT 36 + - COALESCE ( 52, + - 46 DIV - COUNT( * ) * - COUNT( - 80 ) + + 89 - COUNT( * ) * COALESCE ( 98, 0 * - 6 * + 22 + CAST( NULL AS SIGNED ) ) + + MAX( 64 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-460
SELECT 36 + - COALESCE ( 52, + - 46 / - COUNT ( * ) * - COUNT ( - 80 ) + + 89 - COUNT ( * ) * COALESCE ( 98, 0 * - 6 * + 22 + CAST ( NULL AS INTEGER ) ) + + MAX ( 64 ) )
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-461
SELECT ALL 80 * - + CAST( NULL AS DECIMAL ) * - + 54 * + 6 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL 80 * - + CAST ( NULL AS REAL ) * - + 54 * + 6 col2
----
NULL

query I rowsort
SELECT 82 + - 15 col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT 25 * + COUNT( * ) + + 69 - - COUNT( * ) + + - 70 + - - 89 - 3 * + 65 * 21 * + + 59 + 3 * + + 93 + + ( + NULLIF ( + MIN( ALL - 39 ), - SUM( - 71 ) ) ) + + 47 DIV - COUNT( * ) AS col0
----
-241298

skipif mysql # not compatible
query I rowsort label-463
SELECT 25 * + COUNT ( * ) + + 69 - - COUNT ( * ) + + - 70 + - - 89 - 3 * + 65 * 21 * + + 59 + 3 * + + 93 + + ( + NULLIF ( + MIN ( ALL - 39 ), - SUM ( - 71 ) ) ) + + 47 / - COUNT ( * ) AS col0
----
-241298

query I rowsort
SELECT DISTINCT + 43 * - - 12 AS col1
----
516

query I rowsort
SELECT ALL - 79 + + + 94
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL - ( - - COUNT( * ) ) - COUNT( * ) - 25 + + 4 * + + 62 * - 7
----
-1763

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - ( - - COUNT ( * ) ) - COUNT ( * ) - 25 + + 4 * + + 62 * - 7
----
-1763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-467
SELECT 36 + + COALESCE ( + COUNT( * ), - COALESCE ( 54, - CAST( - AVG ( ( + 26 ) ) AS SIGNED ) + - 7 ) )
----
37

skipif mysql # not compatible
query I rowsort label-467
SELECT 36 + + COALESCE ( + COUNT ( * ), - COALESCE ( 54, - CAST ( - AVG ( ( + 26 ) ) AS INTEGER ) + - 7 ) )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-468
SELECT CAST( NULL AS SIGNED ) + + + 71 AS col2, - 43
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-468
SELECT CAST ( NULL AS INTEGER ) + + + 71 AS col2, - 43
----
NULL
-43

query I rowsort
SELECT 43 * + 41 AS col2
----
1763

query I rowsort
SELECT 17 + 3 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT 52 * 71 * COUNT( * ) * - ( + 5 ) AS col2
----
-18460

skipif mysql # not compatible
query I rowsort label-471
SELECT 52 * 71 * COUNT ( * ) * - ( + 5 ) AS col2
----
-18460

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT COUNT( DISTINCT - 23 ) * - 82 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-472
SELECT COUNT ( DISTINCT - 23 ) * - 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT DISTINCT - CASE - - 7 WHEN + COUNT( ALL - - 48 ) THEN 87 END * 46 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT - CASE - - 7 WHEN + COUNT ( ALL - - 48 ) THEN 87 END * 46 * + 92
----
NULL

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

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

query I rowsort
SELECT ALL - ( COALESCE ( + 70, + ( - 37 ) * 83 * + 64 ) )
----
-70

query II rowsort
SELECT ALL - 22 col1, 83 * + + 74 col1
----
-22
6142

onlyif mysql # DIV for integer division: 
query II rowsort label-477
SELECT DISTINCT - 93 AS col2, - 93 - - 78 DIV 24 AS col1
----
-93
-90

skipif mysql # not compatible
query II rowsort label-477
SELECT DISTINCT - 93 AS col2, - 93 - - 78 / 24 AS col1
----
-93
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-478
SELECT 32 * - COUNT( * ) AS col0, 70 + - - SUM( - - 15 ) col0
----
-32
85

skipif mysql # not compatible
query II rowsort label-478
SELECT 32 * - COUNT ( * ) AS col0, 70 + - - SUM ( - - 15 ) col0
----
-32
85

query II rowsort
SELECT 67 * + 92, + 82 AS col2
----
6164
82

query I rowsort
SELECT 71 + - 55 + + 18
----
34

query I rowsort
SELECT DISTINCT - COALESCE ( 15, 43 * - - 70 * - + 68 + - + 76 - + 64 * 45 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT + 47 * COALESCE ( + 97, - 25, - + SUM( DISTINCT + + 61 ) ) + - 74 AS col1
----
4485

skipif mysql # not compatible
query I rowsort label-482
SELECT + 47 * COALESCE ( + 97, - 25, - + SUM ( DISTINCT + + 61 ) ) + - 74 AS col1
----
4485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-483
SELECT DISTINCT - CASE + CAST( - 21 AS SIGNED ) WHEN 36 THEN NULL ELSE + + 59 * - 17 * ( + COUNT( * ) ) END col2
----
1003

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT - CASE + CAST ( - 21 AS INTEGER ) WHEN 36 THEN NULL ELSE + + 59 * - 17 * ( + COUNT ( * ) ) END col2
----
1003

query I rowsort
SELECT ALL - 71 + 70 - - 92
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL COUNT( + + 25 ) + + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL COUNT ( + + 25 ) + + COUNT ( * ) col0
----
2

query I rowsort
SELECT ALL + + 50 + + 36 col2
----
86

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

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

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

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

query I rowsort
SELECT - 54 + 59 + - ( 10 ) AS col1
----
-5

query I rowsort
SELECT DISTINCT - 24 + - 16
----
-40

query I rowsort
SELECT ALL + + 75 * - 2 AS col0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT - + COUNT( * ) * + 10 + + 0 + - 46 + - COUNT( - + 76 ) + - - 86 + - 4
----
25

skipif mysql # not compatible
query I rowsort label-492
SELECT - + COUNT ( * ) * + 10 + + 0 + - 46 + - COUNT ( - + 76 ) + - - 86 + - 4
----
25

query II rowsort
SELECT - 19 AS col2, 5 col2
----
-19
5

query I rowsort
SELECT - 21 * + 19
----
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT DISTINCT 69 + SUM( - + ( - + 23 ) ) + - 73
----
19

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT 69 + SUM ( - + ( - + 23 ) ) + - 73
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT DISTINCT - 83 + + - 95 * - + MAX( ALL 83 ) - + 32 AS col2
----
7770

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT - 83 + + - 95 * - + MAX ( ALL 83 ) - + 32 AS col2
----
7770

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

onlyif mysql # DIV for integer division: 
query III rowsort label-498
SELECT ALL - 86, + ( + 93 ) DIV + 86 AS col1, - 73 AS col1
----
-86
1
-73

skipif mysql # not compatible
query III rowsort label-498
SELECT ALL - 86, + ( + 93 ) / + 86 AS col1, - 73 AS col1
----
-86
1
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT SUM( ALL 39 ) * + 63
----
2457

skipif mysql # not compatible
query I rowsort label-499
SELECT SUM ( ALL 39 ) * + 63
----
2457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT ALL + 59 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL + 59 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL ( ( - + 14 ) ) - ( - 71 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT 68 * + COUNT( * ) col1
----
68

skipif mysql # not compatible
query I rowsort label-502
SELECT 68 * + COUNT ( * ) col1
----
68

query I rowsort
SELECT ALL ( + 64 ) * - 26 AS col2
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT 52 + - MIN( NULLIF ( 49, 1 + + - 51 ) )
----
3

skipif mysql # not compatible
query I rowsort label-504
SELECT 52 + - MIN ( NULLIF ( 49, 1 + + - 51 ) )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-505
SELECT CAST( NULL AS DECIMAL ) * - ( 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-505
SELECT CAST ( NULL AS REAL ) * - ( 77 )
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT - 66 DIV + 2 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-508
SELECT - 66 / + 2 AS col2
----
-33

query I rowsort
SELECT + 37 - 43
----
-6

query I rowsort
SELECT ALL + 12 * - 74
----
-888

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT DISTINCT + 94 * COALESCE ( MAX( - 90 ), + + 12 * 66 ) * - - COUNT( * )
----
-8460

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT + 94 * COALESCE ( MAX ( - 90 ), + + 12 * 66 ) * - - COUNT ( * )
----
-8460

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ALL COUNT( * ) * ( + 36 ) + - 43
----
-7

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL COUNT ( * ) * ( + 36 ) + - 43
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-513
SELECT - CAST( NULL AS SIGNED ) * + + CASE + 71 WHEN + 80 THEN ( - - 26 ) WHEN + 54 / + 40 - - ( 53 ) * - MIN( - 25 ) THEN NULL WHEN + - 59 THEN - 74 END * + COALESCE ( - + 67, + 2 * - 54, + 99 ) + 0 * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT - CAST ( NULL AS INTEGER ) * + + CASE + 71 WHEN + 80 THEN ( - - 26 ) WHEN + 54 / + 40 - - ( 53 ) * - MIN ( - 25 ) THEN NULL WHEN + - 59 THEN - 74 END * + COALESCE ( - + 67, + 2 * - 54, + 99 ) + 0 * 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT 1 * + NULLIF ( + 5, COUNT( + + ( + 8 ) ) ) * + 79 - 32 * 65
----
-1685

skipif mysql # not compatible
query I rowsort label-514
SELECT 1 * + NULLIF ( + 5, COUNT ( + + ( + 8 ) ) ) * + 79 - 32 * 65
----
-1685

query I rowsort
SELECT - 9 + + 87 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT DISTINCT - - 26 * - CASE - 34 WHEN - 63 THEN + + 98 * 57 - - SUM( DISTINCT CAST( + 92 AS SIGNED ) ) ELSE 49 END * - MAX( + 91 ) * - - CAST( NULL AS SIGNED ) + ( + + 27 ) / + CAST( NULL AS SIGNED ) * + 97 + 66 / 87 - + 63 * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT - - 26 * - CASE - 34 WHEN - 63 THEN + + 98 * 57 - - SUM ( DISTINCT CAST ( + 92 AS INTEGER ) ) ELSE 49 END * - MAX ( + 91 ) * - - CAST ( NULL AS INTEGER ) + ( + + 27 ) / + CAST ( NULL AS INTEGER ) * + 97 + 66 / 87 - + 63 * - 82
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-518
SELECT ALL 68 * 1 / - 41 * + CASE + 85 WHEN + ( + 67 ) * - + CAST( NULL AS DECIMAL ) * - 84 THEN NULL ELSE + CASE - NULLIF ( + SUM( DISTINCT + 22 ), + 36 ) WHEN + + 12 THEN - 54 ELSE NULL END END + + 12 + + 11 * - 94 - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL 68 * 1 / - 41 * + CASE + 85 WHEN + ( + 67 ) * - + CAST ( NULL AS REAL ) * - 84 THEN NULL ELSE + CASE - NULLIF ( + SUM ( DISTINCT + 22 ), + 36 ) WHEN + + 12 THEN - 54 ELSE NULL END END + + 12 + + 11 * - 94 - 67
----
NULL

query I rowsort
SELECT + + NULLIF ( + 85, + 75 * 91 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT DISTINCT - + COUNT( * ) * COUNT( * ) + - - 17 * + + 39 AS col0
----
662

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * ) + - - 17 * + + 39 AS col0
----
662

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT - 25 / + 94 * + NULLIF ( + CAST( NULL AS SIGNED ), + ( + + COALESCE ( + 78, - + SUM( + 94 ), - + 29 * + 5 + - - ( ( - 3 ) ) + 31 * + 81 ) ) ) + - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT - 25 / + 94 * + NULLIF ( + CAST ( NULL AS INTEGER ), + ( + + COALESCE ( + 78, - + SUM ( + 94 ), - + 29 * + 5 + - - ( ( - 3 ) ) + 31 * + 81 ) ) ) + - 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT + MAX( ALL + + 78 ) * - 28 * - ( - - 45 ) AS col0
----
98280

skipif mysql # not compatible
query I rowsort label-523
SELECT + MAX ( ALL + + 78 ) * - 28 * - ( - - 45 ) AS col0
----
98280

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-525
SELECT + + 16 - - - 13 + 59 + 52 DIV - COUNT( ALL + - 57 ) + + ( - - 89 )
----
99

skipif mysql # not compatible
query I rowsort label-525
SELECT + + 16 - - - 13 + 59 + 52 / - COUNT ( ALL + - 57 ) + + ( - - 89 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT - - 47 + COUNT( * ) * + ( 84 )
----
131

skipif mysql # not compatible
query I rowsort label-526
SELECT - - 47 + COUNT ( * ) * + ( 84 )
----
131

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-527
SELECT + COUNT( ALL CAST( NULL AS DECIMAL ) ) * 52
----
0

skipif mysql # not compatible
query I rowsort label-527
SELECT + COUNT ( ALL CAST ( NULL AS REAL ) ) * 52
----
0

query II rowsort
SELECT ALL 87 AS col1, 24 AS col2
----
87
24

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

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

query I rowsort
SELECT + ( + 19 ) + + ( + 13 ) + 17 * + 84 * - - 6 * ( - 37 )
----
-316984

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT - MIN( 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-531
SELECT - MIN ( 68 )
----
-68

query II rowsort
SELECT 90 AS col1, + 92 AS col0
----
90
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-533
SELECT + COUNT( * ) + + ( + - 40 ) + - CASE - + CAST( NULL AS SIGNED ) WHEN + 14 THEN + CASE + 98 WHEN 45 / + - COUNT( * ) THEN NULL ELSE - + 54 END + COALESCE ( + + COUNT( DISTINCT + + 78 ), ( - 66 ) * 99 * + 5 + ( - 54 ) ) ELSE 47 END * 78 col1
----
-3705

skipif mysql # not compatible
query I rowsort label-533
SELECT + COUNT ( * ) + + ( + - 40 ) + - CASE - + CAST ( NULL AS INTEGER ) WHEN + 14 THEN + CASE + 98 WHEN 45 / + - COUNT ( * ) THEN NULL ELSE - + 54 END + COALESCE ( + + COUNT ( DISTINCT + + 78 ), ( - 66 ) * 99 * + 5 + ( - 54 ) ) ELSE 47 END * 78 col1
----
-3705

query I rowsort
SELECT + 13 + 79 + - - 58 + - + NULLIF ( - - 61, + 25 + - NULLIF ( - 91, + + 1 ) ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT + COALESCE ( - 2, - 64, + CAST( + 45 AS SIGNED ) - + 46 ) + + + 98 col1
----
96

skipif mysql # not compatible
query I rowsort label-535
SELECT + COALESCE ( - 2, - 64, + CAST ( + 45 AS INTEGER ) - + 46 ) + + + 98 col1
----
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT ALL + 97 DIV - - 56 + 50
----
51

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL + 97 / - - 56 + 50
----
51

query II rowsort
SELECT ALL + 22 AS col0, 42
----
22
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-539
SELECT - ( CASE - CASE ( - ( - - 65 ) ) WHEN - CASE - 77 WHEN + COUNT( * ) + + + 83 * + - 17 THEN 27 * + 56 * - 57 + + 98 WHEN 75 - + 82 + - - 67 THEN NULL END THEN 27 * + 66 WHEN + 20 THEN NULL END WHEN - COUNT( * ) THEN NULL WHEN 57 - + 18 THEN 67 ELSE 14 DIV - 94 END ) + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-539
SELECT - ( CASE - CASE ( - ( - - 65 ) ) WHEN - CASE - 77 WHEN + COUNT ( * ) + + + 83 * + - 17 THEN 27 * + 56 * - 57 + + 98 WHEN 75 - + 82 + - - 67 THEN NULL END THEN 27 * + 66 WHEN + 20 THEN NULL END WHEN - COUNT ( * ) THEN NULL WHEN 57 - + 18 THEN 67 ELSE 14 / - 94 END ) + 49 AS col2
----
49

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

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

query I rowsort
SELECT + - ( - + 79 ) AS col1
----
79

query I rowsort
SELECT + - 44 * + 84 * + 48 * - 45 * 24
----
191600640

query I rowsort
SELECT - - 39 * + 40 + - - 85 AS col2
----
1645

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT + + CASE 26 WHEN + COUNT( * ) * 88 THEN NULL ELSE ( - CASE 72 WHEN + 99 + + ( - 57 ) THEN + 0 END ) * 10 - - 66 * - - 20 - - ( + - 75 ) + - MIN( - 21 ) END * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT + + CASE 26 WHEN + COUNT ( * ) * 88 THEN NULL ELSE ( - CASE 72 WHEN + 99 + + ( - 57 ) THEN + 0 END ) * 10 - - 66 * - - 20 - - ( + - 75 ) + - MIN ( - 21 ) END * - 47
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT - 16 * + + COUNT( DISTINCT + 5 ) * + 70 + 98 + - 59 * - + 19
----
99

skipif mysql # not compatible
query I rowsort label-547
SELECT - 16 * + + COUNT ( DISTINCT + 5 ) * + 70 + 98 + - 59 * - + 19
----
99

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

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

query I rowsort
SELECT - 30 * - 43 * - - NULLIF ( + 74, - 75 * - 54 - 38 * - + 78 * - + 89 * + + 35 ) col2
----
95460

query I rowsort
SELECT - - 87 + CASE WHEN NOT + 37 >= NULL THEN 74 + + CASE + NULLIF ( - 30, 3 ) WHEN - 98 * - + AVG ( 74 ) * + 11 + + 0 * - 76 * - 44 / 44 THEN 45 ELSE NULL END + 72 END / COALESCE ( - 15, 33 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-551
SELECT DISTINCT + ( ( CAST( NULL AS SIGNED ) ) ) * + 17 - + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT + ( ( CAST ( NULL AS INTEGER ) ) ) * + 17 - + 39 col0
----
NULL

query II rowsort
SELECT - + 80 * 80 + - + ( - - 67 ) AS col2, ( - 97 ) AS col0
----
-6467
-97

query I rowsort
SELECT + 96 * - 29 AS col1
----
-2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-554
SELECT ALL + NULLIF ( 50, + CAST( COUNT( * ) AS SIGNED ) / 45 / - 76 + - 60 )
----
50

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL + NULLIF ( 50, + CAST ( COUNT ( * ) AS INTEGER ) / 45 / - 76 + - 60 )
----
50

query II rowsort
SELECT 87 AS col0, + 58
----
87
58

query II rowsort
SELECT DISTINCT - 8 col2, + ( - 52 ) col0
----
-8
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-557
SELECT 93 * CAST( - 1 AS SIGNED ) - + 17
----
-110

skipif mysql # not compatible
query I rowsort label-557
SELECT 93 * CAST ( - 1 AS INTEGER ) - + 17
----
-110

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

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

query II rowsort
SELECT DISTINCT ( + 15 ) AS col0, + 81
----
15
81

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT - 56 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-560
SELECT - 56 / - 50
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-561
SELECT ALL ( 50 ) * + COUNT( * ) + - + 28, 9 AS col0
----
22
9

skipif mysql # not compatible
query II rowsort label-561
SELECT ALL ( 50 ) * + COUNT ( * ) + - + 28, 9 AS col0
----
22
9

query II rowsort
SELECT - 73 * 92 AS col2, 11 * + 86
----
-6716
946

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT ALL - ( 81 ) DIV + 59
----
-1

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - ( 81 ) / + 59
----
-1

query I rowsort
SELECT DISTINCT + 39 + 73
----
112

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-566
SELECT DISTINCT 66 + - 27 AS col0, CAST( 19 AS SIGNED ) - + ( + - 50 )
----
39
69

skipif mysql # not compatible
query II rowsort label-566
SELECT DISTINCT 66 + - 27 AS col0, CAST ( 19 AS INTEGER ) - + ( + - 50 )
----
39
69

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT 61 DIV - 95 * 76
----
0

skipif mysql # not compatible
query I rowsort label-567
SELECT 61 / - 95 * 76
----
0

query I rowsort
SELECT DISTINCT 19 + + 32
----
51

query I rowsort
SELECT DISTINCT + 67 + + 63 + + 22
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT ALL MAX( + 54 ) + + 22
----
76

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL MAX ( + 54 ) + + 22
----
76

query I rowsort
SELECT 60 + + 11 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT ALL COUNT( * ) - - - COALESCE ( + + 61, - 94 * + 42, + 24 ) - + 52
----
-112

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL COUNT ( * ) - - - COALESCE ( + + 61, - 94 * + 42, + 24 ) - + 52
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-573
SELECT MAX( DISTINCT - 75 ) + - 57 + 25, 41 + 79 AS col1
----
-107
120

skipif mysql # not compatible
query II rowsort label-573
SELECT MAX ( DISTINCT - 75 ) + - 57 + 25, 41 + 79 AS col1
----
-107
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-574
SELECT - COUNT( * ) * + + NULLIF ( + 32, + 68 ) AS col2, 17 DIV - 32
----
-32
0

skipif mysql # not compatible
query II rowsort label-574
SELECT - COUNT ( * ) * + + NULLIF ( + 32, + 68 ) AS col2, 17 / - 32
----
-32
0

query I rowsort
SELECT DISTINCT - - COALESCE ( - 35, - 58 + 34 ) * - + 95 * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-576
SELECT ALL MIN( ALL + 2 ) * - 90 + - 47 + 34 + + 0 DIV ( - COUNT( * ) ) * - 56 * 50 + COALESCE ( - 39, - - 72 * - 38 + + + 96 - - + 77 DIV - + 64 + + - 58 - - 24, 37 ) + + 22
----
-210

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL MIN ( ALL + 2 ) * - 90 + - 47 + 34 + + 0 / ( - COUNT ( * ) ) * - 56 * 50 + COALESCE ( - 39, - - 72 * - 38 + + + 96 - - + 77 / - + 64 + + - 58 - - 24, 37 ) + + 22
----
-210

query I rowsort
SELECT ALL - - 58 col0
----
58

query I rowsort
SELECT 95 - + 14 - + 25
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-579
SELECT DISTINCT - + NULLIF ( - CAST( NULL AS SIGNED ), - 44 + + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT - + NULLIF ( - CAST ( NULL AS INTEGER ), - 44 + + 24 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-580
SELECT + 80 / + COUNT ( * ) + + - 93
----
-13

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

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

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

query I rowsort
SELECT ALL + 11 * - + COALESCE ( - 91, - 9 )
----
1001

query I rowsort
SELECT - 16 * 8 - + 27
----
-155

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT ALL - 50 + + CAST( + 79 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - 50 + + CAST ( + 79 AS INTEGER )
----
29

query I rowsort
SELECT ALL 38 * - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT ALL - COALESCE ( + 21, ( - 79 ), + COUNT( * ) * - COUNT( * ) + - 34 ) + - 82 col2, 94
----
-103
94

skipif mysql # not compatible
query II rowsort label-588
SELECT ALL - COALESCE ( + 21, ( - 79 ), + COUNT ( * ) * - COUNT ( * ) + - 34 ) + - 82 col2, 94
----
-103
94

query II rowsort
SELECT 23 AS col2, 10
----
23
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-590
SELECT ALL + 52 + - MIN( + COALESCE ( 49, + ( - CAST( NULL AS SIGNED ) ) ) ) + - 80 DIV 49 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + 52 + - MIN ( + COALESCE ( 49, + ( - CAST ( NULL AS INTEGER ) ) ) ) + - 80 / 49 AS col0
----
2

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

skipif mysql # not compatible
query I rowsort label-591
SELECT CAST ( NULL AS INTEGER ) + - 1 - - 90 / + - COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-593
SELECT DISTINCT 42 AS col2, COUNT( * ) AS col1
----
42
1

skipif mysql # not compatible
query II rowsort label-593
SELECT DISTINCT 42 AS col2, COUNT ( * ) AS col1
----
42
1

query I rowsort
SELECT 70 + + ( 10 ) + 91
----
171

query II rowsort
SELECT 77 + + + CASE - 88 WHEN + + 43 THEN - 85 END, - 2 col2
----
NULL
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-596
SELECT 86 + - - 96 + + 70 DIV - 76 * - 70, ( + 39 ) AS col2
----
182
39

skipif mysql # not compatible
query II rowsort label-596
SELECT 86 + - - 96 + + 70 / - 76 * - 70, ( + 39 ) AS col2
----
182
39

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT 96 + + + COUNT( DISTINCT + 15 )
----
97

skipif mysql # not compatible
query I rowsort label-597
SELECT 96 + + + COUNT ( DISTINCT + 15 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-598
SELECT ALL + 54 - - - ( + COUNT( * ) ) DIV + 19 * + 64 * 11 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL + 54 - - - ( + COUNT ( * ) ) / + 19 * + 64 * 11 AS col1
----
54

query I rowsort
SELECT 67 * 52
----
3484

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT 2 * + + MAX( DISTINCT + 39 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-600
SELECT 2 * + + MAX ( DISTINCT + 39 ) AS col0
----
78

query I rowsort
SELECT 5 + - + 44 AS col1
----
-39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-603
SELECT COUNT( * ) + - 36 * - 20 * + - 96 * + - 47 AS col0, + AVG ( - CAST( NULL AS SIGNED ) ) * + + 66 * - 68
----
3248641
NULL

skipif mysql # not compatible
query II rowsort label-603
SELECT COUNT ( * ) + - 36 * - 20 * + - 96 * + - 47 AS col0, + AVG ( - CAST ( NULL AS INTEGER ) ) * + + 66 * - 68
----
3248641
NULL

query II rowsort
SELECT - 70 AS col0, + 70 col2
----
-70
70

query I rowsort
SELECT NULLIF ( + 88, + 49 ) + - + 21 AS col1
----
67

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

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

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

query I rowsort
SELECT ALL - + 36 * - + 46 * - 11
----
-18216

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL - - COUNT( DISTINCT + 69 )
----
1

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - - COUNT ( DISTINCT + 69 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT - 48 * + NULLIF ( + - 0, 98 - + + 48 + - 6 / - COUNT( DISTINCT - - 29 ) + + 93 + - 78 ) * 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-611
SELECT - 48 * + NULLIF ( + - 0, 98 - + + 48 + - 6 / - COUNT ( DISTINCT - - 29 ) + + 93 + - 78 ) * 6 AS col2
----
0

query I rowsort
SELECT - + 43 * + 46 + + ( + 28 ) * - 87 AS col1
----
-4414

query II rowsort
SELECT + + 32 AS col1, - 89 AS col1
----
32
-89

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

query I rowsort
SELECT ALL - - 57 * - 93 + + 71
----
-5230

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT CASE + SUM( ALL 64 ) WHEN - 71 + + 71 THEN - + 39 WHEN + 85 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT CASE + SUM ( ALL 64 ) WHEN - 71 + + 71 THEN - + 39 WHEN + 85 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL + 14 * 88 * + + 13 + - 20 * - MIN( ALL + + 74 ) + - ( + ( - - 58 ) ) + - 47 - - - COALESCE ( - 29, COUNT( + 39 ) * + ( + + COUNT( * ) ) + 72 + ( - 30 ) ) AS col1
----
17420

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + 14 * 88 * + + 13 + - 20 * - MIN ( ALL + + 74 ) + - ( + ( - - 58 ) ) + - 47 - - - COALESCE ( - 29, COUNT ( + 39 ) * + ( + + COUNT ( * ) ) + 72 + ( - 30 ) ) AS col1
----
17420

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL + SUM( DISTINCT - ( - 84 ) ) + + 18 + + + NULLIF ( - 9, + ( + - 15 ) ) * + + 78 AS col2
----
-600

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL + SUM ( DISTINCT - ( - 84 ) ) + + 18 + + + NULLIF ( - 9, + ( + - 15 ) ) * + + 78 AS col2
----
-600

query I rowsort
SELECT CASE + 59 WHEN 27 + + 50 + - 35 THEN - + 62 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT DISTINCT 2 + MAX( + CAST( NULL AS SIGNED ) ) - 82 / CAST( - 61 AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT 2 + MAX ( + CAST ( NULL AS INTEGER ) ) - 82 / CAST ( - 61 AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-622
SELECT 97 AS col2, + CAST( - ( + 17 ) AS SIGNED )
----
97
-17

skipif mysql # not compatible
query II rowsort label-622
SELECT 97 AS col2, + CAST ( - ( + 17 ) AS INTEGER )
----
97
-17

query II rowsort
SELECT ALL + 0, - 59 * + 37 AS col2
----
0
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT MAX( - 68 ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-624
SELECT MAX ( - 68 ) col2
----
-68

query I rowsort
SELECT 57 * - 45 + + ( + NULLIF ( + 54, 67 * - 41 * + ( - - 62 ) + 63 ) ) AS col0
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT 91 + - 31 + - 91 * - 23 + + 76 * - COUNT( * ) col2
----
2077

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT 91 + - 31 + - 91 * - 23 + + 76 * - COUNT ( * ) col2
----
2077

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

skipif mysql # not compatible
query I rowsort label-627
SELECT + COUNT ( * ) / 19 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-628
SELECT - COALESCE ( + 61, - 80 + + COUNT( * ) ) AS col0, - 46 + - 68
----
-61
-114

skipif mysql # not compatible
query II rowsort label-628
SELECT - COALESCE ( + 61, - 80 + + COUNT ( * ) ) AS col0, - 46 + - 68
----
-61
-114

query II rowsort
SELECT 87 AS col2, 72 * - + 98 * 12 - + ( + ( 61 ) )
----
87
-84733

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-631
SELECT DISTINCT 83 * + COUNT( * ) AS col1, - ( + 22 ) AS col1
----
83
-22

skipif mysql # not compatible
query II rowsort label-631
SELECT DISTINCT 83 * + COUNT ( * ) AS col1, - ( + 22 ) AS col1
----
83
-22

query I rowsort
SELECT ALL 42 - + 95
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-633
SELECT - COALESCE ( CAST( + - 22 AS SIGNED ), - + 75 + 95 )
----
22

skipif mysql # not compatible
query I rowsort label-633
SELECT - COALESCE ( CAST ( + - 22 AS INTEGER ), - + 75 + 95 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT - 30 * + - CASE COALESCE ( + 63, + COUNT( * ) ) WHEN - - 36 THEN + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT - 30 * + - CASE COALESCE ( + 63, + COUNT ( * ) ) WHEN - - 36 THEN + 64 END
----
NULL

query I rowsort
SELECT - 94 * + 55 * - - 94 * - 87 AS col0
----
42280260

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

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

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

query II rowsort
SELECT ALL + 29 col1, 21
----
29
21

query II rowsort
SELECT DISTINCT + 60 AS col2, + 52 - + 0 + 88 AS col0
----
60
140

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT + 35 DIV 97 * - 32 - - - 72 - - 78 * + ( + 26 ) * 29
----
58740

skipif mysql # not compatible
query I rowsort label-640
SELECT + 35 / 97 * - 32 - - - 72 - - 78 * + ( + 26 ) * 29
----
58740

query I rowsort
SELECT + + 46 + + + 88 AS col1
----
134

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-642
SELECT - 84 AS col0, + 53 / + - CAST( NULL AS DECIMAL )
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-642
SELECT - 84 AS col0, + 53 / + - CAST ( NULL AS REAL )
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT - 23 * - + COUNT( DISTINCT + 5 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-643
SELECT - 23 * - + COUNT ( DISTINCT + 5 ) col0
----
23

query I rowsort
SELECT - 62 + - 66
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL + + 96 * COUNT( * ) * + 67 AS col2
----
6432

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL + + 96 * COUNT ( * ) * + 67 AS col2
----
6432

query I rowsort
SELECT ALL + - 13 * - 82 + + 87
----
1153

query I rowsort
SELECT DISTINCT + + 67 * - 44
----
-2948

query I rowsort
SELECT ALL + + 81 * 50 + + - 41 AS col2
----
4009

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL 33 * COUNT( * ) + + 85 * - + 23
----
-1922

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL 33 * COUNT ( * ) + + 85 * - + 23
----
-1922

query II rowsort
SELECT ALL + 24 AS col0, + 63 + 91 AS col0
----
24
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-651
SELECT DISTINCT + + COUNT( * ) * + 63 * + CAST( + - 44 AS SIGNED ) + + + COUNT( * ) * - 24 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-652
SELECT + COUNT( * ) AS col0, + 99 + + 86 AS col2
----
1
185

skipif mysql # not compatible
query II rowsort label-652
SELECT + COUNT ( * ) AS col0, + 99 + + 86 AS col2
----
1
185

query I rowsort
SELECT ALL + 31 * + - 20 + + + 9 * + 35 + 68 AS col0
----
-237

query II rowsort
SELECT + 64 AS col1, - 82 AS col1
----
64
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-655
SELECT NULLIF ( - CAST( - 46 AS SIGNED ), - 11 + COUNT( * ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-655
SELECT NULLIF ( - CAST ( - 46 AS INTEGER ), - 11 + COUNT ( * ) ) AS col1
----
46

query I rowsort
SELECT NULLIF ( 85, + 68 ) AS col1
----
85

query I rowsort
SELECT + ( + 86 ) col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-658
SELECT ALL 4 * 26 - + - COUNT( DISTINCT + 54 ) - 74 col2, - COUNT( * )
----
31
-1

skipif mysql # not compatible
query II rowsort label-658
SELECT ALL 4 * 26 - + - COUNT ( DISTINCT + 54 ) - 74 col2, - COUNT ( * )
----
31
-1

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

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

query I rowsort
SELECT ALL + 62 * 13 AS col1
----
806

query I rowsort
SELECT - 31 + - + 12 + 80
----
37

query I rowsort
SELECT + 7 * - - 67
----
469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT 36 DIV 17 * - ( - COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT 36 / 17 * - ( - COUNT ( * ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT + 77 + - COUNT( * ) * 72 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-664
SELECT + 77 + - COUNT ( * ) * 72 AS col1
----
5

query I rowsort
SELECT ALL 89 * - 33 AS col1
----
-2937

query I rowsort
SELECT + 71 + 18 + + 93 AS col0
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-667
SELECT + 29 DIV 98 * - 16
----
0

skipif mysql # not compatible
query I rowsort label-667
SELECT + 29 / 98 * - 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-668
SELECT ALL 41 * + 19 * - 94 + ( - + 32 ) * - 37 * COUNT( * ) * + + 57 * - + CASE - + COUNT( * ) WHEN SUM( ALL - - 54 ) / + COALESCE ( 43, 30 / + 37 ) THEN 53 + COUNT( * ) END * ( + + CAST( - 96 AS SIGNED ) ) + CAST( - 2 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL 41 * + 19 * - 94 + ( - + 32 ) * - 37 * COUNT ( * ) * + + 57 * - + CASE - + COUNT ( * ) WHEN SUM ( ALL - - 54 ) / + COALESCE ( 43, 30 / + 37 ) THEN 53 + COUNT ( * ) END * ( + + CAST ( - 96 AS INTEGER ) ) + CAST ( - 2 AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-669
SELECT DISTINCT - ( 23 ), - 93 * - SUM( ALL 31 ) AS col2
----
-23
2883

skipif mysql # not compatible
query II rowsort label-669
SELECT DISTINCT - ( 23 ), - 93 * - SUM ( ALL 31 ) AS col2
----
-23
2883

query I rowsort
SELECT ALL 50 * - 51 + 81 + - 9
----
-2478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-671
SELECT + - 34 DIV - MAX( + - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-671
SELECT + - 34 / - MAX ( + - 58 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT + 24 * + CASE + - ( 33 ) WHEN - 75 THEN + 8 * - 44 * + 71 WHEN + 1 * - + 14 + - - COUNT( * ) * 20 + + - CASE + - 69 WHEN + 32 * + 88 THEN + 73 END + - 75 THEN NULL END + + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT + 24 * + CASE + - ( 33 ) WHEN - 75 THEN + 8 * - 44 * + 71 WHEN + 1 * - + 14 + - - COUNT ( * ) * 20 + + - CASE + - 69 WHEN + 32 * + 88 THEN + 73 END + - 75 THEN NULL END + + + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT - 94 + COUNT( * ) * - ( 27 ) AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-673
SELECT - 94 + COUNT ( * ) * - ( 27 ) AS col2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT SUM( - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-674
SELECT SUM ( - 39 ) AS col2
----
-39

query I rowsort
SELECT ALL COALESCE ( + + 24, + 36 )
----
24

query I rowsort
SELECT ALL + + 94 + + + 12
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-677
SELECT + + 9 * + 95 AS col0, NULLIF ( - 87, + + CAST( 32 AS SIGNED ) ) AS col1
----
855
-87

skipif mysql # not compatible
query II rowsort label-677
SELECT + + 9 * + 95 AS col0, NULLIF ( - 87, + + CAST ( 32 AS INTEGER ) ) AS col1
----
855
-87

query I rowsort
SELECT - + 4 + 69
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-679
SELECT DISTINCT + 82 + + 35 AS col2, 61 DIV + 82
----
117
0

skipif mysql # not compatible
query II rowsort label-679
SELECT DISTINCT + 82 + + 35 AS col2, 61 / + 82
----
117
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-680
SELECT ALL - + 37 DIV COUNT( * ) + + + 57 col2
----
20

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL - + 37 / COUNT ( * ) + + + 57 col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-681
SELECT ALL - 32 * + - 24 * 11 - - - COALESCE ( - 62, COUNT( * ), + + 58 * - 44 + - 69 * - 63 + + - CASE - 52 WHEN + 98 THEN - - 14 * - 90 ELSE NULL END * 0 - + COUNT( * ) - + 27 ), 26 AS col2
----
8510
26

skipif mysql # not compatible
query II rowsort label-681
SELECT ALL - 32 * + - 24 * 11 - - - COALESCE ( - 62, COUNT ( * ), + + 58 * - 44 + - 69 * - 63 + + - CASE - 52 WHEN + 98 THEN - - 14 * - 90 ELSE NULL END * 0 - + COUNT ( * ) - + 27 ), 26 AS col2
----
8510
26

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT DISTINCT - 21 + - 74 * 31 DIV 86 - - 62 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT - 21 + - 74 * 31 / 86 - - 62 AS col2
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT + + NULLIF ( 23, + 90 * 26 + + 20 - - CAST( - SUM( ALL - 43 ) AS SIGNED ) )
----
23

skipif mysql # not compatible
query I rowsort label-684
SELECT + + NULLIF ( 23, + 90 * 26 + + 20 - - CAST ( - SUM ( ALL - 43 ) AS INTEGER ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT 28 * + MAX( ALL - - 17 ) - + 8 AS col2
----
468

skipif mysql # not compatible
query I rowsort label-685
SELECT 28 * + MAX ( ALL - - 17 ) - + 8 AS col2
----
468

query I rowsort
SELECT ALL - 72 * + - 10 AS col1
----
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-687
SELECT + CAST( - 9 AS DECIMAL ) * + 87 + + 36 * - + COUNT( + ( 65 ) ) + + - 34 * - COUNT( - 19 ) - - CAST( NULL AS SIGNED ) + + + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT + CAST ( - 9 AS REAL ) * + 87 + + 36 * - + COUNT ( + ( 65 ) ) + + - 34 * - COUNT ( - 19 ) - - CAST ( NULL AS INTEGER ) + + + 89 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT 21 DIV - - 4
----
5

skipif mysql # not compatible
query I rowsort label-688
SELECT 21 / - - 4
----
5

query I rowsort
SELECT ALL 79 * + 81 AS col0
----
6399

query I rowsort
SELECT DISTINCT - 21 - 42 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-692
SELECT 80 DIV 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-692
SELECT 80 / 83 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-693
SELECT ALL 55 DIV - NULLIF ( - + 98, + 76 ) * - + 76 + 48, - 42 col2
----
48
-42

skipif mysql # not compatible
query II rowsort label-693
SELECT ALL 55 / - NULLIF ( - + 98, + 76 ) * - + 76 + 48, - 42 col2
----
48
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT 86 + - 78 + - 19 + - + ( + 92 ) * - - 61 + - 62 * 21 * + + 34 / + MIN( - CAST( NULL AS SIGNED ) ) + + ( + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT 86 + - 78 + - 19 + - + ( + 92 ) * - - 61 + - 62 * 21 * + + 34 / + MIN ( - CAST ( NULL AS INTEGER ) ) + + ( + 57 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT + 25 * + 98 - - COUNT( * ) + + 95 * 96 * + CAST( + - ( + - 99 ) AS SIGNED ) AS col2
----
905331

skipif mysql # not compatible
query I rowsort label-695
SELECT + 25 * + 98 - - COUNT ( * ) + + 95 * 96 * + CAST ( + - ( + - 99 ) AS INTEGER ) AS col2
----
905331

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT + MAX( - 86 ) * + 99 + - 77 + 1 AS col0
----
-8590

skipif mysql # not compatible
query I rowsort label-697
SELECT + MAX ( - 86 ) * + 99 + - 77 + 1 AS col0
----
-8590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-698
SELECT DISTINCT - CAST( NULL AS SIGNED ), 55 + - 53 col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-698
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 55 + - 53 col2
----
NULL
2

query I rowsort
SELECT 79 * - 49 AS col2
----
-3871

query I rowsort
SELECT ( 5 ) * 7
----
35

query I rowsort
SELECT ALL 48 * 73 * - 33
----
-115632

query I rowsort
SELECT 5 * + - 11 * - 43 * 35 AS col1
----
82775

query I rowsort
SELECT ALL - 32 + 12 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT ALL ( + ( + + COUNT( DISTINCT + - 39 ) ) ) + 21 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL ( + ( + + COUNT ( DISTINCT + - 39 ) ) ) + 21 AS col1
----
22

query II rowsort
SELECT - 69 AS col2, NULLIF ( - 1, 33 * 58 )
----
-69
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-706
SELECT - 29, 29 + COUNT( * ) + + 39 + - - CAST( + 46 AS SIGNED ) * + 82 AS col0
----
-29
3841

skipif mysql # not compatible
query II rowsort label-706
SELECT - 29, 29 + COUNT ( * ) + + 39 + - - CAST ( + 46 AS INTEGER ) * + 82 AS col0
----
-29
3841

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL + 19 + + - COUNT( - 57 ) + + 95 * 20
----
1918

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + 19 + + - COUNT ( - 57 ) + + 95 * 20
----
1918

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

skipif mysql # not compatible
query I rowsort label-708
SELECT + COUNT ( * ) - + 36 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-709
SELECT - 80 AS col0, SUM( ALL - ( + - 89 ) ) + - 73 * + 92
----
-80
-6627

skipif mysql # not compatible
query II rowsort label-709
SELECT - 80 AS col0, SUM ( ALL - ( + - 89 ) ) + - 73 * + 92
----
-80
-6627

query II rowsort
SELECT 73 AS col1, 71
----
73
71

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-712
SELECT ALL MAX( + 20 ) DIV - 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL MAX ( + 20 ) / - 32 AS col2
----
0

query I rowsort
SELECT DISTINCT - + 12 + 13 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL - NULLIF ( - NULLIF ( 67, - 68 ), 20 * + + COUNT( * ) * 15 - + 58 )
----
67

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL - NULLIF ( - NULLIF ( 67, - 68 ), 20 * + + COUNT ( * ) * 15 - + 58 )
----
67

query I rowsort
SELECT ALL + - 66 + - 28 + - ( ( - ( + + 41 ) ) ) + + NULLIF ( + + 88, + 84 ) * - 54
----
-4805

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT - COALESCE ( - + SUM( DISTINCT + 77 ), - 65 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-717
SELECT - COALESCE ( - + SUM ( DISTINCT + 77 ), - 65 ) AS col0
----
77

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

skipif mysql # not compatible
query I rowsort label-718
SELECT - CAST ( COUNT ( + - 52 ) AS INTEGER )
----
-1

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

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

query I rowsort
SELECT 43 + - - 57
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT - COUNT( * ) * 63 + + 81 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-721
SELECT - COUNT ( * ) * 63 + + 81 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-722
SELECT ALL COUNT( * ) - + 11 * - 72 AS col0, + CAST( - 13 AS SIGNED ) + - 60
----
793
-73

skipif mysql # not compatible
query II rowsort label-722
SELECT ALL COUNT ( * ) - + 11 * - 72 AS col0, + CAST ( - 13 AS INTEGER ) + - 60
----
793
-73

onlyif mysql # aggregate syntax: 
query III rowsort label-723
SELECT ALL - 64 AS col2, COUNT( ALL 76 ) + - + COUNT( * ), 24 AS col2
----
-64
0
24

skipif mysql # not compatible
query III rowsort label-723
SELECT ALL - 64 AS col2, COUNT ( ALL 76 ) + - + COUNT ( * ), 24 AS col2
----
-64
0
24

query I rowsort
SELECT 90 + + 2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-725
SELECT ALL 26 DIV CASE + 9 WHEN + - 64 + + + COALESCE ( 25, - + COUNT( - - 19 ) * + - CASE + 61 WHEN + - 73 + - 53 * 72 THEN + 92 ELSE - COUNT( * ) * - 67 - - - 64 DIV 63 + - ( - - 88 ) + + 43 + - 6 END ) + + + 97 - + 1 + COALESCE ( - 53, + 84 DIV + 17 ) DIV - 60 THEN NULL WHEN COUNT( * ) THEN 93 ELSE - 71 * 56 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL 26 / CASE + 9 WHEN + - 64 + + + COALESCE ( 25, - + COUNT ( - - 19 ) * + - CASE + 61 WHEN + - 73 + - 53 * 72 THEN + 92 ELSE - COUNT ( * ) * - 67 - - - 64 / 63 + - ( - - 88 ) + + 43 + - 6 END ) + + + 97 - + 1 + COALESCE ( - 53, + 84 / + 17 ) / - 60 THEN NULL WHEN COUNT ( * ) THEN 93 ELSE - 71 * 56 END AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-726
SELECT + 58 * 88 + - CAST( - COUNT( * ) AS SIGNED )
----
5105

skipif mysql # not compatible
query I rowsort label-726
SELECT + 58 * 88 + - CAST ( - COUNT ( * ) AS INTEGER )
----
5105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-727
SELECT + 21 * - 57 - + 88 * - - ( + CAST( + 64 AS SIGNED ) )
----
-6829

skipif mysql # not compatible
query I rowsort label-727
SELECT + 21 * - 57 - + 88 * - - ( + CAST ( + 64 AS INTEGER ) )
----
-6829

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT 15 DIV - 63 * + 72 * 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-728
SELECT 15 / - 63 * + 72 * 77 AS col1
----
0

query I rowsort
SELECT DISTINCT - ( + NULLIF ( - 22, - 96 ) ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-730
SELECT ALL - CAST( + 91 AS SIGNED ), COALESCE ( + - 12, - 87 ) * + 94 AS col0
----
-91
-1128

skipif mysql # not compatible
query II rowsort label-730
SELECT ALL - CAST ( + 91 AS INTEGER ), COALESCE ( + - 12, - 87 ) * + 94 AS col0
----
-91
-1128

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT 5 DIV - + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-731
SELECT 5 / - + 58 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL + 0 + 0 - + COUNT ( * ) + + 56
----
55

query I rowsort
SELECT DISTINCT - 46 + - 15 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL - COUNT( * ) + - + 7 - + CASE ( ( 80 ) ) WHEN - 89 THEN - 27 * + 69 + + 28 + 81 * + MAX( 89 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL - COUNT ( * ) + - + 7 - + CASE ( ( 80 ) ) WHEN - 89 THEN - 27 * + 69 + + 28 + 81 * + MAX ( 89 ) END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT 1 + - 16 + ( ( - COUNT( * ) ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-736
SELECT 1 + - 16 + ( ( - COUNT ( * ) ) ) AS col0
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT ALL - COUNT( * ) + + ( - 7 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL - COUNT ( * ) + + ( - 7 ) col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-739
SELECT - 15 + + 79 * COUNT( - 11 ) * - 66 - ( - + CAST( - 24 AS SIGNED ) ) + AVG ( ALL + + ( CAST( NULL AS SIGNED ) ) ) + + 79 + + + 65 + 62 / 53 * 98 + + 65 * CAST( NULL AS SIGNED ) * - 16 + - 90 / 27 / + 59 + + NULLIF ( 73, COUNT( * ) + - 73 ) * ( - MAX( + 17 ) + + 45 ) + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-739
SELECT - 15 + + 79 * COUNT ( - 11 ) * - 66 - ( - + CAST ( - 24 AS INTEGER ) ) + AVG ( ALL + + ( CAST ( NULL AS INTEGER ) ) ) + + 79 + + + 65 + 62 / 53 * 98 + + 65 * CAST ( NULL AS INTEGER ) * - 16 + - 90 / 27 / + 59 + + NULLIF ( 73, COUNT ( * ) + - 73 ) * ( - MAX ( + 17 ) + + 45 ) + 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT ALL - CASE 60 WHEN + 70 * + 63 THEN - 38 WHEN + 33 THEN + CASE + 82 WHEN - 67 + - + 70 / + 28 + 18 THEN NULL ELSE + 31 - + 3 * + - 7 * COUNT( * ) END WHEN - 5 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - CASE 60 WHEN + 70 * + 63 THEN - 38 WHEN + 33 THEN + CASE + 82 WHEN - 67 + - + 70 / + 28 + 18 THEN NULL ELSE + 31 - + 3 * + - 7 * COUNT ( * ) END WHEN - 5 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - 87 + + + 61
----
-26

query I rowsort
SELECT DISTINCT + 65 * + 3 AS col2
----
195

query I rowsort
SELECT + + 27 + - - 52
----
79

query I rowsort
SELECT ALL - + 10 - + 60
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT + COALESCE ( - + COUNT( * ), + 66, + - NULLIF ( - - 77, 5 - + 81 + + 34 * + + 59 ), - ( + 45 ) * 85 * + 42 * + 79 * 87 ) * - 6 col0
----
6

skipif mysql # not compatible
query I rowsort label-746
SELECT + COALESCE ( - + COUNT ( * ), + 66, + - NULLIF ( - - 77, 5 - + 81 + + 34 * + + 59 ), - ( + 45 ) * 85 * + 42 * + 79 * 87 ) * - 6 col0
----
6

query I rowsort
SELECT DISTINCT + ( 15 ) col2
----
15

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

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

query I rowsort
SELECT DISTINCT - 89 * 83 + 47
----
-7340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-750
SELECT + COALESCE ( 4, 61 ) / - CAST( NULL AS SIGNED ) / 8 * - + 2 + CASE 99 WHEN + 52 THEN COUNT( * ) + - CAST( 6 AS SIGNED ) + - ( ( - 55 ) ) END + + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-750
SELECT + COALESCE ( 4, 61 ) / - CAST ( NULL AS INTEGER ) / 8 * - + 2 + CASE 99 WHEN + 52 THEN COUNT ( * ) + - CAST ( 6 AS INTEGER ) + - ( ( - 55 ) ) END + + 86 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 43 * - 54
----
-2322

query II rowsort
SELECT + 8 * 38 * - - 37 AS col1, + 62
----
11248
62

query I rowsort
SELECT ALL 20 * - 58 AS col0
----
-1160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-755
SELECT COALESCE ( - + 65, - COUNT( ALL - 30 ) DIV - + 50, - COUNT( * ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-755
SELECT COALESCE ( - + 65, - COUNT ( ALL - 30 ) / - + 50, - COUNT ( * ) ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT + SUM( - 96 ) - - - 81 * - ( - + 52 ) + + + MIN( + - 33 ) - - 85 * 38 + - 46 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT + SUM ( - 96 ) - - - 81 * - ( - + 52 ) + + + MIN ( + - 33 ) - - 85 * 38 + - 46 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 73 * 12 * - 23 + + - 21 - + - 53 * - 74
----
-24091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT ALL COUNT( * ) * - 84 * - - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + 58 + - 61 + 85 * 25 * 38 - - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL COUNT ( * ) * - 84 * - - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 58 + - 61 + 85 * 25 * 38 - - 80 AS col1
----
NULL

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

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

query I rowsort
SELECT - 48 + - 71 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT 78 * + 75 * + + 80 * - COUNT( * ) - + - 63 * + 26
----
-466362

skipif mysql # not compatible
query I rowsort label-761
SELECT 78 * + 75 * + + 80 * - COUNT ( * ) - + - 63 * + 26
----
-466362

query I rowsort
SELECT 69 * + 45 + 17 AS col2
----
3122

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

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - 19 * - 19 + - ( + + COUNT ( * ) ) AS col0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - 59 * - 59 * 66 + + COUNT( * )
----
229747

skipif mysql # not compatible
query I rowsort label-764
SELECT - 59 * - 59 * 66 + + COUNT ( * )
----
229747

query I rowsort
SELECT DISTINCT + 60 * - 50 col1
----
-3000

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-767
SELECT DISTINCT 75, 80 DIV + ( 72 ) + - CAST( 35 AS SIGNED ) + + - NULLIF ( - 37, + 59 ) AS col2
----
75
3

skipif mysql # not compatible
query II rowsort label-767
SELECT DISTINCT 75, 80 / + ( 72 ) + - CAST ( 35 AS INTEGER ) + + - NULLIF ( - 37, + 59 ) AS col2
----
75
3

query I rowsort
SELECT DISTINCT 1 + + 85 AS col2
----
86

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

onlyif mysql # aggregate syntax: 
query II rowsort label-770
SELECT ALL - 37 AS col2, + 4 + - 14 + COUNT( DISTINCT ( + + ( + 66 ) ) ) + - + 90 + + 6
----
-37
-93

skipif mysql # not compatible
query II rowsort label-770
SELECT ALL - 37 AS col2, + 4 + - 14 + COUNT ( DISTINCT ( + + ( + 66 ) ) ) + - + 90 + + 6
----
-37
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-771
SELECT - COUNT( * ) - CASE + - COUNT( * ) WHEN + 97 THEN NULL ELSE + 99 + + ( - - 23 ) * + 29 * 50 END + - 24 + + 4 DIV + COALESCE ( + 23, 93 + - 66 + 97 * + + COALESCE ( + - 89, 8 ) + + COUNT( * ) - + 58 - + 70 * 12 * - SUM( ALL + + 99 ) * 76 ) + + 58 DIV - 28
----
-33476

skipif mysql # not compatible
query I rowsort label-771
SELECT - COUNT ( * ) - CASE + - COUNT ( * ) WHEN + 97 THEN NULL ELSE + 99 + + ( - - 23 ) * + 29 * 50 END + - 24 + + 4 / + COALESCE ( + 23, 93 + - 66 + 97 * + + COALESCE ( + - 89, 8 ) + + COUNT ( * ) - + 58 - + 70 * 12 * - SUM ( ALL + + 99 ) * 76 ) + + 58 / - 28
----
-33476

query I rowsort
SELECT - + 20 - - + 55 AS col1
----
35

query II rowsort
SELECT DISTINCT + 1, + 5 AS col1
----
1
5

query I rowsort
SELECT - - ( 48 ) col0
----
48

query I rowsort
SELECT ALL - 60 * 46 + - + 46
----
-2806

query I rowsort
SELECT - 79 - + 54 * + + 49
----
-2725

query I rowsort
SELECT ALL + COALESCE ( + - ( + - 99 ), 54 * + 27 + - 39 ) * + 54 * - 47
----
-251262

query I rowsort
SELECT - ( + 41 ) - - + 98
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-779
SELECT - 20 AS col0, 84 - 51 + + 24 DIV - 76
----
-20
33

skipif mysql # not compatible
query II rowsort label-779
SELECT - 20 AS col0, 84 - 51 + + 24 / - 76
----
-20
33

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT + 14 DIV + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT + 14 / + 69 AS col1
----
0

query I rowsort
SELECT - 84 + + 13 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT ALL + 50 AS col0, 19 - COUNT( * ) + ( SUM( + 94 ) )
----
50
112

skipif mysql # not compatible
query II rowsort label-784
SELECT ALL + 50 AS col0, 19 - COUNT ( * ) + ( SUM ( + 94 ) )
----
50
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-785
SELECT CAST( NULL AS SIGNED ), - 41 AS col0
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-785
SELECT CAST ( NULL AS INTEGER ), - 41 AS col0
----
NULL
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-786
SELECT - CAST( + 37 AS SIGNED ) DIV - 10 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-786
SELECT - CAST ( + 37 AS INTEGER ) / - 10 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT DISTINCT + 2 DIV 80 DIV + + 7 + + 2
----
2

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT + 2 / 80 / + + 7 + + 2
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-788
SELECT + NULLIF ( + - CAST( NULL AS DECIMAL ), + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT + NULLIF ( + - CAST ( NULL AS REAL ), + 13 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-789
SELECT ALL + 52 DIV - 57 * - - ( - - COUNT( * ) ) + + + NULLIF ( + - 53, + COUNT( * ) )
----
-53

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + 52 / - 57 * - - ( - - COUNT ( * ) ) + + + NULLIF ( + - 53, + COUNT ( * ) )
----
-53

query I rowsort
SELECT - 6 * + 25 + + 59
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT DISTINCT 71 * + ( + COUNT( * ) ) * - 29 * + COUNT( * ) + - - 81
----
-1978

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT 71 * + ( + COUNT ( * ) ) * - 29 * + COUNT ( * ) + - - 81
----
-1978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-792
SELECT ALL - 75 DIV - + 8 + - 93 * COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL - 75 / - + 8 + - 93 * COUNT ( * )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT ALL + 92 DIV - + ( - 7 ) + - 52 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL + 92 / - + ( - 7 ) + - 52 AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-794
SELECT 1 * - - CASE - 66 WHEN + 14 THEN - ( + CAST( + 33 AS SIGNED ) ) + - 1 WHEN - 23 THEN + - 67 * + MAX( - - 75 ) * 69 END + - 0 / + COALESCE ( + + 86, ( - 75 ), 1 ) / + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-794
SELECT 1 * - - CASE - 66 WHEN + 14 THEN - ( + CAST ( + 33 AS INTEGER ) ) + - 1 WHEN - 23 THEN + - 67 * + MAX ( - - 75 ) * 69 END + - 0 / + COALESCE ( + + 86, ( - 75 ), 1 ) / + 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT ALL + 98 * COUNT( * ) + COUNT( 45 ) * - - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + 98 * COUNT ( * ) + COUNT ( 45 ) * - - COUNT ( * )
----
99

query II rowsort
SELECT ALL + 65 AS col1, - 70 AS col0
----
65
-70

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

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL 50 - - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-798
SELECT ALL - 82, MAX( ALL + - CAST( NULL AS SIGNED ) ) / 89 AS col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-798
SELECT ALL - 82, MAX ( ALL + - CAST ( NULL AS INTEGER ) ) / 89 AS col1
----
-82
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-799
SELECT - 77 + 23 - 14 * COUNT( * ), 19 + + + 18 AS col1
----
-68
37

skipif mysql # not compatible
query II rowsort label-799
SELECT - 77 + 23 - 14 * COUNT ( * ), 19 + + + 18 AS col1
----
-68
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-800
SELECT - 60 + - - CAST( - NULLIF ( - - COUNT( * ), 68 * 92 + - ( ( - 28 ) ) + + 22 * - COUNT( * ) ) AS SIGNED ) - - - COALESCE ( + 92, + 86, - - COUNT( * ) + + COUNT( * ) ) AS col2
----
-153

skipif mysql # not compatible
query I rowsort label-800
SELECT - 60 + - - CAST ( - NULLIF ( - - COUNT ( * ), 68 * 92 + - ( ( - 28 ) ) + + 22 * - COUNT ( * ) ) AS INTEGER ) - - - COALESCE ( + 92, + 86, - - COUNT ( * ) + + COUNT ( * ) ) AS col2
----
-153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT COUNT( * ) + 80 + + + 7
----
88

skipif mysql # not compatible
query I rowsort label-802
SELECT COUNT ( * ) + 80 + + + 7
----
88

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

skipif mysql # not compatible
query I rowsort label-803
SELECT - - SUM ( - + 56 )
----
-56

query I rowsort
SELECT 93 - - ( 62 ) AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ALL + SUM( + 71 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + SUM ( + 71 ) * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-806
SELECT + COUNT( * ) + + 45, - 49 - + COUNT( * ) * COUNT( * ) col2
----
46
-50

skipif mysql # not compatible
query II rowsort label-806
SELECT + COUNT ( * ) + + 45, - 49 - + COUNT ( * ) * COUNT ( * ) col2
----
46
-50

query I rowsort
SELECT - 36 * 7 AS col2
----
-252

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-809
SELECT ALL - 28 AS col0, - MIN( DISTINCT - 81 ) AS col0
----
-28
81

skipif mysql # not compatible
query II rowsort label-809
SELECT ALL - 28 AS col0, - MIN ( DISTINCT - 81 ) AS col0
----
-28
81

query I rowsort
SELECT 72 * 65 * + 78 AS col0
----
365040

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-812
SELECT 18 + - + CAST( NULL AS SIGNED ) + + COALESCE ( + - 98, + 11 ) + - 10 * - 27 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT 18 + - + CAST ( NULL AS INTEGER ) + + COALESCE ( + - 98, + 11 ) + - 10 * - 27 - - COUNT ( * )
----
NULL

query I rowsort
SELECT - 77 + + - 1 AS col2
----
-78

query I rowsort
SELECT + ( - 92 ) * 65
----
-5980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-815
SELECT DISTINCT + - NULLIF ( - 72, CAST( NULL AS SIGNED ) ) + + 25 + COALESCE ( + COUNT( * ), - 83, + - 42 ) + 28
----
126

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT + - NULLIF ( - 72, CAST ( NULL AS INTEGER ) ) + + 25 + COALESCE ( + COUNT ( * ), - 83, + - 42 ) + 28
----
126

query I rowsort
SELECT 9 + - 94 + - 97 + - 34 * + 41 * - + 23 * - 77
----
-2468956

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT DISTINCT 8 + - + 66 AS col0, - ( + + COUNT( * ) )
----
-58
-1

skipif mysql # not compatible
query II rowsort label-817
SELECT DISTINCT 8 + - + 66 AS col0, - ( + + COUNT ( * ) )
----
-58
-1

query I rowsort
SELECT DISTINCT + 86 + - 9 col1
----
77

query II rowsort
SELECT 99 * + 42 AS col2, 27 * + 96 AS col1
----
4158
2592

query I rowsort
SELECT ALL + 13 + + 14 * 76 + + 81 AS col1
----
1158

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

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

query I rowsort
SELECT 89 * 86
----
7654

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT COUNT( * ) * 1 * 30 AS col1
----
30

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

query I rowsort
SELECT - 1 * - - ( 94 ) + + 79 + - 2 * + - 35
----
55

query I rowsort
SELECT 49 * + 96 * 51 * - - 57 * + 73
----
998240544

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT DISTINCT 18 DIV 5 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT 18 / 5 AS col1
----
3

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

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL 76 - COUNT ( * ) AS col2
----
75

query I rowsort
SELECT ALL 35 * 72 AS col1
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT + ( - 44 ) + COUNT( * ) - - 0
----
-43

skipif mysql # not compatible
query I rowsort label-829
SELECT + ( - 44 ) + COUNT ( * ) - - 0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-830
SELECT DISTINCT + CASE - + COUNT( * ) WHEN 54 + ( + 96 ) * + 73 THEN NULL WHEN + 85 - 58 THEN + COALESCE ( SUM( + 47 ), - - 64, + MIN( 78 ) DIV 7 ) WHEN - 6 THEN + 68 ELSE + + 77 END * + 70 AS col0
----
5390

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + CASE - + COUNT ( * ) WHEN 54 + ( + 96 ) * + 73 THEN NULL WHEN + 85 - 58 THEN + COALESCE ( SUM ( + 47 ), - - 64, + MIN ( 78 ) / 7 ) WHEN - 6 THEN + 68 ELSE + + 77 END * + 70 AS col0
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT DISTINCT - ( 77 ) * + 13 + - MIN( ALL + 12 ) AS col0
----
-1013

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT - ( 77 ) * + 13 + - MIN ( ALL + 12 ) AS col0
----
-1013

query I rowsort
SELECT + 75 * + 60 * - 97 AS col2
----
-436500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-833
SELECT DISTINCT - 75 - - COALESCE ( + 45, + 89 + + 89 + + + CASE - ( + 66 ) WHEN - CASE 39 WHEN - 67 THEN + 70 WHEN - + 23 THEN NULL END - + 61 * + CAST( - ( - CAST( COALESCE ( - - AVG ( 89 ), 49 + 74 + - 59 * + ( - + 42 ) DIV - 65 + + 93 + ( + 90 ) ) AS DECIMAL ) ) AS SIGNED ) * + 73 + 59 THEN NULL WHEN + 74 + + 99 * MAX( 59 DIV - NULLIF ( + COALESCE ( - 66, 45 - 9, - 52 ), - 57 ) ) THEN 98 ELSE NULL END DIV - 47 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT - 75 - - COALESCE ( + 45, + 89 + + 89 + + + CASE - ( + 66 ) WHEN - CASE 39 WHEN - 67 THEN + 70 WHEN - + 23 THEN NULL END - + 61 * + CAST ( - ( - CAST ( COALESCE ( - - AVG ( 89 ), 49 + 74 + - 59 * + ( - + 42 ) / - 65 + + 93 + ( + 90 ) ) AS REAL ) ) AS INTEGER ) * + 73 + 59 THEN NULL WHEN + 74 + + 99 * MAX ( 59 / - NULLIF ( + COALESCE ( - 66, 45 - 9, - 52 ), - 57 ) ) THEN 98 ELSE NULL END / - 47 ) AS col2
----
-30

query II rowsort
SELECT - 25 * 52, 51 * - 25 AS col1
----
-1300
-1275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT DISTINCT CAST( + ( - 61 ) AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT CAST ( + ( - 61 ) AS INTEGER )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-836
SELECT DISTINCT - CASE + 54 WHEN 54 THEN NULL WHEN - CAST( NULL AS SIGNED ) / - 84 + + CAST( NULL AS SIGNED ) + + + COUNT( * ) THEN + 58 ELSE NULL END AS col2, + 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-836
SELECT DISTINCT - CASE + 54 WHEN 54 THEN NULL WHEN - CAST ( NULL AS INTEGER ) / - 84 + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) THEN + 58 ELSE NULL END AS col2, + 26
----
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT + COUNT( * ) * + SUM( ALL - 71 ) + 87
----
16

skipif mysql # not compatible
query I rowsort label-837
SELECT + COUNT ( * ) * + SUM ( ALL - 71 ) + 87
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-838
SELECT 12 - 19 + - + CAST( NULL AS SIGNED ) * - + SUM( DISTINCT - + COALESCE ( - 51, 70 ) ) AS col2, + 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-838
SELECT 12 - 19 + - + CAST ( NULL AS INTEGER ) * - + SUM ( DISTINCT - + COALESCE ( - 51, 70 ) ) AS col2, + 24 AS col0
----
NULL
24

query I rowsort
SELECT ALL 67 + - - 21 AS col2
----
88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT 99 DIV - SUM( ALL + 14 )
----
-7

skipif mysql # not compatible
query I rowsort label-841
SELECT 99 / - SUM ( ALL + 14 )
----
-7

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

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

query I rowsort
SELECT ALL 61 * + 40 AS col0
----
2440

query II rowsort
SELECT ALL 38 AS col2, - 65 AS col1
----
38
-65

query I rowsort
SELECT 34 + + - 83
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL + ( + - 46 ) - + COUNT( * ) + + CASE + 40 WHEN - 70 THEN NULL WHEN - 69 + - + 75 + 86 * + 38 THEN - - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + ( + - 46 ) - + COUNT ( * ) + + CASE + 40 WHEN - 70 THEN NULL WHEN - 69 + - + 75 + 86 * + 38 THEN - - 81 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT DISTINCT - COUNT( * ) / CASE - + 79 WHEN - ( - 24 ) THEN CASE WHEN NOT - 7 IS NOT NULL THEN - - 36 END * MIN( ALL 53 ) WHEN 41 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT - COUNT ( * ) / CASE - + 79 WHEN - ( - 24 ) THEN CASE WHEN NOT - 7 IS NOT NULL THEN - - 36 END * MIN ( ALL 53 ) WHEN 41 THEN NULL ELSE NULL END AS col0
----
NULL

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

query II rowsort
SELECT 83 * + 56 + - 3 AS col1, + ( - + 8 ) + + 55 AS col0
----
4645
47

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

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

query I rowsort
SELECT COALESCE ( - 20, - 34 + 58 )
----
-20

query I rowsort
SELECT 19 * - 42 + - 29
----
-827

query I rowsort
SELECT ALL + 26 * - + ( - NULLIF ( + + 52, - + 73 ) ) - - ( - 43 ) + + - 47 + - 92 * - 91
----
9634

query I rowsort
SELECT ALL - 38 * + + 77 * + 98 * 22 col0
----
-6308456

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL COUNT( * ) * + + COUNT( * ) - + - ( + + NULLIF ( + 61, - 82 * + + COUNT( * ) + 31 ) )
----
62

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL COUNT ( * ) * + + COUNT ( * ) - + - ( + + NULLIF ( + 61, - 82 * + + COUNT ( * ) + 31 ) )
----
62

query I rowsort
SELECT DISTINCT - 29 * 66 col1
----
-1914

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT 11 * + + ( - 89 ) * - COUNT( * ) - + 17 * ( + 93 ) + 13 + + 93 * 93
----
8060

skipif mysql # not compatible
query I rowsort label-858
SELECT 11 * + + ( - 89 ) * - COUNT ( * ) - + 17 * ( + 93 ) + 13 + + 93 * 93
----
8060

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-859
SELECT - 33 AS col2, - 62 DIV - COUNT( * )
----
-33
62

skipif mysql # not compatible
query II rowsort label-859
SELECT - 33 AS col2, - 62 / - COUNT ( * )
----
-33
62

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - MIN( 30 ) * - 62 + - + 44
----
1816

skipif mysql # not compatible
query I rowsort label-860
SELECT - MIN ( 30 ) * - 62 + - + 44
----
1816

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT - + COUNT( 55 ) * + - NULLIF ( 86, - 63 * - - 2 ) * + - CASE + COUNT( * ) WHEN - - 14 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN + ( - + 92 ) + - 37 + + 50 + + - 56 * 8 * + 59 * - 52 THEN NULL WHEN + 41 - + AVG ( ALL - 61 ) THEN + 27 END + + - 71 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-861
SELECT - + COUNT ( 55 ) * + - NULLIF ( 86, - 63 * - - 2 ) * + - CASE + COUNT ( * ) WHEN - - 14 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN + ( - + 92 ) + - 37 + + 50 + + - 56 * 8 * + 59 * - 52 THEN NULL WHEN + 41 - + AVG ( ALL - 61 ) THEN + 27 END + + - 71 AS col1, COUNT ( * )
----
NULL
1

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

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

query II rowsort
SELECT - 95 + - ( + 89 ) AS col0, + 91 AS col0
----
-184
91

onlyif mysql # aggregate syntax: 
query II rowsort label-864
SELECT ALL + NULLIF ( + + 89, + - 17 ), 89 + COUNT( * ) * - + NULLIF ( - 54, + 37 * COUNT( * ) ) col0
----
89
143

skipif mysql # not compatible
query II rowsort label-864
SELECT ALL + NULLIF ( + + 89, + - 17 ), 89 + COUNT ( * ) * - + NULLIF ( - 54, + 37 * COUNT ( * ) ) col0
----
89
143

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT - 9 * 52 + + 30 DIV - 87 + 29 * 35 * 19
----
18817

skipif mysql # not compatible
query I rowsort label-865
SELECT - 9 * 52 + + 30 / - 87 + 29 * 35 * 19
----
18817

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

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

query I rowsort
SELECT - - 16 - - + 58 * - 23 AS col0
----
-1318

query I rowsort
SELECT DISTINCT ( + 62 ) * + + 7 + + 91 * - + 52
----
-4298

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT + COUNT( * ) * + + NULLIF ( 57, - COUNT( * ) ) * - - 13 + - + COALESCE ( + 64, + - COALESCE ( + 65, MIN( ( + 5 ) ) ) ) + + 21
----
698

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT + COUNT ( * ) * + + NULLIF ( 57, - COUNT ( * ) ) * - - 13 + - + COALESCE ( + 64, + - COALESCE ( + 65, MIN ( ( + 5 ) ) ) ) + + 21
----
698

query I rowsort
SELECT + - 67 + - 28 * + 64 AS col0
----
-1859

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT ALL + - 84 + 20 DIV - 65 + + 49 + + + 65
----
30

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + - 84 + 20 / - 65 + + 49 + + + 65
----
30

query I rowsort
SELECT ALL - CASE - + 67 WHEN + 86 - + 65 THEN 53 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + 98 * + 51
----
-4998

query I rowsort
SELECT + + 92 + + 76
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-875
SELECT - 98 + 90 DIV COUNT( * ) + - - 76
----
68

skipif mysql # not compatible
query I rowsort label-875
SELECT - 98 + 90 / COUNT ( * ) + - - 76
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT + - 22 * - + 9 * + ( + 43 ) + - 38 + 51 + + SUM( ( 70 ) ) * - MIN( ALL + 71 ) AS col0
----
3557

skipif mysql # not compatible
query I rowsort label-876
SELECT + - 22 * - + 9 * + ( + 43 ) + - 38 + 51 + + SUM ( ( 70 ) ) * - MIN ( ALL + 71 ) AS col0
----
3557

query I rowsort
SELECT + 81 - + - 53
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-878
SELECT ALL + 83 AS col2, - COUNT( * ) * 5 DIV - 83
----
83
0

skipif mysql # not compatible
query II rowsort label-878
SELECT ALL + 83 AS col2, - COUNT ( * ) * 5 / - 83
----
83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT + 25 + + 97 + + + COUNT( * ) - - + 90 - + 52 + + 9 - 72
----
98

skipif mysql # not compatible
query I rowsort label-879
SELECT + 25 + + 97 + + + COUNT ( * ) - - + 90 - + 52 + + 9 - 72
----
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-880
SELECT ALL + 14 AS col0, CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) + 95 * CAST( NULL AS DECIMAL )
----
14
NULL

skipif mysql # not compatible
query II rowsort label-880
SELECT ALL + 14 AS col0, CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) + 95 * CAST ( NULL AS REAL )
----
14
NULL

query I rowsort
SELECT DISTINCT - 4 * + - 77 AS col0
----
308

query I rowsort
SELECT ALL NULLIF ( 94, 30 ) + + 57
----
151

query I rowsort
SELECT DISTINCT 55 + - 83 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-884
SELECT ALL NULLIF ( 96, - + ( - - 15 ) * - 23 * + 6 - 1 ) - MAX( 4 ) AS col2, - 57 AS col0
----
92
-57

skipif mysql # not compatible
query II rowsort label-884
SELECT ALL NULLIF ( 96, - + ( - - 15 ) * - 23 * + 6 - 1 ) - MAX ( 4 ) AS col2, - 57 AS col0
----
92
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT + 84 + - 44 DIV - 27 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-885
SELECT + 84 + - 44 / - 27 AS col2
----
85

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT + 1 * - ( + ( + SUM( DISTINCT + 78 ) ) ) DIV NULLIF ( + 15, + 38 ) DIV + + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-887
SELECT + 1 * - ( + ( + SUM ( DISTINCT + 78 ) ) ) / NULLIF ( + 15, + 38 ) / + + 38 AS col2
----
0

query I rowsort
SELECT + 89 + - 41 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT COUNT( - 70 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT COUNT ( - 70 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ALL - 51 - - MAX( DISTINCT + - 95 ) AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL - 51 - - MAX ( DISTINCT + - 95 ) AS col0
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-891
SELECT + COUNT( * ) DIV + 99 DIV 5 * + - 4
----
0

skipif mysql # not compatible
query I rowsort label-891
SELECT + COUNT ( * ) / + 99 / 5 * + - 4
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT + 18 * 83 + - CASE ( + 70 ) WHEN + 3 THEN - COUNT( * ) / 75 + + - 81 + + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT + 18 * 83 + - CASE ( + 70 ) WHEN + 3 THEN - COUNT ( * ) / 75 + + - 81 + + 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT + 6 * + 53 * ( + - MAX( ALL - + 84 ) ) AS col2
----
26712

skipif mysql # not compatible
query I rowsort label-894
SELECT + 6 * + 53 * ( + - MAX ( ALL - + 84 ) ) AS col2
----
26712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-895
SELECT ALL + - 36 DIV + + COUNT( * ) - - 53
----
17

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + - 36 / + + COUNT ( * ) - - 53
----
17

query I rowsort
SELECT + - 37 * 51 + + 71 col0
----
-1816

query I rowsort
SELECT ALL + 26 * - 77 + - 51 AS col0
----
-2053

query I rowsort
SELECT ALL - 93 * - 95
----
8835

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL ( - - 7 ) * - 39 + + MAX( ALL + + 84 ) + + 17 col2
----
-172

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL ( - - 7 ) * - 39 + + MAX ( ALL + + 84 ) + + 17 col2
----
-172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-900
SELECT ALL - MAX( + - 36 ) * - COUNT( * ) + + 13 DIV - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - MAX ( + - 36 ) * - COUNT ( * ) + + 13 / - COUNT ( * ) AS col0
----
-49

query II rowsort
SELECT - 16 + - 71 AS col0, NULLIF ( 72, 19 )
----
-87
72

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT DISTINCT + 47 * COUNT( 67 ) + MIN( ALL 89 ) + - + COUNT( * ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT + 47 * COUNT ( 67 ) + MIN ( ALL 89 ) + - + COUNT ( * ) AS col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-903
SELECT + - CASE + + 5 WHEN + + 14 + 65 * 60 THEN + - 24 ELSE NULL END * + CAST( 75 AS SIGNED ) + - - MIN( ALL + + ( + 1 ) ) + + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT + - CASE + + 5 WHEN + + 14 + 65 * 60 THEN + - 24 ELSE NULL END * + CAST ( 75 AS INTEGER ) + - - MIN ( ALL + + ( + 1 ) ) + + 17 AS col1
----
NULL

query I rowsort
SELECT - 43 * 72 + + ( - - 43 )
----
-3053

onlyif mysql # aggregate syntax: 
query II rowsort label-905
SELECT + NULLIF ( 31, - SUM( NULLIF ( + - 22, 80 * 36 / - 81 ) ) - - 36 ) AS col2, 42
----
31
42

skipif mysql # not compatible
query II rowsort label-905
SELECT + NULLIF ( 31, - SUM ( NULLIF ( + - 22, 80 * 36 / - 81 ) ) - - 36 ) AS col2, 42
----
31
42

query I rowsort
SELECT ALL + 72 * + - 2
----
-144

query I rowsort
SELECT ALL + 46 * + 51 + - + 13 + 28 + 92 AS col2
----
2453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT ALL COALESCE ( - ( - 2 ), CAST( NULL AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL COALESCE ( - ( - 2 ), CAST ( NULL AS INTEGER ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-909
SELECT ALL + ( 20 ) * - 55 + + + CAST( + - 99 AS SIGNED ) + - 99 AS col1
----
-1298

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL + ( 20 ) * - 55 + + + CAST ( + - 99 AS INTEGER ) + - 99 AS col1
----
-1298

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

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT ALL + 45 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + 45 / - 51 AS col1
----
0

query I rowsort
SELECT - ( + + 63 ) * + 48 AS col1
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT 55 * - ( + 41 ) + MAX( DISTINCT - 63 )
----
-2318

skipif mysql # not compatible
query I rowsort label-913
SELECT 55 * - ( + 41 ) + MAX ( DISTINCT - 63 )
----
-2318

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT - NULLIF ( - COUNT( * ), 6 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-914
SELECT - NULLIF ( - COUNT ( * ), 6 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT - 96 - + CAST( - - 41 AS SIGNED ) * - COUNT( * ) + - 86 + + - 20
----
-161

skipif mysql # not compatible
query I rowsort label-915
SELECT - 96 - + CAST ( - - 41 AS INTEGER ) * - COUNT ( * ) + - 86 + + - 20
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT + COUNT( * ) * - MIN( ALL - + 80 ) * + + 99 + + 54 AS col1
----
7974

skipif mysql # not compatible
query I rowsort label-916
SELECT + COUNT ( * ) * - MIN ( ALL - + 80 ) * + + 99 + + 54 AS col1
----
7974

query I rowsort
SELECT ALL + 10 * - 12 AS col1
----
-120

query I rowsort
SELECT - 72 - - + 65
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-919
SELECT ALL CAST( NULL AS SIGNED ) col2, 67 AS col0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-919
SELECT ALL CAST ( NULL AS INTEGER ) col2, 67 AS col0
----
NULL
67

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

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

query II rowsort
SELECT DISTINCT 43 AS col1, - 56 AS col1
----
43
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT 33 + + NULLIF ( + - CAST( NULL AS SIGNED ), MAX( - 72 ) + - + COUNT( DISTINCT - - 88 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT 33 + + NULLIF ( + - CAST ( NULL AS INTEGER ), MAX ( - 72 ) + - + COUNT ( DISTINCT - - 88 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 56 * + + 48 col0
----
-2688

query I rowsort
SELECT 49 - 93 AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT 23 + 54 DIV + + 44 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-925
SELECT 23 + 54 / + + 44 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-926
SELECT COUNT( ALL 48 ) - + 70 + 90 + - 74 * - + 98 * COUNT( + + 92 ) + - 89 * - COUNT( * ) * - - 25 + - ( - 41 ) * CASE + 45 WHEN 83 + + ( - 57 ) THEN NULL WHEN + 6 THEN - + 16 WHEN ( - 52 ) THEN NULL ELSE - + 95 DIV 21 - - CAST( - COUNT( * ) AS SIGNED ) * - + 0 + - MIN( DISTINCT + 91 ) * - ( - NULLIF ( - 60, - COUNT( * ) ) ) END AS col2
----
233194

skipif mysql # not compatible
query I rowsort label-926
SELECT COUNT ( ALL 48 ) - + 70 + 90 + - 74 * - + 98 * COUNT ( + + 92 ) + - 89 * - COUNT ( * ) * - - 25 + - ( - 41 ) * CASE + 45 WHEN 83 + + ( - 57 ) THEN NULL WHEN + 6 THEN - + 16 WHEN ( - 52 ) THEN NULL ELSE - + 95 / 21 - - CAST ( - COUNT ( * ) AS INTEGER ) * - + 0 + - MIN ( DISTINCT + 91 ) * - ( - NULLIF ( - 60, - COUNT ( * ) ) ) END AS col2
----
233194

query I rowsort
SELECT 30 * 23
----
690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-928
SELECT - NULLIF ( + + 55, + 11 DIV 48 - 55 DIV 3 ) * COUNT( * ) * 31 + + 50 DIV - + 85 * + 70 + - 39 AS col1
----
-1744

skipif mysql # not compatible
query I rowsort label-928
SELECT - NULLIF ( + + 55, + 11 / 48 - 55 / 3 ) * COUNT ( * ) * 31 + + 50 / - + 85 * + 70 + - 39 AS col1
----
-1744

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT DISTINCT - - ( MAX( - 26 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT - - ( MAX ( - 26 ) ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-930
SELECT + 38 / + COUNT( * ) + - 95 * - + CAST( NULL AS SIGNED ) * COUNT( * ) + - 61 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-930
SELECT + 38 / + COUNT ( * ) + - 95 * - + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 61 / - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 38 + - 33
----
-71

query I rowsort
SELECT 93 * + 58 AS col0
----
5394

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

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

query I rowsort
SELECT ALL - 45 + CASE - - 86 WHEN COALESCE ( - 95, - - 24 ) THEN - 91 + - 73 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-935
SELECT + + 21 * 76 - - + COALESCE ( - 20, + 70, + CAST( NULL AS SIGNED ) ) - - - COALESCE ( + SUM( ALL - + 1 ), + 78 ) + + - 40 * - + 42 + - + 18 - - + ( - - 72 ) - - - 43 + 3 * + ( - 89 ) DIV 28 - - 84 + + 23 col0
----
3366

skipif mysql # not compatible
query I rowsort label-935
SELECT + + 21 * 76 - - + COALESCE ( - 20, + 70, + CAST ( NULL AS INTEGER ) ) - - - COALESCE ( + SUM ( ALL - + 1 ), + 78 ) + + - 40 * - + 42 + - + 18 - - + ( - - 72 ) - - - 43 + 3 * + ( - 89 ) / 28 - - 84 + + 23 col0
----
3366

query III rowsort
SELECT + 42 col1, ( + 39 ), - 73 AS col0
----
42
39
-73

query II rowsort
SELECT ( + 65 ) + + 30 AS col1, + 86 * 27 + + 30
----
95
2352

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-939
SELECT ALL - 79 + + SUM( DISTINCT 99 ) AS col0, + ( - 66 ) AS col0
----
20
-66

skipif mysql # not compatible
query II rowsort label-939
SELECT ALL - 79 + + SUM ( DISTINCT 99 ) AS col0, + ( - 66 ) AS col0
----
20
-66

query I rowsort
SELECT ALL - + NULLIF ( 47, 61 ) col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT + 45 * - 90 + MAX( ALL 1 ) AS col1
----
-4049

skipif mysql # not compatible
query I rowsort label-941
SELECT + 45 * - 90 + MAX ( ALL 1 ) AS col1
----
-4049

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT + ( - - MAX( 18 ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-942
SELECT + ( - - MAX ( 18 ) ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT + 33 * - 27 + + 55 + + 52 - MIN( - - 85 )
----
-869

skipif mysql # not compatible
query I rowsort label-943
SELECT + 33 * - 27 + + 55 + + 52 - MIN ( - - 85 )
----
-869

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

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

query I rowsort
SELECT ALL + - 62 * 53
----
-3286

query II rowsort
SELECT + 67 AS col0, + 25 + - + 87
----
67
-62

query I rowsort
SELECT 24 + 15 AS col2
----
39

query I rowsort
SELECT ( + 79 ) * + 47 + + 74 * - 33 AS col1
----
1271

query I rowsort
SELECT DISTINCT + 41 * + + 42
----
1722

query I rowsort
SELECT 43 * + + 23 AS col0
----
989

query I rowsort
SELECT 14 + + 28 * - + 98
----
-2730

query II rowsort
SELECT DISTINCT 40 col2, 99 AS col2
----
40
99

query I rowsort
SELECT DISTINCT + 79 * + - 53 AS col1
----
-4187

query I rowsort
SELECT 23 * + + 8
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT 59 + + MIN( + + 99 ) AS col0
----
158

skipif mysql # not compatible
query I rowsort label-955
SELECT 59 + + MIN ( + + 99 ) AS col0
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-956
SELECT ALL + 25 + - COUNT( * ) + + 32 * - CAST( NULL AS SIGNED ), 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-956
SELECT ALL + 25 + - COUNT ( * ) + + 32 * - CAST ( NULL AS INTEGER ), 38 AS col1
----
NULL
38

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT 57 col1, 63 + - + SUM( ALL + 66 )
----
57
-3

skipif mysql # not compatible
query II rowsort label-957
SELECT 57 col1, 63 + - + SUM ( ALL + 66 )
----
57
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT 49 * - NULLIF ( + 40, + COUNT( * ) )
----
-1960

skipif mysql # not compatible
query I rowsort label-958
SELECT 49 * - NULLIF ( + 40, + COUNT ( * ) )
----
-1960

query II rowsort
SELECT ALL 12, + 98 - + 29 AS col0
----
12
69

query I rowsort
SELECT 55 + + 80 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL ( - + 17 ) + + + COUNT( + 52 )
----
-16

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL ( - + 17 ) + + + COUNT ( + 52 )
----
-16

query I rowsort
SELECT ALL - 35 + + 81 * + + 60 * 28 AS col2
----
136045

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT + 60 * + - 73 / + + CASE 30 WHEN COUNT( * ) THEN + 44 END * + 13 + + 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-963
SELECT + 60 * + - 73 / + + CASE 30 WHEN COUNT ( * ) THEN + 44 END * + 13 + + 12 col1
----
NULL

query II rowsort
SELECT ALL - - 58 AS col2, + 65
----
58
65

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT - SUM( - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-965
SELECT - SUM ( - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ( + COALESCE ( 14, 15, CASE COUNT( * ) WHEN - + 10 THEN + ( + 9 ) ELSE - CASE 23 WHEN + ( - 33 ) + + ( - COUNT( * ) ) THEN NULL ELSE + + 55 * + + 17 END + - 84 + COUNT( * ) END * ( ( 76 ) ), - - 83 * - 63 ) ) col2
----
14

skipif mysql # not compatible
query I rowsort label-966
SELECT ( + COALESCE ( 14, 15, CASE COUNT ( * ) WHEN - + 10 THEN + ( + 9 ) ELSE - CASE 23 WHEN + ( - 33 ) + + ( - COUNT ( * ) ) THEN NULL ELSE + + 55 * + + 17 END + - 84 + COUNT ( * ) END * ( ( 76 ) ), - - 83 * - 63 ) ) col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT 35 DIV 87 * - 45 * - 36 - 32
----
-32

skipif mysql # not compatible
query I rowsort label-967
SELECT 35 / 87 * - 45 * - 36 - 32
----
-32

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

query II rowsort
SELECT + + 33 AS col1, - 99 * + 10 AS col0
----
33
-990

query II rowsort
SELECT - 32 AS col0, - 75 AS col1
----
-32
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT + COUNT( - + 32 ) * ( 79 ) + + 98
----
177

skipif mysql # not compatible
query I rowsort label-972
SELECT + COUNT ( - + 32 ) * ( 79 ) + + 98
----
177

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-973
SELECT + CAST( - 62 AS SIGNED ) DIV 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-973
SELECT + CAST ( - 62 AS INTEGER ) / 61 AS col1
----
-1

query II rowsort
SELECT DISTINCT - 76, - 24 AS col1
----
-76
-24

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

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

query I rowsort
SELECT 40 * + 63 * + 70 * + NULLIF ( - 93, + 73 )
----
-16405200

query I rowsort
SELECT 43 * - 58 * 5
----
-12470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-978
SELECT DISTINCT + MAX( + CAST( + 31 AS SIGNED ) ) col0
----
31

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT + MAX ( + CAST ( + 31 AS INTEGER ) ) col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT ALL 84 DIV - - ( + - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL 84 / - - ( + - 89 )
----
0

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-982
SELECT - COUNT ( * ) * - - 74
----
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-983
SELECT + 13 + + 54 * - 84 + + - 15 DIV - 28, 97 AS col2
----
-4523
97

skipif mysql # not compatible
query II rowsort label-983
SELECT + 13 + + 54 * - 84 + + - 15 / - 28, 97 AS col2
----
-4523
97

query I rowsort
SELECT + 30 * + + 20 * - 85
----
-51000

query I rowsort
SELECT + 89 + - 14 + + 49 AS col2
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-986
SELECT DISTINCT - 47 + - NULLIF ( + + COUNT( * ), ( + 84 ) ) AS col1, 10 + + 22
----
-48
32

skipif mysql # not compatible
query II rowsort label-986
SELECT DISTINCT - 47 + - NULLIF ( + + COUNT ( * ), ( + 84 ) ) AS col1, 10 + + 22
----
-48
32

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT ALL + 93 + - 57 DIV 65 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL + 93 + - 57 / 65 AS col0
----
93

query I rowsort
SELECT + 83 - + 47 * + 20 AS col2
----
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT - 59 + CASE + 31 WHEN - + COUNT( * ) THEN NULL WHEN - 41 THEN + 91 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT - 59 + CASE + 31 WHEN - + COUNT ( * ) THEN NULL WHEN - 41 THEN + 91 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 35 + - - 18 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-991
SELECT DISTINCT - 48 + 89 * + 91, COUNT( * ) AS col1
----
8051
1

skipif mysql # not compatible
query II rowsort label-991
SELECT DISTINCT - 48 + 89 * + 91, COUNT ( * ) AS col1
----
8051
1

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

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

query I rowsort
SELECT + 3 + - 93 + + 71 AS col0
----
-19

query II rowsort
SELECT - + 39 * + 97, 97 col2
----
-3783
97

query I rowsort
SELECT + NULLIF ( 0, - 68 + + 48 ) * - 30 col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-997
SELECT DISTINCT + COUNT( DISTINCT 15 ) AS col2, - 78 * - - 74
----
1
-5772

skipif mysql # not compatible
query II rowsort label-997
SELECT DISTINCT + COUNT ( DISTINCT 15 ) AS col2, - 78 * - - 74
----
1
-5772

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT - SUM( DISTINCT - ( 28 ) ) * 97
----
2716

skipif mysql # not compatible
query I rowsort label-998
SELECT - SUM ( DISTINCT - ( 28 ) ) * 97
----
2716

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT + 25 * + 75 * + + CAST( NULL AS SIGNED ) * 66 - + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT + 25 * + 75 * + + CAST ( NULL AS INTEGER ) * 66 - + 78 AS col1
----
NULL

query I rowsort
SELECT ALL 43 * - - 64
----
2752

query I rowsort
SELECT DISTINCT + ( + - CASE - 37 WHEN 97 THEN 5 END ) AS col1
----
NULL

query I rowsort
SELECT - 13 * + - 24
----
312

query I rowsort
SELECT 24 * - + 11 + + ( + 29 ) AS col0
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT NULLIF ( + 84, + 37 * COUNT( * ) + 92 + - + 35 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1005
SELECT NULLIF ( + 84, + 37 * COUNT ( * ) + 92 + - + 35 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL - 90 * - CASE 53 WHEN 6 THEN NULL WHEN COUNT( * ) THEN + 99 + - NULLIF ( + + 59, + + NULLIF ( 18, COUNT( * ) ) ) - 77 * - 36 * + 87 * 33 * - + COUNT( * ) + 79 ELSE + CAST( + + 11 AS SIGNED ) + + + 22 END + 9 + - + 90
----
2889

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - 90 * - CASE 53 WHEN 6 THEN NULL WHEN COUNT ( * ) THEN + 99 + - NULLIF ( + + 59, + + NULLIF ( 18, COUNT ( * ) ) ) - 77 * - 36 * + 87 * 33 * - + COUNT ( * ) + 79 ELSE + CAST ( + + 11 AS INTEGER ) + + + 22 END + 9 + - + 90
----
2889

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + COUNT( - + 60 ) + - - CASE ( - 23 ) WHEN 49 THEN NULL WHEN 36 + - COUNT( * ) THEN - - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT + COUNT ( - + 60 ) + - - CASE ( - 23 ) WHEN 49 THEN NULL WHEN 36 + - COUNT ( * ) THEN - - 9 END
----
NULL

query II rowsort
SELECT ALL 45, 45
----
45
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1010
SELECT + COUNT( * ) DIV - MIN( - 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1010
SELECT + COUNT ( * ) / - MIN ( - 80 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT ALL COALESCE ( 89, + 23, - 52 + 98 ) + + + 79 AS col0, + ( - 4 ) + + MAX( ALL + - 54 )
----
168
-58

skipif mysql # not compatible
query II rowsort label-1011
SELECT ALL COALESCE ( 89, + 23, - 52 + 98 ) + + + 79 AS col0, + ( - 4 ) + + MAX ( ALL + - 54 )
----
168
-58

query II rowsort
SELECT DISTINCT 5 AS col0, + 17
----
5
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1013
SELECT DISTINCT + 16 + 47 + + - 54 + - 40 + + + 78 DIV + SUM( ALL - - 31 ) * - CAST( - COUNT( * ) AS SIGNED ) + - CAST( - NULLIF ( 66, 42 ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + 16 + 47 + + - 54 + - 40 + + + 78 / + SUM ( ALL - - 31 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + - CAST ( - NULLIF ( 66, 42 ) AS INTEGER )
----
37

query I rowsort
SELECT ALL - 62 + - 79
----
-141

query II rowsort
SELECT 63 AS col2, 53 AS col1
----
63
53

onlyif mysql # DIV for integer division: 
query II rowsort label-1016
SELECT + COALESCE ( 91, + + 62 * - 21 ) + 53 DIV + 17 col1, 21
----
94
21

skipif mysql # not compatible
query II rowsort label-1016
SELECT + COALESCE ( 91, + + 62 * - 21 ) + 53 / + 17 col1, 21
----
94
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - - CASE + - COUNT( * ) WHEN - 11 THEN - 54 END + 85 * + 41 + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT - - CASE + - COUNT ( * ) WHEN - 11 THEN - 54 END + 85 * + 41 + 36 AS col2
----
NULL

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

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

query I rowsort
SELECT + 10 * + 10
----
100

query II rowsort
SELECT - - 6 AS col1, 60 AS col2
----
6
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT DISTINCT - COUNT( * ) * - 76 + 23
----
99

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT - COUNT ( * ) * - 76 + 23
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL - COALESCE ( + 91, - + 45, - + COUNT( * ) * + + NULLIF ( 21, + - 54 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL - COALESCE ( + 91, - + 45, - + COUNT ( * ) * + + NULLIF ( 21, + - 54 ) ) AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1024
SELECT DISTINCT - 57 col0, 13 DIV + 8 + + - 17 - SUM( + 34 )
----
-57
-50

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT - 57 col0, 13 / + 8 + + - 17 - SUM ( + 34 )
----
-57
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT - + NULLIF ( - 60, - COUNT( * ) * + 57 + 74 ) * - 31 + 27 AS col0
----
-1833

skipif mysql # not compatible
query I rowsort label-1026
SELECT - + NULLIF ( - 60, - COUNT ( * ) * + 57 + 74 ) * - 31 + 27 AS col0
----
-1833

query I rowsort
SELECT + 13 * 75 * 50
----
48750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1028
SELECT CAST( NULL AS SIGNED ) * - 86 - - 96 + 97 * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT CAST ( NULL AS INTEGER ) * - 86 - - 96 + 97 * + 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT - COUNT( * ) DIV + - 50 + 5 + 95 - - 5
----
105

skipif mysql # not compatible
query I rowsort label-1029
SELECT - COUNT ( * ) / + - 50 + 5 + 95 - - 5
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT ALL + - CAST( - 42 AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL + - CAST ( - 42 AS INTEGER ) AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT - 40 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-1031
SELECT - 40 / - 96
----
0

query I rowsort
SELECT - 9 + ( + 11 ) + - CASE - - 47 WHEN + 56 THEN + 28 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1033
SELECT CASE - ( + 61 ) WHEN 80 / - COALESCE ( - - 44, - 13 + - CAST( NULL AS SIGNED ) + - + 62 * - 75 * - + 23, + 17 + - 32 + - COUNT( * ) ) + + 65 + + 7 THEN NULL WHEN 52 THEN - ( + COALESCE ( + 97, - + 96 - + + 21 ) ) * - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT CASE - ( + 61 ) WHEN 80 / - COALESCE ( - - 44, - 13 + - CAST ( NULL AS INTEGER ) + - + 62 * - 75 * - + 23, + 17 + - 32 + - COUNT ( * ) ) + + 65 + + 7 THEN NULL WHEN 52 THEN - ( + COALESCE ( + 97, - + 96 - + + 21 ) ) * - 35 END
----
NULL

query II rowsort
SELECT + - 88 col2, - ( 8 ) col1
----
-88
-8

query II rowsort
SELECT + + 19 AS col0, + 39
----
19
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1036
SELECT DISTINCT + CASE + 26 WHEN - - 74 THEN NULL WHEN - 96 THEN - + CAST( NULL AS SIGNED ) + + - 63 END * + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT + CASE + 26 WHEN - - 74 THEN NULL WHEN - 96 THEN - + CAST ( NULL AS INTEGER ) + + - 63 END * + 44 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT ALL 37 + 91 DIV + 57
----
38

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL 37 + 91 / + 57
----
38

query I rowsort
SELECT ALL + 65 + - 99 * + 51 + + 79 * - - 31 AS col1
----
-2535

query I rowsort
SELECT 59 * - + 11
----
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT ALL - 92 + + + MAX( - 95 )
----
-187

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL - 92 + + + MAX ( - 95 )
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT - 75 + MAX( 85 )
----
10

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT - 75 + MAX ( 85 )
----
10

query I rowsort
SELECT ALL 54 + 31 AS col0
----
85

query I rowsort
SELECT 49 * - + 53 col0
----
-2597

onlyif mysql # aggregate syntax: 
query II rowsort label-1044
SELECT DISTINCT 89 + COALESCE ( + SUM( 90 ), 55 + - 52 + - ( + + ( + - 99 ) ) ) AS col1, - 43 AS col2
----
179
-43

skipif mysql # not compatible
query II rowsort label-1044
SELECT DISTINCT 89 + COALESCE ( + SUM ( 90 ), 55 + - 52 + - ( + + ( + - 99 ) ) ) AS col1, - 43 AS col2
----
179
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT ALL COUNT( * ) + - 31 DIV - 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL COUNT ( * ) + - 31 / - 39 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT 66 * - 17 * - - NULLIF ( + + 52, - ( + 86 ) ) + COUNT( * ) + + COUNT( DISTINCT + 9 ) * - 75 DIV + 91 AS col1
----
-58343

skipif mysql # not compatible
query I rowsort label-1047
SELECT 66 * - 17 * - - NULLIF ( + + 52, - ( + 86 ) ) + COUNT ( * ) + + COUNT ( DISTINCT + 9 ) * - 75 / + 91 AS col1
----
-58343

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT 58 + - CASE - - 31 WHEN + COUNT( * ) THEN NULL WHEN + 10 * - 57 + - - MAX( DISTINCT 6 ) THEN - CASE NULLIF ( 31, + 43 ) WHEN - 32 THEN SUM( ALL 41 ) + - 73 + MAX( + 69 ) - + 99 + - 8 + 8 / + COUNT( * ) + - 83 + 55 + - 26 + - 98 / + 58 END + + 29 ELSE NULL END - + - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT 58 + - CASE - - 31 WHEN + COUNT ( * ) THEN NULL WHEN + 10 * - 57 + - - MAX ( DISTINCT 6 ) THEN - CASE NULLIF ( 31, + 43 ) WHEN - 32 THEN SUM ( ALL 41 ) + - 73 + MAX ( + 69 ) - + 99 + - 8 + 8 / + COUNT ( * ) + - 83 + 55 + - 26 + - 98 / + 58 END + + 29 ELSE NULL END - + - 68 AS col2
----
NULL

query I rowsort
SELECT ALL 88 - 22 AS col0
----
66

query I rowsort
SELECT + 64 * + 12 * + 37
----
28416

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL 52 / + CASE 28 WHEN MIN( 34 ) - + + 0 THEN - 76 * - 65 * + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL 52 / + CASE 28 WHEN MIN ( 34 ) - + + 0 THEN - 76 * - 65 * + 45 END
----
NULL

query I rowsort
SELECT + 22 + + 93
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT + 31 * NULLIF ( ( 94 ), - 99 * + 95 * + COUNT( * ) + 84 ) - CAST( NULL AS SIGNED ) * - 18 + 4 * + 50 + - - NULLIF ( + 57, + - CAST( NULL AS SIGNED ) ) + + 16 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT + 31 * NULLIF ( ( 94 ), - 99 * + 95 * + COUNT ( * ) + 84 ) - CAST ( NULL AS INTEGER ) * - 18 + 4 * + 50 + - - NULLIF ( + 57, + - CAST ( NULL AS INTEGER ) ) + + 16 * 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1054
SELECT DISTINCT 9 DIV - + MAX( + 88 ) * 77 + + 77
----
77

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT 9 / - + MAX ( + 88 ) * 77 + + 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1055
SELECT ALL - CAST( + - CASE - + 30 WHEN 34 - - 70 THEN - ( + ( + COUNT( * ) ) ) END AS SIGNED ) * 17 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - CAST ( + - CASE - + 30 WHEN 34 - - 70 THEN - ( + ( + COUNT ( * ) ) ) END AS INTEGER ) * 17 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT - - 45 * + + 43 * + ( - COUNT( * ) ) AS col1
----
-1935

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - - 45 * + + 43 * + ( - COUNT ( * ) ) AS col1
----
-1935

query I rowsort
SELECT 33 + 90 AS col0
----
123

query II rowsort
SELECT - 11 * + + 47 AS col2, + 40 AS col0
----
-517
40

query I rowsort
SELECT 23 + 90 AS col0
----
113

query I rowsort
SELECT DISTINCT ( + + 54 ) * - 71 col2
----
-3834

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT 0 * + 37 DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT 0 * + 37 / 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT + NULLIF ( + COUNT( * ), + 98 / + COUNT( * ) ) * - 47
----
-47

skipif mysql # not compatible
query I rowsort label-1063
SELECT + NULLIF ( + COUNT ( * ), + 98 / + COUNT ( * ) ) * - 47
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1064
SELECT ALL 16 + - ( + - MAX( 57 ) ) DIV + 66 * + 45 * - 29 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL 16 + - ( + - MAX ( 57 ) ) / + 66 * + 45 * - 29 AS col1
----
16

query I rowsort
SELECT ALL - 19 + 35 * - 7 * + - 29
----
7086

query I rowsort
SELECT ALL 43 + + - 16 + + 58
----
85

query I rowsort
SELECT 14 + 18
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT - 75 * - 70 + MIN( - - 70 ) * - + 83 AS col1
----
-560

skipif mysql # not compatible
query I rowsort label-1068
SELECT - 75 * - 70 + MIN ( - - 70 ) * - + 83 AS col1
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT + 52 * 71 * - COUNT( - - 58 ) AS col2
----
-3692

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT + 52 * 71 * - COUNT ( - - 58 ) AS col2
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT COUNT( ALL - 8 ) * + 83 + + 62 + 73 + - CASE - - MAX( 63 ) WHEN + COUNT( * ) + - 0 THEN - - 57 * + - 56 WHEN 64 THEN NULL ELSE - 64 END + + 45 * - 60 AS col2
----
-2418

skipif mysql # not compatible
query I rowsort label-1070
SELECT COUNT ( ALL - 8 ) * + 83 + + 62 + 73 + - CASE - - MAX ( 63 ) WHEN + COUNT ( * ) + - 0 THEN - - 57 * + - 56 WHEN 64 THEN NULL ELSE - 64 END + + 45 * - 60 AS col2
----
-2418

query I rowsort
SELECT ( - 86 ) * - - 2 * - 47 - 46 * 42 AS col1
----
6152

query I rowsort
SELECT ALL + 34 * - - 74 AS col2
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT 49 + + COUNT( * ) * + + 88 * + - 92 AS col0
----
-8047

skipif mysql # not compatible
query I rowsort label-1073
SELECT 49 + + COUNT ( * ) * + + 88 * + - 92 AS col0
----
-8047

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT ALL + 34 * 81 * CASE - COUNT( * ) WHEN 40 - + COALESCE ( + 50, + COUNT( * ) * 65 * COUNT( * ) + - - 65 ) - + COUNT( * ) * 55 + - 74 THEN NULL WHEN 27 * + 40 THEN NULL ELSE 55 END AS col2
----
151470

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL + 34 * 81 * CASE - COUNT ( * ) WHEN 40 - + COALESCE ( + 50, + COUNT ( * ) * 65 * COUNT ( * ) + - - 65 ) - + COUNT ( * ) * 55 + - 74 THEN NULL WHEN 27 * + 40 THEN NULL ELSE 55 END AS col2
----
151470

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT + 37 * + 82 + - COUNT( * ) * + 78 AS col2
----
2956

skipif mysql # not compatible
query I rowsort label-1075
SELECT + 37 * + 82 + - COUNT ( * ) * + 78 AS col2
----
2956

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT DISTINCT - 16 AS col2, - SUM( ALL 11 ) AS col2
----
-16
-11

skipif mysql # not compatible
query II rowsort label-1076
SELECT DISTINCT - 16 AS col2, - SUM ( ALL 11 ) AS col2
----
-16
-11

query I rowsort
SELECT ALL + 62 - + 3 col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1078
SELECT + 8 col2, SUM( DISTINCT 94 ) * 88 AS col1
----
8
8272

skipif mysql # not compatible
query II rowsort label-1078
SELECT + 8 col2, SUM ( DISTINCT 94 ) * 88 AS col1
----
8
8272

query I rowsort
SELECT 74 * + 77 AS col0
----
5698

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

skipif mysql # not compatible
query I rowsort label-1080
SELECT COUNT ( * ) * + + COUNT ( * ) * - - MIN ( ALL 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT MAX( DISTINCT 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT MAX ( DISTINCT 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1082
SELECT - COUNT( * ) * - + 50 DIV - ( 29 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1082
SELECT - COUNT ( * ) * - + 50 / - ( 29 ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1083
SELECT ALL + + COALESCE ( - 17, 23 * + 38 ) / + CAST( NULL AS SIGNED ) AS col0, 3 AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1083
SELECT ALL + + COALESCE ( - 17, 23 * + 38 ) / + CAST ( NULL AS INTEGER ) AS col0, 3 AS col1
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT DISTINCT - NULLIF ( 85, - CAST( NULL AS SIGNED ) ) * - ( + 1 ) * - 95 * - - 17 * + ( + ( 95 ) ) AS col1
----
-13041125

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT - NULLIF ( 85, - CAST ( NULL AS INTEGER ) ) * - ( + 1 ) * - 95 * - - 17 * + ( + ( 95 ) ) AS col1
----
-13041125

query I rowsort
SELECT ALL + + 63 * - 51 + 72
----
-3141

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

query I rowsort
SELECT + 31 + + 58 + - 81 AS col1
----
8

query I rowsort
SELECT DISTINCT 70 + + ( - 31 ) + - 46
----
-7

query I rowsort
SELECT + 44 * + COALESCE ( + + 77, + + 67, + 3 ) * 1
----
3388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1090
SELECT DISTINCT CAST( ( + + ( + 76 ) ) AS SIGNED ) + + 40
----
116

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT CAST ( ( + + ( + 76 ) ) AS INTEGER ) + + 40
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL 28 + - 36 + + - 28 + 12 * - - SUM( - 27 ) + - - 92 - - + ( + 96 ) col0
----
-172

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 28 + - 36 + + - 28 + 12 * - - SUM ( - 27 ) + - - 92 - - + ( + 96 ) col0
----
-172

query I rowsort
SELECT DISTINCT 32 + 70 AS col1
----
102

query I rowsort
SELECT + + 93 + + - 44
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1094
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 16 + NULLIF ( - + COUNT( * ), - - COUNT( * ) * - ( - 52 ) + + - 4 ) + - 42 * - - 26 + + 45 * 54 + + CAST( NULL AS SIGNED ) * 84 + + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 16 + NULLIF ( - + COUNT ( * ), - - COUNT ( * ) * - ( - 52 ) + + - 4 ) + - 42 * - - 26 + + 45 * 54 + + CAST ( NULL AS INTEGER ) * 84 + + + 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1095
SELECT CASE ( - 31 ) WHEN 42 THEN - ( - 62 ) ELSE - 57 DIV - COUNT( * ) END AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1095
SELECT CASE ( - 31 ) WHEN 42 THEN - ( - 62 ) ELSE - 57 / - COUNT ( * ) END AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT ( 70 ) DIV + - 4 + COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1096
SELECT ( 70 ) / + - 4 + COUNT ( * ) AS col0
----
-16

query I rowsort
SELECT ALL 78 * + - 26
----
-2028

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1098
SELECT + MAX( - + 77 ) * ( - NULLIF ( + 1, + 23 ) ) AS col1, + 16 * + 90 * - + 65 / + - 7 + - 84 + CAST( NULL AS DECIMAL ) + + 60 * - 28 * + 42
----
77
NULL

skipif mysql # not compatible
query II rowsort label-1098
SELECT + MAX ( - + 77 ) * ( - NULLIF ( + 1, + 23 ) ) AS col1, + 16 * + 90 * - + 65 / + - 7 + - 84 + CAST ( NULL AS REAL ) + + 60 * - 28 * + 42
----
77
NULL

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

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

query I rowsort
SELECT DISTINCT ( + 73 ) * 96 + + 90 * 62 - - + 21 + + 88 AS col2
----
12697

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL 46 * 95 * 2 - + SUM( - 89 )
----
8829

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL 46 * 95 * 2 - + SUM ( - 89 )
----
8829

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT CASE - MIN( ALL + 33 ) WHEN 73 + + NULLIF ( - COUNT( * ), - 44 + - - 36 ) THEN - - 88 WHEN - 71 THEN - 15 * 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT CASE - MIN ( ALL + 33 ) WHEN 73 + + NULLIF ( - COUNT ( * ), - 44 + - - 36 ) THEN - - 88 WHEN - 71 THEN - 15 * 72 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1103
SELECT DISTINCT COUNT( * ) * - + 0 - + 33 + CAST( COALESCE ( - 17, + + 90 + - MAX( + 70 ) ) AS SIGNED ) * 78 * + CASE + 29 WHEN + + COUNT( * ) THEN - + COUNT( * ) * - 12 + + 97 * COUNT( * ) ELSE 0 END col0
----
-33

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT COUNT ( * ) * - + 0 - + 33 + CAST ( COALESCE ( - 17, + + 90 + - MAX ( + 70 ) ) AS INTEGER ) * 78 * + CASE + 29 WHEN + + COUNT ( * ) THEN - + COUNT ( * ) * - 12 + + 97 * COUNT ( * ) ELSE 0 END col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT + CASE - AVG ( ALL + 72 ) WHEN 82 * 72 + - + CAST( + 25 AS SIGNED ) THEN + + ( - 17 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT + CASE - AVG ( ALL + 72 ) WHEN 82 * 72 + - + CAST ( + 25 AS INTEGER ) THEN + + ( - 17 ) END col0
----
NULL

query I rowsort
SELECT ALL 83 * + 38 - 15 AS col2
----
3139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + MAX( + 98 ) - - + COUNT( * ) + - 23 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-1107
SELECT + MAX ( + 98 ) - - + COUNT ( * ) + - 23 AS col2
----
76

query I rowsort
SELECT + 53 * + 42 * + + 11
----
24486

query I rowsort
SELECT - 59 * - 32 AS col0
----
1888

query I rowsort
SELECT ALL - 3 * + 88
----
-264

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT - CAST( NULL AS SIGNED ) * - 71 * + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT - CAST ( NULL AS INTEGER ) * - 71 * + 8 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT - - 90 DIV - 84 + + 6 + - - 24 * 41 * - + 75
----
-73795

skipif mysql # not compatible
query I rowsort label-1113
SELECT - - 90 / - 84 + + 6 + - - 24 * 41 * - + 75
----
-73795

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL + ( 66 ) * NULLIF ( - MIN( DISTINCT + 75 ), - + 15 + - ( + 47 ) * - + 49 + - 73 )
----
-4950

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + ( 66 ) * NULLIF ( - MIN ( DISTINCT + 75 ), - + 15 + - ( + 47 ) * - + 49 + - 73 )
----
-4950

query I rowsort
SELECT DISTINCT - + ( + 58 ) * - - 57 * + 66 * - COALESCE ( + 6, + 35 - + 83 + - + 4, - 97 ) AS col2
----
1309176

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

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

query I rowsort
SELECT - + 71 + - 46
----
-117

query I rowsort
SELECT - - CASE 46 WHEN - + 90 THEN NULL WHEN - 29 THEN NULL ELSE + 39 END AS col0
----
39

query II rowsort
SELECT - - 91 AS col2, ( - - ( 44 ) ) col0
----
91
44

query I rowsort
SELECT ALL + 43 + 89
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT ALL - 85 + + COUNT( * ) * ( - 85 )
----
-170

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL - 85 + + COUNT ( * ) * ( - 85 )
----
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1122
SELECT ALL + 37 AS col2, - 42 DIV SUM( + + NULLIF ( + 37, NULLIF ( - 11, 59 ) * 77 ) ) + - 49 AS col0
----
37
-50

skipif mysql # not compatible
query II rowsort label-1122
SELECT ALL + 37 AS col2, - 42 / SUM ( + + NULLIF ( + 37, NULLIF ( - 11, 59 ) * 77 ) ) + - 49 AS col0
----
37
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT - COUNT( * ) + 71 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1123
SELECT - COUNT ( * ) + 71 AS col1
----
70

query I rowsort
SELECT ALL + 94 * 90
----
8460

query I rowsort
SELECT ALL + 83 + - 58 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT DISTINCT + 91 + - - ( + COUNT( * ) ) + + + 81 * 84 * 95 - COUNT( ALL 82 ) * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT + 91 + - - ( + COUNT ( * ) ) + + + 81 * 84 * 95 - COUNT ( ALL 82 ) * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 87, 74 * - 81 * + 66 AS col2
----
87
-395604

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT + + ( CASE - - 78 WHEN - - 13 + ( 80 ) THEN NULL WHEN + 37 / - 79 * + - 29 - CASE + - 70 WHEN - + 25 THEN + 73 - - + 91 WHEN + 83 THEN + 72 END THEN NULL WHEN COUNT( DISTINCT + + 8 ) THEN - 41 - - 76 END ) / + - COUNT( * ) AS col2, + ( - - 18 ) AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-1128
SELECT + + ( CASE - - 78 WHEN - - 13 + ( 80 ) THEN NULL WHEN + 37 / - 79 * + - 29 - CASE + - 70 WHEN - + 25 THEN + 73 - - + 91 WHEN + 83 THEN + 72 END THEN NULL WHEN COUNT ( DISTINCT + + 8 ) THEN - 41 - - 76 END ) / + - COUNT ( * ) AS col2, + ( - - 18 ) AS col0
----
NULL
18

query I rowsort
SELECT + + 64 + + 20
----
84

query I rowsort
SELECT DISTINCT - + 94 * + 99
----
-9306

query III rowsort
SELECT - 67 * + 83 AS col1, + 4 AS col0, + - 49 + - ( - 24 )
----
-5561
4
-25

query II rowsort
SELECT - ( + + 66 ) col0, - 49
----
-66
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT CASE COUNT( * ) WHEN - COALESCE ( - ( 75 ), - 35, - + 2 ) THEN + 91 * - 44 WHEN - - COUNT( * ) THEN NULL WHEN 29 * - 73 + - 22 * 61 * 17 THEN NULL ELSE NULL END / + + NULLIF ( NULLIF ( 83, COUNT( * ) ), + 92 + COUNT( * ) ) - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT CASE COUNT ( * ) WHEN - COALESCE ( - ( 75 ), - 35, - + 2 ) THEN + 91 * - 44 WHEN - - COUNT ( * ) THEN NULL WHEN 29 * - 73 + - 22 * 61 * 17 THEN NULL ELSE NULL END / + + NULLIF ( NULLIF ( 83, COUNT ( * ) ), + 92 + COUNT ( * ) ) - + 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1134
SELECT + CASE 16 WHEN 42 THEN NULL WHEN + COUNT( * ) * COALESCE ( - 50, NULLIF ( + - 54, 16 * 98 ) ) / 82 + - 55 THEN - + 1 WHEN CAST( NULL AS SIGNED ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT + CASE 16 WHEN 42 THEN NULL WHEN + COUNT ( * ) * COALESCE ( - 50, NULLIF ( + - 54, 16 * 98 ) ) / 82 + - 55 THEN - + 1 WHEN CAST ( NULL AS INTEGER ) THEN NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT DISTINCT 77 DIV - 65
----
-1

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT 77 / - 65
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT + 89 DIV 88 * 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 89 / 88 * 2 AS col1
----
2

query I rowsort
SELECT 71 * + 8 * - 91 * 18 + 73 col0
----
-930311

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT CAST( - - 57 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1139
SELECT CAST ( - - 57 AS INTEGER ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT NULLIF ( 54, 94 * + 18 ) DIV + - 66 + + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-1140
SELECT NULLIF ( 54, 94 * + 18 ) / + - 66 + + - 56
----
-56

query I rowsort
SELECT ALL + COALESCE ( + 34, + - 37 ) AS col2
----
34

query I rowsort
SELECT DISTINCT 70 * + 1 * + 56 col1
----
3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1143
SELECT + + 60 * + ( SUM( 57 ) ) * + COUNT( CAST( - - 38 AS SIGNED ) )
----
3420

skipif mysql # not compatible
query I rowsort label-1143
SELECT + + 60 * + ( SUM ( 57 ) ) * + COUNT ( CAST ( - - 38 AS INTEGER ) )
----
3420

query I rowsort
SELECT - + 69 + + 31 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT + - ( - + ( - - COUNT( * ) ) ) * + + 72 + - 84 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1145
SELECT + - ( - + ( - - COUNT ( * ) ) ) * + + 72 + - 84 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT - 37 + + + COUNT( * ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-1146
SELECT - 37 + + + COUNT ( * ) col2
----
-36

query I rowsort
SELECT ALL + - 9 + + 78
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT DISTINCT 65 DIV 4 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT 65 / 4 / 56
----
0

query I rowsort
SELECT ALL - + 96 * + 89 col0
----
-8544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT + - COUNT( * ) * 65 DIV - 58 + + - 63 * + 12 col2
----
-755

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + - COUNT ( * ) * 65 / - 58 + + - 63 * + 12 col2
----
-755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1151
SELECT + 40 * - - 48 + + 53 + + CASE ( - 61 ) WHEN + 8 THEN NULL WHEN + - CAST( + NULLIF ( - - 27, - 70 ) AS SIGNED ) + - ( - 37 ) DIV - 70 + + + COUNT( * ) THEN AVG ( ALL + 47 ) ELSE 50 END DIV 80 + + ( - 28 )
----
1945

skipif mysql # not compatible
query I rowsort label-1151
SELECT + 40 * - - 48 + + 53 + + CASE ( - 61 ) WHEN + 8 THEN NULL WHEN + - CAST ( + NULLIF ( - - 27, - 70 ) AS INTEGER ) + - ( - 37 ) / - 70 + + + COUNT ( * ) THEN AVG ( ALL + 47 ) ELSE 50 END / 80 + + ( - 28 )
----
1945

query I rowsort
SELECT 43 - 65
----
-22

query I rowsort
SELECT 49 + + + 84
----
133

query II rowsort
SELECT 18 AS col1, - 40 AS col2
----
18
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT DISTINCT - 20 * 86 DIV 46 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT - 20 * 86 / 46 AS col1
----
-37

query II rowsort
SELECT ALL 23 AS col1, - 8 + + 53 AS col1
----
23
45

query I rowsort
SELECT ALL 25 * 53 * + + 60
----
79500

query I rowsort
SELECT 74 + ( - 69 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1159
SELECT DISTINCT - 30 - - - ( CAST( NULL AS SIGNED ) ) + + ( 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT - 30 - - - ( CAST ( NULL AS INTEGER ) ) + + ( 61 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1160
SELECT 48, + ( - 75 ) + + - COUNT( * ) AS col1
----
48
-76

skipif mysql # not compatible
query II rowsort label-1160
SELECT 48, + ( - 75 ) + + - COUNT ( * ) AS col1
----
48
-76

query I rowsort
SELECT 58 * + 77
----
4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1162
SELECT ALL - 3 * + CAST( + + COUNT( 33 ) AS SIGNED ) * 0 * - + 70 * - 0 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - 3 * + CAST ( + + COUNT ( 33 ) AS INTEGER ) * 0 * - + 70 * - 0 * + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1163
SELECT 31 col0, COALESCE ( - COALESCE ( + + 44, - 91 + + + COUNT( * ), - 77 ), - - 64 + + 15 )
----
31
-44

skipif mysql # not compatible
query II rowsort label-1163
SELECT 31 col0, COALESCE ( - COALESCE ( + + 44, - 91 + + + COUNT ( * ), - 77 ), - - 64 + + 15 )
----
31
-44

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

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL - 12 * + ( + COUNT ( * ) ) AS col2
----
-12

query I rowsort
SELECT DISTINCT + 58 * - 19 AS col0
----
-1102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1166
SELECT DISTINCT - COALESCE ( - 57, - CASE + COUNT( * ) WHEN - 43 + 71 THEN - + 93 ELSE NULL END DIV - NULLIF ( + MIN( 4 ), - + 10 ) + + 12 )
----
57

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT - COALESCE ( - 57, - CASE + COUNT ( * ) WHEN - 43 + 71 THEN - + 93 ELSE NULL END / - NULLIF ( + MIN ( 4 ), - + 10 ) + + 12 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1167
SELECT ALL + 68 DIV 9 * + SUM( DISTINCT + 36 ) col0
----
252

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL + 68 / 9 * + SUM ( DISTINCT + 36 ) col0
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-1168
SELECT ALL - 47 AS col0, + SUM( ALL + + 17 ) AS col2
----
-47
17

skipif mysql # not compatible
query II rowsort label-1168
SELECT ALL - 47 AS col0, + SUM ( ALL + + 17 ) AS col2
----
-47
17

query I rowsort
SELECT - 39 * 64
----
-2496

query II rowsort
SELECT + - 51, - 55 * + + 0 col1
----
-51
0

query I rowsort
SELECT 44 * - 15 + + 74 AS col0
----
-586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT COUNT( * ) - - CASE - CAST( NULL AS SIGNED ) WHEN + + 84 / - 4 * + 38 + COUNT( * ) + 68 THEN - 36 ELSE CAST( NULL AS SIGNED ) END - + ( - - 16 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT COUNT ( * ) - - CASE - CAST ( NULL AS INTEGER ) WHEN + + 84 / - 4 * + 38 + COUNT ( * ) + 68 THEN - 36 ELSE CAST ( NULL AS INTEGER ) END - + ( - - 16 ) col1
----
NULL

query I rowsort
SELECT ALL + 27 * + 31
----
837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1174
SELECT DISTINCT - - 27 + + 80 * + MIN( DISTINCT - 22 ) * COUNT( * ) * ( + - CASE + - 88 WHEN 93 * 80 THEN - 58 - - COUNT( * ) + - + 63 DIV + 18 ELSE 15 DIV 18 END ) * 11 + + MIN( DISTINCT - 94 ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT - - 27 + + 80 * + MIN ( DISTINCT - 22 ) * COUNT ( * ) * ( + - CASE + - 88 WHEN 93 * 80 THEN - 58 - - COUNT ( * ) + - + 63 / + 18 ELSE 15 / 18 END ) * 11 + + MIN ( DISTINCT - 94 ) col0
----
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT NULLIF ( + COUNT( * ), + 20 ) + - 55 * + 56
----
-3079

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 20 ) + - 55 * + 56
----
-3079

query I rowsort
SELECT 0 - - 82 - ( - - 18 )
----
64

query II rowsort
SELECT ALL 42, - 6 + + - 28 AS col1
----
42
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT - COUNT( DISTINCT 16 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1179
SELECT - COUNT ( DISTINCT 16 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1180
SELECT - 93 * + + 4 * + COUNT( * ) + - 23 * - CAST( 30 AS SIGNED ), + NULLIF ( + 15, + - 0 + + - CASE + COUNT( * ) WHEN - - ( + - 25 ) THEN + 38 END ) + - + 3 AS col2
----
318
12

skipif mysql # not compatible
query II rowsort label-1180
SELECT - 93 * + + 4 * + COUNT ( * ) + - 23 * - CAST ( 30 AS INTEGER ), + NULLIF ( + 15, + - 0 + + - CASE + COUNT ( * ) WHEN - - ( + - 25 ) THEN + 38 END ) + - + 3 AS col2
----
318
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT - COUNT( * ) - 82 col2
----
-83

skipif mysql # not compatible
query I rowsort label-1181
SELECT - COUNT ( * ) - 82 col2
----
-83

query I rowsort
SELECT 33 * - + 54
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ALL 21 - - - SUM( 38 ) * + + 23
----
-853

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL 21 - - - SUM ( 38 ) * + + 23
----
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT + 4 + 15 * - SUM( - 76 )
----
1144

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 4 + 15 * - SUM ( - 76 )
----
1144

query I rowsort
SELECT DISTINCT 83 / - 8 * + - 55 + - 37 + + 60 * - 16 * - 16 + + 83 * - + 48 * - CASE 36 WHEN + 96 THEN 44 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 34 * + 87 * 75
----
-221850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1187
SELECT 78 * + - COUNT( * ) * COALESCE ( + 99, - 65 DIV - 67 + 97 + 24 * - 26, - 17 DIV 94, 13 )
----
-7722

skipif mysql # not compatible
query I rowsort label-1187
SELECT 78 * + - COUNT ( * ) * COALESCE ( + 99, - 65 / - 67 + 97 + 24 * - 26, - 17 / 94, 13 )
----
-7722

query I rowsort
SELECT 87 + 61 col1
----
148

onlyif mysql # DIV for integer division: 
query II rowsort label-1189
SELECT ( 98 ) DIV 8 * 72, + 49 AS col2
----
864
49

skipif mysql # not compatible
query II rowsort label-1189
SELECT ( 98 ) / 8 * 72, + 49 AS col2
----
864
49

query I rowsort
SELECT 3 * - - 67
----
201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1191
SELECT 74 + - CASE - ( + + 52 ) WHEN - + 96 * + ( - 27 ) THEN NULL ELSE - 54 * - - 95 * + - CAST( NULL AS SIGNED ) END * 35 * + 67 * COUNT( - 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT 74 + - CASE - ( + + 52 ) WHEN - + 96 * + ( - 27 ) THEN NULL ELSE - 54 * - - 95 * + - CAST ( NULL AS INTEGER ) END * 35 * + 67 * COUNT ( - 16 ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 65, + 31 )
----
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT MAX( ALL 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1194
SELECT MAX ( ALL 36 ) AS col0
----
36

query I rowsort
SELECT ALL + - 30 * - - 46 + + 16
----
-1364

query I rowsort
SELECT DISTINCT 75 * + 64 + + - 2 * 98 AS col2
----
4604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT DISTINCT + 45 * - SUM( DISTINCT - 64 ) * + 58 DIV COUNT( * )
----
167040

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT + 45 * - SUM ( DISTINCT - 64 ) * + 58 / COUNT ( * )
----
167040

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL - 4 * + CASE + ( + ( COUNT( * ) ) ) WHEN + ( 2 ) / 12 * - + 96 / + + 24 THEN NULL ELSE - 82 END + + 42
----
370

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL - 4 * + CASE + ( + ( COUNT ( * ) ) ) WHEN + ( 2 ) / 12 * - + 96 / + + 24 THEN NULL ELSE - 82 END + + 42
----
370

query I rowsort
SELECT - 95 * - 27 * 44 AS col0
----
112860

query I rowsort
SELECT - 39 * - 48 AS col0
----
1872

query I rowsort
SELECT - + 40 * + 37 + + 36 AS col2
----
-1444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT + + 34 * - COUNT( * ) DIV - 38 + + 55
----
55

skipif mysql # not compatible
query I rowsort label-1202
SELECT + + 34 * - COUNT ( * ) / - 38 + + 55
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1203
SELECT + + 76 + - + 25 + - ( CAST( + 55 AS SIGNED ) ) - CAST( NULL AS SIGNED ) / + 55 * 77 * - COUNT( DISTINCT - ( - + 88 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT + + 76 + - + 25 + - ( CAST ( + 55 AS INTEGER ) ) - CAST ( NULL AS INTEGER ) / + 55 * 77 * - COUNT ( DISTINCT - ( - + 88 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT + - MAX( DISTINCT - + 67 ) * - 72 * + 33 + 46, + 88 * - 30 + - - 34 AS col0
----
-159146
-2606

skipif mysql # not compatible
query II rowsort label-1204
SELECT + - MAX ( DISTINCT - + 67 ) * - 72 * + 33 + 46, + 88 * - 30 + - - 34 AS col0
----
-159146
-2606

query I rowsort
SELECT + 70 * + 85 + 46 * - 32 + + 16 + - ( - 80 )
----
4574

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1207
SELECT - CAST( NULL AS SIGNED ) * - 55 * CASE + - 98 WHEN 38 THEN NULL WHEN + 33 * - 53 + + - 55 THEN CASE + - 86 WHEN - CAST( NULL AS DECIMAL ) + 13 THEN NULL WHEN + 62 THEN - MAX( 6 ) / - 53 + CAST( NULL AS DECIMAL ) END END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1207
SELECT - CAST ( NULL AS INTEGER ) * - 55 * CASE + - 98 WHEN 38 THEN NULL WHEN + 33 * - 53 + + - 55 THEN CASE + - 86 WHEN - CAST ( NULL AS REAL ) + 13 THEN NULL WHEN + 62 THEN - MAX ( 6 ) / - 53 + CAST ( NULL AS REAL ) END END + - COUNT ( * ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + ( 97 ) * + + COUNT ( * ) AS col2
----
97

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

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

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

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

query I rowsort
SELECT + ( 60 ) + - 51
----
9

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT - COALESCE ( + 51, + 1 DIV + 31 + - 54, - + COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-1214
SELECT - COALESCE ( + 51, + 1 / + 31 + - 54, - + COUNT ( * ) )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT ALL 12 DIV - - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 12 / - - 90 AS col1
----
0

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

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

query I rowsort
SELECT ALL + 40 + + 2 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL COALESCE ( + 46, + 62 * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * 63 + 52 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL COALESCE ( + 46, + 62 * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 63 + 52 ) AS col1
----
46

query I rowsort
SELECT ALL 6 + + + 16 col1
----
22

query I rowsort
SELECT - 18 + - + 38
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT + 88 DIV + 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1221
SELECT + 88 / + 31 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL 0 + + 66 + + + ( + + 21 ) + - 41 + + MAX( - 83 ) * + 28 - COUNT( * ) / + COUNT( * ) / 96 * - CASE - 68 WHEN + - 39 * + - 57 THEN NULL WHEN + ( - + 45 ) THEN + - 68 * 57 / + 21 + - + 47 + + 67 END * + 72 + - SUM( DISTINCT - - 9 ) * + + 79 - + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL 0 + + 66 + + + ( + + 21 ) + - 41 + + MAX ( - 83 ) * + 28 - COUNT ( * ) / + COUNT ( * ) / 96 * - CASE - 68 WHEN + - 39 * + - 57 THEN NULL WHEN + ( - + 45 ) THEN + - 68 * 57 / + 21 + - + 47 + + 67 END * + 72 + - SUM ( DISTINCT - - 9 ) * + + 79 - + 89 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT DISTINCT - 93 / - + CAST( NULL AS SIGNED ) + - 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT - 93 / - + CAST ( NULL AS INTEGER ) + - 60 col0
----
NULL

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

query I rowsort
SELECT DISTINCT + + 27 * 23 + - - CASE - 23 WHEN + - 17 THEN - NULLIF ( - ( + 32 ), + 26 - - 66 + + 80 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1227
SELECT - - 78 * + COUNT( * ) + + - NULLIF ( - 2, + 55 * - + 49 + - 91 ) DIV + + 85 DIV - + 13 + + 11 + + 74, 12 AS col1
----
163
12

skipif mysql # not compatible
query II rowsort label-1227
SELECT - - 78 * + COUNT ( * ) + + - NULLIF ( - 2, + 55 * - + 49 + - 91 ) / + + 85 / - + 13 + + 11 + + 74, 12 AS col1
----
163
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT - - COUNT( - 15 ) * + 13 + + 75 + + 92
----
180

skipif mysql # not compatible
query I rowsort label-1228
SELECT - - COUNT ( - 15 ) * + 13 + + 75 + + 92
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT COUNT( - 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1229
SELECT COUNT ( - 30 ) AS col0
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1231
SELECT + - 71, ( - + 2 ) DIV 11 AS col1
----
-71
0

skipif mysql # not compatible
query II rowsort label-1231
SELECT + - 71, ( - + 2 ) / 11 AS col1
----
-71
0

query I rowsort
SELECT - - NULLIF ( - 37, 29 ) * - 77 + + 19 AS col0
----
2868

query I rowsort
SELECT - 59 - + + 78
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1234
SELECT DISTINCT + - CAST( - - MAX( ALL 57 ) AS SIGNED ) * CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT + - CAST ( - - MAX ( ALL 57 ) AS INTEGER ) * CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT DISTINCT + SUM( DISTINCT - - 74 ) * MIN( DISTINCT 9 ) AS col0
----
666

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT + SUM ( DISTINCT - - 74 ) * MIN ( DISTINCT 9 ) AS col0
----
666

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1237
SELECT ALL + + 18 * + 23 + 44, 43 + 28 + + - CAST( NULL AS SIGNED ) + 34 * 40 AS col2
----
458
NULL

skipif mysql # not compatible
query II rowsort label-1237
SELECT ALL + + 18 * + 23 + 44, 43 + 28 + + - CAST ( NULL AS INTEGER ) + 34 * 40 AS col2
----
458
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1239
SELECT ALL + COALESCE ( + - 66, 77 ) AS col2, - 72 + - - 50 - ( + 30 ) + 4 * - - 66 - + 42 * + 80 + - COUNT( * ) * + 54 - - + 15 AS col1
----
-66
-3187

skipif mysql # not compatible
query II rowsort label-1239
SELECT ALL + COALESCE ( + - 66, 77 ) AS col2, - 72 + - - 50 - ( + 30 ) + 4 * - - 66 - + 42 * + 80 + - COUNT ( * ) * + 54 - - + 15 AS col1
----
-66
-3187

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

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

query I rowsort
SELECT - - 79 - - - NULLIF ( + 13, - 55 )
----
66

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

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

query III rowsort
SELECT - 67 col0, - 2 AS col0, 32 * - - 55
----
-67
-2
1760

query I rowsort
SELECT + ( 99 ) * 68
----
6732

query I rowsort
SELECT + 43 * + + 20 AS col1
----
860

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

skipif mysql # not compatible
query II rowsort label-1246
SELECT COUNT ( * ), COUNT ( ALL - 4 ) AS col1
----
1
1

query II rowsort
SELECT - ( 10 ) AS col0, 80 AS col1
----
-10
80

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

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL COUNT ( * ) * 40 + COUNT ( * ) AS col0
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT DISTINCT - 71 + - + COUNT( * ) * - 33
----
-38

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT - 71 + - + COUNT ( * ) * - 33
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT ALL CAST( 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL CAST ( 9 AS INTEGER ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT + 7 + SUM( DISTINCT + - 32 )
----
-25

skipif mysql # not compatible
query I rowsort label-1252
SELECT + 7 + SUM ( DISTINCT + - 32 )
----
-25

query I rowsort
SELECT DISTINCT + 99 * + 75
----
7425

query I rowsort
SELECT ALL ( + - 68 ) + - 55 AS col0
----
-123

query I rowsort
SELECT ALL + 81 * - 56
----
-4536

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

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

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

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

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

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

query II rowsort
SELECT - 99, + ( 88 ) AS col1
----
-99
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT 99 - - 72 + + SUM( - 68 )
----
103

skipif mysql # not compatible
query I rowsort label-1260
SELECT 99 - - 72 + + SUM ( - 68 )
----
103

query II rowsort
SELECT DISTINCT 3 AS col1, 19 AS col0
----
3
19

query I rowsort
SELECT ALL + 9 - + + 54
----
-45

query I rowsort
SELECT 18 + - 21 + 54
----
51

query I rowsort
SELECT ALL + NULLIF ( 69, 44 + + 57 ) - 42
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT DISTINCT - 28 DIV + 29 * - 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT - 28 / + 29 * - 9 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1266
SELECT - + 74 * + CAST( + 56 AS SIGNED ) * + 43 - 28
----
-178220

skipif mysql # not compatible
query I rowsort label-1266
SELECT - + 74 * + CAST ( + 56 AS INTEGER ) * + 43 - 28
----
-178220

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT + CASE - + 72 WHEN - - 84 - - ( 28 ) THEN 92 + COUNT( * ) WHEN 80 THEN NULL END * - SUM( DISTINCT NULLIF ( 0, + 52 * + - 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT + CASE - + 72 WHEN - - 84 - - ( 28 ) THEN 92 + COUNT ( * ) WHEN 80 THEN NULL END * - SUM ( DISTINCT NULLIF ( 0, + 52 * + - 42 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT + COALESCE ( - SUM( - 94 ), + 59 - + ( - + MAX( DISTINCT - 46 ) ) + - 71 * COUNT( * ) ) + + 50 + + - COUNT( - + 73 ) * - - 66
----
78

skipif mysql # not compatible
query I rowsort label-1268
SELECT + COALESCE ( - SUM ( - 94 ), + 59 - + ( - + MAX ( DISTINCT - 46 ) ) + - 71 * COUNT ( * ) ) + + 50 + + - COUNT ( - + 73 ) * - - 66
----
78

query I rowsort
SELECT - 91 + - 63 AS col1
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT 39 * + NULLIF ( MIN( ALL - 5 ), + - CAST( NULL AS SIGNED ) * + 7 ) + - 19 * COUNT( * ) + MAX( - CAST( NULL AS SIGNED ) ) + + - 0 + + 71 + COUNT( * ) / 61 * - 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT 39 * + NULLIF ( MIN ( ALL - 5 ), + - CAST ( NULL AS INTEGER ) * + 7 ) + - 19 * COUNT ( * ) + MAX ( - CAST ( NULL AS INTEGER ) ) + + - 0 + + 71 + COUNT ( * ) / 61 * - 15 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT + NULLIF ( - MAX( DISTINCT 52 ), AVG ( + - 90 ) ) * - 8
----
416

skipif mysql # not compatible
query I rowsort label-1271
SELECT + NULLIF ( - MAX ( DISTINCT 52 ), AVG ( + - 90 ) ) * - 8
----
416

query I rowsort
SELECT 98 * 2
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1273
SELECT COUNT( * ) * - 95 + + SUM( + - CAST( NULL AS SIGNED ) ), 79 * - 63 - COUNT( * ) * + COUNT( * ) AS col0
----
NULL
-4978

skipif mysql # not compatible
query II rowsort label-1273
SELECT COUNT ( * ) * - 95 + + SUM ( + - CAST ( NULL AS INTEGER ) ), 79 * - 63 - COUNT ( * ) * + COUNT ( * ) AS col0
----
NULL
-4978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1274
SELECT 29 DIV 85 AS col0, COALESCE ( 22, COUNT( * ) + + 93 + - COALESCE ( + 25, - 83, + ( 36 ) * + ( + 61 ) - - + 39 * 20 ) ) * + - 69 * + COUNT( * ) + - COUNT( * ) + + + COUNT( * ) - - COUNT( * ) * + ( - AVG ( ALL - 5 ) ) * - NULLIF ( - CAST( NULL AS SIGNED ), 79 * - - 35 + - 23 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1274
SELECT 29 / 85 AS col0, COALESCE ( 22, COUNT ( * ) + + 93 + - COALESCE ( + 25, - 83, + ( 36 ) * + ( + 61 ) - - + 39 * 20 ) ) * + - 69 * + COUNT ( * ) + - COUNT ( * ) + + + COUNT ( * ) - - COUNT ( * ) * + ( - AVG ( ALL - 5 ) ) * - NULLIF ( - CAST ( NULL AS INTEGER ), 79 * - - 35 + - 23 )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT - 57 + + 89 - ( + ( 23 ) ) * - 29 * + COUNT( * ) * - COUNT( * ) col0
----
-635

skipif mysql # not compatible
query I rowsort label-1275
SELECT - 57 + + 89 - ( + ( 23 ) ) * - 29 * + COUNT ( * ) * - COUNT ( * ) col0
----
-635

query I rowsort
SELECT ALL + 43 * + - 83 AS col0
----
-3569

query I rowsort
SELECT 77 + + 79 + ( + 51 ) * - - 54 AS col1
----
2910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1278
SELECT - 56, 96 - + CASE + COUNT( 96 ) WHEN 89 - - 99 THEN COALESCE ( - 17, + 20, - 16, SUM( DISTINCT + CAST( - 59 AS SIGNED ) ) ) WHEN + 96 THEN - 70 END * + 15 AS col1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-1278
SELECT - 56, 96 - + CASE + COUNT ( 96 ) WHEN 89 - - 99 THEN COALESCE ( - 17, + 20, - 16, SUM ( DISTINCT + CAST ( - 59 AS INTEGER ) ) ) WHEN + 96 THEN - 70 END * + 15 AS col1
----
-56
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT DISTINCT - + COUNT( * ) col2, - 22 * - - 34 * 76 + ( - COUNT( DISTINCT - 58 ) )
----
-1
-56849

skipif mysql # not compatible
query II rowsort label-1279
SELECT DISTINCT - + COUNT ( * ) col2, - 22 * - - 34 * 76 + ( - COUNT ( DISTINCT - 58 ) )
----
-1
-56849

query I rowsort
SELECT + COALESCE ( + 53, - 4 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1281
SELECT DISTINCT - 29 AS col0, - CAST( - ( + 7 ) AS SIGNED ) AS col2
----
-29
7

skipif mysql # not compatible
query II rowsort label-1281
SELECT DISTINCT - 29 AS col0, - CAST ( - ( + 7 ) AS INTEGER ) AS col2
----
-29
7

query I rowsort
SELECT + 50 * - 78 col0
----
-3900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT 94 / - CASE + ( - 50 ) WHEN + 62 + + COUNT( * ) THEN + + 88 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT 94 / - CASE + ( - 50 ) WHEN + 62 + + COUNT ( * ) THEN + + 88 ELSE NULL END AS col1
----
NULL

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

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

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

query I rowsort
SELECT 77 * + 70
----
5390

query I rowsort
SELECT ALL 37 * + - 11 * 10
----
-4070

onlyif mysql # aggregate syntax: 
query II rowsort label-1289
SELECT COUNT( * ) * + 33 * + 67 + + - ( + + 71 ), - 10 + + - 74 AS col1
----
2140
-84

skipif mysql # not compatible
query II rowsort label-1289
SELECT COUNT ( * ) * + 33 * + 67 + + - ( + + 71 ), - 10 + + - 74 AS col1
----
2140
-84

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

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT - COUNT ( * ) + 14 AS col1
----
13

query I rowsort
SELECT DISTINCT - 67 * 11 AS col1
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL - SUM( - + 0 ) + + ( - 51 ) - - + SUM( 22 )
----
-29

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL - SUM ( - + 0 ) + + ( - 51 ) - - + SUM ( 22 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT + 95 + 97 * + - COUNT( * ) * + 1 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + 95 + 97 * + - COUNT ( * ) * + 1 AS col0
----
-2

query I rowsort
SELECT 77 - + + ( - + 43 ) * + 78 + 14 + 17 AS col0
----
3462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1295
SELECT 22 DIV + - COUNT( + 32 )
----
-22

skipif mysql # not compatible
query I rowsort label-1295
SELECT 22 / + - COUNT ( + 32 )
----
-22

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

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

query I rowsort
SELECT 93 * + 20 AS col1
----
1860

query I rowsort
SELECT 28 + + + 79 * + 54
----
4294

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT ALL + MIN( DISTINCT 72 ) * + 67 AS col2
----
4824

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL + MIN ( DISTINCT 72 ) * + 67 AS col2
----
4824

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT - COUNT( ALL + + 2 ) - - + 88 * - 29 - - - 21 col0
----
-2574

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT - COUNT ( ALL + + 2 ) - - + 88 * - 29 - - - 21 col0
----
-2574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1301
SELECT DISTINCT COALESCE ( + CAST( 92 AS SIGNED ), - COUNT( * ), 5, + MIN( - COALESCE ( - NULLIF ( - + 27, + 86 ), + 20 ) ) ) - 99 / + + 73 * CASE - + 24 WHEN - 59 / 30 THEN + + 81 * - COUNT( * ) + - - 16 WHEN 18 THEN NULL END * - + 97 / 27 - + 51 + + - CASE CAST( NULL AS SIGNED ) WHEN 58 THEN 87 WHEN - 9 THEN + + 13 ELSE - 54 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT COALESCE ( + CAST ( 92 AS INTEGER ), - COUNT ( * ), 5, + MIN ( - COALESCE ( - NULLIF ( - + 27, + 86 ), + 20 ) ) ) - 99 / + + 73 * CASE - + 24 WHEN - 59 / 30 THEN + + 81 * - COUNT ( * ) + - - 16 WHEN 18 THEN NULL END * - + 97 / 27 - + 51 + + - CASE CAST ( NULL AS INTEGER ) WHEN 58 THEN 87 WHEN - 9 THEN + + 13 ELSE - 54 END col2
----
NULL

query I rowsort
SELECT ALL - 50 * + ( - 26 )
----
1300

query I rowsort
SELECT DISTINCT + - 5 - + - 69 AS col2
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT DISTINCT - MIN( DISTINCT - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT - MIN ( DISTINCT - 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT + MIN( DISTINCT 73 ) * - 42
----
-3066

skipif mysql # not compatible
query I rowsort label-1306
SELECT + MIN ( DISTINCT 73 ) * - 42
----
-3066

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - 55 * 66 + - 8 * - 62 + - 74 + COUNT( * )
----
-3207

skipif mysql # not compatible
query I rowsort label-1307
SELECT - 55 * 66 + - 8 * - 62 + - 74 + COUNT ( * )
----
-3207

onlyif mysql # aggregate syntax: 
query II rowsort label-1308
SELECT - 4 * + COUNT( * ) AS col1, + 71 col2
----
-4
71

skipif mysql # not compatible
query II rowsort label-1308
SELECT - 4 * + COUNT ( * ) AS col1, + 71 col2
----
-4
71

query I rowsort
SELECT ALL - 71 * 57 - + 27
----
-4074

query I rowsort
SELECT ALL 25 + + 14 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL 37 + NULLIF ( COUNT( * ), + 6 * - 63 + + - SUM( ALL - - 75 ) + - 10 / 44 ) + 61 * - 66 * - COUNT( * ) + 35 + + SUM( + 47 )
----
4146

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL 37 + NULLIF ( COUNT ( * ), + 6 * - 63 + + - SUM ( ALL - - 75 ) + - 10 / 44 ) + 61 * - 66 * - COUNT ( * ) + 35 + + SUM ( + 47 )
----
4146

query I rowsort
SELECT DISTINCT 96 * - + 71 AS col2
----
-6816

onlyif mysql # aggregate syntax: 
query II rowsort label-1313
SELECT ALL - 58, + ( - - SUM( ALL + + ( - 74 ) ) ) col1
----
-58
-74

skipif mysql # not compatible
query II rowsort label-1313
SELECT ALL - 58, + ( - - SUM ( ALL + + ( - 74 ) ) ) col1
----
-58
-74

query I rowsort
SELECT ALL 89 + - + 24 AS col0
----
65

query I rowsort
SELECT - 77 - + - ( - 35 ) AS col2
----
-112

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

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

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

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

query I rowsort
SELECT - 53 - 77
----
-130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT - 18 + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-1320
SELECT - 18 + COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT DISTINCT 82 * COUNT( * ) * - 89 * + 2
----
-14596

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT 82 * COUNT ( * ) * - 89 * + 2
----
-14596

query II rowsort
SELECT ALL 98 AS col0, 39 + 4
----
98
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT ALL CASE + 34 WHEN AVG ( + - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 98 THEN NULL ELSE - - 73 * 53 * - 70 END AS col2
----
-270830

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL CASE + 34 WHEN AVG ( + - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 98 THEN NULL ELSE - - 73 * 53 * - 70 END AS col2
----
-270830

query I rowsort
SELECT - 11 * - - 83 AS col1
----
-913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1325
SELECT ALL SUM( CAST( + CAST( 13 AS SIGNED ) AS SIGNED ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL SUM ( CAST ( + CAST ( 13 AS INTEGER ) AS INTEGER ) ) AS col1
----
13

query I rowsort
SELECT + 99 + + 74 + + 71 AS col1
----
244

query I rowsort
SELECT - NULLIF ( + + 13, - + 70 )
----
-13

query I rowsort
SELECT - 50 + + 78 AS col2
----
28

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

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

query II rowsort
SELECT - + 35 col1, 40 col0
----
-35
40

query I rowsort
SELECT - - 82 + - + 4 + 16 AS col1
----
94

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

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

query I rowsort
SELECT - + 7 + - + 60 - - 35 AS col0
----
-32

query I rowsort
SELECT ALL - 27 + + 43 * 50 AS col0
----
2123

query I rowsort
SELECT DISTINCT 65 * 83 + - + 87 * COALESCE ( + 95, - NULLIF ( - 50, + 82 ) ) AS col2
----
-2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT DISTINCT 48 * - CASE ( - MIN( 78 ) ) WHEN - - 23 THEN COALESCE ( - + ( + 1 ), + 78 ) + + COUNT( DISTINCT - 18 ) + COUNT( * ) * + 82 + - - CAST( - 78 AS SIGNED ) WHEN - 1 THEN NULL END * 95 + - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT 48 * - CASE ( - MIN ( 78 ) ) WHEN - - 23 THEN COALESCE ( - + ( + 1 ), + 78 ) + + COUNT ( DISTINCT - 18 ) + COUNT ( * ) * + 82 + - - CAST ( - 78 AS INTEGER ) WHEN - 1 THEN NULL END * 95 + - 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1337
SELECT - NULLIF ( + + 91, 80 ) DIV - 65 + + - 16 + + + 77 * + COUNT( * ) + - - MAX( 51 )
----
113

skipif mysql # not compatible
query I rowsort label-1337
SELECT - NULLIF ( + + 91, 80 ) / - 65 + + - 16 + + + 77 * + COUNT ( * ) + - - MAX ( 51 )
----
113

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1338
SELECT + - CAST( + 24 AS DECIMAL ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT + - CAST ( + 24 AS REAL ) + + CAST ( NULL AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT + 57 AS col1, 59 col1
----
57
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1341
SELECT ALL + 56 * NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), - 48 ) + - - 62 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL + 56 * NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), - 48 ) + - - 62 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT + - COUNT( * ) + + 29 + - - 13 + 25 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1342
SELECT + - COUNT ( * ) + + 29 + - - 13 + 25 AS col1
----
66

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

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

query I rowsort
SELECT ALL 13 * 51 + + - 52 + NULLIF ( - 19, + 22 ) - - 83 col2
----
675

query I rowsort
SELECT + ( - 41 ) * + + 52 * + 44 col2
----
-93808

query I rowsort
SELECT + COALESCE ( + 28, 18 * + 30 + 4 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1347
SELECT ALL CAST( NULL AS DECIMAL ) * + 53 + - 43 + + + 40 AS col0, + COUNT( * ) + 78
----
NULL
79

skipif mysql # not compatible
query II rowsort label-1347
SELECT ALL CAST ( NULL AS REAL ) * + 53 + - 43 + + + 40 AS col0, + COUNT ( * ) + 78
----
NULL
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1348
SELECT - CASE + COUNT( * ) WHEN - 93 DIV 76 THEN + CAST( NULL AS SIGNED ) ELSE - 3 - ( - 66 ) - 52 END DIV + 75 + - - 42
----
42

skipif mysql # not compatible
query I rowsort label-1348
SELECT - CASE + COUNT ( * ) WHEN - 93 / 76 THEN + CAST ( NULL AS INTEGER ) ELSE - 3 - ( - 66 ) - 52 END / + 75 + - - 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT CASE 42 WHEN - - COALESCE ( 98, - + 10, + - 95 * - 11 ) THEN + 56 * + + 56 + - 17 WHEN - - 45 * + 80 * - - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT CASE 42 WHEN - - COALESCE ( 98, - + 10, + - 95 * - 11 ) THEN + 56 * + + 56 + - 17 WHEN - - 45 * + 80 * - - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT + 30 + + 81
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT ALL COUNT( * ) * 56, - 50 * - 57 + + MAX( - 30 ) AS col2
----
56
2820

skipif mysql # not compatible
query II rowsort label-1351
SELECT ALL COUNT ( * ) * 56, - 50 * - 57 + + MAX ( - 30 ) AS col2
----
56
2820

query I rowsort
SELECT DISTINCT 6 * + + 38
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT + COUNT( * ) * ( - - 25 ) - + 45 + + + 43
----
23

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT + COUNT ( * ) * ( - - 25 ) - + 45 + + + 43
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT COUNT( + + 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1354
SELECT COUNT ( + + 28 ) AS col0
----
1

query II rowsort
SELECT DISTINCT COALESCE ( - 85, 14 * - - 11 - 21 + + 66 - 10 ), 95 AS col2
----
-85
95

query I rowsort
SELECT ALL CASE - - 40 WHEN + - 14 - 3 * - 25 THEN NULL ELSE + - ( + 20 ) + 60 END
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT 96 * COUNT( * ) * - 0 - - + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1357
SELECT 96 * COUNT ( * ) * - 0 - - + 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT - 5 + - 56 * 36 + - + COUNT( * )
----
-2022

skipif mysql # not compatible
query I rowsort label-1358
SELECT - 5 + - 56 * 36 + - + COUNT ( * )
----
-2022

query I rowsort
SELECT + + COALESCE ( 52, - + 50 + + + 8 + + 92 * + 78 * + 57 ) * + 70 AS col1
----
3640

onlyif mysql # aggregate syntax: 
query II rowsort label-1360
SELECT + + 78 - - 57 AS col1, COUNT( * )
----
135
1

skipif mysql # not compatible
query II rowsort label-1360
SELECT + + 78 - - 57 AS col1, COUNT ( * )
----
135
1

query I rowsort
SELECT ALL 93 + + + 79 * - 91 + + + 8 * 46 AS col0
----
-6728

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

query I rowsort
SELECT ALL - - ( 35 ) + - 29 * + 52
----
-1473

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1365
SELECT + - COALESCE ( - COUNT( * ), COUNT( * ) * - 67 + 55 * + - 48 ) DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1365
SELECT + - COALESCE ( - COUNT ( * ), COUNT ( * ) * - 67 + 55 * + - 48 ) / + 96 AS col2
----
0

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

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

query I rowsort
SELECT + CASE - ( - - ( - 57 ) ) WHEN 10 + 27 THEN NULL WHEN + + 47 * - + 5 THEN + 84 END col0
----
NULL

query I rowsort
SELECT - COALESCE ( - 93, + - 59 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT - COUNT( * ) * - 42 + 21 col1
----
63

skipif mysql # not compatible
query I rowsort label-1369
SELECT - COUNT ( * ) * - 42 + 21 col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1370
SELECT ALL 96 DIV 95 * - SUM( ALL 60 ) + + 29
----
-31

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL 96 / 95 * - SUM ( ALL 60 ) + + 29
----
-31

query II rowsort
SELECT ALL + 49 * - - 95 AS col2, 50 AS col0
----
4655
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1372
SELECT ALL 91 / - + 21 * - 21 * + 66 + + 15 * COUNT( * ) + - 4 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL 91 / - + 21 * - 21 * + 66 + + 15 * COUNT ( * ) + - 4 + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT + 59 * 12 / - 40 * - 36 * + CAST( NULL AS SIGNED ) + + + 19 + + 91 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT + 59 * 12 / - 40 * - 36 * + CAST ( NULL AS INTEGER ) + + + 19 + + 91 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT 3 * + COALESCE ( - 35, - ( - MAX( ALL 89 ) ) + - + 44 )
----
-105

skipif mysql # not compatible
query I rowsort label-1374
SELECT 3 * + COALESCE ( - 35, - ( - MAX ( ALL 89 ) ) + - + 44 )
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-1375
SELECT DISTINCT + 36 * - - NULLIF ( - 6, + COUNT( * ) / 87 + COUNT( * ) ) AS col1, - 19 + - 37 - 24 - - COUNT( * ) - - 98 - + 40 * MAX( DISTINCT - 82 ) * NULLIF ( - 85, - - 81 ) + - 27 * - 43 + - - COUNT( * ) + 15 * - 43 + 0
----
-216
-278264

skipif mysql # not compatible
query II rowsort label-1375
SELECT DISTINCT + 36 * - - NULLIF ( - 6, + COUNT ( * ) / 87 + COUNT ( * ) ) AS col1, - 19 + - 37 - 24 - - COUNT ( * ) - - 98 - + 40 * MAX ( DISTINCT - 82 ) * NULLIF ( - 85, - - 81 ) + - 27 * - 43 + - - COUNT ( * ) + 15 * - 43 + 0
----
-216
-278264

query I rowsort
SELECT 86 + 31 * + - ( + - 55 ) AS col2
----
1791

query I rowsort
SELECT 93 * + 88
----
8184

query I rowsort
SELECT COALESCE ( 52, + 26 * 95 * + 10 + + 70 ) * - 56 AS col1
----
-2912

query I rowsort
SELECT 2 - 31
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT - 21 * - - MIN( ALL - - 36 ) + ( 28 ) AS col2
----
-728

skipif mysql # not compatible
query I rowsort label-1380
SELECT - 21 * - - MIN ( ALL - - 36 ) + ( 28 ) AS col2
----
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT ALL ( - 96 ) DIV 24 * - + 79 AS col1
----
316

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL ( - 96 ) / 24 * - + 79 AS col1
----
316

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1383
SELECT DISTINCT - CAST( - - 5 AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT - CAST ( - - 5 AS INTEGER ) AS col1
----
-5

query II rowsort
SELECT 65 AS col0, 25
----
65
25

query I rowsort
SELECT ALL ( - - COALESCE ( + - CASE + 24 WHEN 65 THEN NULL ELSE - 67 END, 29 * 10 * + 81 + 55, - + 26 + 10 ) ) * - - 4 * + 1
----
268

query I rowsort
SELECT 1 * - + 97 + - 69 col2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT COUNT( * ) - - COUNT( * ) * SUM( - 94 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-1387
SELECT COUNT ( * ) - - COUNT ( * ) * SUM ( - 94 ) AS col0
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-1388
SELECT - 50, + 49 + 54 + + + 85 + + + 23 DIV 64 AS col1
----
-50
188

skipif mysql # not compatible
query II rowsort label-1388
SELECT - 50, + 49 + 54 + + + 85 + + + 23 / 64 AS col1
----
-50
188

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT 62 DIV + - 54
----
-1

skipif mysql # not compatible
query I rowsort label-1389
SELECT 62 / + - 54
----
-1

query I rowsort
SELECT ALL 22 + - - 10
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1391
SELECT ALL 38 DIV - + CAST( COALESCE ( + 50, - + 66, - - ( + 94 ) + + - 23 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 38 / - + CAST ( COALESCE ( + 50, - + 66, - - ( + 94 ) + + - 23 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT - COALESCE ( - 47, - 98 * - MAX( + 24 ) + 45 + - - COUNT( * ) + - MAX( + - 92 ) + - ( + NULLIF ( - MAX( - + 16 ), CASE 88 WHEN + - ( + 57 ) + + - 5 * - 55 + 47 * + ( 33 ) + - - ( + ( - - ( - 50 ) ) ) * 32 THEN - COUNT( * ) ELSE - 27 END + - - 45 ) ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1392
SELECT - COALESCE ( - 47, - 98 * - MAX ( + 24 ) + 45 + - - COUNT ( * ) + - MAX ( + - 92 ) + - ( + NULLIF ( - MAX ( - + 16 ), CASE 88 WHEN + - ( + 57 ) + + - 5 * - 55 + 47 * + ( 33 ) + - - ( + ( - - ( - 50 ) ) ) * 32 THEN - COUNT ( * ) ELSE - 27 END + - - 45 ) ) ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT ALL + CAST( + 1 AS SIGNED ) + + 27 * + 75 AS col1
----
2026

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + CAST ( + 1 AS INTEGER ) + + 27 * + 75 AS col1
----
2026

query I rowsort
SELECT ALL 82 + - 34 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1395
SELECT + NULLIF ( + ( 52 ), - - 45 + + 38 + + + 71 * - - 64 * 18 / 10 / 25 / + 7 * - 28 + - MAX( + 89 ) / - + 59 ) AS col2, 42 AS col2
----
52
42

skipif mysql # not compatible
query II rowsort label-1395
SELECT + NULLIF ( + ( 52 ), - - 45 + + 38 + + + 71 * - - 64 * 18 / 10 / 25 / + 7 * - 28 + - MAX ( + 89 ) / - + 59 ) AS col2, 42 AS col2
----
52
42

query I rowsort
SELECT + 74 + + - 89
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT 77 + - 95 * 54 / - COALESCE ( + 60, - COUNT( * ) ) * 77 + - CASE - 41 WHEN - 36 THEN 28 / - 54 ELSE - 80 + + 54 END * - CASE + 52 WHEN + 22 THEN + 90 WHEN 43 * + 13 THEN NULL ELSE NULL END - + COUNT( * ) + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT 77 + - 95 * 54 / - COALESCE ( + 60, - COUNT ( * ) ) * 77 + - CASE - 41 WHEN - 36 THEN 28 / - 54 ELSE - 80 + + 54 END * - CASE + 52 WHEN + 22 THEN + 90 WHEN 43 * + 13 THEN NULL ELSE NULL END - + COUNT ( * ) + + 65
----
NULL

query I rowsort
SELECT - 57 * - 20 AS col0
----
1140

query I rowsort
SELECT ALL 27 + + - 9
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-1400
SELECT - 10 + + - ( 88 ) AS col2, 56 DIV + - 85 AS col1
----
-98
0

skipif mysql # not compatible
query II rowsort label-1400
SELECT - 10 + + - ( 88 ) AS col2, 56 / + - 85 AS col1
----
-98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT 70 * 66 * - ( + SUM( ALL + - 33 ) ) col0
----
152460

skipif mysql # not compatible
query I rowsort label-1401
SELECT 70 * 66 * - ( + SUM ( ALL + - 33 ) ) col0
----
152460

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT ALL 84 DIV + 90 + 90
----
90

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL 84 / + 90 + 90
----
90

query I rowsort
SELECT DISTINCT - COALESCE ( + 5, 50 * + 87 )
----
-5

query II rowsort
SELECT 47 + + 85 + + + 49 col2, 78
----
181
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1405
SELECT + 72 / + + 43 * + + 58 + - 48 * 36 / + - 59 - - 35 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 72 / + + 43 * + + 58 + - 48 * 36 / + - 59 - - 35 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + ( - + 12 ) + + - 86 + ( + 18 ) + - - 41 AS col1
----
-39

query II rowsort
SELECT ALL - 41 col0, + 39 col2
----
-41
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT 12 + + + 77 DIV - 22 + + - 38 DIV 81
----
9

skipif mysql # not compatible
query I rowsort label-1408
SELECT 12 + + + 77 / - 22 + + - 38 / 81
----
9

query I rowsort
SELECT 22 + + 48
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1410
SELECT ALL - MAX( DISTINCT 32 ) DIV - 13 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL - MAX ( DISTINCT 32 ) / - 13 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT 93 DIV + + 5
----
18

skipif mysql # not compatible
query I rowsort label-1411
SELECT 93 / + + 5
----
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1412
SELECT 28 * - 38 * 95 * CAST( ( - + CAST( NULL AS SIGNED ) ) AS DECIMAL ) * - AVG ( + + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT 28 * - 38 * 95 * CAST ( ( - + CAST ( NULL AS INTEGER ) ) AS REAL ) * - AVG ( + + 63 )
----
NULL

query I rowsort
SELECT 12 + + 79
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT ALL 24 DIV + + 9
----
2

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL 24 / + + 9
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL - CASE + + 48 WHEN 54 THEN NULL WHEN + + 28 * 34 - + 40 / + COUNT( * ) THEN - + 92 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL - CASE + + 48 WHEN 54 THEN NULL WHEN + + 28 * 34 - + 40 / + COUNT ( * ) THEN - + 92 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1416
SELECT ALL - CASE - + ( + 93 ) WHEN - ( + 78 ) * - CAST( - - 8 AS SIGNED ) * + + NULLIF ( - COUNT( * ), + 84 ) * - + 1 THEN - 25 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL - CASE - + ( + 93 ) WHEN - ( + 78 ) * - CAST ( - - 8 AS INTEGER ) * + + NULLIF ( - COUNT ( * ), + 84 ) * - + 1 THEN - 25 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1417
SELECT COUNT( - 86 ) * - + 74 * 55 DIV - + 54 + + + SUM( ALL + 88 ) + + 86 AS col0
----
249

skipif mysql # not compatible
query I rowsort label-1417
SELECT COUNT ( - 86 ) * - + 74 * 55 / - + 54 + + + SUM ( ALL + 88 ) + + 86 AS col0
----
249

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1418
SELECT ALL - 73 AS col1, MIN( ALL - - 46 ) * 7 - + 67 + 66 + 41 - - 6 DIV + 35 + - + 81
----
-73
281

skipif mysql # not compatible
query II rowsort label-1418
SELECT ALL - 73 AS col1, MIN ( ALL - - 46 ) * 7 - + 67 + 66 + 41 - - 6 / + 35 + - + 81
----
-73
281

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

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

query II rowsort
SELECT 7 AS col2, + 34 col1
----
7
34

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

skipif mysql # not compatible
query I rowsort label-1421
SELECT 18 * + + COUNT ( - 42 ) AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1422
SELECT CASE + 13 WHEN + 31 * - 54 + - CAST( - COUNT( * ) AS SIGNED ) - 23 + 22 * + 21 + 44 / + 30 * - 38 / CASE + COUNT( * ) WHEN - + ( + 48 ) THEN + + 95 / + + 21 ELSE - - MAX( ALL 35 ) END THEN NULL ELSE - 95 END * + 29 AS col0
----
-2755

skipif mysql # not compatible
query I rowsort label-1422
SELECT CASE + 13 WHEN + 31 * - 54 + - CAST ( - COUNT ( * ) AS INTEGER ) - 23 + 22 * + 21 + 44 / + 30 * - 38 / CASE + COUNT ( * ) WHEN - + ( + 48 ) THEN + + 95 / + + 21 ELSE - - MAX ( ALL 35 ) END THEN NULL ELSE - 95 END * + 29 AS col0
----
-2755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1423
SELECT DISTINCT + CAST( - NULLIF ( COUNT( * ), + 49 * + 79 + - 50 ) AS SIGNED ) + 26 + + 39 - + - MIN( ALL - 15 ) * MIN( + 28 ) col2, - MAX( 83 ) AS col0
----
-356
-83

skipif mysql # not compatible
query II rowsort label-1423
SELECT DISTINCT + CAST ( - NULLIF ( COUNT ( * ), + 49 * + 79 + - 50 ) AS INTEGER ) + 26 + + 39 - + - MIN ( ALL - 15 ) * MIN ( + 28 ) col2, - MAX ( 83 ) AS col0
----
-356
-83

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

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

query II rowsort
SELECT 56, + 0 AS col1
----
56
0

query I rowsort
SELECT ALL - 6 + - 12 col1
----
-18

query I rowsort
SELECT DISTINCT - COALESCE ( - + 9, - 93 ) col2
----
9

query II rowsort
SELECT ALL - 8, 7 AS col0
----
-8
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1429
SELECT DISTINCT - COUNT( ALL + 95 ) + - - 88 + - 76 + + COALESCE ( 91, COUNT( * ) * - CAST( + 33 AS SIGNED ) + + COUNT( * ) - ( + CAST( - - 30 AS SIGNED ) ) )
----
102

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT - COUNT ( ALL + 95 ) + - - 88 + - 76 + + COALESCE ( 91, COUNT ( * ) * - CAST ( + 33 AS INTEGER ) + + COUNT ( * ) - ( + CAST ( - - 30 AS INTEGER ) ) )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL + - 4 + + + COUNT( * ) * - 26
----
-30

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL + - 4 + + + COUNT ( * ) * - 26
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT 36 * + - 84 * - ( COUNT( * ) ) AS col2
----
3024

skipif mysql # not compatible
query I rowsort label-1431
SELECT 36 * + - 84 * - ( COUNT ( * ) ) AS col2
----
3024

query II rowsort
SELECT ALL - CASE + 90 WHEN + 14 THEN 87 + 36 ELSE NULL END + - 27 + - 34 AS col2, + 28 + - 92 * + 73 col0
----
NULL
-6688

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT 54 DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1433
SELECT 54 / 88 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( - 67 ) + 72 AS col2
----
139

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

skipif mysql # not compatible
query II rowsort label-1435
SELECT + 75, COUNT ( * ) AS col1
----
75
1

query I rowsort
SELECT ALL + 73 + + + 67
----
140

query I rowsort
SELECT ALL 16 + - ( + - 27 ) col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT DISTINCT - + 50 * - 56 * - + 69 * + - 20 * + + COUNT( * ) + - 81 + + COUNT( * ) * 44 + COUNT( + 94 )
----
3863964

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT - + 50 * - 56 * - + 69 * + - 20 * + + COUNT ( * ) + - 81 + + COUNT ( * ) * 44 + COUNT ( + 94 )
----
3863964

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT ( + 91 ) DIV + 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT ( + 91 ) / + 81 AS col2
----
1

query I rowsort
SELECT ALL 61 - + 53 + - 74 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1441
SELECT - + 49 AS col0, 1 * + - 21 * + ( - CAST( + 45 AS SIGNED ) ) * + - 44 * - + 82 - + - 29 + COUNT( * ) AS col1
----
-49
3409590

skipif mysql # not compatible
query II rowsort label-1441
SELECT - + 49 AS col0, 1 * + - 21 * + ( - CAST ( + 45 AS INTEGER ) ) * + - 44 * - + 82 - + - 29 + COUNT ( * ) AS col1
----
-49
3409590

query I rowsort
SELECT + + 94 * + 2
----
188

query II rowsort
SELECT - + 95 AS col2, 12
----
-95
12

query I rowsort
SELECT ALL 27 - - + 60
----
87

query I rowsort
SELECT + 25 * - + ( 15 )
----
-375

query I rowsort
SELECT - 31 * 56 AS col0
----
-1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1447
SELECT CASE + COALESCE ( + - 50, - COUNT( * ), + CAST( - + CASE - + COALESCE ( - 30, - 4 * 52 + + MIN( CAST( NULL AS DECIMAL ) ), + 20 * - - AVG ( + 9 ) * - - 20 + - COALESCE ( + - 60, + 29, - + 15 + - + 82 / 28 / + COUNT( + 0 ) + - + CAST( NULL AS SIGNED ) ) + + 4 / 63 * - 69 + + 55 * - 68 + 22 + + COUNT( * ), ( - CAST( - - 0 AS SIGNED ) ) - - + SUM( + - 90 ) / - + NULLIF ( COUNT( * ), + - NULLIF ( CAST( NULL AS SIGNED ), + 88 ) + - 40 ) ) WHEN 42 THEN 33 WHEN + AVG ( DISTINCT + + COALESCE ( 5, + 55 ) ) / 96 + + 74 THEN 10 ELSE NULL END AS DECIMAL ), 89 * - 10 ) WHEN 90 * + 98 THEN - 13 + - NULLIF ( - 11, - 73 * COALESCE ( + 87, + 13 * + 63 ) + - COALESCE ( 51 + + CASE COUNT( * ) WHEN CAST( 48 AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN + 39 ELSE - 23 * + SUM( - 30 ) END, 94 ) * + 1 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT CASE + COALESCE ( + - 50, - COUNT ( * ), + CAST ( - + CASE - + COALESCE ( - 30, - 4 * 52 + + MIN ( CAST ( NULL AS REAL ) ), + 20 * - - AVG ( + 9 ) * - - 20 + - COALESCE ( + - 60, + 29, - + 15 + - + 82 / 28 / + COUNT ( + 0 ) + - + CAST ( NULL AS INTEGER ) ) + + 4 / 63 * - 69 + + 55 * - 68 + 22 + + COUNT ( * ), ( - CAST ( - - 0 AS INTEGER ) ) - - + SUM ( + - 90 ) / - + NULLIF ( COUNT ( * ), + - NULLIF ( CAST ( NULL AS INTEGER ), + 88 ) + - 40 ) ) WHEN 42 THEN 33 WHEN + AVG ( DISTINCT + + COALESCE ( 5, + 55 ) ) / 96 + + 74 THEN 10 ELSE NULL END AS REAL ), 89 * - 10 ) WHEN 90 * + 98 THEN - 13 + - NULLIF ( - 11, - 73 * COALESCE ( + 87, + 13 * + 63 ) + - COALESCE ( 51 + + CASE COUNT ( * ) WHEN CAST ( 48 AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN + 39 ELSE - 23 * + SUM ( - 30 ) END, 94 ) * + 1 ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 54 * + 23, + 91 AS col1
----
1242
91

query I rowsort
SELECT DISTINCT 83 * + 60 col2
----
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT + 95 * + MIN( DISTINCT - + ( - - 39 ) ) AS col2
----
-3705

skipif mysql # not compatible
query I rowsort label-1450
SELECT + 95 * + MIN ( DISTINCT - + ( - - 39 ) ) AS col2
----
-3705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1451
SELECT + NULLIF ( + CAST( 22 AS SIGNED ), - COUNT( * ) * + + SUM( ALL 46 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1451
SELECT + NULLIF ( + CAST ( 22 AS INTEGER ), - COUNT ( * ) * + + SUM ( ALL 46 ) ) AS col2
----
22

query I rowsort
SELECT DISTINCT 18 * - ( + 97 )
----
-1746

query II rowsort
SELECT - 13 * - NULLIF ( + + COALESCE ( - 32, + + 38, - 47 * + 94 ), - 10 ) * - + NULLIF ( + 98, - - 10 * - + 12 * - 3 * + 48 ) + + - 94, 47 AS col1
----
40674
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL + 29 * COUNT( * ) + - ( + 77 )
----
-48

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL + 29 * COUNT ( * ) + - ( + 77 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1455
SELECT 37 DIV + 85 + - - 82 col0
----
82

skipif mysql # not compatible
query I rowsort label-1455
SELECT 37 / + 85 + - - 82 col0
----
82

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

query I rowsort
SELECT + NULLIF ( 49, + 68 + 11 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT + 35 + - MIN( ALL - + 88 ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-1458
SELECT + 35 + - MIN ( ALL - + 88 ) AS col0
----
123

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

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + - 68 + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT ALL - 35 * - COUNT( * ) + 47
----
82

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL - 35 * - COUNT ( * ) + 47
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT DISTINCT CASE - + 52 WHEN - 90 THEN NULL ELSE - ( COALESCE ( 27, - 54 + - 23 ) ) + - - 77 END DIV - 30 + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT CASE - + 52 WHEN - 90 THEN NULL ELSE - ( COALESCE ( 27, - 54 + - 23 ) ) + - - 77 END / - 30 + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL - COALESCE ( - COUNT( ALL + 44 ), + 2, 67 ) * COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL - COALESCE ( - COUNT ( ALL + 44 ), + 2, 67 ) * COUNT ( * ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT - + COALESCE ( - - 20, - 42 ) * - 0 AS col0
----
0

query I rowsort
SELECT - CASE + - 23 WHEN - 49 - - NULLIF ( - 21, + 90 ) + + - 13 THEN + 68 END AS col1
----
NULL

query I rowsort
SELECT ALL ( - 45 ) col2
----
-45

query I rowsort
SELECT DISTINCT - NULLIF ( + - 11, - 94 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT ALL - CAST( - - 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - CAST ( - - 53 AS INTEGER )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT ALL 45 * + 83 + + 64 * + COUNT( * ) * + - CAST( NULL AS SIGNED ) + - - 20 * + - MIN( - ( - 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL 45 * + 83 + + 64 * + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - - 20 * + - MIN ( - ( - 65 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - CASE - - ( + 65 ) WHEN - - CASE 3 WHEN - 64 * - 22 THEN + COUNT( ALL 69 ) ELSE NULL END THEN NULL WHEN - COUNT( DISTINCT ( + + 54 ) ) THEN - AVG ( DISTINCT + - 52 ) + + ( - 63 ) * 99 / + ( 11 ) + + ( + 90 ) WHEN ( - + ( 65 ) ) * - 49 THEN NULL WHEN - 48 THEN - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1469
SELECT - CASE - - ( + 65 ) WHEN - - CASE 3 WHEN - 64 * - 22 THEN + COUNT ( ALL 69 ) ELSE NULL END THEN NULL WHEN - COUNT ( DISTINCT ( + + 54 ) ) THEN - AVG ( DISTINCT + - 52 ) + + ( - 63 ) * 99 / + ( 11 ) + + ( + 90 ) WHEN ( - + ( 65 ) ) * - 49 THEN NULL WHEN - 48 THEN - 66 END
----
NULL

query II rowsort
SELECT + 33 * + 30 col1, 89 AS col0
----
990
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - 72 + + MIN( DISTINCT + 66 ) + + 4 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1471
SELECT - 72 + + MIN ( DISTINCT + 66 ) + + 4 AS col2
----
-2

query I rowsort
SELECT ALL - + 72 * 95 + + 92 AS col2
----
-6748

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

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

query I rowsort
SELECT ALL + 95 * + 4 col0
----
380

onlyif mysql # aggregate syntax: 
query II rowsort label-1475
SELECT + 19 + MIN( ALL + 55 ) AS col0, ( - + 70 )
----
74
-70

skipif mysql # not compatible
query II rowsort label-1475
SELECT + 19 + MIN ( ALL + 55 ) AS col0, ( - + 70 )
----
74
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1476
SELECT ALL - 32 * COUNT( * ) * 19, 45 * 22 col0
----
-608
990

skipif mysql # not compatible
query II rowsort label-1476
SELECT ALL - 32 * COUNT ( * ) * 19, 45 * 22 col0
----
-608
990

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

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

query I rowsort
SELECT DISTINCT - 23 * + 80
----
-1840

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT ALL ( + 29 ) DIV - + 66
----
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL ( + 29 ) / - + 66
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT DISTINCT - 1 DIV + 60 + ( - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT - 1 / + 60 + ( - 57 ) AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT ALL + 18 DIV 6 + 10 * + + ( - + 26 ) + - - 95
----
-162

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL + 18 / 6 + 10 * + + ( - + 26 ) + - - 95
----
-162

query I rowsort
SELECT + 35 * - 20 AS col0
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT + NULLIF ( COUNT( ALL + - 61 ), - + 85 / + + 58 + - 36 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1484
SELECT + NULLIF ( COUNT ( ALL + - 61 ), - + 85 / + + 58 + - 36 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1485
SELECT CAST( + + NULLIF ( - 16, + COUNT( * ) * 91 * 70 ) AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1485
SELECT CAST ( + + NULLIF ( - 16, + COUNT ( * ) * 91 * 70 ) AS INTEGER ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT DISTINCT SUM( 5 ) * + 41
----
205

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT SUM ( 5 ) * + 41
----
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1487
SELECT ALL 83 DIV - 11 + + SUM( DISTINCT - - 49 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL 83 / - 11 + + SUM ( DISTINCT - - 49 ) AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT ALL 89 DIV + ( - - 54 ) + + 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL 89 / + ( - - 54 ) + + 80 AS col1
----
81

query I rowsort
SELECT + 5 * - 30
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT ALL - 91 DIV - + ( - ( - 38 ) ) + 19
----
21

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL - 91 / - + ( - ( - 38 ) ) + 19
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT DISTINCT COALESCE ( + 24, + 52, 65 * + 30 ) * + 14 AS col1, 90 * COUNT( * )
----
336
90

skipif mysql # not compatible
query II rowsort label-1491
SELECT DISTINCT COALESCE ( + 24, + 52, 65 * + 30 ) * + 14 AS col1, 90 * COUNT ( * )
----
336
90

query I rowsort
SELECT ALL 64 * 2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT + 69 * SUM( DISTINCT 1 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1493
SELECT + 69 * SUM ( DISTINCT 1 ) AS col0
----
69

query II rowsort
SELECT 45 AS col1, 27 AS col0
----
45
27

query I rowsort
SELECT - + 53 + - - ( ( + 58 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL + + MIN( 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL + + MIN ( 27 ) AS col1
----
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT ALL + ( - CASE + + 67 WHEN + 15 THEN + + 10 + 22 ELSE + 91 END ) DIV - 40 + + + ( - - 82 ) col1
----
84

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL + ( - CASE + + 67 WHEN + 15 THEN + + 10 + 22 ELSE + 91 END ) / - 40 + + + ( - - 82 ) col1
----
84

query I rowsort
SELECT - 3 * - 79
----
237

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

skipif mysql # not compatible
query I rowsort label-1500
SELECT - + MIN ( 21 )
----
-21

query I rowsort
SELECT 1 - + + 28
----
-27

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

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

query I rowsort
SELECT + 26 + 71 col2
----
97

query II rowsort
SELECT DISTINCT + 19 AS col2, + 60 + 96 * + - 21 * + 65 AS col0
----
19
-130980

query I rowsort
SELECT ALL - 71 * - + ( - 77 )
----
-5467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1506
SELECT + SUM( DISTINCT + 30 ) * + - COUNT( ALL - 80 ) * + 52 - + CAST( 66 AS SIGNED ) AS col2
----
-1626

skipif mysql # not compatible
query I rowsort label-1506
SELECT + SUM ( DISTINCT + 30 ) * + - COUNT ( ALL - 80 ) * + 52 - + CAST ( 66 AS INTEGER ) AS col2
----
-1626

query I rowsort
SELECT ALL + - 78 * - 49 * + 94 AS col2
----
359268

query II rowsort
SELECT 12 * 91 AS col1, - 55 * 40 col0
----
1092
-2200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1509
SELECT ALL - 36 + + 84 AS col1, COUNT( * ) * - - NULLIF ( + - 19, 49 ) * - 76 * + CAST( NULL AS SIGNED ) * - + 88 + - ( + 65 ) * - + 53 * NULLIF ( ( + + NULLIF ( + + 30, + 46 ) ), - - 66 ) col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1509
SELECT ALL - 36 + + 84 AS col1, COUNT ( * ) * - - NULLIF ( + - 19, 49 ) * - 76 * + CAST ( NULL AS INTEGER ) * - + 88 + - ( + 65 ) * - + 53 * NULLIF ( ( + + NULLIF ( + + 30, + 46 ) ), - - 66 ) col2
----
48
NULL

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

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL ( + + 47 ) * + COUNT ( * ) + + 81 AS col1
----
128

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT ALL + ( 96 ) DIV 55 + - - 8
----
9

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL + ( 96 ) / 55 + - - 8
----
9

query I rowsort
SELECT ALL - ( + 21 ) + + 87
----
66

query I rowsort
SELECT ALL + 46 * + 21 AS col1
----
966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT DISTINCT - CAST( AVG ( + 21 ) AS SIGNED ) + 92 + 54 + + ( - - 81 )
----
206

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT - CAST ( AVG ( + 21 ) AS INTEGER ) + 92 + 54 + + ( - - 81 )
----
206

query I rowsort
SELECT 27 - + 41 AS col0
----
-14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1518
SELECT ALL + CAST( NULL AS SIGNED ) * + AVG ( ALL ( - + 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL + CAST ( NULL AS INTEGER ) * + AVG ( ALL ( - + 36 ) )
----
NULL

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

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

query I rowsort
SELECT 72 - + - 74
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT - 72 DIV 28 + + + 59 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1521
SELECT - 72 / 28 + + + 59 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT MIN( DISTINCT - 10 ) * 36 AS col2
----
-360

skipif mysql # not compatible
query I rowsort label-1522
SELECT MIN ( DISTINCT - 10 ) * 36 AS col2
----
-360

onlyif mysql # DIV for integer division: 
query II rowsort label-1523
SELECT 52 * 25 + - 33 DIV - + 4, + 69 AS col2
----
1308
69

skipif mysql # not compatible
query II rowsort label-1523
SELECT 52 * 25 + - 33 / - + 4, + 69 AS col2
----
1308
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT CASE - + 79 WHEN 15 + COUNT( * ) THEN NULL WHEN + 91 * + + 26 THEN 36 * + 38 * - COALESCE ( + - 23, 58 ) + - + 50 END + + - 27 * - 42 * + AVG ( - + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT CASE - + 79 WHEN 15 + COUNT ( * ) THEN NULL WHEN + 91 * + + 26 THEN 36 * + 38 * - COALESCE ( + - 23, 58 ) + - + 50 END + + - 27 * - 42 * + AVG ( - + 94 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1525
SELECT ALL 82 * COUNT( * ) DIV + 69 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL 82 * COUNT ( * ) / + 69 AS col0
----
1

query I rowsort
SELECT - 52 + - 4 + - 74 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - SUM( ALL 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1527
SELECT - SUM ( ALL 46 ) AS col2
----
-46

query I rowsort
SELECT DISTINCT 39 * + - 44 * - + 73
----
125268

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT COUNT( * ) * - - 1 - COUNT( * ) + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT COUNT ( * ) * - - 1 - COUNT ( * ) + 58 AS col2
----
58

query I rowsort
SELECT + 27 * 53 + - 94 AS col1
----
1337

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1532
SELECT COALESCE ( COUNT( * ), - 92 DIV 0 + - - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-1532
SELECT COALESCE ( COUNT ( * ), - 92 / 0 + - - 43 )
----
1

query II rowsort
SELECT ( + + 77 ) + - ( + + 87 ) AS col1, 73
----
-10
73

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT 39 + + CASE + + 57 WHEN + MAX( - - 12 ) THEN NULL ELSE - ( - COUNT( * ) ) END * - - ( + + 86 ) - 93
----
32

skipif mysql # not compatible
query I rowsort label-1537
SELECT 39 + + CASE + + 57 WHEN + MAX ( - - 12 ) THEN NULL ELSE - ( - COUNT ( * ) ) END * - - ( + + 86 ) - 93
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT DISTINCT COUNT( ALL - + CAST( NULL AS SIGNED ) ) + 97 + + 27 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) + 97 + + 27 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT DISTINCT - + 5 + - COALESCE ( + - COUNT( * ), ( 91 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT - + 5 + - COALESCE ( + - COUNT ( * ), ( 91 ) )
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL + NULLIF ( COUNT( * ), + 66 ) + + ( + 91 ) + - - MAX( ALL + 62 )
----
154

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL + NULLIF ( COUNT ( * ), + 66 ) + + ( + 91 ) + - - MAX ( ALL + 62 )
----
154

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

query I rowsort
SELECT 37 - - 44 * + 42
----
1885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT DISTINCT 95 + - 54 + + COUNT( ALL - 57 ) - - + 51 DIV + + 94 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT 95 + - 54 + + COUNT ( ALL - 57 ) - - + 51 / + + 94 AS col1
----
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1546
SELECT DISTINCT + CAST( NULLIF ( 26, 46 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT + CAST ( NULLIF ( 26, 46 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - 8
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1547
SELECT ALL - NULLIF ( + - 93, - + 51 ) + + NULLIF ( - - 20, - 95 + - CAST( NULL AS DECIMAL ) - - 98 * + 90 ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - NULLIF ( + - 93, - + 51 ) + + NULLIF ( - - 20, - 95 + - CAST ( NULL AS REAL ) - - 98 * + 90 ) AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT 27 + + - 98 * - 67 + - CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
6592

skipif mysql # not compatible
query I rowsort label-1548
SELECT 27 + + - 98 * - 67 + - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
6592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL - 70 + + CASE ( + 70 ) WHEN + 65 + 54 / + - 79 THEN NULL WHEN - + CAST( NULL AS SIGNED ) + - + NULLIF ( 45, 88 ) THEN 65 * + 85 - + 68 WHEN + 57 THEN 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - 70 + + CASE ( + 70 ) WHEN + 65 + 54 / + - 79 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) + - + NULLIF ( 45, 88 ) THEN 65 * + 85 - + 68 WHEN + 57 THEN 58 ELSE NULL END
----
NULL

query II rowsort
SELECT 56 + + 38 * - - 59 AS col1, + 76 AS col2
----
2298
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT + 40 AS col2, + 28 * + 9 - - MAX( - 94 )
----
40
158

skipif mysql # not compatible
query II rowsort label-1551
SELECT + 40 AS col2, + 28 * + 9 - - MAX ( - 94 )
----
40
158

query I rowsort
SELECT NULLIF ( 76, - 57 ) AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1553
SELECT ALL + 16 DIV + MAX( 23 ), 73 AS col0
----
0
73

skipif mysql # not compatible
query II rowsort label-1553
SELECT ALL + 16 / + MAX ( 23 ), 73 AS col0
----
0
73

query I rowsort
SELECT 52 * + NULLIF ( - 87, - 2 ) AS col1
----
-4524

onlyif mysql # aggregate syntax: 
query II rowsort label-1555
SELECT ALL - NULLIF ( + 20, - + 65 ), - COUNT( * ) col2
----
-20
-1

skipif mysql # not compatible
query II rowsort label-1555
SELECT ALL - NULLIF ( + 20, - + 65 ), - COUNT ( * ) col2
----
-20
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ALL - MIN( DISTINCT 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL - MIN ( DISTINCT 24 ) AS col1
----
-24

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

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

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

query I rowsort
SELECT DISTINCT - 98 * - 29
----
2842

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1560
SELECT - ( + 76 ) * CASE 40 WHEN - 58 - 99 THEN 4 * - 91 ELSE - COUNT( * ) / CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT - ( + 76 ) * CASE 40 WHEN - 58 - 99 THEN 4 * - 91 ELSE - COUNT ( * ) / CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT - 69 * 5 AS col2
----
-345

query I rowsort
SELECT COALESCE ( + 42, 77, 69 * 85 + + 15 ) * - 30 - 95 AS col2
----
-1355

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

skipif mysql # not compatible
query I rowsort label-1563
SELECT + 86 / COUNT ( * ) col2
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT MAX( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-1565
SELECT MAX ( 12 )
----
12

query I rowsort
SELECT ALL 62 + - 65 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT + 44 + COALESCE ( 73, CAST( NULL AS SIGNED ) ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-1567
SELECT + 44 + COALESCE ( 73, CAST ( NULL AS INTEGER ) ) AS col1
----
117

query I rowsort
SELECT DISTINCT ( 76 ) * 4
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT DISTINCT + MAX( DISTINCT + 32 ) + - NULLIF ( + 69, 98 ) * + 64 AS col2
----
-4384

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT + MAX ( DISTINCT + 32 ) + - NULLIF ( + 69, 98 ) * + 64 AS col2
----
-4384

query I rowsort
SELECT + 79 * 54 AS col1
----
4266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1571
SELECT ALL CAST( - 42 AS SIGNED ) * - 54
----
2268

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL CAST ( - 42 AS INTEGER ) * - 54
----
2268

query I rowsort
SELECT ALL 8 + + 77 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1573
SELECT - CASE 29 WHEN CAST( - CASE COUNT( * ) WHEN 74 THEN COUNT( * ) * 15 END AS DECIMAL ) THEN + MAX( DISTINCT - 94 ) ELSE 57 END
----
-57

skipif mysql # not compatible
query I rowsort label-1573
SELECT - CASE 29 WHEN CAST ( - CASE COUNT ( * ) WHEN 74 THEN COUNT ( * ) * 15 END AS REAL ) THEN + MAX ( DISTINCT - 94 ) ELSE 57 END
----
-57

query I rowsort
SELECT + 90 + 92 col0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1575
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) + 25
----
NULL

query I rowsort
SELECT ALL 54 * 20 AS col0
----
1080

query I rowsort
SELECT + 66 + - 94 AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT ALL ( COUNT( * ) ) + 92 DIV 45
----
3

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL ( COUNT ( * ) ) + 92 / 45
----
3

query I rowsort
SELECT ALL 7 + - 35 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT + 13 * - SUM( - 40 )
----
520

skipif mysql # not compatible
query I rowsort label-1580
SELECT + 13 * - SUM ( - 40 )
----
520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1581
SELECT + 30 DIV + CAST( - 95 * + 15 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1581
SELECT + 30 / + CAST ( - 95 * + 15 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1582
SELECT - CASE - COUNT( ALL + ( 61 ) ) WHEN + CAST( NULL AS DECIMAL ) + + 59 THEN NULLIF ( 39, CASE + 40 WHEN ( + 86 ) - ( + 0 ) THEN - NULLIF ( 4, NULLIF ( COUNT( * ), - 56 ) * 69 ) * - 3 WHEN - 7 + CAST( + 88 AS SIGNED ) / - 97 THEN NULL WHEN 37 THEN NULL END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT - CASE - COUNT ( ALL + ( 61 ) ) WHEN + CAST ( NULL AS REAL ) + + 59 THEN NULLIF ( 39, CASE + 40 WHEN ( + 86 ) - ( + 0 ) THEN - NULLIF ( 4, NULLIF ( COUNT ( * ), - 56 ) * 69 ) * - 3 WHEN - 7 + CAST ( + 88 AS INTEGER ) / - 97 THEN NULL WHEN 37 THEN NULL END ) END
----
NULL

query I rowsort
SELECT ALL ( + 68 ) - + 11 AS col1
----
57

query I rowsort
SELECT ALL - 83 * + 12
----
-996

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

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

query I rowsort
SELECT ALL - 74 - + 32 AS col0
----
-106

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

skipif mysql # not compatible
query I rowsort label-1587
SELECT + 0 / 10
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1588
SELECT DISTINCT COUNT( * ) DIV 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT COUNT ( * ) / 53 col0
----
0

query I rowsort
SELECT DISTINCT 99 * 30
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL + 11 * + MAX( ALL - 62 ) AS col1
----
-682

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL + 11 * + MAX ( ALL - 62 ) AS col1
----
-682

query I rowsort
SELECT + ( 38 ) - + 69
----
-31

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT - 43 * - NULLIF ( + 20 DIV 99, + 95 DIV 79 )
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT - 43 * - NULLIF ( + 20 / 99, + 95 / 79 )
----
0

query I rowsort
SELECT + + 2 * 45 + - 48 * 7
----
-246

query I rowsort
SELECT 45 * + 85 + 34 * 44 AS col1
----
5321

query I rowsort
SELECT - 70 - 15 AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT ALL - + 38 DIV + 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - + 38 / + 98 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT + + 28 DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT + + 28 / 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT - COUNT( * ) + + 85 * 53
----
4504

skipif mysql # not compatible
query I rowsort label-1600
SELECT - COUNT ( * ) + + 85 * 53
----
4504

query I rowsort
SELECT DISTINCT + - 58 * 30 + - 40
----
-1780

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT DISTINCT - 15 * MAX( CAST( NULL AS SIGNED ) ) + + SUM( ALL 98 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT - 15 * MAX ( CAST ( NULL AS INTEGER ) ) + + SUM ( ALL 98 ) AS col2
----
NULL

query I rowsort
SELECT - + 1 * + 57 + - 83
----
-140

query I rowsort
SELECT DISTINCT - 40 * - 56
----
2240

query I rowsort
SELECT - 79 * + 9 + 44
----
-667

query I rowsort
SELECT ALL + 36 * + 92 + - 39 AS col2
----
3273

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT - 7 * 12 + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT - 7 * 12 + COUNT ( * )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT ALL + ( 56 ) DIV - 14
----
-4

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL + ( 56 ) / - 14
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT DISTINCT + 42 * - 13 * NULLIF ( COUNT( * ), 54 + 47 ) + COALESCE ( ( + 48 ), 96, + 3 * + 67, COUNT( * ) ) * + 13
----
78

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT + 42 * - 13 * NULLIF ( COUNT ( * ), 54 + 47 ) + COALESCE ( ( + 48 ), 96, + 3 * + 67, COUNT ( * ) ) * + 13
----
78

query I rowsort
SELECT - 30 + + - 97 + 94
----
-33

query I rowsort
SELECT - 89 * + 41 AS col1
----
-3649

query I rowsort
SELECT ALL 1 * COALESCE ( 99, - 20 + - 54 ) AS col0
----
99

query I rowsort
SELECT ALL + ( 44 ) - 80 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT - CASE - ( - 73 ) WHEN 84 THEN NULL WHEN COALESCE ( - 62, COUNT( * ) ) THEN NULL ELSE + 45 END
----
-45

skipif mysql # not compatible
query I rowsort label-1615
SELECT - CASE - ( - 73 ) WHEN 84 THEN NULL WHEN COALESCE ( - 62, COUNT ( * ) ) THEN NULL ELSE + 45 END
----
-45

query I rowsort
SELECT - 94 + - + 88
----
-182

query I rowsort
SELECT - 53 * - 84
----
4452

query I rowsort
SELECT + 59 * - + 53 AS col1
----
-3127

query I rowsort
SELECT ALL 65 * + 19 AS col2
----
1235

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1620
SELECT - 71 + + - CAST( NULL AS DECIMAL ) + 68 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1620
SELECT - 71 + + - CAST ( NULL AS REAL ) + 68 * - 75
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1621
SELECT + 76 - COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + 23 * + CASE WHEN 79 IS NULL THEN - 80 + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 23 * + CASE WHEN 79 IS NULL THEN - 80 + - COUNT ( * ) END AS col0
----
NULL

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

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

query I rowsort
SELECT + 41 + + + 68 - 7 * 57 * 48
----
-19043

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT COUNT( - 1 ) + - COUNT( ALL ( - 13 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1627
SELECT COUNT ( - 1 ) + - COUNT ( ALL ( - 13 ) )
----
0

query I rowsort
SELECT - 32 + + - 61 AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT - 96 DIV 28 DIV - MAX( DISTINCT - 79 ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - 96 / 28 / - MAX ( DISTINCT - 79 ) + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT ALL 15 + - + 61 + 70 DIV 90
----
-46

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL 15 + - + 61 + 70 / 90
----
-46

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

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

query I rowsort
SELECT ALL 28 * 72 * - 34 col2
----
-68544

query I rowsort
SELECT + 98 * - + 1 AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1634
SELECT SUM( ALL + - 38 ) + + 62 DIV - MIN( + 19 * 31 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1634
SELECT SUM ( ALL + - 38 ) + + 62 / - MIN ( + 19 * 31 ) AS col0
----
-38

query I rowsort
SELECT ALL + 88 + + 2 AS col0
----
90

query I rowsort
SELECT - 32 * - 19 + - 45 AS col0
----
563

query I rowsort
SELECT ALL - 13 + + 8 AS col2
----
-5

query I rowsort
SELECT ALL - NULLIF ( + 83, 79 ) + + 9 AS col1
----
-74

query I rowsort
SELECT DISTINCT - 11 + - 99 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT COALESCE ( + 49, 0 * - 25 + MIN( + 91 ), + 17 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1640
SELECT COALESCE ( + 49, 0 * - 25 + MIN ( + 91 ), + 17 ) AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT - 35 DIV + 37 * 53 - 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-1641
SELECT - 35 / + 37 * 53 - 21 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1642
SELECT + 70 * - + 23 * CASE + 83 WHEN + MAX( 27 ) * - 20 + 22 THEN - 56 + COALESCE ( 88, - 63 / - COUNT( * ) ) / - 96 END + - CAST( NULL AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT + 70 * - + 23 * CASE + 83 WHEN + MAX ( 27 ) * - 20 + 22 THEN - 56 + COALESCE ( 88, - 63 / - COUNT ( * ) ) / - 96 END + - CAST ( NULL AS INTEGER ) * 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1643
SELECT DISTINCT - + 69 DIV + COALESCE ( 41, + 66 DIV CAST( - AVG ( ALL + 93 ) AS SIGNED ) + ( 56 ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT - + 69 / + COALESCE ( 41, + 66 / CAST ( - AVG ( ALL + 93 ) AS INTEGER ) + ( 56 ) ) + - COUNT ( * )
----
-2

query I rowsort
SELECT + 97 * 58 * + 61
----
343186

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT ALL + 12 - + SUM( 30 ) + + 63 * 27 AS col0
----
1683

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + 12 - + SUM ( 30 ) + + 63 * 27 AS col0
----
1683

query I rowsort
SELECT + 37 * 98 AS col2
----
3626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT ALL - 55 - 68 + + 12 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL - 55 - 68 + + 12 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 61 ) * + + 76 - + 11
----
-4647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1649
SELECT ALL - NULLIF ( CAST( + CAST( 39 AS SIGNED ) AS SIGNED ), 98 * COUNT( * ) + 29 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL - NULLIF ( CAST ( + CAST ( 39 AS INTEGER ) AS INTEGER ), 98 * COUNT ( * ) + 29 ) AS col2
----
-39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT - COUNT( * ) * - MIN( ALL - ( + 61 ) ) * NULLIF ( 6 * - 48, NULLIF ( COUNT( 83 ), COALESCE ( 60, - 10 ) - 25 ) ) + + 14 col1
----
17582

skipif mysql # not compatible
query I rowsort label-1651
SELECT - COUNT ( * ) * - MIN ( ALL - ( + 61 ) ) * NULLIF ( 6 * - 48, NULLIF ( COUNT ( 83 ), COALESCE ( 60, - 10 ) - 25 ) ) + + 14 col1
----
17582

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT 66 DIV - + 30
----
-2

skipif mysql # not compatible
query I rowsort label-1652
SELECT 66 / - + 30
----
-2

query I rowsort
SELECT 36 * - - 65
----
2340

query I rowsort
SELECT 75 * 23
----
1725

query II rowsort
SELECT 24 AS col0, + ( + ( - 72 ) )
----
24
-72

query II rowsort
SELECT DISTINCT 89, 85 AS col0
----
89
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT 46 + 37 * + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT 46 + 37 * + COUNT ( * )
----
83

query I rowsort
SELECT 90 * - + 86
----
-7740

query I rowsort
SELECT DISTINCT 3 + 76
----
79

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

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

query I rowsort
SELECT + 52 * 21 * + - 30
----
-32760

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

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL 22 + - - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT - NULLIF ( + 61, - 78 / + 92 )
----
-61

query I rowsort
SELECT 67 - - 60
----
127

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

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT MIN ( - - 51 )
----
51

query I rowsort
SELECT ALL 49 + + 64 * + 87 + 62
----
5679

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT - 88 * - 73 * + COUNT( * ) - + 97 AS col2
----
6327

skipif mysql # not compatible
query I rowsort label-1667
SELECT - 88 * - 73 * + COUNT ( * ) - + 97 AS col2
----
6327

query II rowsort
SELECT ALL - - 62 AS col1, + 34 AS col0
----
62
34

query I rowsort
SELECT 59 * 59 AS col2
----
3481

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT + 54 * + - 89 * + + ( MIN( 87 ) )
----
-418122

skipif mysql # not compatible
query I rowsort label-1670
SELECT + 54 * + - 89 * + + ( MIN ( 87 ) )
----
-418122

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT ALL + 90 DIV - - 12
----
7

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL + 90 / - - 12
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1672
SELECT - 8 DIV - COUNT( * ) + - 7 col1
----
1

skipif mysql # not compatible
query I rowsort label-1672
SELECT - 8 / - COUNT ( * ) + - 7 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT NULLIF ( - - 48, - 87 ) * - 52 - COUNT( * ) * 71 AS col2
----
-2567

skipif mysql # not compatible
query I rowsort label-1673
SELECT NULLIF ( - - 48, - 87 ) * - 52 - COUNT ( * ) * 71 AS col2
----
-2567

query I rowsort
SELECT - 34 + + - 33 - - - ( + 84 )
----
-151

query II rowsort
SELECT 60 AS col1, ( + - 69 ) * + 24 AS col0
----
60
-1656

query I rowsort
SELECT DISTINCT + 38 * - 4 AS col0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT + COUNT( * ) * + 33 + - 21 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1677
SELECT + COUNT ( * ) * + 33 + - 21 AS col1
----
12

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

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

query I rowsort
SELECT 36 + 43 col0
----
79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT 75 + + 42 - - - CAST( + 60 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1681
SELECT 75 + + 42 - - - CAST ( + 60 AS INTEGER ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ( - SUM( + 73 ) ) * - COUNT( * ) * 61 + - 41 col2
----
4412

skipif mysql # not compatible
query I rowsort label-1682
SELECT ( - SUM ( + 73 ) ) * - COUNT ( * ) * 61 + - 41 col2
----
4412

query I rowsort
SELECT 81 * - 18
----
-1458

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT ALL + 79 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + 79 / - 40
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT - COALESCE ( + + 7, + COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-1685
SELECT - COALESCE ( + + 7, + COUNT ( * ) )
----
-7

query I rowsort
SELECT ALL + 52 + 47
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1687
SELECT - ( + CASE - 22 WHEN - 54 * 27 THEN NULL ELSE CASE + 28 WHEN + 11 THEN NULL ELSE 73 + - NULLIF ( - ( - CASE + 66 WHEN + 99 + 40 THEN NULL WHEN 87 THEN - 16 ELSE 66 * 36 END ), - 24 + CAST( NULL AS SIGNED ) ) END * 36 END ) + - 29 AS col0
----
82879

skipif mysql # not compatible
query I rowsort label-1687
SELECT - ( + CASE - 22 WHEN - 54 * 27 THEN NULL ELSE CASE + 28 WHEN + 11 THEN NULL ELSE 73 + - NULLIF ( - ( - CASE + 66 WHEN + 99 + 40 THEN NULL WHEN 87 THEN - 16 ELSE 66 * 36 END ), - 24 + CAST ( NULL AS INTEGER ) ) END * 36 END ) + - 29 AS col0
----
82879

onlyif mysql # DIV for integer division: 
query I rowsort label-1688
SELECT ALL 23 DIV + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL 23 / + 24 AS col2
----
0

query I rowsort
SELECT ALL + 53 + - 6
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + ( + COUNT( * ) ) + - NULLIF ( - - 19, 84 * SUM( ALL 3 ) ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-1690
SELECT + ( + COUNT ( * ) ) + - NULLIF ( - - 19, 84 * SUM ( ALL 3 ) ) col0
----
-18

query I rowsort
SELECT - 63 - + ( ( - 27 ) ) col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL + MAX( - + 30 ) + + 35 col2
----
5

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + MAX ( - + 30 ) + + 35 col2
----
5

query I rowsort
SELECT - 36 + + 9 + 66 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT DISTINCT MAX( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT MAX ( - 12 )
----
-12

query I rowsort
SELECT - + 91 + - 40 col0
----
-131

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

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

query II rowsort
SELECT - - 16 + - 46 AS col0, + 61
----
-30
61

query I rowsort
SELECT ALL + 5 + + ( - 69 )
----
-64

query I rowsort
SELECT + COALESCE ( - + ( 91 ), + 50 )
----
-91

query I rowsort
SELECT ALL + 61 * + - 68 + + 33 * + 78
----
-1574

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT - MAX( + 77 ) * - 55
----
4235

skipif mysql # not compatible
query I rowsort label-1701
SELECT - MAX ( + 77 ) * - 55
----
4235

query I rowsort
SELECT + 66 + 37 * - + 9 col1
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL - CASE - - 86 WHEN + 83 + - 97 THEN 70 * 22 END * 7 - COUNT( * ) * + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - CASE - - 86 WHEN + 83 + - 97 THEN 70 * 22 END * 7 - COUNT ( * ) * + 28 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - 96, + 24 * + 68 + - ( 59 ) * 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1705
SELECT DISTINCT + MIN( ALL + CAST( NULL AS SIGNED ) ), 53 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-1705
SELECT DISTINCT + MIN ( ALL + CAST ( NULL AS INTEGER ) ), 53 AS col2
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT + + CASE - 87 WHEN + - 96 THEN + 64 / 82 WHEN + 47 * + COUNT( * ) THEN NULL ELSE + 71 - 29 END
----
42

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT + + CASE - 87 WHEN + - 96 THEN + 64 / 82 WHEN + 47 * + COUNT ( * ) THEN NULL ELSE + 71 - 29 END
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT CAST( 60 AS SIGNED ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-1707
SELECT CAST ( 60 AS INTEGER ) AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT + 84 DIV 71 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1708
SELECT + 84 / 71 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT - 54 - + - 98 - 19 * + - 2 / CASE - 46 WHEN - 70 THEN - 25 / + CASE CASE 37 WHEN 1 * - MIN( ALL 69 ) + 96 THEN - 40 WHEN 54 THEN NULL ELSE NULL END * 93 WHEN + 41 + 74 THEN NULL WHEN 28 * + 33 - + 29 * - MIN( 30 + - 44 ) THEN - COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT - 54 - + - 98 - 19 * + - 2 / CASE - 46 WHEN - 70 THEN - 25 / + CASE CASE 37 WHEN 1 * - MIN ( ALL 69 ) + 96 THEN - 40 WHEN 54 THEN NULL ELSE NULL END * 93 WHEN + 41 + 74 THEN NULL WHEN 28 * + 33 - + 29 * - MIN ( 30 + - 44 ) THEN - COUNT ( * ) END END
----
NULL

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

query I rowsort
SELECT ALL 42 * - + 67 * + ( 50 )
----
-140700

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT + 48 DIV + 26 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1712
SELECT + 48 / + 26 AS col1
----
1

query I rowsort
SELECT ALL 18 * - + 42 * - - 91 AS col1
----
-68796

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT + CASE + - COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN 15 THEN - COUNT( * ) * + 40 + 33 WHEN NULLIF ( 57, 87 / 36 ) + + 13 THEN 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1714
SELECT + CASE + - COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN 15 THEN - COUNT ( * ) * + 40 + 33 WHEN NULLIF ( 57, 87 / 36 ) + + 13 THEN 67 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT ALL 73 * - COALESCE ( + 21, - 4 * + COUNT( * ) + 25 ) * + 74 + - 38 * COUNT( * ) col0
----
-113480

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL 73 * - COALESCE ( + 21, - 4 * + COUNT ( * ) + 25 ) * + 74 + - 38 * COUNT ( * ) col0
----
-113480

query I rowsort
SELECT + ( - 15 ) - + 27
----
-42

query I rowsort
SELECT ALL 82 * + 4 AS col1
----
328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT DISTINCT 35 * + 52 + - CAST( 66 AS SIGNED ) col2
----
1754

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT 35 * + 52 + - CAST ( 66 AS INTEGER ) col2
----
1754

query I rowsort
SELECT DISTINCT - 51 * - + 37 + 32 + - 83
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT MAX( DISTINCT 48 )
----
48

skipif mysql # not compatible
query I rowsort label-1720
SELECT MAX ( DISTINCT 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL 10 * + MIN( ALL - COALESCE ( - - ( - 8 ), - 54 * 51 ) ) * + 70 + 64
----
5664

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL 10 * + MIN ( ALL - COALESCE ( - - ( - 8 ), - 54 * 51 ) ) * + 70 + 64
----
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - COALESCE ( + 97, 22 * + 46 - - 25 * MIN( ALL - 7 ) + - 17 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-1722
SELECT - COALESCE ( + 97, 22 * + 46 - - 25 * MIN ( ALL - 7 ) + - 17 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT + ( + 83 ) + - MIN( ALL + - 13 )
----
96

skipif mysql # not compatible
query I rowsort label-1723
SELECT + ( + 83 ) + - MIN ( ALL + - 13 )
----
96

query I rowsort
SELECT + ( - 56 ) * + 73 + - 73 + 64
----
-4097

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - 64 + CASE + 14 WHEN - + 57 THEN 12 / + 80 - MIN( 30 + 57 ) * 85 WHEN + 56 THEN NULL WHEN 26 THEN - 0 * + 19 + 98 * 87 ELSE NULL END + - 8 * 63 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT - 64 + CASE + 14 WHEN - + 57 THEN 12 / + 80 - MIN ( 30 + 57 ) * 85 WHEN + 56 THEN NULL WHEN 26 THEN - 0 * + 19 + 98 * 87 ELSE NULL END + - 8 * 63 * + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT DISTINCT CASE + + 20 WHEN + 38 + + 78 + + + 7 + 8 * - COUNT( * ) * ( - 28 * 11 ) THEN 23 WHEN 34 THEN 29 + 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT CASE + + 20 WHEN + 38 + + 78 + + + 7 + 8 * - COUNT ( * ) * ( - 28 * 11 ) THEN 23 WHEN 34 THEN 29 + 67 END AS col2
----
NULL

query I rowsort
SELECT ALL - + 4 + 72 * + 49 AS col1
----
3524

query I rowsort
SELECT + + 95 * + - ( - - 95 ) - 16
----
-9041

query I rowsort
SELECT ALL CASE + 56 WHEN + 64 THEN NULL WHEN - 40 THEN NULL ELSE - 19 END AS col0
----
-19

query II rowsort
SELECT - 36 AS col0, ( - 28 )
----
-36
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL + 56 * 90 - - COUNT( * ) * 13
----
5053

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + 56 * 90 - - COUNT ( * ) * 13
----
5053

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT - 9 * - COUNT( - 29 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1734
SELECT - 9 * - COUNT ( - 29 ) AS col2
----
9

query I rowsort
SELECT + 53 - + + 1
----
52

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

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

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

query I rowsort
SELECT + 67 + - 95
----
-28

query I rowsort
SELECT ALL - 74 - + 86 + + - 17 * + + 38
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT - - 68 * 50 * - + COUNT( * ) * - 31 AS col1
----
105400

skipif mysql # not compatible
query I rowsort label-1740
SELECT - - 68 * 50 * - + COUNT ( * ) * - 31 AS col1
----
105400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1741
SELECT - + CASE + 12 WHEN + AVG ( + 68 ) + - - NULLIF ( COALESCE ( + COALESCE ( + 70, 36 ), - 98 ), - 1 ) * COUNT( * ) THEN - AVG ( ALL 80 ) + 11 WHEN ( 91 ) * + MAX( 26 + NULLIF ( ( ( 14 ) ), 53 ) * - CAST( NULL AS SIGNED ) ) THEN NULL END * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT - + CASE + 12 WHEN + AVG ( + 68 ) + - - NULLIF ( COALESCE ( + COALESCE ( + 70, 36 ), - 98 ), - 1 ) * COUNT ( * ) THEN - AVG ( ALL 80 ) + 11 WHEN ( 91 ) * + MAX ( 26 + NULLIF ( ( ( 14 ) ), 53 ) * - CAST ( NULL AS INTEGER ) ) THEN NULL END * 17 AS col1
----
NULL

query I rowsort
SELECT - 94 * - 10 AS col2
----
940

query I rowsort
SELECT - - 19 - - 6 + 76 AS col0
----
101

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT - 25 * 38 * + CAST( + ( - CAST( - 16 AS SIGNED ) ) AS SIGNED ) * + 57
----
-866400

skipif mysql # not compatible
query I rowsort label-1745
SELECT - 25 * 38 * + CAST ( + ( - CAST ( - 16 AS INTEGER ) ) AS INTEGER ) * + 57
----
-866400

query I rowsort
SELECT - + 94 * - 12 AS col2
----
1128

query I rowsort
SELECT ALL - 89 * + 67 * + - 94
----
560522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1748
SELECT CAST( NULL AS SIGNED ) AS col0, - CAST( - ( MAX( + 25 ) ) AS DECIMAL ) / - CAST( 56 AS SIGNED ) * 93 + - 31 + ( ( - CAST( NULL AS SIGNED ) ) + + ( + 26 + 20 ) * - 99 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1748
SELECT CAST ( NULL AS INTEGER ) AS col0, - CAST ( - ( MAX ( + 25 ) ) AS REAL ) / - CAST ( 56 AS INTEGER ) * 93 + - 31 + ( ( - CAST ( NULL AS INTEGER ) ) + + ( + 26 + 20 ) * - 99 )
----
NULL
NULL

query I rowsort
SELECT - 72 * + - ( - + 31 ) * - 61 AS col1
----
136152

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT + 38 * - + 70 - - - COUNT( * ) + + 72 + 21 col2
----
-2568

skipif mysql # not compatible
query I rowsort label-1750
SELECT + 38 * - + 70 - - - COUNT ( * ) + + 72 + 21 col2
----
-2568

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

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

query I rowsort
SELECT 97 * + ( + 19 ) - + 93 col0
----
1750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT ALL 94 DIV - - 88 + - + ( + NULLIF ( - COUNT( * ), + - COUNT( * ) + + 89 * + 73 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL 94 / - - 88 + - + ( + NULLIF ( - COUNT ( * ), + - COUNT ( * ) + + 89 * + 73 ) ) AS col0
----
2

query I rowsort
SELECT 65 + - 31 AS col1
----
34

query I rowsort
SELECT ALL - NULLIF ( + 70, 21 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1756
SELECT ALL 71 + 54 - - - ( - 60 ) col0, COUNT( * ) AS col0
----
185
1

skipif mysql # not compatible
query II rowsort label-1756
SELECT ALL 71 + 54 - - - ( - 60 ) col0, COUNT ( * ) AS col0
----
185
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ( + 34 ) * - + MAX( ALL + 1 ) + + 70
----
36

skipif mysql # not compatible
query I rowsort label-1757
SELECT ( + 34 ) * - + MAX ( ALL + 1 ) + + 70
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT ALL 88 DIV + 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL 88 / + 50 AS col0
----
1

query II rowsort
SELECT + 25 col0, 46 AS col2
----
25
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1760
SELECT ALL - 55 AS col0, + 41 * + SUM( ALL - 47 )
----
-55
-1927

skipif mysql # not compatible
query II rowsort label-1760
SELECT ALL - 55 AS col0, + 41 * + SUM ( ALL - 47 )
----
-55
-1927

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT 61 + COUNT( ALL + 73 ) * - COALESCE ( 14, + - 32 + + 58 * 80 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1761
SELECT 61 + COUNT ( ALL + 73 ) * - COALESCE ( 14, + - 32 + + 58 * 80 ) AS col1
----
47

query I rowsort
SELECT 65 * 95 AS col0
----
6175

query I rowsort
SELECT 0 * - 77 * 13
----
0

query I rowsort
SELECT 71 + - 90 + - NULLIF ( - 81, + 90 + 41 ) + - 67 * 60 AS col1
----
-3958

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

skipif mysql # not compatible
query I rowsort label-1765
SELECT 6 / + - 12 / + COUNT ( * ) col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1766
SELECT DISTINCT 70 + 97, 47 DIV - 7 AS col2
----
167
-6

skipif mysql # not compatible
query II rowsort label-1766
SELECT DISTINCT 70 + 97, 47 / - 7 AS col2
----
167
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT DISTINCT CASE ( - + 49 ) WHEN - 81 THEN 9 * - 6 * 6 ELSE - 23 + - 93 DIV 88 END * 91 AS col0
----
-2184

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT CASE ( - + 49 ) WHEN - 81 THEN 9 * - 6 * 6 ELSE - 23 + - 93 / 88 END * 91 AS col0
----
-2184

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

skipif mysql # not compatible
query I rowsort label-1768
SELECT 54 * - ( - ( + COUNT ( * ) ) ) + + 82 * - 47 AS col1
----
-3800

query I rowsort
SELECT DISTINCT - 17 - - 62
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1770
SELECT ALL 0, 54 * 19 * COUNT( * ) AS col0
----
0
1026

skipif mysql # not compatible
query II rowsort label-1770
SELECT ALL 0, 54 * 19 * COUNT ( * ) AS col0
----
0
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT - 71 + + COUNT( * ) + 4 * - + 95 * 62
----
-23630

skipif mysql # not compatible
query I rowsort label-1771
SELECT - 71 + + COUNT ( * ) + 4 * - + 95 * 62
----
-23630

query I rowsort
SELECT DISTINCT 10 - - 82
----
92

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

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

query II rowsort
SELECT ALL + 9 col1, + 9 AS col2
----
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1775
SELECT - + 11 AS col0, CASE - + 59 WHEN + 36 THEN - - ( + CAST( NULL AS SIGNED ) ) * 51 ELSE NULL END * + 78
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-1775
SELECT - + 11 AS col0, CASE - + 59 WHEN + 36 THEN - - ( + CAST ( NULL AS INTEGER ) ) * 51 ELSE NULL END * + 78
----
-11
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1776
SELECT - 37 + - 42 DIV + - CASE - 91 WHEN + 5 THEN NULL ELSE - COUNT( * ) * COUNT( * ) END
----
-79

skipif mysql # not compatible
query I rowsort label-1776
SELECT - 37 + - 42 / + - CASE - 91 WHEN + 5 THEN NULL ELSE - COUNT ( * ) * COUNT ( * ) END
----
-79

query I rowsort
SELECT + 7 - - - CASE + 49 WHEN - - 3 THEN NULL WHEN + - 78 * 20 THEN NULL WHEN + 72 THEN NULL WHEN 66 THEN 75 + - 54 ELSE - ( 22 ) END * 41
----
909

query II rowsort
SELECT DISTINCT - 86 AS col2, + 74 + - 60
----
-86
14

query I rowsort
SELECT + ( - 37 ) + + - 47
----
-84

query II rowsort
SELECT ALL 5, 91 + - + 14 AS col0
----
5
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1781
SELECT + 65 * + CASE - 47 WHEN + 35 THEN 11 WHEN CAST( CASE + 34 WHEN 55 THEN - 99 WHEN 68 / - 68 + 38 / - CASE 54 * 63 WHEN - 53 * COUNT( * ) THEN 91 + - 0 WHEN + AVG ( + 44 ) THEN CAST( 17 AS DECIMAL ) END THEN + 23 ELSE + 26 END AS SIGNED ) THEN - 20 WHEN CAST( 69 AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT + 65 * + CASE - 47 WHEN + 35 THEN 11 WHEN CAST ( CASE + 34 WHEN 55 THEN - 99 WHEN 68 / - 68 + 38 / - CASE 54 * 63 WHEN - 53 * COUNT ( * ) THEN 91 + - 0 WHEN + AVG ( + 44 ) THEN CAST ( 17 AS REAL ) END THEN + 23 ELSE + 26 END AS INTEGER ) THEN - 20 WHEN CAST ( 69 AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 74 + - 68
----
6

query I rowsort
SELECT DISTINCT 13 * 78 AS col1
----
1014

query I rowsort
SELECT - 87 + + 28 * 60 * + + ( - 66 )
----
-110967

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL - - 84 * - 31 * + - COUNT( * ) AS col0
----
2604

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - - 84 * - 31 * + - COUNT ( * ) AS col0
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT 6 * + COUNT( * ) * - + 78
----
-468

skipif mysql # not compatible
query I rowsort label-1786
SELECT 6 * + COUNT ( * ) * - + 78
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT SUM( + - 5 ) * + 90 * - 7 - 62 AS col2
----
3088

skipif mysql # not compatible
query I rowsort label-1787
SELECT SUM ( + - 5 ) * + 90 * - 7 - 62 AS col2
----
3088

query I rowsort
SELECT 83 + 81 AS col0
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT NULLIF ( - 45, + 77 * - COUNT( * ) ) DIV 95 - ( - COUNT( * ) ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-1789
SELECT NULLIF ( - 45, + 77 * - COUNT ( * ) ) / 95 - ( - COUNT ( * ) ) * - 0
----
0

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

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

query I rowsort
SELECT ALL + 20 + - 52 AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1792
SELECT DISTINCT - COALESCE ( - 91, 23 + - COUNT( * ), - 82 DIV 34 )
----
91

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - COALESCE ( - 91, 23 + - COUNT ( * ), - 82 / 34 )
----
91

query I rowsort
SELECT DISTINCT - 48 + + - ( 50 ) + + ( - - 12 )
----
-86

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

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

query I rowsort
SELECT 81 + + 62 * 9 AS col2
----
639

query I rowsort
SELECT ALL - 66 + - - 14 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT - COUNT( * ) + - + CASE - - 34 WHEN - + 88 THEN COUNT( * ) WHEN COUNT( * ) * 9 THEN NULL END - - 65 / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT - COUNT ( * ) + - + CASE - - 34 WHEN - + 88 THEN COUNT ( * ) WHEN COUNT ( * ) * 9 THEN NULL END - - 65 / - 45
----
NULL

query II rowsort
SELECT ALL - ( - + 48 ), - 65 AS col0
----
48
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT - 96 * + 15 + 9 DIV - 78
----
-1440

skipif mysql # not compatible
query I rowsort label-1799
SELECT - 96 * + 15 + 9 / - 78
----
-1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1800
SELECT 58 * 68 * + + CAST( NULL AS SIGNED ) + ( - 79 ) + - 1 * + ( + 9 ) * COUNT( * ) + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT 58 * 68 * + + CAST ( NULL AS INTEGER ) + ( - 79 ) + - 1 * + ( + 9 ) * COUNT ( * ) + 95 AS col1
----
NULL

query I rowsort
SELECT ALL - 22 - + + 81
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT DISTINCT - 49 * - 33 AS col2, + COUNT( - 21 ) AS col1
----
1617
1

skipif mysql # not compatible
query II rowsort label-1802
SELECT DISTINCT - 49 * - 33 AS col2, + COUNT ( - 21 ) AS col1
----
1617
1

query I rowsort
SELECT 67 * + ( + - 67 ) * - 68 * - - 58 - + 87 * - 81 * + 24
----
17873744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1804
SELECT DISTINCT COALESCE ( + 51, + 20 + + COUNT( * ), 31 * - CAST( NULL AS SIGNED ) * - 1, + COUNT( * ) + 79 ) DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT COALESCE ( + 51, + 20 + + COUNT ( * ), 31 * - CAST ( NULL AS INTEGER ) * - 1, + COUNT ( * ) + 79 ) / 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL + COUNT( * ) - + 90 + - - 39 * + - 43 AS col2
----
-1766

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + COUNT ( * ) - + 90 + - - 39 * + - 43 AS col2
----
-1766

query I rowsort
SELECT - 13 * 20 AS col2
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT 80 * - + 52 * - COALESCE ( 81, - COUNT( * ) * - COUNT( * ) + + - 56 ) + - CAST( 95 + 83 * + ( ( 89 ) + + SUM( ALL - 0 ) * - COUNT( * ) ) AS SIGNED ) AS col1
----
329478

skipif mysql # not compatible
query I rowsort label-1807
SELECT 80 * - + 52 * - COALESCE ( 81, - COUNT ( * ) * - COUNT ( * ) + + - 56 ) + - CAST ( 95 + 83 * + ( ( 89 ) + + SUM ( ALL - 0 ) * - COUNT ( * ) ) AS INTEGER ) AS col1
----
329478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1808
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0, - 6 DIV + 55 * 23 * + NULLIF ( + - 3, + 59 ) * 63
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1808
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0, - 6 / + 55 * 23 * + NULLIF ( + - 3, + 59 ) * 63
----
NULL
0

query I rowsort
SELECT + 5 + + - 33 AS col2
----
-28

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

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

query I rowsort
SELECT + 53 * + 33 + + 39 + 1 AS col2
----
1789

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT DISTINCT + 46 DIV 88 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT + 46 / 88 / 92
----
0

query I rowsort
SELECT DISTINCT - 55 * 26 * + + ( + - 94 )
----
134420

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT 29 * - COUNT( + + 94 ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-1814
SELECT 29 * - COUNT ( + + 94 ) col1
----
-29

query I rowsort
SELECT + 38 - - 21 AS col0
----
59

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

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

query II rowsort
SELECT + 51 + + 4 AS col1, - 74 AS col0
----
55
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1818
SELECT DISTINCT 13 + + 59 - 9 * CAST( + 45 AS SIGNED ), + 35 * + - SUM( 2 ) AS col1
----
-333
-70

skipif mysql # not compatible
query II rowsort label-1818
SELECT DISTINCT 13 + + 59 - 9 * CAST ( + 45 AS INTEGER ), + 35 * + - SUM ( 2 ) AS col1
----
-333
-70

query I rowsort
SELECT ALL 95 + - 56
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + COUNT( * ) - 12 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1820
SELECT + COUNT ( * ) - 12 AS col0
----
-11

query I rowsort
SELECT ALL 13 * + 4 col2
----
52

query I rowsort
SELECT DISTINCT 80 * - 26 * + 74 * - 25 * 40 + - - 37 AS col1
----
153920037

query II rowsort
SELECT ALL + 46 AS col2, 32
----
46
32

query I rowsort
SELECT + COALESCE ( + 61, 38 * 35 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT ALL 55 * 78 * + ( - + 4 ) * + + SUM( - + 78 ) + + 82 - + 18 - - 30 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL 55 * 78 * + ( - + 4 ) * + + SUM ( - + 78 ) + + 82 - + 18 - - 30 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 21 ) * 50 AS col1
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT 35 * + - 16 + + + SUM( + 47 ) AS col1
----
-513

skipif mysql # not compatible
query I rowsort label-1827
SELECT 35 * + - 16 + + + SUM ( + 47 ) AS col1
----
-513

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT NULLIF ( + 75, COUNT( * ) ) AS col0, - 68 * + + 83
----
75
-5644

skipif mysql # not compatible
query II rowsort label-1828
SELECT NULLIF ( + 75, COUNT ( * ) ) AS col0, - 68 * + + 83
----
75
-5644

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT + COALESCE ( - 30, - CASE + 92 WHEN 46 + - COUNT( * ) * + + COUNT( - 91 ) THEN 38 END )
----
-30

skipif mysql # not compatible
query I rowsort label-1829
SELECT + COALESCE ( - 30, - CASE + 92 WHEN 46 + - COUNT ( * ) * + + COUNT ( - 91 ) THEN 38 END )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT - 92 * CAST( NULL AS SIGNED ) - + - 10 * - + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT - 92 * CAST ( NULL AS INTEGER ) - + - 10 * - + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT COALESCE ( + - 14, + 57 ) AS col0, COALESCE ( + + 30, + + 47 * 59 + + COUNT( * ) + + 65 * 53 + MAX( ( 75 ) ) * + 49 ) * 60 - 10 AS col0
----
-14
1790

skipif mysql # not compatible
query II rowsort label-1831
SELECT COALESCE ( + - 14, + 57 ) AS col0, COALESCE ( + + 30, + + 47 * 59 + + COUNT ( * ) + + 65 * 53 + MAX ( ( 75 ) ) * + 49 ) * 60 - 10 AS col0
----
-14
1790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1832
SELECT DISTINCT + CASE + - 32 WHEN - 29 + + COUNT( * ) THEN NULL WHEN + - 73 + + 96 THEN CASE + - CAST( + 0 AS SIGNED ) WHEN 45 THEN + 26 + + CAST( NULL AS DECIMAL ) WHEN 62 THEN NULL WHEN - COALESCE ( - 30, + 85, 0 ) THEN NULL END WHEN - 65 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT + CASE + - 32 WHEN - 29 + + COUNT ( * ) THEN NULL WHEN + - 73 + + 96 THEN CASE + - CAST ( + 0 AS INTEGER ) WHEN 45 THEN + 26 + + CAST ( NULL AS REAL ) WHEN 62 THEN NULL WHEN - COALESCE ( - 30, + 85, 0 ) THEN NULL END WHEN - 65 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 9 * + 85 - CASE 26 WHEN 13 - + 98 * - + 15 THEN NULL ELSE + 88 END AS col2
----
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT CASE 46 WHEN - 81 / - - COUNT( * ) THEN + - 52 WHEN - 30 * 87 * MAX( ALL 93 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT CASE 46 WHEN - 81 / - - COUNT ( * ) THEN + - 52 WHEN - 30 * 87 * MAX ( ALL 93 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT - COUNT( * ) * - - NULLIF ( + - 59, NULLIF ( + - ( + 45 ), - AVG ( + 48 ) ) * - CASE COALESCE ( COALESCE ( - 21, CASE ( + 99 ) WHEN + 58 THEN NULL ELSE 11 END + ( COUNT( * ) ) * - 30 ), + 57 + + 92 ) WHEN - COUNT( * ) THEN 81 WHEN 98 + MIN( ALL 84 ) THEN NULL ELSE + COUNT( * ) + + NULLIF ( 34 + ( + 28 + 63 ) * 27, COUNT( * ) - - ( - 97 ) ) END ) + + 13
----
72

skipif mysql # not compatible
query I rowsort label-1835
SELECT - COUNT ( * ) * - - NULLIF ( + - 59, NULLIF ( + - ( + 45 ), - AVG ( + 48 ) ) * - CASE COALESCE ( COALESCE ( - 21, CASE ( + 99 ) WHEN + 58 THEN NULL ELSE 11 END + ( COUNT ( * ) ) * - 30 ), + 57 + + 92 ) WHEN - COUNT ( * ) THEN 81 WHEN 98 + MIN ( ALL 84 ) THEN NULL ELSE + COUNT ( * ) + + NULLIF ( 34 + ( + 28 + 63 ) * 27, COUNT ( * ) - - ( - 97 ) ) END ) + + 13
----
72

query I rowsort
SELECT ALL + ( + 42 ) AS col2
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT COUNT( DISTINCT - + 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1838
SELECT COUNT ( DISTINCT - + 29 ) AS col2
----
1

query I rowsort
SELECT + 69 + - ( 97 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1840
SELECT + COALESCE ( + 57, + 37 * + 18 + - 97 * - 48, - - CASE + 95 WHEN CAST( + 90 AS SIGNED ) * CAST( 36 + + ( 93 ) AS SIGNED ) + - ( - SUM( DISTINCT 35 ) + + 66 ) * + 45 THEN NULL WHEN 56 THEN 45 * COUNT( * ) + - 30 END )
----
57

skipif mysql # not compatible
query I rowsort label-1840
SELECT + COALESCE ( + 57, + 37 * + 18 + - 97 * - 48, - - CASE + 95 WHEN CAST ( + 90 AS INTEGER ) * CAST ( 36 + + ( 93 ) AS INTEGER ) + - ( - SUM ( DISTINCT 35 ) + + 66 ) * + 45 THEN NULL WHEN 56 THEN 45 * COUNT ( * ) + - 30 END )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1841
SELECT - + CAST( ( + + 85 ) AS SIGNED ) * - 37 * + COALESCE ( - 36, - + NULLIF ( - 43, 91 * COALESCE ( 11, + ( 30 ) * 40 + 88, 2, COUNT( * ) * 84 ) ) ) AS col0
----
-113220

skipif mysql # not compatible
query I rowsort label-1841
SELECT - + CAST ( ( + + 85 ) AS INTEGER ) * - 37 * + COALESCE ( - 36, - + NULLIF ( - 43, 91 * COALESCE ( 11, + ( 30 ) * 40 + 88, 2, COUNT ( * ) * 84 ) ) ) AS col0
----
-113220

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

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

query I rowsort
SELECT - ( + - 11 ) + - NULLIF ( + - 7, 79 * + NULLIF ( - - 3, - AVG ( - 85 ) + - 87 ) ) - + 52
----
-34

query I rowsort
SELECT ALL + - 43 * 29 AS col1
----
-1247

query I rowsort
SELECT - - 6 + + - 80
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT NULLIF ( + 30, SUM( DISTINCT - 4 ) )
----
30

skipif mysql # not compatible
query I rowsort label-1846
SELECT NULLIF ( + 30, SUM ( DISTINCT - 4 ) )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT - - CAST( - 69 AS SIGNED ) + 29 * 8
----
163

skipif mysql # not compatible
query I rowsort label-1847
SELECT - - CAST ( - 69 AS INTEGER ) + 29 * 8
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-1848
SELECT - - 45 + - - 94 + + 60 AS col1, CASE + 59 WHEN + + COUNT( * ) / + 98 + + + 9 * - 52 THEN 35 END / 94 AS col1
----
199
NULL

skipif mysql # not compatible
query II rowsort label-1848
SELECT - - 45 + - - 94 + + 60 AS col1, CASE + 59 WHEN + + COUNT ( * ) / + 98 + + + 9 * - 52 THEN 35 END / 94 AS col1
----
199
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1849
SELECT - + 28 AS col0, - 96 DIV 69 AS col2
----
-28
-1

skipif mysql # not compatible
query II rowsort label-1849
SELECT - + 28 AS col0, - 96 / 69 AS col2
----
-28
-1

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT ALL + 1 DIV - MAX( DISTINCT - + 55 ) + ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + 1 / - MAX ( DISTINCT - + 55 ) + ( - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT + 19 + + 7 AS col0
----
26

query I rowsort
SELECT COALESCE ( + 5, - + 79 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + ( MIN( + ( + 87 ) ) ) + - - 69
----
156

skipif mysql # not compatible
query I rowsort label-1857
SELECT + ( MIN ( + ( + 87 ) ) ) + - - 69
----
156

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT ALL + 41 DIV + 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL + 41 / + 15 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - + 30 + - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-1860
SELECT - + 30 + - COUNT ( * )
----
-31

query I rowsort
SELECT ALL 72 * + 83 AS col0
----
5976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT + AVG ( ALL 24 ) + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT + AVG ( ALL 24 ) + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 66 + + 68 AS col0
----
134

query I rowsort
SELECT DISTINCT 18 * + 16 * NULLIF ( - + 11, 89 )
----
-3168

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1866
SELECT ALL - 65 DIV 25 - + + 5 * - 69 AS col1
----
343

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - 65 / 25 - + + 5 * - 69 AS col1
----
343

query I rowsort
SELECT + ( 9 ) * 62
----
558

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT DISTINCT - 32 DIV + 14 - - + 86
----
84

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT - 32 / + 14 - - + 86
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT 95 DIV + + 79 + + + 74
----
75

skipif mysql # not compatible
query I rowsort label-1869
SELECT 95 / + + 79 + + + 74
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT CAST( - - 58 AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1870
SELECT CAST ( - - 58 AS INTEGER ) AS col2
----
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT COALESCE ( - 98, - 20 + - - 85 + + + COALESCE ( - 42, + 4 ) * 80 ) DIV + + 8 - - 44 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1872
SELECT COALESCE ( - 98, - 20 + - - 85 + + + COALESCE ( - 42, + 4 ) * 80 ) / + + 8 - - 44 AS col0
----
32

query II rowsort
SELECT ( + 25 ) AS col1, - 10 * 29 AS col0
----
25
-290

query I rowsort
SELECT + COALESCE ( + + 87, - 43 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1875
SELECT + 45 * 45 AS col0, CASE 1 WHEN + MAX( DISTINCT + 13 ) / - ( + 66 ) + + + 51 / 82 + + 78 THEN NULL WHEN 23 + 29 THEN + CAST( 23 AS SIGNED ) - CAST( - 20 + - COUNT( DISTINCT - 35 + + 14 ) AS SIGNED ) WHEN - 64 THEN NULL ELSE NULL END * + 31
----
2025
NULL

skipif mysql # not compatible
query II rowsort label-1875
SELECT + 45 * 45 AS col0, CASE 1 WHEN + MAX ( DISTINCT + 13 ) / - ( + 66 ) + + + 51 / 82 + + 78 THEN NULL WHEN 23 + 29 THEN + CAST ( 23 AS INTEGER ) - CAST ( - 20 + - COUNT ( DISTINCT - 35 + + 14 ) AS INTEGER ) WHEN - 64 THEN NULL ELSE NULL END * + 31
----
2025
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - NULLIF ( + 2, + - COUNT( * ) * - + 24 / + 96 * - - 73 ) * - 83 + + MIN( DISTINCT + 55 )
----
221

skipif mysql # not compatible
query I rowsort label-1876
SELECT - NULLIF ( + 2, + - COUNT ( * ) * - + 24 / + 96 * - - 73 ) * - 83 + + MIN ( DISTINCT + 55 )
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT - - 9 * CASE + 95 WHEN 11 / - - AVG ( ALL 11 ) - - - 75 THEN NULL WHEN + 45 THEN - ( COUNT( * ) ) * 67 + + 92 END * + 45 - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT - - 9 * CASE + 95 WHEN 11 / - - AVG ( ALL 11 ) - - - 75 THEN NULL WHEN + 45 THEN - ( COUNT ( * ) ) * 67 + + 92 END * + 45 - 81
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + ( + NULLIF ( + 32, COUNT( * ) * - 38 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1879
SELECT + ( + NULLIF ( + 32, COUNT ( * ) * - 38 ) ) AS col2
----
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1881
SELECT - 90 + + + 17 DIV 78 DIV - 84 + - 22 + - COUNT( * ) + 51 * + + 50 AS col1
----
2437

skipif mysql # not compatible
query I rowsort label-1881
SELECT - 90 + + + 17 / 78 / - 84 + - 22 + - COUNT ( * ) + 51 * + + 50 AS col1
----
2437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT DISTINCT NULLIF ( CAST( + CAST( + 35 AS SIGNED ) AS SIGNED ), - 19 ) * - 18 + 19 AS col2
----
-611

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT NULLIF ( CAST ( + CAST ( + 35 AS INTEGER ) AS INTEGER ), - 19 ) * - 18 + 19 AS col2
----
-611

query I rowsort
SELECT + 56 * 84 col1
----
4704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1884
SELECT - - COALESCE ( - COUNT( * ), + + 4 + + 54 + - - 69 + + 97 + + 95 + COUNT( * ), - - 38 DIV + 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-1884
SELECT - - COALESCE ( - COUNT ( * ), + + 4 + + 54 + - - 69 + + 97 + + 95 + COUNT ( * ), - - 38 / + 40 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT + COUNT( * ) + 16 * - COUNT( * ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + COUNT ( * ) + 16 * - COUNT ( * ) col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT - + ( - - MIN( - 19 ) ) col1
----
19

skipif mysql # not compatible
query I rowsort label-1886
SELECT - + ( - - MIN ( - 19 ) ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL + + COUNT( * ) - - - 47
----
-46

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL + + COUNT ( * ) - - - 47
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT 55 + MAX( DISTINCT - 9 )
----
46

skipif mysql # not compatible
query I rowsort label-1888
SELECT 55 + MAX ( DISTINCT - 9 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1889
SELECT 65 + 21 - + CAST( + COUNT( * ) AS SIGNED ) - 14
----
71

skipif mysql # not compatible
query I rowsort label-1889
SELECT 65 + 21 - + CAST ( + COUNT ( * ) AS INTEGER ) - 14
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT 0 DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT 0 / 22
----
0

query II rowsort
SELECT - 65 AS col2, + 96
----
-65
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT 84 + + CAST( NULL AS SIGNED ) + + 1 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT 84 + + CAST ( NULL AS INTEGER ) + + 1 * 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT 90 DIV + 18 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1893
SELECT 90 / + 18 AS col2
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1895
SELECT ALL COALESCE ( + CAST( - + 60 AS SIGNED ), - - COUNT( * ) DIV 38 + ( 54 ) * 90 + + + 20 ) * - 28 AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL COALESCE ( + CAST ( - + 60 AS INTEGER ), - - COUNT ( * ) / 38 + ( 54 ) * 90 + + + 20 ) * - 28 AS col1
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1896
SELECT 8 DIV - - COUNT( * ) + 88 + + + 95 * CASE + 66 WHEN - + 68 THEN + 76 * - + ( - - ( 43 ) ) + - CAST( NULL AS SIGNED ) ELSE 50 + 5 END * - 6 AS col0
----
-31254

skipif mysql # not compatible
query I rowsort label-1896
SELECT 8 / - - COUNT ( * ) + 88 + + + 95 * CASE + 66 WHEN - + 68 THEN + 76 * - + ( - - ( 43 ) ) + - CAST ( NULL AS INTEGER ) ELSE 50 + 5 END * - 6 AS col0
----
-31254

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT DISTINCT + 18 * + + ( + - 68 ) * COUNT( * ) AS col2
----
-1224

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + 18 * + + ( + - 68 ) * COUNT ( * ) AS col2
----
-1224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT NULLIF ( CAST( NULL AS SIGNED ), + 8 * - 73 ) + ( - + 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + 8 * - 73 ) + ( - + 41 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + COUNT ( * ) * MIN ( ALL 43 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT COUNT( * ) * 39 * + 23 + + 27
----
924

skipif mysql # not compatible
query I rowsort label-1900
SELECT COUNT ( * ) * 39 * + 23 + + 27
----
924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1901
SELECT COUNT( * ) - CAST( - 27 AS SIGNED ) col2, + 86 col2
----
28
86

skipif mysql # not compatible
query II rowsort label-1901
SELECT COUNT ( * ) - CAST ( - 27 AS INTEGER ) col2, + 86 col2
----
28
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT COUNT( * ) + - 55 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-1902
SELECT COUNT ( * ) + - 55 AS col0
----
-54

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1904
SELECT NULLIF ( - + CAST( 59 AS DECIMAL ), + 45 + + + 16 ) * CAST( NULL AS SIGNED ) * 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT NULLIF ( - + CAST ( 59 AS REAL ), + 45 + + + 16 ) * CAST ( NULL AS INTEGER ) * 48 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1905
SELECT CAST ( + + 1 AS INTEGER ) * - CAST ( 9 AS INTEGER )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT DISTINCT - - CAST( + + 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT - - CAST ( + + 97 AS INTEGER )
----
97

query I rowsort
SELECT ALL 54 + 6 + + 27
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED ) - + + COUNT( * ) + COALESCE ( - 14, - COALESCE ( - 63, + 48 * + 26 + ( - 34 ) * + 34, COUNT( * ) ) * + 71 - + 2 ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) + COALESCE ( - 14, - COALESCE ( - 63, + 48 * + 26 + ( - 34 ) * + 34, COUNT ( * ) ) * + 71 - + 2 ) * 17
----
NULL

query I rowsort
SELECT ALL 12 + + - 62 AS col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT DISTINCT - 67 DIV + 97 + - 75 - - - 36 * + + 98 AS col2
----
-3603

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT - 67 / + 97 + - 75 - - - 36 * + + 98 AS col2
----
-3603

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT - 38 * - 24 + - 89 - - ( + 41 ) * COUNT( * ) * - - 87 * + 78 + + - 43 - - COUNT( * ) * - 68 AS col0
----
278938

skipif mysql # not compatible
query I rowsort label-1911
SELECT - 38 * - 24 + - 89 - - ( + 41 ) * COUNT ( * ) * - - 87 * + 78 + + - 43 - - COUNT ( * ) * - 68 AS col0
----
278938

query I rowsort
SELECT ALL 34 * 24 AS col1
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT CASE 61 WHEN - 16 * 93 * - MIN( - 89 ) THEN + + MAX( - 92 ) END + + 88 + + 30 + 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT CASE 61 WHEN - 16 * 93 * - MIN ( - 89 ) THEN + + MAX ( - 92 ) END + + 88 + + 30 + 16 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + 74 * 56 + + NULLIF ( - 27, + 25 ) * + 34 * SUM( ALL COALESCE ( - 27, + 34 ) ) AS col1
----
28930

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 74 * 56 + + NULLIF ( - 27, + 25 ) * + 34 * SUM ( ALL COALESCE ( - 27, + 34 ) ) AS col1
----
28930

query II rowsort
SELECT - 24, 88 * - - 42 AS col2
----
-24
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1916
SELECT - 63 * 7 + - - ( + + 90 ) + + 70 + + MIN( ALL + + 5 ) * + + 31 + CAST( NULL AS SIGNED ) * ( 55 ) + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT - 63 * 7 + - - ( + + 90 ) + + 70 + + MIN ( ALL + + 5 ) * + + 31 + CAST ( NULL AS INTEGER ) * ( 55 ) + + 33 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT ALL - COALESCE ( - + CAST( NULL AS SIGNED ), - COUNT( * ) * + 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL - COALESCE ( - + CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 80 ) AS col2
----
80

query I rowsort
SELECT + CASE + 88 WHEN + + 86 THEN + + 59 END AS col1
----
NULL

query I rowsort
SELECT ALL - 74 * + + 60 col1
----
-4440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1920
SELECT MIN( DISTINCT + 86 ) * + CAST( NULL AS SIGNED ) - + ( ( + 45 ) ) / - ( + + 19 ) + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT MIN ( DISTINCT + 86 ) * + CAST ( NULL AS INTEGER ) - + ( ( + 45 ) ) / - ( + + 19 ) + 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT DISTINCT SUM( DISTINCT 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT SUM ( DISTINCT 48 ) AS col2
----
48

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

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

query II rowsort
SELECT 83 + + COALESCE ( + + ( + + 9 ), 77 ) AS col1, + 78 + - 55 + + 63 + - 51 AS col1
----
92
35

query I rowsort
SELECT + 70 * 75 + - + 93 + - 93 AS col1
----
5064

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT 81 AS col1, NULLIF ( - 15, 73 - MIN( - 49 ) + - NULLIF ( + 17, - 0 ) - + 80 * - ( ( COUNT( * ) ) ) / 72 ) * + NULLIF ( 46, 31 ) + COUNT( * ) AS col2
----
81
-689

skipif mysql # not compatible
query II rowsort label-1925
SELECT 81 AS col1, NULLIF ( - 15, 73 - MIN ( - 49 ) + - NULLIF ( + 17, - 0 ) - + 80 * - ( ( COUNT ( * ) ) ) / 72 ) * + NULLIF ( 46, 31 ) + COUNT ( * ) AS col2
----
81
-689

query I rowsort
SELECT 0 + + + 25 AS col2
----
25

query I rowsort
SELECT 10 + - + 77
----
-67

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

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

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

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

query I rowsort
SELECT ALL 94 * - 84 * - + 60 AS col0
----
473760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL COUNT( ALL - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL COUNT ( ALL - 22 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL + 13 + MIN( DISTINCT - 78 ) - + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL + 13 + MIN ( DISTINCT - 78 ) - + COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1934
SELECT 11 AS col2, COUNT( * ) + 79
----
11
80

skipif mysql # not compatible
query II rowsort label-1934
SELECT 11 AS col2, COUNT ( * ) + 79
----
11
80

query I rowsort
SELECT 9 * - 25
----
-225

query I rowsort
SELECT 44 + + 76 col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1937
SELECT ALL - 41 DIV + - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL - 41 / + - 96 AS col0
----
0

query I rowsort
SELECT ALL - 7 * + + 80 * + 48 + + 47 AS col0
----
-26833

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT ALL + 23 * + + MIN( ALL 25 ) + - NULLIF ( + CASE ( 47 ) WHEN 9 THEN NULL WHEN 77 + 76 THEN + - MAX( 10 ) ELSE NULL END, 29 * 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + 23 * + + MIN ( ALL 25 ) + - NULLIF ( + CASE ( 47 ) WHEN 9 THEN NULL WHEN 77 + 76 THEN + - MAX ( 10 ) ELSE NULL END, 29 * 71 )
----
NULL

query I rowsort
SELECT - 13 * 64 AS col0
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL + ( COUNT( * ) ) * 35 * + - 98 + + + COUNT( * ) AS col2
----
-3429

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + ( COUNT ( * ) ) * 35 * + - 98 + + + COUNT ( * ) AS col2
----
-3429

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT - - 30 DIV - 4 + 95 * - 87 AS col0
----
-8272

skipif mysql # not compatible
query I rowsort label-1942
SELECT - - 30 / - 4 + 95 * - 87 AS col0
----
-8272

query II rowsort
SELECT ALL - 59 AS col2, 34 + + 13 col1
----
-59
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1944
SELECT - ( + 70 ) / + 38 - 33 + ( CASE 93 WHEN - 18 THEN NULL WHEN - - COUNT( * ) * 1 - - + 24 + SUM( ALL 67 ) THEN - SUM( ALL 71 ) * - CAST( - COUNT( * ) AS DECIMAL ) ELSE NULL END ) * 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT - ( + 70 ) / + 38 - 33 + ( CASE 93 WHEN - 18 THEN NULL WHEN - - COUNT ( * ) * 1 - - + 24 + SUM ( ALL 67 ) THEN - SUM ( ALL 71 ) * - CAST ( - COUNT ( * ) AS REAL ) ELSE NULL END ) * 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT 78 * + COUNT( * ) + + COALESCE ( + 19, 13 ) + + COUNT( * ) * - + 27 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1945
SELECT 78 * + COUNT ( * ) + + COALESCE ( + 19, 13 ) + + COUNT ( * ) * - + 27 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT + - ( - 39 ) * - MAX( DISTINCT + 97 ) - 49
----
-3832

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + - ( - 39 ) * - MAX ( DISTINCT + 97 ) - 49
----
-3832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT ALL 68 DIV NULLIF ( 6, COUNT( * ) + ( - COALESCE ( - + 70, - COUNT( * ), + 45 * - 30 ) ) )
----
11

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL 68 / NULLIF ( 6, COUNT ( * ) + ( - COALESCE ( - + 70, - COUNT ( * ), + 45 * - 30 ) ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + 43 - + MIN( - - 29 ) * + ( 80 ) AS col0
----
-2277

skipif mysql # not compatible
query I rowsort label-1948
SELECT + 43 - + MIN ( - - 29 ) * + ( 80 ) AS col0
----
-2277

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT ALL + - COUNT( * ) AS col1, 48 + - + ( 46 )
----
-1
2

skipif mysql # not compatible
query II rowsort label-1949
SELECT ALL + - COUNT ( * ) AS col1, 48 + - + ( 46 )
----
-1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1950
SELECT ALL - COUNT( * ) - - + 26, 15 - - - 25 - + 7 + + 75 col2
----
25
58

skipif mysql # not compatible
query II rowsort label-1950
SELECT ALL - COUNT ( * ) - - + 26, 15 - - - 25 - + 7 + + 75 col2
----
25
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1951
SELECT ALL 95 * + - CASE + - CAST( NULL AS SIGNED ) WHEN CASE + + ( COUNT( * ) ) WHEN 34 THEN CAST( - CASE + + 92 WHEN 41 THEN 61 + - 72 ELSE NULL END AS DECIMAL ) WHEN 42 * 16 THEN NULL ELSE 33 + - MIN( 91 ) END THEN NULL WHEN 12 THEN + MIN( DISTINCT - 25 ) * 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL 95 * + - CASE + - CAST ( NULL AS INTEGER ) WHEN CASE + + ( COUNT ( * ) ) WHEN 34 THEN CAST ( - CASE + + 92 WHEN 41 THEN 61 + - 72 ELSE NULL END AS REAL ) WHEN 42 * 16 THEN NULL ELSE 33 + - MIN ( 91 ) END THEN NULL WHEN 12 THEN + MIN ( DISTINCT - 25 ) * 41 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 62 * 98 * - + ( + ( - + 83 ) ) * 44 AS col0
----
-22189552

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + CASE + 75 WHEN + 76 * 53 + - COUNT( * ) THEN ( - 47 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT + CASE + 75 WHEN + 76 * 53 + - COUNT ( * ) THEN ( - 47 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1954
SELECT + + 51 DIV + SUM( 8 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1954
SELECT + + 51 / + SUM ( 8 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT - CASE + COUNT( DISTINCT - + 10 ) WHEN + 93 * - ( + 89 ) + + - 64 + - 49 + + ( + + 61 ) * + 61 THEN 68 * 84 WHEN + 34 * 94 THEN 49 WHEN + 66 / 12 THEN 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT - CASE + COUNT ( DISTINCT - + 10 ) WHEN + 93 * - ( + 89 ) + + - 64 + - 49 + + ( + + 61 ) * + 61 THEN 68 * 84 WHEN + 34 * 94 THEN 49 WHEN + 66 / 12 THEN 7 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1956
SELECT + COUNT ( * ) * MAX ( DISTINCT + 46 ) AS col1
----
46

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

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

query I rowsort
SELECT DISTINCT 60 * + + 85 AS col0
----
5100

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

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

query I rowsort
SELECT - CASE ( - - NULLIF ( - 63, - + 12 * + - 59 + 86 + + - ( + 9 ) + + 70 / + 44 ) ) WHEN + 13 * 57 THEN 5 * 65 + 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT - NULLIF ( + 0, + 39 * + 94 * ( + - 92 ) + 17 * - 40 * MAX( + 93 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1961
SELECT - NULLIF ( + 0, + 39 * + 94 * ( + - 92 ) + 17 * - 40 * MAX ( + 93 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ALL COUNT( * ) + 36 col0
----
37

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL COUNT ( * ) + 36 col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1963
SELECT - 17 * CASE 86 WHEN MAX( + 44 ) THEN + 3 + CAST( NULL AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT - 17 * CASE 86 WHEN MAX ( + 44 ) THEN + 3 + CAST ( NULL AS REAL ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 29 + + 69 * 76 + + 52 AS col1
----
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - NULLIF ( + 42, + - COUNT( * ) * + - 56 + - + 3 * + 97 * ( - + 46 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1965
SELECT - NULLIF ( + 42, + - COUNT ( * ) * + - 56 + - + 3 * + 97 * ( - + 46 ) ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + 81 + - SUM( + 96 ) + - 25 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1966
SELECT + 81 + - SUM ( + 96 ) + - 25 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL 87 + + MAX( - + 51 )
----
36

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL 87 + + MAX ( - + 51 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT ALL + ( + ( - 67 ) ) + + CAST( NULLIF ( + + 52, - 75 ) AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + ( + ( - 67 ) ) + + CAST ( NULLIF ( + + 52, - 75 ) AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-1969
SELECT - MIN( 3 ) + + 82 + + 12 * + 35 col0, + 10
----
499
10

skipif mysql # not compatible
query II rowsort label-1969
SELECT - MIN ( 3 ) + + 82 + + 12 * + 35 col0, + 10
----
499
10

query I rowsort
SELECT - 51 + COALESCE ( - 0, - - 43 ) * - 12 * + + 47 + 74
----
23

query I rowsort
SELECT ALL + COALESCE ( 68, - 58, - 76 + 19 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT + - 54 * - MAX( 9 ) - - COUNT( * ) col1
----
487

skipif mysql # not compatible
query I rowsort label-1972
SELECT + - 54 * - MAX ( 9 ) - - COUNT ( * ) col1
----
487

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT DISTINCT + 85 DIV 87 * + + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + 85 / 87 * + + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT 88 * COUNT( * ) * - 62 * + 70 * 12 + + 46 AS col2
----
-4582994

skipif mysql # not compatible
query I rowsort label-1975
SELECT 88 * COUNT ( * ) * - 62 * + 70 * 12 + + 46 AS col2
----
-4582994

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - - ( - 99 ) * + COUNT( * ) * + 99 AS col0
----
-9801

skipif mysql # not compatible
query I rowsort label-1976
SELECT - - ( - 99 ) * + COUNT ( * ) * + 99 AS col0
----
-9801

query II rowsort
SELECT + - 22 * 15 AS col0, 12 + + 18 AS col2
----
-330
30

query I rowsort
SELECT - 2 + 38
----
36

query I rowsort
SELECT + 16 * 94 * 34 + 25
----
51161

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

query II rowsort
SELECT ALL + 55, 57 * 4 + + 96 AS col0
----
55
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1982
SELECT NULLIF ( 88, + - 38 * + CAST( NULL AS SIGNED ) ), - 96 + - COUNT( + 43 ) * - + 51 AS col1
----
88
-45

skipif mysql # not compatible
query II rowsort label-1982
SELECT NULLIF ( 88, + - 38 * + CAST ( NULL AS INTEGER ) ), - 96 + - COUNT ( + 43 ) * - + 51 AS col1
----
88
-45

query I rowsort
SELECT ALL - 62 * + 49 + + - 1 + - 30 AS col0
----
-3069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT + 59 + + - CAST( - MIN( DISTINCT - 90 ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-1984
SELECT + 59 + + - CAST ( - MIN ( DISTINCT - 90 ) AS INTEGER )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1985
SELECT SUM( - - NULLIF ( 35, 36 ) ), + CAST( + 78 AS SIGNED ) col0
----
35
78

skipif mysql # not compatible
query II rowsort label-1985
SELECT SUM ( - - NULLIF ( 35, 36 ) ), + CAST ( + 78 AS INTEGER ) col0
----
35
78

query I rowsort
SELECT + 35 + 71
----
106

query II rowsort
SELECT ALL 23 AS col0, - ( - - COALESCE ( 75, - 98 * - + 29, + ( - 69 ) ) )
----
23
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1988
SELECT - NULLIF ( - 87, + - NULLIF ( + - 87, - CAST( NULL AS DECIMAL ) * + 83 * 13 ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1988
SELECT - NULLIF ( - 87, + - NULLIF ( + - 87, - CAST ( NULL AS REAL ) * + 83 * 13 ) ) AS col0
----
87

query I rowsort
SELECT + 11 + + - 20
----
-9

query I rowsort
SELECT - NULLIF ( - 60, + + 12 ) AS col0
----
60

query I rowsort
SELECT - CASE + - 27 WHEN + 34 * + NULLIF ( - 54, - 76 * 83 ) THEN + + 8 WHEN + 18 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1992
SELECT ALL CAST( - + MIN( - - ( - 6 ) ) AS SIGNED ) + + 42
----
48

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL CAST ( - + MIN ( - - ( - 6 ) ) AS INTEGER ) + + 42
----
48

query II rowsort
SELECT + 99 * + 55 * + 98 AS col1, + 79 AS col0
----
533610
79

query I rowsort
SELECT DISTINCT 28 + 52 AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1995
SELECT + MIN( DISTINCT 7 ) DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT + MIN ( DISTINCT 7 ) / 73 AS col0
----
0

query I rowsort
SELECT + CASE 62 WHEN + 30 THEN 84 + - - NULLIF ( - + 79, - 36 ) + + 26 END * + ( 42 ) * - + 22 * - 99 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 80 + + 89 + 26
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT 7 col1, COUNT( * ) col2
----
7
1

skipif mysql # not compatible
query II rowsort label-1999
SELECT 7 col1, COUNT ( * ) col2
----
7
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2001
SELECT ALL 3 AS col1, 23 + CAST( - 23 AS SIGNED ) * - 24 AS col0
----
3
575

skipif mysql # not compatible
query II rowsort label-2001
SELECT ALL 3 AS col1, 23 + CAST ( - 23 AS INTEGER ) * - 24 AS col0
----
3
575

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2002
SELECT DISTINCT - 91, - 60 * SUM( DISTINCT - 27 ) + - COALESCE ( + 44, - 6, + 49 DIV - COUNT( * ) + - + 26 + - COUNT( * ) + - 31 ) AS col1
----
-91
1576

skipif mysql # not compatible
query II rowsort label-2002
SELECT DISTINCT - 91, - 60 * SUM ( DISTINCT - 27 ) + - COALESCE ( + 44, - 6, + 49 / - COUNT ( * ) + - + 26 + - COUNT ( * ) + - 31 ) AS col1
----
-91
1576

query I rowsort
SELECT - + 35 col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2004
SELECT DISTINCT - + NULLIF ( + 86, + 93 ) AS col1, + COUNT( * )
----
-86
1

skipif mysql # not compatible
query II rowsort label-2004
SELECT DISTINCT - + NULLIF ( + 86, + 93 ) AS col1, + COUNT ( * )
----
-86
1

query I rowsort
SELECT ALL + + 39 * + + 26 AS col1
----
1014

query I rowsort
SELECT ALL - 97 - - 61
----
-36

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

skipif mysql # not compatible
query II rowsort label-2007
SELECT + - 12 col2, - COUNT ( * ) col2
----
-12
-1

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

skipif mysql # not compatible
query I rowsort label-2008
SELECT + MIN ( 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - MIN( ALL 65 ) - + - 57 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2009
SELECT - MIN ( ALL 65 ) - + - 57 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT 81 * COUNT( * ) + + 12 * - - ( + 40 ) AS col2
----
561

skipif mysql # not compatible
query I rowsort label-2010
SELECT 81 * COUNT ( * ) + + 12 * - - ( + 40 ) AS col2
----
561

query II rowsort
SELECT 68 * - - 36 + + 42 AS col2, NULLIF ( + + 13, - 62 ) col0
----
2490
13

query I rowsort
SELECT - 55 * - 21 + - + 28 + 86 * + + 19 AS col1
----
2761

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

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

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

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

skipif mysql # not compatible
query II rowsort label-2015
SELECT CAST ( NULL AS INTEGER ) AS col1, 54 AS col2
----
NULL
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2016
SELECT DISTINCT - 89 AS col0, + MAX( - 99 )
----
-89
-99

skipif mysql # not compatible
query II rowsort label-2016
SELECT DISTINCT - 89 AS col0, + MAX ( - 99 )
----
-89
-99

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

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

query I rowsort
SELECT 3 - - 94 * 18 AS col0
----
1695

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL - COALESCE ( NULLIF ( - 59, - - COUNT( * ) + - + 85 * 55 ), + 47 + + COUNT( * ) * 5 + - 87 - + 78 ) * + 22 AS col0
----
1298

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - COALESCE ( NULLIF ( - 59, - - COUNT ( * ) + - + 85 * 55 ), + 47 + + COUNT ( * ) * 5 + - 87 - + 78 ) * + 22 AS col0
----
1298

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT 9 DIV + - 45 * - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2020
SELECT 9 / + - 45 * - 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2021
SELECT ALL - COUNT( * ) + 45, - 35 AS col0
----
44
-35

skipif mysql # not compatible
query II rowsort label-2021
SELECT ALL - COUNT ( * ) + 45, - 35 AS col0
----
44
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2022
SELECT DISTINCT - 27 + - - 87 AS col0, 48 * + CAST( NULL AS SIGNED ) / + 60 + + 31
----
60
NULL

skipif mysql # not compatible
query II rowsort label-2022
SELECT DISTINCT - 27 + - - 87 AS col0, 48 * + CAST ( NULL AS INTEGER ) / + 60 + + 31
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT DISTINCT + MIN( ALL - 45 ) * + 35
----
-1575

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT + MIN ( ALL - 45 ) * + 35
----
-1575

query I rowsort
SELECT 9 * 25 AS col0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT DISTINCT - COUNT( * ) + - 75 col1
----
-76

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT - COUNT ( * ) + - 75 col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT DISTINCT + 73 * + 66 * + 76 * - ( COUNT( * ) )
----
-366168

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT + 73 * + 66 * + 76 * - ( COUNT ( * ) )
----
-366168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT ALL 94 + - + 70 * + CAST( - NULLIF ( - + 40, 35 - + COUNT( * ) / - 56 ) AS SIGNED ) AS col0
----
-2706

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL 94 + - + 70 * + CAST ( - NULLIF ( - + 40, 35 - + COUNT ( * ) / - 56 ) AS INTEGER ) AS col0
----
-2706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT 25 - + + ( 3 ) - + COUNT( * ) * - 61 + - 98 + - 80 * - CAST( NULL AS SIGNED ) * 75 * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT 25 - + + ( 3 ) - + COUNT ( * ) * - 61 + - 98 + - 80 * - CAST ( NULL AS INTEGER ) * 75 * + 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT - 0 + - - NULLIF ( 1, - - COALESCE ( - - 58, + COUNT( * ) * 28 / - 39 ) ) + - COUNT( + 21 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - 0 + - - NULLIF ( 1, - - COALESCE ( - - 58, + COUNT ( * ) * 28 / - 39 ) ) + - COUNT ( + 21 ) AS col1
----
0

query I rowsort
SELECT ALL 87 * 41 AS col2
----
3567

query I rowsort
SELECT 15 + 98
----
113

query I rowsort
SELECT 24 + 16 * + 83 col0
----
1352

query II rowsort
SELECT ( - - 30 ) * - ( 11 ), - 89 AS col1
----
-330
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2034
SELECT 34 + 6 AS col1, + 3 - - 18 + + + COUNT( * ) * 9 * CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - + 92 + - 32 + 49 * CAST( 30 AS SIGNED ) - - 6 + 98 * - 38 col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-2034
SELECT 34 + 6 AS col1, + 3 - - 18 + + + COUNT ( * ) * 9 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 92 + - 32 + 49 * CAST ( 30 AS INTEGER ) - - 6 + 98 * - 38 col2
----
40
NULL

query I rowsort
SELECT - 59 + - 60 AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT - - NULLIF ( - 49, + COUNT( - CASE + - 69 WHEN + - 79 THEN + 87 + ( - 88 ) END ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2036
SELECT - - NULLIF ( - 49, + COUNT ( - CASE + - 69 WHEN + - 79 THEN + 87 + ( - 88 ) END ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL - NULLIF ( 69, + - COUNT( * ) * - COUNT( * ) + ( + + 94 ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - NULLIF ( 69, + - COUNT ( * ) * - COUNT ( * ) + ( + + 94 ) ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + ( - CASE - + 39 WHEN 23 * + 95 THEN NULL WHEN 36 + + SUM( ALL + 72 ) * - COUNT( * ) THEN NULL WHEN - - 44 THEN - - 66 * - + 91 + - + 39 ELSE - 86 END ) + - 66 * COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2038
SELECT + ( - CASE - + 39 WHEN 23 * + 95 THEN NULL WHEN 36 + + SUM ( ALL + 72 ) * - COUNT ( * ) THEN NULL WHEN - - 44 THEN - - 66 * - + 91 + - + 39 ELSE - 86 END ) + - 66 * COUNT ( * ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2039
SELECT ALL + - 20 * - CAST( NULL AS SIGNED ) DIV + - 98 - - COUNT( * ) col2, ( - - 62 ) * - + MIN( ALL - - 26 ) DIV - + COUNT( * ) + + + NULLIF ( + 37, - + CAST( - 60 AS DECIMAL ) ) AS col1
----
NULL
1649

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL + - 20 * - CAST ( NULL AS INTEGER ) / + - 98 - - COUNT ( * ) col2, ( - - 62 ) * - + MIN ( ALL - - 26 ) / - + COUNT ( * ) + + + NULLIF ( + 37, - + CAST ( - 60 AS REAL ) ) AS col1
----
NULL
1649

query I rowsort
SELECT 57 * 89 AS col1
----
5073

query I rowsort
SELECT 3 * 64 col0
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-2042
SELECT DISTINCT - COUNT( - - 97 ) AS col2, 11 - + 1 + + 21 * - 99 * - - 76 - - 16 * 14 * - 48
----
-1
-168746

skipif mysql # not compatible
query II rowsort label-2042
SELECT DISTINCT - COUNT ( - - 97 ) AS col2, 11 - + 1 + + 21 * - 99 * - - 76 - - 16 * 14 * - 48
----
-1
-168746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2043
SELECT + + 73 DIV + + 86 + + 84 + + 34 + + - ( - 47 ) + + - 17 + COUNT( * ) * + - 22 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-2043
SELECT + + 73 / + + 86 + + 84 + + 34 + + - ( - 47 ) + + - 17 + COUNT ( * ) * + - 22 AS col2
----
126

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

skipif mysql # not compatible
query I rowsort label-2044
SELECT 83 * + 1 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT COUNT( * ) * + + NULLIF ( + - 33, + + 90 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2045
SELECT COUNT ( * ) * + + NULLIF ( + - 33, + + 90 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + ( + + MIN( DISTINCT - 29 ) ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-2046
SELECT + ( + + MIN ( DISTINCT - 29 ) ) col2
----
-29

query I rowsort
SELECT ALL - 39 * - + 48 * 48 col1
----
89856

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT MAX( 86 ) + - - 19
----
105

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT MAX ( 86 ) + - - 19
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT 90 + + 37 - - NULLIF ( - COUNT( * ), 83 / ( - + 28 ) - 55 * - + 85 / - - 80 + + + 81 ) + + 48 AS col0
----
174

skipif mysql # not compatible
query I rowsort label-2049
SELECT 90 + + 37 - - NULLIF ( - COUNT ( * ), 83 / ( - + 28 ) - 55 * - + 85 / - - 80 + + + 81 ) + + 48 AS col0
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT CASE + COUNT( * ) WHEN 17 + + 10 + - 90 + + 51 + - 78 + + ( + 58 ) * CASE - 10 WHEN + NULLIF ( - + CAST( 70 AS SIGNED ), + 91 * + 62 + + 96 / - 67 ) THEN NULL WHEN + 94 / CAST( 51 AS SIGNED ) + 66 * 48 THEN - 28 ELSE NULL END - 86 THEN ( 75 ) + - COUNT( * ) WHEN 26 / COUNT( ALL + 52 * + COALESCE ( + 24, - 18 ) ) + 93 THEN NULL END + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT CASE + COUNT ( * ) WHEN 17 + + 10 + - 90 + + 51 + - 78 + + ( + 58 ) * CASE - 10 WHEN + NULLIF ( - + CAST ( 70 AS INTEGER ), + 91 * + 62 + + 96 / - 67 ) THEN NULL WHEN + 94 / CAST ( 51 AS INTEGER ) + 66 * 48 THEN - 28 ELSE NULL END - 86 THEN ( 75 ) + - COUNT ( * ) WHEN 26 / COUNT ( ALL + 52 * + COALESCE ( + 24, - 18 ) ) + 93 THEN NULL END + + 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2051
SELECT 38 * + - COALESCE ( 77, 79 * 11 + - - COUNT( - 37 ) * + + 7 + + AVG ( ALL + - 10 ) + + COUNT( * ) + - - ( + 85 ) + 86 + + - 24 * + 80, 26 * - 23 ) DIV + 11 AS col2
----
-266

skipif mysql # not compatible
query I rowsort label-2051
SELECT 38 * + - COALESCE ( 77, 79 * 11 + - - COUNT ( - 37 ) * + + 7 + + AVG ( ALL + - 10 ) + + COUNT ( * ) + - - ( + 85 ) + 86 + + - 24 * + 80, 26 * - 23 ) / + 11 AS col2
----
-266

query I rowsort
SELECT 86 * + - 6 + - - 15 + 93 AS col2
----
-408

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT 44 DIV - 5 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2053
SELECT 44 / - 5 AS col1
----
-8

query I rowsort
SELECT ALL - 13 + + + 51
----
38

query I rowsort
SELECT 77 * 30 + + - 39 AS col2
----
2271

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2057
SELECT - 13 * + + 19 * - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT - 13 * + + 19 * - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 72
----
NULL

query I rowsort
SELECT 28 * + + 35 AS col0
----
980

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT ALL 64 DIV + 3
----
21

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL 64 / + 3
----
21

query I rowsort
SELECT 34 + - 18 * - + 31 * + 3 - - - ( + - 31 ) * 74 AS col1
----
4002

query I rowsort
SELECT ALL 82 - 98
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT 44 + + CASE - COUNT( * ) WHEN 4 THEN + COUNT( * ) * - 68 + - 75 + - COUNT( * ) / + 7 + CASE - MAX( ALL - - 71 ) WHEN - COUNT( * ) / + - 67 + - 99 + 52 * - 19 THEN NULL WHEN 35 + + COUNT( * ) THEN + 60 + 56 ELSE NULL END * + 74 END + + 63 * 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT 44 + + CASE - COUNT ( * ) WHEN 4 THEN + COUNT ( * ) * - 68 + - 75 + - COUNT ( * ) / + 7 + CASE - MAX ( ALL - - 71 ) WHEN - COUNT ( * ) / + - 67 + - 99 + 52 * - 19 THEN NULL WHEN 35 + + COUNT ( * ) THEN + 60 + 56 ELSE NULL END * + 74 END + + 63 * 76 AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT 60 + + + 20 AS col0
----
80

query I rowsort
SELECT ALL + 24 * + 54 AS col2
----
1296

onlyif mysql # aggregate syntax: 
query II rowsort label-2067
SELECT 6 AS col2, + COALESCE ( + 66, + COALESCE ( - - 8, + 78 - + + 91 + + ( - SUM( DISTINCT 53 ) ) * + + COUNT( * ) * + 90 * - + 88 ) ) AS col2
----
6
66

skipif mysql # not compatible
query II rowsort label-2067
SELECT 6 AS col2, + COALESCE ( + 66, + COALESCE ( - - 8, + 78 - + + 91 + + ( - SUM ( DISTINCT 53 ) ) * + + COUNT ( * ) * + 90 * - + 88 ) ) AS col2
----
6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT - ( - 48 ) + + + COUNT( DISTINCT - 7 )
----
49

skipif mysql # not compatible
query I rowsort label-2068
SELECT - ( - 48 ) + + + COUNT ( DISTINCT - 7 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT + COUNT( DISTINCT + + COALESCE ( + ( 79 ), - 81 + - 28 + 58, - + 62 * - - 67 ) ) + + 40
----
41

skipif mysql # not compatible
query I rowsort label-2069
SELECT + COUNT ( DISTINCT + + COALESCE ( + ( 79 ), - 81 + - 28 + 58, - + 62 * - - 67 ) ) + + 40
----
41

query I rowsort
SELECT - + 67 * 78 * - 6 AS col1
----
31356

query I rowsort
SELECT ALL + NULLIF ( - ( - 23 ), + 48 ) AS col0
----
23

query I rowsort
SELECT + NULLIF ( ( - 93 ), + 62 )
----
-93

query I rowsort
SELECT - + 84 * + 73 AS col1
----
-6132

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT - COALESCE ( - 81, + COALESCE ( 85, - 56 ) * + 37 * + 65 + + COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2074
SELECT - COALESCE ( - 81, + COALESCE ( 85, - 56 ) * + 37 * + 65 + + COUNT ( * ) ) AS col2
----
81

query I rowsort
SELECT - + 40 * - 5
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2076
SELECT - + COUNT( * ) DIV - + COALESCE ( + MAX( DISTINCT - 97 ), COUNT( * ), 12 - + 84 + + 55, + ( + + CAST( COUNT( * ) AS SIGNED ) ) ) DIV 28 + + 55 + - - COUNT( * ) - - 35 + 26 col1
----
117

skipif mysql # not compatible
query I rowsort label-2076
SELECT - + COUNT ( * ) / - + COALESCE ( + MAX ( DISTINCT - 97 ), COUNT ( * ), 12 - + 84 + + 55, + ( + + CAST ( COUNT ( * ) AS INTEGER ) ) ) / 28 + + 55 + - - COUNT ( * ) - - 35 + 26 col1
----
117

query I rowsort
SELECT DISTINCT 8 + + 9 + 93 + - + 54 AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT ALL + + 12 AS col2, COUNT( * ) * + NULLIF ( - - 78, + SUM( 88 ) * + COUNT( * ) * - 41 )
----
12
78

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL + + 12 AS col2, COUNT ( * ) * + NULLIF ( - - 78, + SUM ( 88 ) * + COUNT ( * ) * - 41 )
----
12
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2079
SELECT - ( - NULLIF ( - - CASE + CAST( NULL AS SIGNED ) WHEN + NULLIF ( + 51, + COUNT( * ) * + 42 ) THEN 84 + 68 WHEN + COUNT( * ) + - AVG ( DISTINCT + + 31 ) THEN NULL ELSE NULL END, + 90 * - 53 ) ) / + 72 - NULLIF ( - COALESCE ( + 2, 17 * + 93, 82 + 93 * CASE 37 + 50 WHEN - ( AVG ( - CAST( + 26 AS SIGNED ) ) ) THEN COUNT( ALL 2 ) END, CASE - 79 WHEN COUNT( * ) / - 72 THEN - 39 ELSE 14 * 36 END * 81 + COUNT( * ) ), + 5 + - 20 ) * - 24 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT - ( - NULLIF ( - - CASE + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( + 51, + COUNT ( * ) * + 42 ) THEN 84 + 68 WHEN + COUNT ( * ) + - AVG ( DISTINCT + + 31 ) THEN NULL ELSE NULL END, + 90 * - 53 ) ) / + 72 - NULLIF ( - COALESCE ( + 2, 17 * + 93, 82 + 93 * CASE 37 + 50 WHEN - ( AVG ( - CAST ( + 26 AS INTEGER ) ) ) THEN COUNT ( ALL 2 ) END, CASE - 79 WHEN COUNT ( * ) / - 72 THEN - 39 ELSE 14 * 36 END * 81 + COUNT ( * ) ), + 5 + - 20 ) * - 24 col0
----
NULL

query I rowsort
SELECT + + 82 * 92 * + - 21 col0
----
-158424

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL + 60 * - - 49 + - 3 * - + COUNT( * ) * + COUNT( * ) * 95 * + 53
----
18045

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + 60 * - - 49 + - 3 * - + COUNT ( * ) * + COUNT ( * ) * 95 * + 53
----
18045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2082
SELECT - 62 * ( - + 60 ) DIV ( + COUNT( * ) )
----
3720

skipif mysql # not compatible
query I rowsort label-2082
SELECT - 62 * ( - + 60 ) / ( + COUNT ( * ) )
----
3720

query II rowsort
SELECT DISTINCT + 97 * - 39 * - 60 + - 41, 11 + + 54 + + 34 + - - 62 * - 7 AS col1
----
226939
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT + 95 - - 11 + MIN( + 41 ) * + 2 * + + COUNT( * ) / - + 11 * ( - 91 ) * - ( + + MIN( 6 ) ) * + 47 + - + 87 * 99 * + CASE + COUNT( * ) WHEN - 61 THEN 44 * ( - ( 30 ) ) WHEN 96 THEN NULL ELSE NULL END + + 25 * + 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT + 95 - - 11 + MIN ( + 41 ) * + 2 * + + COUNT ( * ) / - + 11 * ( - 91 ) * - ( + + MIN ( 6 ) ) * + 47 + - + 87 * 99 * + CASE + COUNT ( * ) WHEN - 61 THEN 44 * ( - ( 30 ) ) WHEN 96 THEN NULL ELSE NULL END + + 25 * + 69 col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2085
SELECT - 9 * + 10 + 35 + + 23 + - + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT - 9 * + 10 + 35 + + 23 + - + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL - 64 * 10 + 29 + - ( + - 19 ) AS col1
----
-592

onlyif mysql # aggregate syntax: 
query II rowsort label-2087
SELECT ALL 77 * + COUNT( * ) AS col2, - 69 AS col1
----
77
-69

skipif mysql # not compatible
query II rowsort label-2087
SELECT ALL 77 * + COUNT ( * ) AS col2, - 69 AS col1
----
77
-69

query II rowsort
SELECT ALL + 54 AS col0, + 30 AS col1
----
54
30

query I rowsort
SELECT DISTINCT - 20 * + - 31 - 4 AS col2
----
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT + CASE + CAST( + 81 AS SIGNED ) WHEN - 29 THEN NULL ELSE - ( + 52 ) * + 58 * - 96 END col1
----
289536

skipif mysql # not compatible
query I rowsort label-2090
SELECT + CASE + CAST ( + 81 AS INTEGER ) WHEN - 29 THEN NULL ELSE - ( + 52 ) * + 58 * - 96 END col1
----
289536

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

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

query I rowsort
SELECT + CASE - AVG ( - - 67 ) WHEN + NULLIF ( - - 82, 36 ) THEN NULL ELSE 7 END
----
7

query I rowsort
SELECT - 83 * - + 53 - + - 44
----
4443

query I rowsort
SELECT - 5 * + 28
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT DISTINCT - 65 DIV - 15 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT - 65 / - 15 AS col1
----
4

query II rowsort
SELECT DISTINCT 94 AS col2, - 27 AS col2
----
94
-27

query I rowsort
SELECT DISTINCT - 68 * - 52 / + 23 + + 33 + - - 46 + + CASE - 38 WHEN - 1 THEN - 89 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT DISTINCT - 57 DIV - 32
----
1

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT - 57 / - 32
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT DISTINCT 38 DIV - 63 * + 83
----
0

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT 38 / - 63 * + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT + - 19 + + 79 * + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2100
SELECT + - 19 + + 79 * + COUNT ( * ) AS col0
----
60

query I rowsort
SELECT + + 44 + - + 1 * 12 AS col0
----
32

query I rowsort
SELECT + ( - 32 ) * 20 + - ( 91 ) - 67 + + 86
----
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - - COUNT( ALL 59 ) + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2103
SELECT - - COUNT ( ALL 59 ) + 51 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT ALL 36 * + CASE + + 84 WHEN - 0 THEN NULLIF ( + MAX( 13 ), - 88 ) / + 47 WHEN 49 THEN NULL ELSE NULL END * - 30 * + + COUNT( * ) + - 15 + 69, + 80 + 95 AS col1
----
NULL
175

skipif mysql # not compatible
query II rowsort label-2104
SELECT ALL 36 * + CASE + + 84 WHEN - 0 THEN NULLIF ( + MAX ( 13 ), - 88 ) / + 47 WHEN 49 THEN NULL ELSE NULL END * - 30 * + + COUNT ( * ) + - 15 + 69, + 80 + 95 AS col1
----
NULL
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2105
SELECT ALL + 14 + 82 - + 14 DIV - COUNT( * ) + - 3 + - 58
----
49

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL + 14 + 82 - + 14 / - COUNT ( * ) + - 3 + - 58
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT - 56 + + MAX( 36 )
----
-20

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT - 56 + + MAX ( 36 )
----
-20

query II rowsort
SELECT DISTINCT 19, 48 AS col1
----
19
48

query I rowsort
SELECT - - 53 + + 57 AS col2
----
110

query I rowsort
SELECT - CASE - ( 54 ) WHEN 45 THEN + 81 WHEN - 41 THEN NULL WHEN - + 31 * - + 46 THEN NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2110
SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) * 84 * COUNT ( * ) * + 5 AS col0
----
NULL
NULL

query I rowsort
SELECT - - 67 * - 78 + 30 * - 47 * + + 62 AS col1
----
-92646

onlyif mysql # DIV for integer division: 
query I rowsort label-2112
SELECT + 39 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2112
SELECT + 39 / 82 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT ALL + 37 DIV - 27 - - 44 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL + 37 / - 27 - - 44 AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2114
SELECT - 83 * - SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT CAST( - NULLIF ( - 89, + CASE - - ( + 2 ) WHEN - MIN( + 33 ) THEN ( + COUNT( * ) ) END / + + 9 * + 68 * - 59 * + 37 / + 62 ) AS SIGNED ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-2115
SELECT CAST ( - NULLIF ( - 89, + CASE - - ( + 2 ) WHEN - MIN ( + 33 ) THEN ( + COUNT ( * ) ) END / + + 9 * + 68 * - 59 * + 37 / + 62 ) AS INTEGER ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL - ( - 82 ) * + + MIN( - 30 ) - - + 43 * + 80 AS col2
----
980

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - ( - 82 ) * + + MIN ( - 30 ) - - + 43 * + 80 AS col2
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + MAX( DISTINCT - 45 ) * + 70 * + 17 AS col2
----
-53550

skipif mysql # not compatible
query I rowsort label-2117
SELECT + MAX ( DISTINCT - 45 ) * + 70 * + 17 AS col2
----
-53550

query I rowsort
SELECT - 41 + - - 65 + + 26
----
50

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

skipif mysql # not compatible
query I rowsort label-2119
SELECT 51 * + 10 - - COUNT ( * ) AS col1
----
511

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT COUNT( * ) + 41 col1, 75
----
42
75

skipif mysql # not compatible
query II rowsort label-2120
SELECT COUNT ( * ) + 41 col1, 75
----
42
75

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

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL 28 / - - ( + COUNT ( * ) ) AS col1
----
28

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

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

query I rowsort
SELECT ALL 57 * + 87 AS col2
----
4959

query I rowsort
SELECT ALL 69 * + ( - + 33 ) AS col0
----
-2277

query I rowsort
SELECT DISTINCT 27 * 90
----
2430

query I rowsort
SELECT + 75 * - 51 * - + 4
----
15300

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL - MAX( DISTINCT + 14 ) + 13 + + + 23
----
22

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL - MAX ( DISTINCT + 14 ) + 13 + + + 23
----
22

query I rowsort
SELECT DISTINCT + 45 + - 73 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2129
SELECT ALL MIN( DISTINCT + 68 ) AS col1, 7 + - 12 * - - ( - - 63 )
----
68
-749

skipif mysql # not compatible
query II rowsort label-2129
SELECT ALL MIN ( DISTINCT + 68 ) AS col1, 7 + - 12 * - - ( - - 63 )
----
68
-749

query I rowsort
SELECT DISTINCT - 76 + 53 + - 0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL 11 + ( - 28 ) + - NULLIF ( - 55, + 86 + - + SUM( + COALESCE ( NULLIF ( + 29, + 97 ), + 95, - 14 ) ) + 11 + 17 / + - 24 * + 98 / 81 - 11 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL 11 + ( - 28 ) + - NULLIF ( - 55, + 86 + - + SUM ( + COALESCE ( NULLIF ( + 29, + 97 ), + 95, - 14 ) ) + 11 + 17 / + - 24 * + 98 / 81 - 11 ) AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT DISTINCT 29 + - + 50 DIV + 74
----
29

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT 29 + - + 50 / + 74
----
29

query I rowsort
SELECT + 78 * + - 16
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT 60 - + CASE - - 38 WHEN ( + ( + COUNT( * ) ) ) + + 88 * - + 45 THEN NULL ELSE + 95 END AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2134
SELECT 60 - + CASE - - 38 WHEN ( + ( + COUNT ( * ) ) ) + + 88 * - + 45 THEN NULL ELSE + 95 END AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT ALL + + 71 + + + 17 + 20, - CASE - + 97 WHEN - COUNT( * ) THEN NULL WHEN 12 THEN + COUNT( * ) * - 86 + - COUNT( * ) * + 44 + COUNT( * ) ELSE - 98 + 80 END * + + COUNT( * ) + 17 AS col1
----
108
35

skipif mysql # not compatible
query II rowsort label-2135
SELECT ALL + + 71 + + + 17 + 20, - CASE - + 97 WHEN - COUNT ( * ) THEN NULL WHEN 12 THEN + COUNT ( * ) * - 86 + - COUNT ( * ) * + 44 + COUNT ( * ) ELSE - 98 + 80 END * + + COUNT ( * ) + 17 AS col1
----
108
35

query I rowsort
SELECT - 44 - - 97 * 87 AS col2
----
8395

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT 50 * + MAX( ALL 73 ) + - 44 AS col0
----
3606

skipif mysql # not compatible
query I rowsort label-2137
SELECT 50 * + MAX ( ALL 73 ) + - 44 AS col0
----
3606

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT - 58 * - 25 + - ( NULLIF ( - 59, - 78 + - COUNT( * ) ) ) - + 32 * 46
----
37

skipif mysql # not compatible
query I rowsort label-2138
SELECT - 58 * - 25 + - ( NULLIF ( - 59, - 78 + - COUNT ( * ) ) ) - + 32 * 46
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + 0 * MIN( - + 26 ) + + 27 * - 4
----
-108

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + 0 * MIN ( - + 26 ) + + 27 * - 4
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2140
SELECT DISTINCT - MAX( CAST( 91 AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT - MAX ( CAST ( 91 AS INTEGER ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT 6 - - COUNT( + - 65 )
----
7

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT 6 - - COUNT ( + - 65 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL + COUNT( * ) * + 87 * + 58 AS col2
----
5046

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL + COUNT ( * ) * + 87 * + 58 AS col2
----
5046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2143
SELECT - COUNT( * ) DIV - + 9 + - 6 * + 45
----
-270

skipif mysql # not compatible
query I rowsort label-2143
SELECT - COUNT ( * ) / - + 9 + - 6 * + 45
----
-270

query I rowsort
SELECT DISTINCT + 82 - - 31
----
113

query II rowsort
SELECT ALL - 79 AS col1, - CASE ( - 47 ) WHEN ( - 47 ) THEN 70 + 51 END AS col2
----
-79
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT 18 * + 80 * + COUNT( * ) * 46 * 60 * - 32
----
-127180800

skipif mysql # not compatible
query I rowsort label-2146
SELECT 18 * + 80 * + COUNT ( * ) * 46 * 60 * - 32
----
-127180800

query I rowsort
SELECT 60 + - 0
----
60

query I rowsort
SELECT 56 * + + 21 * + 16 + 34 col2
----
18850

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT COUNT( + 73 ) - - 36 col0
----
37

skipif mysql # not compatible
query I rowsort label-2149
SELECT COUNT ( + 73 ) - - 36 col0
----
37

query I rowsort
SELECT ALL + 65 * - 10
----
-650

query II rowsort
SELECT 28 AS col0, 12
----
28
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT DISTINCT + 47 * CAST( - 96 AS SIGNED ) col0
----
-4512

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT + 47 * CAST ( - 96 AS INTEGER ) col0
----
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL 81 + - CASE + - 94 WHEN MIN( DISTINCT - - 75 ) THEN + AVG ( - 23 ) END + - 46 / 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL 81 + - CASE + - 94 WHEN MIN ( DISTINCT - - 75 ) THEN + AVG ( - 23 ) END + - 46 / 59 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2154
SELECT + 32 AS col2, CAST( + 59 AS SIGNED ) AS col1
----
32
59

skipif mysql # not compatible
query II rowsort label-2154
SELECT + 32 AS col2, CAST ( + 59 AS INTEGER ) AS col1
----
32
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT ALL - 95 AS col0, 91 * + 74 + - + 88 + + 2 * + SUM( DISTINCT - 53 ) * - COUNT( * ) * SUM( DISTINCT - 49 ) + + MAX( ALL - 91 ) * - + 68 AS col0
----
-95
7640

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL - 95 AS col0, 91 * + 74 + - + 88 + + 2 * + SUM ( DISTINCT - 53 ) * - COUNT ( * ) * SUM ( DISTINCT - 49 ) + + MAX ( ALL - 91 ) * - + 68 AS col0
----
-95
7640

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT SUM( ALL - + 96 ) * - - 77
----
-7392

skipif mysql # not compatible
query I rowsort label-2156
SELECT SUM ( ALL - + 96 ) * - - 77
----
-7392

query II rowsort
SELECT ALL - 40 AS col2, 86 * + - 45 * - 37 + - 44 AS col0
----
-40
143146

query I rowsort
SELECT 43 * + 17 col2
----
731

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2160
SELECT 57, - CAST( NULL AS SIGNED ) * 22 * + 56 * + 9 * - 10 / + 9 AS col1
----
57
NULL

skipif mysql # not compatible
query II rowsort label-2160
SELECT 57, - CAST ( NULL AS INTEGER ) * 22 * + 56 * + 9 * - 10 / + 9 AS col1
----
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL + - 99 + + CASE 22 WHEN + - 45 * + 76 - + 25 + - 63 * - 48 THEN NULL WHEN 10 THEN NULL ELSE + 79 * COUNT( * ) + + 67 END AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + - 99 + + CASE 22 WHEN + - 45 * + 76 - + 25 + - 63 * - 48 THEN NULL WHEN 10 THEN NULL ELSE + 79 * COUNT ( * ) + + 67 END AS col0
----
47

query I rowsort
SELECT + + 64 * + + 60 - 47
----
3793

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT 27 * - CASE - 1 WHEN + + COALESCE ( + COALESCE ( + - NULLIF ( - 4, 84 + + - COUNT( ALL - + 49 ) * - 77 + ( + + 85 ) / 95 + - 89 ), + 56, 31 ), + 38 ) + 35 THEN NULL ELSE 90 END * 80
----
-194400

skipif mysql # not compatible
query I rowsort label-2163
SELECT 27 * - CASE - 1 WHEN + + COALESCE ( + COALESCE ( + - NULLIF ( - 4, 84 + + - COUNT ( ALL - + 49 ) * - 77 + ( + + 85 ) / 95 + - 89 ), + 56, 31 ), + 38 ) + 35 THEN NULL ELSE 90 END * 80
----
-194400

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT - COALESCE ( - 55, - COUNT( * ) + ( - 14 ), 95 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2164
SELECT - COALESCE ( - 55, - COUNT ( * ) + ( - 14 ), 95 ) AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2165
SELECT ALL - 16 + + 63 * + - 53 + CAST( 87 AS SIGNED ) AS col2
----
-3268

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - 16 + + 63 * + - 53 + CAST ( 87 AS INTEGER ) AS col2
----
-3268

query II rowsort
SELECT - 52 AS col2, + 55 AS col2
----
-52
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT DISTINCT CAST( - CAST( 46 AS SIGNED ) AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT CAST ( - CAST ( 46 AS INTEGER ) AS INTEGER ) AS col1
----
-46

query I rowsort
SELECT DISTINCT + - 44 + - - 22
----
-22

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

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

query I rowsort
SELECT + 48 - + 46 - - 15 * 36
----
542

query II rowsort
SELECT ALL + 93, - 70 col2
----
93
-70

query I rowsort
SELECT 96 - + 45 + 13 * + 89
----
1208

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - ( ( 47 ) ) * - 77 + + - COUNT( * ) * - - COALESCE ( + NULLIF ( - - 98, COUNT( * ) / - - CASE + 49 WHEN - 20 THEN - ( 32 ) END + + 85 ), NULLIF ( + 80, + 81 ) ) * + 12
----
2443

skipif mysql # not compatible
query I rowsort label-2173
SELECT - ( ( 47 ) ) * - 77 + + - COUNT ( * ) * - - COALESCE ( + NULLIF ( - - 98, COUNT ( * ) / - - CASE + 49 WHEN - 20 THEN - ( 32 ) END + + 85 ), NULLIF ( + 80, + 81 ) ) * + 12
----
2443

query I rowsort
SELECT 75 + + 27 AS col1
----
102

query I rowsort
SELECT - 98 - - CASE 97 WHEN + - 5 * + 62 THEN + 64 END
----
NULL

query I rowsort
SELECT - 42 + + 60 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT CASE 12 WHEN + SUM( DISTINCT - + 29 ) THEN + - 29 * + 95 ELSE + CAST( + 74 AS SIGNED ) END - - 5 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT CASE 12 WHEN + SUM ( DISTINCT - + 29 ) THEN + - 29 * + 95 ELSE + CAST ( + 74 AS INTEGER ) END - - 5 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 91
----
NULL

query I rowsort
SELECT ALL ( - ( NULLIF ( + 97, 11 ) ) ) AS col2
----
-97

query I rowsort
SELECT + 51 * - 5 AS col1
----
-255

query I rowsort
SELECT DISTINCT 30 - - 55 AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT ALL + 90 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL + 90 / 52
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT NULLIF ( COALESCE ( - 97, + 0, - CASE + 69 WHEN - 6 * NULLIF ( + 79, 29 * 75 ) * + 25 + + NULLIF ( - 71, 36 * + + MAX( DISTINCT + + 85 ) * 69 + 26 ) * 63 + 39 THEN NULL ELSE - 47 + + 8 END + - CASE 18 WHEN + 33 + - 77 THEN 66 + 43 * CAST( NULL AS SIGNED ) WHEN - MIN( DISTINCT 59 ) * MIN( ALL 4 ) THEN - 72 * 10 - 42 END * 30 ), - 7 ) + ( 75 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2182
SELECT NULLIF ( COALESCE ( - 97, + 0, - CASE + 69 WHEN - 6 * NULLIF ( + 79, 29 * 75 ) * + 25 + + NULLIF ( - 71, 36 * + + MAX ( DISTINCT + + 85 ) * 69 + 26 ) * 63 + 39 THEN NULL ELSE - 47 + + 8 END + - CASE 18 WHEN + 33 + - 77 THEN 66 + 43 * CAST ( NULL AS INTEGER ) WHEN - MIN ( DISTINCT 59 ) * MIN ( ALL 4 ) THEN - 72 * 10 - 42 END * 30 ), - 7 ) + ( 75 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2183
SELECT - CASE - - 23 WHEN + - CASE - + 1 WHEN + 57 * 17 * COUNT( * ) THEN 94 * ( - 32 ) END + 17 THEN + 16 * + + 74 * + ( + + 55 ) * + + 80 + 75 + - + 81 WHEN CAST( 80 AS SIGNED ) THEN + AVG ( 8 ) + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT - CASE - - 23 WHEN + - CASE - + 1 WHEN + 57 * 17 * COUNT ( * ) THEN 94 * ( - 32 ) END + 17 THEN + 16 * + + 74 * + ( + + 55 ) * + + 80 + 75 + - + 81 WHEN CAST ( 80 AS INTEGER ) THEN + AVG ( 8 ) + 99 END
----
NULL

query I rowsort
SELECT ALL 18 * - + 40
----
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT 18 DIV 11 col0
----
1

skipif mysql # not compatible
query I rowsort label-2185
SELECT 18 / 11 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT 54 DIV 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2186
SELECT 54 / 54 AS col0
----
1

query I rowsort
SELECT + 41 + + + 44 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL ( - COALESCE ( COUNT( * ), 24 + + 60 + 73 + - 44 * + 41 * + - 62 ) ) * + - 62
----
62

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL ( - COALESCE ( COUNT ( * ), 24 + + 60 + 73 + - 44 * + 41 * + - 62 ) ) * + - 62
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT ( + CASE - CAST( NULL AS SIGNED ) WHEN + - 59 THEN NULL ELSE 56 - + 19 END ) * + 93 + - 57 AS col0
----
3384

skipif mysql # not compatible
query I rowsort label-2189
SELECT ( + CASE - CAST ( NULL AS INTEGER ) WHEN + - 59 THEN NULL ELSE 56 - + 19 END ) * + 93 + - 57 AS col0
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL 99 * + SUM( 77 ) AS col0
----
7623

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL 99 * + SUM ( 77 ) AS col0
----
7623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2191
SELECT DISTINCT ( + + 37 ) * CAST( + 4 AS SIGNED ), ( - 11 ) * + 79 - - + COUNT( * ) AS col0
----
148
-868

skipif mysql # not compatible
query II rowsort label-2191
SELECT DISTINCT ( + + 37 ) * CAST ( + 4 AS INTEGER ), ( - 11 ) * + 79 - - + COUNT ( * ) AS col0
----
148
-868

query I rowsort
SELECT COALESCE ( + 68, 83, + 1 * - 75 * - 48 * + - 18 ) col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT - CASE - 74 WHEN + 50 THEN COUNT( * ) * - - ( - + 74 ) ELSE + MAX( 0 ) END + + - 98 * - - COALESCE ( + 51, 74 * 35 )
----
-4998

skipif mysql # not compatible
query I rowsort label-2193
SELECT - CASE - 74 WHEN + 50 THEN COUNT ( * ) * - - ( - + 74 ) ELSE + MAX ( 0 ) END + + - 98 * - - COALESCE ( + 51, 74 * 35 )
----
-4998

query I rowsort
SELECT DISTINCT 71 * + + 94 + 49 col1
----
6723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT DISTINCT 77 * ( + ( NULLIF ( - AVG ( DISTINCT - 34 ), - CAST( NULL AS SIGNED ) ) ) ) + + COALESCE ( - 82, + CASE WHEN - COUNT( * ) IS NULL THEN + 16 END ) + 11 + MAX( + + 39 ) + - + 4 * CAST( NULL AS SIGNED ) / + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT 77 * ( + ( NULLIF ( - AVG ( DISTINCT - 34 ), - CAST ( NULL AS INTEGER ) ) ) ) + + COALESCE ( - 82, + CASE WHEN - COUNT ( * ) IS NULL THEN + 16 END ) + 11 + MAX ( + + 39 ) + - + 4 * CAST ( NULL AS INTEGER ) / + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL 45 * + ( + + 79 ) * - 6 + + 76 * - 0 * 54
----
-21330

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT - 58 DIV - 96 + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-2197
SELECT - 58 / - 96 + - 35
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2198
SELECT MAX( ALL 3 ) AS col2, + COUNT( DISTINCT - ( - 63 ) ) AS col0
----
3
1

skipif mysql # not compatible
query II rowsort label-2198
SELECT MAX ( ALL 3 ) AS col2, + COUNT ( DISTINCT - ( - 63 ) ) AS col0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT COUNT( * ) * - + 49 - ( - CASE - + 64 WHEN - 82 THEN - - 76 WHEN - 59 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT COUNT ( * ) * - + 49 - ( - CASE - + 64 WHEN - 82 THEN - - 76 WHEN - 59 THEN NULL END )
----
NULL

query I rowsort
SELECT - + 51 + - ( 26 ) AS col2
----
-77

query I rowsort
SELECT DISTINCT - 29 * + 49 * 87
----
-123627

query I rowsort
SELECT DISTINCT 4 * - 69 + - - 21 + 27 + + 64
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL + + CASE COUNT( * ) WHEN - 73 + 38 * - ( + 55 ) * 23 THEN + 63 ELSE - 20 END * + - 77 * + 43 + - COUNT( * ) + - 74
----
66145

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL + + CASE COUNT ( * ) WHEN - 73 + 38 * - ( + 55 ) * 23 THEN + 63 ELSE - 20 END * + - 77 * + 43 + - COUNT ( * ) + - 74
----
66145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2204
SELECT ALL - CASE + 38 WHEN + - 19 THEN NULL ELSE - 15 * - + 2 * - 99 END * - COUNT( * ) + + 37 * + COUNT( 34 ) DIV - 38 + - + COALESCE ( - 91, 89 * - + 39 * CAST( + + COUNT( ALL + 41 ) AS SIGNED ), - + 56 + 46 ) AS col0
----
-2879

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL - CASE + 38 WHEN + - 19 THEN NULL ELSE - 15 * - + 2 * - 99 END * - COUNT ( * ) + + 37 * + COUNT ( 34 ) / - 38 + - + COALESCE ( - 91, 89 * - + 39 * CAST ( + + COUNT ( ALL + 41 ) AS INTEGER ), - + 56 + 46 ) AS col0
----
-2879

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2205
SELECT DISTINCT - + 29 * - 5 + + CASE 7 WHEN - - 69 THEN NULL WHEN - COUNT( * ) THEN + + 75 + + COUNT( * ) * - 96 * + 29 * + 15 ELSE - 41 + + 90 DIV - + MIN( - 85 ) END
----
105

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT - + 29 * - 5 + + CASE 7 WHEN - - 69 THEN NULL WHEN - COUNT ( * ) THEN + + 75 + + COUNT ( * ) * - 96 * + 29 * + 15 ELSE - 41 + + 90 / - + MIN ( - 85 ) END
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT - 60 + - + 45 * - - CAST( + 68 AS SIGNED ) * + - ( - - 53 ) + - - 71 + - COUNT( * ) * - 94 * 38 + + 64
----
165827

skipif mysql # not compatible
query I rowsort label-2206
SELECT - 60 + - + 45 * - - CAST ( + 68 AS INTEGER ) * + - ( - - 53 ) + - - 71 + - COUNT ( * ) * - 94 * 38 + + 64
----
165827

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL COALESCE ( - 54, + + COUNT( DISTINCT 27 ) + + 34 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL COALESCE ( - 54, + + COUNT ( DISTINCT 27 ) + + 34 ) AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT ALL - 86 DIV ( - 94 )
----
0

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - 86 / ( - 94 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + - COUNT( 42 ) + 90 col0
----
89

skipif mysql # not compatible
query I rowsort label-2209
SELECT + - COUNT ( 42 ) + 90 col0
----
89

query I rowsort
SELECT - 35 * + 36 AS col1
----
-1260

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

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

query II rowsort
SELECT DISTINCT - 41 - + 86 AS col1, 78
----
-127
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2213
SELECT + + SUM( + 96 ) + + CASE 72 WHEN CAST( NULL AS DECIMAL ) + + 35 THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT + + SUM ( + 96 ) + + CASE 72 WHEN CAST ( NULL AS REAL ) + + 35 THEN + 19 END
----
NULL

query I rowsort
SELECT - 48 * - + 75 AS col0
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + CASE 14 WHEN 0 + - - AVG ( ALL + 17 ) / - 1 + + + 56 + + COUNT( ALL ( 88 ) ) + + + COUNT( ALL 38 ) * - + COUNT( * ) + - 72 * - CASE SUM( DISTINCT + - 61 ) WHEN - ( + 60 ) THEN - 46 END * - COUNT( * ) THEN - 57 END * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT + CASE 14 WHEN 0 + - - AVG ( ALL + 17 ) / - 1 + + + 56 + + COUNT ( ALL ( 88 ) ) + + + COUNT ( ALL 38 ) * - + COUNT ( * ) + - 72 * - CASE SUM ( DISTINCT + - 61 ) WHEN - ( + 60 ) THEN - 46 END * - COUNT ( * ) THEN - 57 END * + 56
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2217
SELECT - CASE - 21 WHEN ( 95 ) THEN 26 WHEN + - 39 * + + MAX( DISTINCT - CAST( - - 99 AS SIGNED ) ) THEN 79 + - COUNT( * ) WHEN + - 42 * 52 - ( + 6 ) THEN - 79 * 22 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT - CASE - 21 WHEN ( 95 ) THEN 26 WHEN + - 39 * + + MAX ( DISTINCT - CAST ( - - 99 AS INTEGER ) ) THEN 79 + - COUNT ( * ) WHEN + - 42 * 52 - ( + 6 ) THEN - 79 * 22 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 0 - 46 AS col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2219
SELECT - ( + SUM( ALL - COALESCE ( - 99, 95 * - + 56 ) ) ), 71 DIV 1 AS col2
----
-99
71

skipif mysql # not compatible
query II rowsort label-2219
SELECT - ( + SUM ( ALL - COALESCE ( - 99, 95 * - + 56 ) ) ), 71 / 1 AS col2
----
-99
71

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

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

query I rowsort
SELECT ALL 6 + + 40 AS col2
----
46

query II rowsort
SELECT DISTINCT 66 AS col1, 70 AS col0
----
66
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT CASE + + 35 WHEN - 33 THEN + 78 + - 20 WHEN - 56 THEN + 55 * + COUNT( ALL - 81 ) + + 66 END * - CAST( NULL AS SIGNED ) / + COUNT( * ) + - + CASE - + 62 WHEN - - 34 THEN NULL WHEN 36 / - 52 THEN + 87 WHEN - 65 THEN NULL ELSE 60 * 52 END + + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT CASE + + 35 WHEN - 33 THEN + 78 + - 20 WHEN - 56 THEN + 55 * + COUNT ( ALL - 81 ) + + 66 END * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - + CASE - + 62 WHEN - - 34 THEN NULL WHEN 36 / - 52 THEN + 87 WHEN - 65 THEN NULL ELSE 60 * 52 END + + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2224
SELECT + NULLIF ( 87, SUM( 72 ) + + 81 + - 17 + + - 34 * + 47 ) - + + 26 * - 16 / - CASE - - CAST( NULL AS DECIMAL ) WHEN + 43 THEN - - 43 * - - CAST( NULL AS SIGNED ) + 59 END + 3 + 99 + 39 - + 45 * 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT + NULLIF ( 87, SUM ( 72 ) + + 81 + - 17 + + - 34 * + 47 ) - + + 26 * - 16 / - CASE - - CAST ( NULL AS REAL ) WHEN + 43 THEN - - 43 * - - CAST ( NULL AS INTEGER ) + 59 END + 3 + 99 + 39 - + 45 * 97 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2225
SELECT ALL ( - + CASE + 26 WHEN - - CAST( NULL AS SIGNED ) THEN 46 * AVG ( + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) + 10 * - - COALESCE ( - - 7, - 14 - COALESCE ( - 14, - - 82 * + - 15 * + 53, + - 58 ) ) * - 74 + 8 END ) / 77 + - 29 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL ( - + CASE + 26 WHEN - - CAST ( NULL AS INTEGER ) THEN 46 * AVG ( + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) + 10 * - - COALESCE ( - - 7, - 14 - COALESCE ( - 14, - - 82 * + - 15 * + 53, + - 58 ) ) * - 74 + 8 END ) / 77 + - 29 * - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT + NULLIF ( COUNT( * ), + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-2226
SELECT + NULLIF ( COUNT ( * ), + 24 )
----
1

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

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

query I rowsort
SELECT + 52 * + + 27 col1
----
1404

query I rowsort
SELECT + NULLIF ( + 81, - - NULLIF ( - - 58, + 16 ) * + 84 - 88 * 47 / - 82 ) * + + 46 + + + 49 + - 80 * + 30 * - 18
----
46975

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT + COUNT( * ) * + 52 + - + 43
----
9

skipif mysql # not compatible
query I rowsort label-2230
SELECT + COUNT ( * ) * + 52 + - + 43
----
9

query I rowsort
SELECT ALL 98 * - 69 AS col2
----
-6762

query I rowsort
SELECT + 3 * - + 29
----
-87

query I rowsort
SELECT DISTINCT - ( - 82 ) * + 10 + - 92 AS col2
----
728

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2235
SELECT ALL - 97 * - - 19 + 34 + - 11 + 40 - - + 1 + + 38 * + 94 AS col0, SUM( + 42 )
----
1793
42

skipif mysql # not compatible
query II rowsort label-2235
SELECT ALL - 97 * - - 19 + 34 + - 11 + 40 - - + 1 + + 38 * + 94 AS col0, SUM ( + 42 )
----
1793
42

query I rowsort
SELECT + - 34 - + - 2
----
-32

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

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

query I rowsort
SELECT - 67 * - 84 * - 76 + - + 54
----
-427782

query I rowsort
SELECT DISTINCT - - 2 * 54 AS col2
----
108

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

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

query I rowsort
SELECT - 33 - 57 col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL - + 35 DIV - + NULLIF ( 23, + 68 ) + 68 * 90 * 43
----
263161

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - + 35 / - + NULLIF ( 23, + 68 ) + 68 * 90 * 43
----
263161

query I rowsort
SELECT - 47 - 38 AS col2
----
-85

query I rowsort
SELECT 18 + - 51
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2245
SELECT ALL 95 AS col0, ( + COUNT( * ) ) + 39
----
95
40

skipif mysql # not compatible
query II rowsort label-2245
SELECT ALL 95 AS col0, ( + COUNT ( * ) ) + 39
----
95
40

query I rowsort
SELECT 28 + + - 87 AS col1
----
-59

query I rowsort
SELECT 63 - - 66 AS col1
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT 34 DIV NULLIF ( - + ( - 71 ), 41 * - - 9 + - 44 + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT 34 / NULLIF ( - + ( - 71 ), 41 * - - 9 + - 44 + 77 )
----
0

query II rowsort
SELECT 37 + - - 40, 1 col1
----
77
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2250
SELECT 73 - 40 + 96 DIV - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-2250
SELECT 73 - 40 + 96 / - COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT DISTINCT 6 + - - SUM( ALL 69 ) * - - ( 75 ) AS col0
----
5181

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT 6 + - - SUM ( ALL 69 ) * - - ( 75 ) AS col0
----
5181

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

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

query I rowsort
SELECT 69 * + + 69 AS col0
----
4761

query I rowsort
SELECT ALL + 6 + + 19 - - 22
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT 25 AS col2, COUNT( * ) - 8
----
25
-7

skipif mysql # not compatible
query II rowsort label-2255
SELECT 25 AS col2, COUNT ( * ) - 8
----
25
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2256
SELECT - 72 AS col2, NULLIF ( - COUNT( - 66 ), - CAST( NULL AS SIGNED ) ) * + - 15 * + 74 + - 57 AS col0
----
-72
1053

skipif mysql # not compatible
query II rowsort label-2256
SELECT - 72 AS col2, NULLIF ( - COUNT ( - 66 ), - CAST ( NULL AS INTEGER ) ) * + - 15 * + 74 + - 57 AS col0
----
-72
1053

query I rowsort
SELECT 59 + - 3 AS col2
----
56

query II rowsort
SELECT ALL - 33 AS col2, 60 + + 52 AS col1
----
-33
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2259
SELECT + 25 * - - CASE - + 75 WHEN - 21 THEN NULL WHEN + 15 THEN COUNT( * ) ELSE 71 END DIV ( COUNT( - 72 ) ) + 62 * 63 AS col0
----
5681

skipif mysql # not compatible
query I rowsort label-2259
SELECT + 25 * - - CASE - + 75 WHEN - 21 THEN NULL WHEN + 15 THEN COUNT ( * ) ELSE 71 END / ( COUNT ( - 72 ) ) + 62 * 63 AS col0
----
5681

query II rowsort
SELECT 81 AS col2, - 76 AS col2
----
81
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL COUNT( * ) + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL COUNT ( * ) + - 8
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2262
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2262
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 85 AS col1
----
NULL
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2263
SELECT CAST( - + 82 AS SIGNED ) DIV 33 - - 42 + - - 39 DIV + + 62 + + - 50 * - - 20 AS col1
----
-960

skipif mysql # not compatible
query I rowsort label-2263
SELECT CAST ( - + 82 AS INTEGER ) / 33 - - 42 + - - 39 / + + 62 + + - 50 * - - 20 AS col1
----
-960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT 71 * - 94 * + - 20 * - - ( COUNT( * ) )
----
133480

skipif mysql # not compatible
query I rowsort label-2265
SELECT 71 * - 94 * + - 20 * - - ( COUNT ( * ) )
----
133480

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL + 79 * - SUM( ALL + - 24 )
----
1896

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL + 79 * - SUM ( ALL + - 24 )
----
1896

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2269
SELECT - 68 + + 15 DIV 27 - 66 + - NULLIF ( - COUNT( * ), + - 1 + - + 3 * 58 + ( - 29 ) + + 80 - - 35 ) + - 32 + - 95 + - COUNT( * ) DIV + 22 * - - 67 AS col2
----
-260

skipif mysql # not compatible
query I rowsort label-2269
SELECT - 68 + + 15 / 27 - 66 + - NULLIF ( - COUNT ( * ), + - 1 + - + 3 * 58 + ( - 29 ) + + 80 - - 35 ) + - 32 + - 95 + - COUNT ( * ) / + 22 * - - 67 AS col2
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + MAX( ALL + 25 ) * 47 - + 66
----
1109

skipif mysql # not compatible
query I rowsort label-2270
SELECT + MAX ( ALL + 25 ) * 47 - + 66
----
1109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2271
SELECT DISTINCT - 22, - CASE 85 WHEN - + 49 THEN + 80 + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) * - COUNT( * ) WHEN + + 53 THEN NULL ELSE NULL END col0
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-2271
SELECT DISTINCT - 22, - CASE 85 WHEN - + 49 THEN + 80 + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) WHEN + + 53 THEN NULL ELSE NULL END col0
----
-22
NULL

query I rowsort
SELECT 81 + + COALESCE ( 79, - - 46, + 28 ) AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT MAX( 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2273
SELECT MAX ( 42 ) AS col2
----
42

query I rowsort
SELECT ALL 25 * 9
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2275
SELECT DISTINCT - SUM( DISTINCT - + 82 ) * + 58 * + + 26 - - + 77 DIV + 29 col2
----
123658

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT - SUM ( DISTINCT - + 82 ) * + 58 * + + 26 - - + 77 / + 29 col2
----
123658

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL 34 * + COUNT( * ) + + 78 col1
----
112

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL 34 * + COUNT ( * ) + + 78 col1
----
112

query I rowsort
SELECT - 3 * + + 33 + + 24 col2
----
-75

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

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

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

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

query I rowsort
SELECT DISTINCT 9 * + 36
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-2282
SELECT CASE + COUNT( * ) WHEN 41 * 93 THEN + 69 END * + 85 AS col2, 38 * - 97 AS col0
----
NULL
-3686

skipif mysql # not compatible
query II rowsort label-2282
SELECT CASE + COUNT ( * ) WHEN 41 * 93 THEN + 69 END * + 85 AS col2, 38 * - 97 AS col0
----
NULL
-3686

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - 41 * + + MIN( ALL - 36 ) - ( - 44 ) + + - 73 + + + 27 * + + 12 * 16
----
6631

skipif mysql # not compatible
query I rowsort label-2283
SELECT - 41 * + + MIN ( ALL - 36 ) - ( - 44 ) + + - 73 + + + 27 * + + 12 * 16
----
6631

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2284
SELECT DISTINCT - 1, COUNT( * ) DIV + 51 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-2284
SELECT DISTINCT - 1, COUNT ( * ) / + 51 AS col2
----
-1
0

query I rowsort
SELECT ALL + 42 + + 14 * + 72 * - + 84 AS col0
----
-84630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT + 28 * - CAST( NULL AS SIGNED ) * - + 76 + - + 54 + + CAST( - 71 AS SIGNED ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT + 28 * - CAST ( NULL AS INTEGER ) * - + 76 + - + 54 + + CAST ( - 71 AS INTEGER ) + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ALL - 46 + + COUNT( * ) + COUNT( * ) + 48 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL - 46 + + COUNT ( * ) + COUNT ( * ) + 48 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL - 37 + NULLIF ( + 29, - 94 + - - SUM( - + 31 ) + + CASE - COUNT( * ) WHEN 90 * COUNT( * ) * - 79 THEN + COUNT( * ) ELSE + 97 END ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL - 37 + NULLIF ( + 29, - 94 + - - SUM ( - + 31 ) + + CASE - COUNT ( * ) WHEN 90 * COUNT ( * ) * - 79 THEN + COUNT ( * ) ELSE + 97 END ) AS col0
----
-8

query I rowsort
SELECT ALL NULLIF ( + 99, - COALESCE ( - 64, - - 26 ) ) + - - 44 AS col1
----
143

query II rowsort
SELECT 53 - - 3 AS col1, 74 + 69 AS col2
----
56
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT 88 * ( - - 1 ) * + CASE + CAST( - + 8 AS SIGNED ) WHEN + + 3 THEN NULL WHEN - + 47 THEN + 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT 88 * ( - - 1 ) * + CASE + CAST ( - + 8 AS INTEGER ) WHEN + + 3 THEN NULL WHEN - + 47 THEN + 12 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 48 + - 15 + - 80 col0
----
-143

query II rowsort
SELECT 62 - - 88, 85 AS col1
----
150
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2294
SELECT ALL + MIN( ALL + 31 ) DIV - - 39
----
0

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + MIN ( ALL + 31 ) / - - 39
----
0

query I rowsort
SELECT 78 * - + 97 AS col2
----
-7566

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT DISTINCT + 85 DIV - 74 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + 85 / - 74 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT - 50 * COUNT( * ) + + + 2 + + 8 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT - 50 * COUNT ( * ) + + + 2 + + 8 AS col1
----
-40

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2299
SELECT DISTINCT + - 10 * + CAST( NULL AS DECIMAL ) * - + 17 + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT + - 10 * + CAST ( NULL AS REAL ) * - + 17 + - 92 AS col1
----
NULL

query I rowsort
SELECT 96 * + 91 AS col2
----
8736

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT 88 DIV - 10
----
-8

skipif mysql # not compatible
query I rowsort label-2302
SELECT 88 / - 10
----
-8

query I rowsort
SELECT ALL 98 + + + 37
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT - 72 DIV - 40 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2304
SELECT - 72 / - 40 AS col2
----
1

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

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

query I rowsort
SELECT ALL 25 + + 83 + - ( + - 25 ) AS col2
----
133

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

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL CAST ( NULL AS INTEGER ) * - 70 * - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL SUM( ALL + - ( - 69 ) ) + 84
----
153

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL SUM ( ALL + - ( - 69 ) ) + 84
----
153

query I rowsort
SELECT + 71 - 78
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2310
SELECT ALL - 79 + 41 DIV - 83 col2, ( - CASE COUNT( * ) WHEN COUNT( - 19 ) * + CAST( 18 AS SIGNED ) + - + CASE + 25 WHEN 40 * + 5 - + - 43 THEN + NULLIF ( + 79, - 79 ) ELSE + 20 DIV + CASE + 2 WHEN + 36 - 8 - + 13 DIV 53 * - 36 THEN - 54 * CASE - COUNT( * ) WHEN 93 THEN COUNT( * ) ELSE 41 DIV 53 + 6 DIV 67 END WHEN 27 + - 65 DIV 16 THEN CASE 55 WHEN - 30 THEN - 6 * - COUNT( * ) + MAX( ALL 32 ) WHEN - COUNT( * ) THEN NULL ELSE + 18 DIV COUNT( * ) END * + 55 + ( - ( - 51 ) ) ELSE NULL END + + COALESCE ( - 20 + ( ( - 17 ) ) * - CASE 1 WHEN 28 * + 0 THEN 26 + CAST( NULL AS SIGNED ) * 67 ELSE NULL END, - COUNT( * ) ) END * ( - NULLIF ( 65, + NULLIF ( - MAX( DISTINCT + 10 ), - COALESCE ( + 21, - 13, COUNT( * ) ) + 31 ) DIV + 17 ) ) THEN 94 END ) + - 30 col1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-2310
SELECT ALL - 79 + 41 / - 83 col2, ( - CASE COUNT ( * ) WHEN COUNT ( - 19 ) * + CAST ( 18 AS INTEGER ) + - + CASE + 25 WHEN 40 * + 5 - + - 43 THEN + NULLIF ( + 79, - 79 ) ELSE + 20 / + CASE + 2 WHEN + 36 - 8 - + 13 / 53 * - 36 THEN - 54 * CASE - COUNT ( * ) WHEN 93 THEN COUNT ( * ) ELSE 41 / 53 + 6 / 67 END WHEN 27 + - 65 / 16 THEN CASE 55 WHEN - 30 THEN - 6 * - COUNT ( * ) + MAX ( ALL 32 ) WHEN - COUNT ( * ) THEN NULL ELSE + 18 / COUNT ( * ) END * + 55 + ( - ( - 51 ) ) ELSE NULL END + + COALESCE ( - 20 + ( ( - 17 ) ) * - CASE 1 WHEN 28 * + 0 THEN 26 + CAST ( NULL AS INTEGER ) * 67 ELSE NULL END, - COUNT ( * ) ) END * ( - NULLIF ( 65, + NULLIF ( - MAX ( DISTINCT + 10 ), - COALESCE ( + 21, - 13, COUNT ( * ) ) + 31 ) / + 17 ) ) THEN 94 END ) + - 30 col1
----
-79
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2311
SELECT + 47 - SUM( ALL + CAST( NULL AS DECIMAL ) ) * 39 / - AVG ( DISTINCT - + 9 ) * + 73 / 94 * - 43 * + COUNT( * ) + - 55 / + 45 * - - COALESCE ( - + 76, - 65 + - 92 * - + COUNT( * ) ) - + 78 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT + 47 - SUM ( ALL + CAST ( NULL AS REAL ) ) * 39 / - AVG ( DISTINCT - + 9 ) * + 73 / 94 * - 43 * + COUNT ( * ) + - 55 / + 45 * - - COALESCE ( - + 76, - 65 + - 92 * - + COUNT ( * ) ) - + 78 + + 67
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2312
SELECT - COALESCE ( - + COUNT ( * ), + - COUNT ( * ) * - 65, + 84 )
----
1

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

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

query I rowsort
SELECT + 11 + - ( - 6 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT - CASE - 19 WHEN + - 99 + + COUNT( * ) THEN NULL WHEN - 1 THEN + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT - CASE - 19 WHEN + - 99 + + COUNT ( * ) THEN NULL WHEN - 1 THEN + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL - COUNT( * ) - + 39
----
-40

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - COUNT ( * ) - + 39
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2317
SELECT 93, AVG ( - 23 ) * - CASE - 70 WHEN - 18 / SUM( DISTINCT 78 ) - 82 THEN NULL WHEN - - COALESCE ( COALESCE ( ( COUNT( * ) ), COUNT( * ) ), 24, + 29 ) * + 20 - 15 THEN SUM( + + 72 ) * 53 + + CAST( - COUNT( * ) AS SIGNED ) END - + 14 AS col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-2317
SELECT 93, AVG ( - 23 ) * - CASE - 70 WHEN - 18 / SUM ( DISTINCT 78 ) - 82 THEN NULL WHEN - - COALESCE ( COALESCE ( ( COUNT ( * ) ), COUNT ( * ) ), 24, + 29 ) * + 20 - 15 THEN SUM ( + + 72 ) * 53 + + CAST ( - COUNT ( * ) AS INTEGER ) END - + 14 AS col0
----
93
NULL

query I rowsort
SELECT - ( - 87 ) * + + 14 * - ( - - 77 ) AS col0
----
-93786

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL COALESCE ( ( - 81 ), + + SUM( ALL 78 ) + - 77 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL COALESCE ( ( - 81 ), + + SUM ( ALL 78 ) + - 77 ) AS col1
----
-81

query I rowsort
SELECT ALL + 80 * + 84 * 38 AS col1
----
255360

query I rowsort
SELECT + ( 45 ) * + - 59 AS col2
----
-2655

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

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

query I rowsort
SELECT + + 46 + - 11 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT 71 * - 83 + - - MAX( ALL + 43 )
----
-5850

skipif mysql # not compatible
query I rowsort label-2324
SELECT 71 * - 83 + - - MAX ( ALL + 43 )
----
-5850

query I rowsort
SELECT + ( 1 ) * - 88 + + + 75 AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT ALL - + 20 DIV + 6
----
-3

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL - + 20 / + 6
----
-3

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

query I rowsort
SELECT - - 22 * + 44
----
968

query II rowsort
SELECT DISTINCT + - 25 AS col0, 7 * + 61 AS col0
----
-25
427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT ALL + 27 * + 12 + - NULLIF ( + 52, + COUNT( - - 57 ) * + COALESCE ( - 17, + 67 ) - + CASE 5 WHEN + + COUNT( * ) * - COUNT( * ) + + - 38 THEN NULL ELSE 30 * + - 46 END ) * - - 20 + + 19 DIV COALESCE ( - 67, - 13 * + 95, + + NULLIF ( + 40, COUNT( * ) ) ) AS col1
----
-716

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL + 27 * + 12 + - NULLIF ( + 52, + COUNT ( - - 57 ) * + COALESCE ( - 17, + 67 ) - + CASE 5 WHEN + + COUNT ( * ) * - COUNT ( * ) + + - 38 THEN NULL ELSE 30 * + - 46 END ) * - - 20 + + 19 / COALESCE ( - 67, - 13 * + 95, + + NULLIF ( + 40, COUNT ( * ) ) ) AS col1
----
-716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2331
SELECT ALL - 25 DIV NULLIF ( + 71, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - 25 / NULLIF ( + 71, + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT - 49 * - - 67 + + COUNT( * ) + 37 + + COALESCE ( + - 4, + - 39 * - 49, + 98 * - 23, - 71 * - + 90 + - 26 + + CASE - ( + + 98 ) WHEN + + 54 + + - 53 THEN 12 WHEN - + 61 THEN NULL END - + 1 + - 13 * - 92 * + 87 + + 91 ) + - 2 * + ( + 6 )
----
-3261

skipif mysql # not compatible
query I rowsort label-2332
SELECT - 49 * - - 67 + + COUNT ( * ) + 37 + + COALESCE ( + - 4, + - 39 * - 49, + 98 * - 23, - 71 * - + 90 + - 26 + + CASE - ( + + 98 ) WHEN + + 54 + + - 53 THEN 12 WHEN - + 61 THEN NULL END - + 1 + - 13 * - 92 * + 87 + + 91 ) + - 2 * + ( + 6 )
----
-3261

query I rowsort
SELECT + 61 * - + 21 + - 47
----
-1328

query I rowsort
SELECT - + 95 + - 41
----
-136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL + - CASE + MIN( DISTINCT - 22 ) WHEN + 28 * - 78 + ( - + 73 ) + - ( + 87 ) + 83 THEN NULL WHEN - 74 THEN 90 + 50 WHEN - - 23 THEN NULL END * NULLIF ( 4, + + 70 ) + - - 15 * 65 + 2 * + 16 * + 99 + + 1 + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL + - CASE + MIN ( DISTINCT - 22 ) WHEN + 28 * - 78 + ( - + 73 ) + - ( + 87 ) + 83 THEN NULL WHEN - 74 THEN 90 + 50 WHEN - - 23 THEN NULL END * NULLIF ( 4, + + 70 ) + - - 15 * 65 + 2 * + 16 * + 99 + + 1 + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2337
SELECT ALL 14 * 0 * + COUNT( * ) DIV 9 + - - 69 AS col2, + 95 * + 27 + ( - COUNT( ALL - + 13 ) ) AS col1
----
69
2564

skipif mysql # not compatible
query II rowsort label-2337
SELECT ALL 14 * 0 * + COUNT ( * ) / 9 + - - 69 AS col2, + 95 * + 27 + ( - COUNT ( ALL - + 13 ) ) AS col1
----
69
2564

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT + COUNT( * ) + 53 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2338
SELECT + COUNT ( * ) + 53 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2339
SELECT ALL + MAX( ALL - - 81 ) * - - 40 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + MAX ( ALL - - 81 ) * - - 40 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 41 * + 8
----
328

query I rowsort
SELECT ALL 82 * + + NULLIF ( - 56, + ( + 92 ) )
----
-4592

query I rowsort
SELECT DISTINCT 26 * 34 - 33
----
851

query I rowsort
SELECT + 5 * 23 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT DISTINCT - 2 DIV 16 DIV - NULLIF ( - 37, - NULLIF ( - - 3, + 62 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - 2 / 16 / - NULLIF ( - 37, - NULLIF ( - - 3, + 62 ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT 5 - + 70
----
-65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT DISTINCT 87 DIV ( 35 ) * 65 - - 1
----
131

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT 87 / ( 35 ) * 65 - - 1
----
131

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

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 51 + ( + COUNT ( * ) ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT + CAST( ( + + 92 ) AS SIGNED ) - - 21 + - 81 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2349
SELECT + CAST ( ( + + 92 ) AS INTEGER ) - - 21 + - 81 AS col2
----
32

query I rowsort
SELECT - 4 * 96 col1
----
-384

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

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

query I rowsort
SELECT + + 42 - COALESCE ( + + 90, - + 59 )
----
-48

query I rowsort
SELECT ALL 17 + + 76 + - 13 + 77
----
157

query I rowsort
SELECT ALL - + 93 + - + 57 * + 99 * 9 col2
----
-50880

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL + 73 DIV + 85 + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + 73 / + 85 + - 36
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-2356
SELECT DISTINCT - 37 DIV + 58 * + NULLIF ( - 68, + 9 ) * + - 5 + + 14 - + + 7 + 72, + 30 - + + 56 AS col1
----
79
-26

skipif mysql # not compatible
query II rowsort label-2356
SELECT DISTINCT - 37 / + 58 * + NULLIF ( - 68, + 9 ) * + - 5 + + 14 - + + 7 + 72, + 30 - + + 56 AS col1
----
79
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2357
SELECT - CASE + 42 WHEN - + SUM( - 53 ) * ( CASE - 96 WHEN + COUNT( * ) * COUNT( * ) THEN NULL WHEN - 96 THEN - 66 WHEN + ( 76 ) THEN NULL ELSE 2 * + 26 END ) + + 45 - + ( - 15 ) / + 35 * - + COUNT( * ) THEN CAST( + - 34 AS SIGNED ) WHEN + + 69 * + 90 THEN + 64 ELSE NULL END - CASE 25 WHEN - 44 / + 2 + 34 THEN + AVG ( ALL + 47 ) + + SUM( DISTINCT 14 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT - CASE + 42 WHEN - + SUM ( - 53 ) * ( CASE - 96 WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN - 96 THEN - 66 WHEN + ( 76 ) THEN NULL ELSE 2 * + 26 END ) + + 45 - + ( - 15 ) / + 35 * - + COUNT ( * ) THEN CAST ( + - 34 AS INTEGER ) WHEN + + 69 * + 90 THEN + 64 ELSE NULL END - CASE 25 WHEN - 44 / + 2 + 34 THEN + AVG ( ALL + 47 ) + + SUM ( DISTINCT 14 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 58 * - - 26
----
1508

query I rowsort
SELECT DISTINCT 62 + - - 70
----
132

query II rowsort
SELECT 89 * + 42 - + + 59 + + + 3 AS col2, - 27
----
3682
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT SUM( DISTINCT - - 56 ) * MAX( DISTINCT + 44 )
----
2464

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT SUM ( DISTINCT - - 56 ) * MAX ( DISTINCT + 44 )
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL + + 13 + + COUNT( * ) + 34 * + 24 * - 41 AS col2
----
-33442

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + + 13 + + COUNT ( * ) + 34 * + 24 * - 41 AS col2
----
-33442

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT + CASE 52 WHEN - 59 THEN + MIN( - 50 ) END * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT + CASE 52 WHEN - 59 THEN + MIN ( - 50 ) END * - 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT + 64 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-2364
SELECT + 64 / + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT 19 * + COUNT( * ) + - 48
----
-29

skipif mysql # not compatible
query I rowsort label-2365
SELECT 19 * + COUNT ( * ) + - 48
----
-29

query I rowsort
SELECT ALL - + COALESCE ( - 33, - 85 + + - 77 )
----
33

query I rowsort
SELECT ALL ( 39 ) + + + COALESCE ( + + 32, + + 84, + - 46 + + 59 * 91 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2368
SELECT ALL - 80 DIV - 35 AS col1, SUM( ALL + - 44 )
----
2
-44

skipif mysql # not compatible
query II rowsort label-2368
SELECT ALL - 80 / - 35 AS col1, SUM ( ALL + - 44 )
----
2
-44

query I rowsort
SELECT ALL - 63 + - 2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2370
SELECT 4 DIV 59 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-2370
SELECT 4 / 59 / - 50
----
0

query I rowsort
SELECT + 13 * - - 65 - + - 15 AS col1
----
860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT ALL + CAST( + 9 AS SIGNED ) - 3 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + CAST ( + 9 AS INTEGER ) - 3 AS col2
----
6

query I rowsort
SELECT ALL + 72 * ( + - 97 ) + + - 50 * + 40
----
-8984

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2375
SELECT + 97, COALESCE ( - 36, 62, + 95 ) - + CAST( - + 19 AS SIGNED ) AS col2
----
97
-17

skipif mysql # not compatible
query II rowsort label-2375
SELECT + 97, COALESCE ( - 36, 62, + 95 ) - + CAST ( - + 19 AS INTEGER ) AS col2
----
97
-17

query I rowsort
SELECT 88 * 99 AS col1
----
8712

query I rowsort
SELECT + 97 * + - 70 + + 48
----
-6742

query I rowsort
SELECT ALL - NULLIF ( 58, 55 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT 72 + - COUNT( * ) * - 71 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-2379
SELECT 72 + - COUNT ( * ) * - 71 AS col1
----
143

query II rowsort
SELECT - 63 AS col0, 29 col0
----
-63
29

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT ALL 65 AS col1, 50 * - - MAX( DISTINCT - 56 )
----
65
-2800

skipif mysql # not compatible
query II rowsort label-2381
SELECT ALL 65 AS col1, 50 * - - MAX ( DISTINCT - 56 )
----
65
-2800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT 88 - - 45 + - COALESCE ( - ( + - 39 ), + + 20 ) - + + 78 * + 6 + - 46 + + + 43 * SUM( DISTINCT - 85 ) / - 0 * 33 * + + CASE + CAST( NULL AS SIGNED ) WHEN + 8 THEN CAST( ( 2 ) AS SIGNED ) / + ( + 48 ) * - + 59 WHEN MAX( - 13 ) THEN NULL END + + COUNT( * ) * 3 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT 88 - - 45 + - COALESCE ( - ( + - 39 ), + + 20 ) - + + 78 * + 6 + - 46 + + + 43 * SUM ( DISTINCT - 85 ) / - 0 * 33 * + + CASE + CAST ( NULL AS INTEGER ) WHEN + 8 THEN CAST ( ( 2 ) AS INTEGER ) / + ( + 48 ) * - + 59 WHEN MAX ( - 13 ) THEN NULL END + + COUNT ( * ) * 3 * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 97 + + - 76 AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT ALL 46 DIV - 75 col0
----
0

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL 46 / - 75 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT 4 * - - MIN( - 41 ) * 66 * + + ( + MIN( ALL 47 ) ) * + - 67 + - - COUNT( * ) * - CASE - 13 WHEN + 62 / - 11 THEN - - 85 WHEN 18 * 52 + - - 51 * NULLIF ( + ( - SUM( + 20 ) ), - + COUNT( * ) ) THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT 4 * - - MIN ( - 41 ) * 66 * + + ( + MIN ( ALL 47 ) ) * + - 67 + - - COUNT ( * ) * - CASE - 13 WHEN + 62 / - 11 THEN - - 85 WHEN 18 * 52 + - - 51 * NULLIF ( + ( - SUM ( + 20 ) ), - + COUNT ( * ) ) THEN - 74 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2386
SELECT COUNT( * ) + - 51 + - 42 col0, + CAST( NULL AS SIGNED ) + + 42
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-2386
SELECT COUNT ( * ) + - 51 + - 42 col0, + CAST ( NULL AS INTEGER ) + + 42
----
-92
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT 16 + + 93 + 40 + COUNT( 79 ) DIV 90 * - + ( + - 85 ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-2387
SELECT 16 + + 93 + 40 + COUNT ( 79 ) / 90 * - + ( + - 85 ) AS col1
----
149

query I rowsort
SELECT 87 + + 36 AS col0
----
123

query I rowsort
SELECT 94 * 55 AS col2
----
5170

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT SUM( DISTINCT 59 ) + + - 65 + 61 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2390
SELECT SUM ( DISTINCT 59 ) + + - 65 + 61 AS col0
----
55

query I rowsort
SELECT ( 35 ) - - 23 AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT ALL + COUNT( * ) + + ( + 36 ) + + 61 + + COUNT( * ) * CAST( NULL AS SIGNED ) / + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + COUNT ( * ) + + ( + 36 ) + + 61 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) / + 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2393
SELECT ALL - + 86 + - + COUNT( * ) + + 72 DIV MAX( + 61 ) + + + 22 col1
----
-64

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL - + 86 + - + COUNT ( * ) + + 72 / MAX ( + 61 ) + + + 22 col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT NULLIF ( + 99, - MIN( ALL - 49 ) * - COUNT( DISTINCT 91 ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2394
SELECT NULLIF ( + 99, - MIN ( ALL - 49 ) * - COUNT ( DISTINCT 91 ) ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL - MIN( + 5 ) + + 41 * MIN( + 9 )
----
364

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL - MIN ( + 5 ) + + 41 * MIN ( + 9 )
----
364

query I rowsort
SELECT + 72 + 88 AS col1
----
160

query II rowsort
SELECT ALL 29 AS col2, + 16 - - + 54
----
29
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT DISTINCT COALESCE ( - 31, - AVG ( + 11 ) * - - 91 * + - 48 - + - 32 ) * 27 DIV 5
----
-167

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT COALESCE ( - 31, - AVG ( + 11 ) * - - 91 * + - 48 - + - 32 ) * 27 / 5
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL 51 + + MAX( DISTINCT - 10 ) + - MIN( - 51 )
----
92

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL 51 + + MAX ( DISTINCT - 10 ) + - MIN ( - 51 )
----
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT + COUNT( * ) + - 34 + 46 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT + COUNT ( * ) + - 34 + 46 AS col2
----
13

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

skipif mysql # not compatible
query II rowsort label-2402
SELECT ALL - 53 col2, COUNT ( * )
----
-53
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2403
SELECT ( + 14 ) DIV COUNT( * ) + - CAST( 60 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-2403
SELECT ( + 14 ) / COUNT ( * ) + - CAST ( 60 AS INTEGER )
----
-46

query II rowsort
SELECT ALL - 40, + 73 AS col1
----
-40
73

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

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT + 51 * + COUNT ( * ) AS col2
----
51

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

query I rowsort
SELECT DISTINCT - - 73 * 14 - + 53
----
969

query I rowsort
SELECT DISTINCT 76 * + - 39 AS col2
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + SUM( - COALESCE ( + 94, - 90 ) ) * + 96
----
-9024

skipif mysql # not compatible
query I rowsort label-2409
SELECT + SUM ( - COALESCE ( + 94, - 90 ) ) * + 96
----
-9024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2410
SELECT 20 DIV + 5 + - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2410
SELECT 20 / + 5 + - COUNT ( * ) AS col0
----
3

query II rowsort
SELECT DISTINCT 65 - + 69 - ( 5 ) AS col2, + 75
----
-9
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2412
SELECT DISTINCT - 24, CASE - + COUNT( * ) WHEN - ( - COALESCE ( ( - - 95 ), - 73, + CAST( + + 28 AS SIGNED ) ) ) THEN 31 + - COALESCE ( - + 95, + - 23, + + ( 54 ), - CASE + AVG ( - 82 ) WHEN 82 THEN NULL WHEN - 90 THEN CASE - 70 WHEN 35 THEN - + 10 WHEN - - 27 * 65 THEN NULL ELSE NULL END END * - 12 ) + 61 ELSE 10 END DIV + 74 AS col2
----
-24
0

skipif mysql # not compatible
query II rowsort label-2412
SELECT DISTINCT - 24, CASE - + COUNT ( * ) WHEN - ( - COALESCE ( ( - - 95 ), - 73, + CAST ( + + 28 AS INTEGER ) ) ) THEN 31 + - COALESCE ( - + 95, + - 23, + + ( 54 ), - CASE + AVG ( - 82 ) WHEN 82 THEN NULL WHEN - 90 THEN CASE - 70 WHEN 35 THEN - + 10 WHEN - - 27 * 65 THEN NULL ELSE NULL END END * - 12 ) + 61 ELSE 10 END / + 74 AS col2
----
-24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT 98 + - + 91 * + + MIN( + 12 ) * + - 86 + 93 + 51 AS col0
----
94154

skipif mysql # not compatible
query I rowsort label-2413
SELECT 98 + - + 91 * + + MIN ( + 12 ) * + - 86 + 93 + 51 AS col0
----
94154

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT COALESCE ( + CASE + 71 WHEN - 60 THEN - - 87 * + + 61 * - MAX( - 56 ) + + 41 + - + 56 + 6 + + 88 * - + 41 * + + COUNT( * ) ELSE NULL END, 93 ) * + MAX( 3 ) + + + COUNT( * ) AS col2
----
280

skipif mysql # not compatible
query I rowsort label-2414
SELECT COALESCE ( + CASE + 71 WHEN - 60 THEN - - 87 * + + 61 * - MAX ( - 56 ) + + 41 + - + 56 + 6 + + 88 * - + 41 * + + COUNT ( * ) ELSE NULL END, 93 ) * + MAX ( 3 ) + + + COUNT ( * ) AS col2
----
280

query I rowsort
SELECT 97 + - 96 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT DISTINCT + 39 DIV + 16 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + 39 / + 16 AS col0
----
2

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

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

query I rowsort
SELECT 13 * - 41
----
-533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT ALL + NULLIF ( + 19, - SUM( DISTINCT + + 6 ) ) + - COUNT( * ) * 32 * 6 * + COALESCE ( NULLIF ( - + COUNT( * ), - 74 * - COUNT( * ) / 28 * - NULLIF ( + 89, + CAST( + 48 AS SIGNED ) ) ), + 37 + - - 95, - 48 )
----
211

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + NULLIF ( + 19, - SUM ( DISTINCT + + 6 ) ) + - COUNT ( * ) * 32 * 6 * + COALESCE ( NULLIF ( - + COUNT ( * ), - 74 * - COUNT ( * ) / 28 * - NULLIF ( + 89, + CAST ( + 48 AS INTEGER ) ) ), + 37 + - - 95, - 48 )
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT DISTINCT - SUM( + - 64 ) * - + 21 AS col2
----
-1344

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - SUM ( + - 64 ) * - + 21 AS col2
----
-1344

query I rowsort
SELECT 94 + + 17 col0
----
111

query I rowsort
SELECT ALL + 22 + 91
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL + ( - + 76 ) + - 45 + ( - + COUNT( * ) ) * + 85 + MAX( + ( + 28 ) )
----
-178

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL + ( - + 76 ) + - 45 + ( - + COUNT ( * ) ) * + 85 + MAX ( + ( + 28 ) )
----
-178

onlyif mysql # aggregate syntax: 
query II rowsort label-2424
SELECT ALL - 40 + COUNT( * ) AS col0, + 42 col0
----
-39
42

skipif mysql # not compatible
query II rowsort label-2424
SELECT ALL - 40 + COUNT ( * ) AS col0, + 42 col0
----
-39
42

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

query I rowsort
SELECT DISTINCT + - 71 + + 60 * + 14
----
769

onlyif mysql # DIV for integer division: 
query II rowsort label-2427
SELECT 78 AS col1, - 42 * - 39 + + ( 37 ) DIV - + 99 AS col2
----
78
1638

skipif mysql # not compatible
query II rowsort label-2427
SELECT 78 AS col1, - 42 * - 39 + + ( 37 ) / - + 99 AS col2
----
78
1638

query II rowsort
SELECT DISTINCT - 67, 53 + 86 AS col1
----
-67
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL - COUNT( * ) + - 67 - - 74
----
6

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - COUNT ( * ) + - 67 - - 74
----
6

query II rowsort
SELECT 22 col2, - 94
----
22
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT - ( 38 ) DIV COALESCE ( 48, + AVG ( + ( + 79 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2431
SELECT - ( 38 ) / COALESCE ( 48, + AVG ( + ( + 79 ) ) ) AS col2
----
0

query II rowsort
SELECT - + 32 col2, 3
----
-32
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2433
SELECT + - 77 + + 1, NULLIF ( - CASE + 29 WHEN - 61 THEN - + 10 END, + - CAST( 84 AS SIGNED ) + 40 ) col1
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-2433
SELECT + - 77 + + 1, NULLIF ( - CASE + 29 WHEN - 61 THEN - + 10 END, + - CAST ( 84 AS INTEGER ) + 40 ) col1
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL 76 * + 77 * + COUNT( * ) AS col1
----
5852

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL 76 * + 77 * + COUNT ( * ) AS col1
----
5852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2435
SELECT DISTINCT + 86 DIV COALESCE ( 31, - + 39 - - ( - - 5 ) + + - 91 * - - 45 * + - COALESCE ( COUNT( * ), - + 87 DIV 30 + - - COUNT( * ), + - 41 - 23 - + 4 ) ) DIV + 36 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT + 86 / COALESCE ( 31, - + 39 - - ( - - 5 ) + + - 91 * - - 45 * + - COALESCE ( COUNT ( * ), - + 87 / 30 + - - COUNT ( * ), + - 41 - 23 - + 4 ) ) / + 36 * - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT + 68 * 36
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT + + SUM( + 10 ) * + - 88 AS col0
----
-880

skipif mysql # not compatible
query I rowsort label-2437
SELECT + + SUM ( + 10 ) * + - 88 AS col0
----
-880

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

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

query I rowsort
SELECT + - 83 - 45 * 75 * - 1 - + 63 AS col2
----
3229

query I rowsort
SELECT ALL ( 98 ) * - 2 AS col0
----
-196

query II rowsort
SELECT - 15 AS col2, - 81 AS col1
----
-15
-81

query I rowsort
SELECT - NULLIF ( 18, 75 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2443
SELECT CASE - 18 WHEN + - CAST( - + MAX( - 83 ) AS SIGNED ) THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2443
SELECT CASE - 18 WHEN + - CAST ( - + MAX ( - 83 ) AS INTEGER ) THEN NULL ELSE - COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT MIN( + 91 ) * + - 25
----
-2275

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT MIN ( + 91 ) * + - 25
----
-2275

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

query I rowsort
SELECT CASE + 26 WHEN + 78 + + 59 + + - 84 / + 97 THEN CASE + + 83 WHEN + 39 THEN NULL WHEN - ( + + ( + 25 ) ) THEN + 52 END + + + 76 ELSE NULL END
----
NULL

query II rowsort
SELECT + NULLIF ( 54, 37 ) + 33 + + 22, 29 col2
----
109
29

query I rowsort
SELECT - 5 - + 88
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2449
SELECT ALL + 34 * - CAST( + 47 AS SIGNED ) * - 5 + - 88 * - 22 * - 19 AS col2, - COUNT( * )
----
-28794
-1

skipif mysql # not compatible
query II rowsort label-2449
SELECT ALL + 34 * - CAST ( + 47 AS INTEGER ) * - 5 + - 88 * - 22 * - 19 AS col2, - COUNT ( * )
----
-28794
-1

query I rowsort
SELECT + ( 73 ) * - 30 + - 73
----
-2263

query I rowsort
SELECT - 81 * + + 32
----
-2592

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

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

query I rowsort
SELECT ALL + NULLIF ( - + 17, + 81 * 68 ) * + 70 * + 60 + - 18 + 24 * 71
----
-69714

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT - 45 + - COUNT( * ) col2, + 97 col2
----
-46
97

skipif mysql # not compatible
query II rowsort label-2454
SELECT - 45 + - COUNT ( * ) col2, + 97 col2
----
-46
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT ( COUNT( * ) ) + + NULLIF ( - COUNT( * ), - ( + - 47 ) ) * - 80
----
81

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT ( COUNT ( * ) ) + + NULLIF ( - COUNT ( * ), - ( + - 47 ) ) * - 80
----
81

query I rowsort
SELECT ALL + + 19 + - 40 + - 58 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + COUNT( * ) + - ( + ( + MIN( DISTINCT + 52 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-2457
SELECT + COUNT ( * ) + - ( + ( + MIN ( DISTINCT + 52 ) ) )
----
-51

query I rowsort
SELECT ALL + - 6 * - - 21
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT DISTINCT + MIN( ALL + 26 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT + MIN ( ALL + 26 ) col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - 21 + - + COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2460
SELECT - 21 + - + COUNT ( * ) AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2461
SELECT ALL - COUNT( * ) - - ( + CASE 38 WHEN + CAST( + - 5 AS DECIMAL ) * + 61 + - 52 * SUM( 92 ) - - NULLIF ( - - 40, 32 * + ( 68 ) - - 57 ) + 46 THEN 4 - + - 16 WHEN - - COUNT( * ) * - - 0 THEN - - 17 * - 23 * + ( - 98 ) * + 48 * - + 54 + 5 END ) - NULLIF ( + 69, 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - COUNT ( * ) - - ( + CASE 38 WHEN + CAST ( + - 5 AS REAL ) * + 61 + - 52 * SUM ( 92 ) - - NULLIF ( - - 40, 32 * + ( 68 ) - - 57 ) + 46 THEN 4 - + - 16 WHEN - - COUNT ( * ) * - - 0 THEN - - 17 * - 23 * + ( - 98 ) * + 48 * - + 54 + 5 END ) - NULLIF ( + 69, 38 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2462
SELECT ALL + - COALESCE ( + - NULLIF ( + COALESCE ( - + 14, - 69 * + - 36 + - 85, - 84 * - - COALESCE ( - 43, + + 8 ) * - + 78 + + MAX( ALL + - 39 ) ), ( NULLIF ( - - 49, - 36 ) ) + - 57 - + 73 ), + MIN( ALL - 40 ) + COUNT( * ) * - 5 + + 41 - - 78 * + 77, + CASE - CAST( NULL AS SIGNED ) WHEN 98 THEN COUNT( DISTINCT ( 39 ) ) DIV - 67 ELSE NULL END * 24 + - 11 ) - + 52
----
-66

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL + - COALESCE ( + - NULLIF ( + COALESCE ( - + 14, - 69 * + - 36 + - 85, - 84 * - - COALESCE ( - 43, + + 8 ) * - + 78 + + MAX ( ALL + - 39 ) ), ( NULLIF ( - - 49, - 36 ) ) + - 57 - + 73 ), + MIN ( ALL - 40 ) + COUNT ( * ) * - 5 + + 41 - - 78 * + 77, + CASE - CAST ( NULL AS INTEGER ) WHEN 98 THEN COUNT ( DISTINCT ( 39 ) ) / - 67 ELSE NULL END * 24 + - 11 ) - + 52
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - + MAX( + 26 ) * - + 77 * + COUNT( * )
----
2002

skipif mysql # not compatible
query I rowsort label-2463
SELECT - + MAX ( + 26 ) * - + 77 * + COUNT ( * )
----
2002

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT ALL + - 14 * NULLIF ( 92, + ( - 12 ) ) - - - 88 DIV - - 64
----
-1289

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL + - 14 * NULLIF ( 92, + ( - 12 ) ) - - - 88 / - - 64
----
-1289

query I rowsort
SELECT DISTINCT + + 64 * + 75 col1
----
4800

query I rowsort
SELECT - ( + 71 ) + + - 80 + + 68 * + + 61 col2
----
3997

query I rowsort
SELECT - 79 * - 17 AS col2
----
1343

query I rowsort
SELECT ALL NULLIF ( - 4, 52 / 17 ) AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT - - 85 + ( + 33 ) + COALESCE ( + 62, 80, - 23 DIV - + SUM( - - ( + + 27 ) ) * - CASE + + 99 WHEN - 60 + + - 35 THEN + ( + - 80 ) + - COUNT( * ) END + + 62 ) AS col0
----
180

skipif mysql # not compatible
query I rowsort label-2469
SELECT - - 85 + ( + 33 ) + COALESCE ( + 62, 80, - 23 / - + SUM ( - - ( + + 27 ) ) * - CASE + + 99 WHEN - 60 + + - 35 THEN + ( + - 80 ) + - COUNT ( * ) END + + 62 ) AS col0
----
180

onlyif mysql # DIV for integer division: 
query II rowsort label-2470
SELECT - + 10 + 53 AS col2, 53 DIV + ( 35 ) AS col0
----
43
1

skipif mysql # not compatible
query II rowsort label-2470
SELECT - + 10 + 53 AS col2, 53 / + ( 35 ) AS col0
----
43
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2471
SELECT + - 4 - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-2471
SELECT + - 4 - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT + - 87 * - 2 + - CASE - + 45 WHEN - 8 + - COALESCE ( 16, - ( 30 ) ) + + CASE + 34 WHEN ( - 14 ) THEN + + 50 END * - - 75 + - NULLIF ( - 14, - - 82 ) THEN 58 * + COALESCE ( 2, + 96 + - 24 - + + MIN( ALL + 39 ) / - COALESCE ( - CAST( AVG ( 84 ) AS SIGNED ), + 92 * 9, - ( 9 ) * 12, 49 / + 4 ) * - 17 * ( COUNT( DISTINCT 22 ) / + ( 11 - + 98 * - 42 ) - - 63 * - SUM( DISTINCT + 86 ) ) ) END * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT + - 87 * - 2 + - CASE - + 45 WHEN - 8 + - COALESCE ( 16, - ( 30 ) ) + + CASE + 34 WHEN ( - 14 ) THEN + + 50 END * - - 75 + - NULLIF ( - 14, - - 82 ) THEN 58 * + COALESCE ( 2, + 96 + - 24 - + + MIN ( ALL + 39 ) / - COALESCE ( - CAST ( AVG ( 84 ) AS INTEGER ), + 92 * 9, - ( 9 ) * 12, 49 / + 4 ) * - 17 * ( COUNT ( DISTINCT 22 ) / + ( 11 - + 98 * - 42 ) - - 63 * - SUM ( DISTINCT + 86 ) ) ) END * 50
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2473
SELECT ALL + NULLIF ( + COALESCE ( - + 59, - 24 ), - + CAST( - 7 AS DECIMAL ) )
----
-59

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + NULLIF ( + COALESCE ( - + 59, - 24 ), - + CAST ( - 7 AS REAL ) )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT ( 16 ) * + + 68 * - NULLIF ( - - 77, + + 8 ) + COUNT( * ) * 69 + - COUNT( * ) + + COALESCE ( 49, - 20 DIV - ( + 62 ) ) + + 96
----
-83563

skipif mysql # not compatible
query I rowsort label-2474
SELECT ( 16 ) * + + 68 * - NULLIF ( - - 77, + + 8 ) + COUNT ( * ) * 69 + - COUNT ( * ) + + COALESCE ( 49, - 20 / - ( + 62 ) ) + + 96
----
-83563

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT ALL - 17 DIV 84 + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - 17 / 84 + 2 AS col0
----
2

query II rowsort
SELECT ALL + 85 * 85 * 68, - 69 * COALESCE ( - 12, - + 83 + 1 * - 24 ) + - 40 AS col2
----
491300
788

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT - 5 DIV - - 32
----
0

skipif mysql # not compatible
query I rowsort label-2479
SELECT - 5 / - - 32
----
0

query I rowsort
SELECT 57 * + 62 + - - 82
----
3616

query I rowsort
SELECT - 23 * + ( - 92 ) col2
----
2116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2482
SELECT - CAST( NULL AS SIGNED ) / - 55 + 39 + + ( 41 ) + - 94 / + + COALESCE ( - 42, AVG ( - 97 ) ) + - 95 + - 90 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT - CAST ( NULL AS INTEGER ) / - 55 + 39 + + ( 41 ) + - 94 / + + COALESCE ( - 42, AVG ( - 97 ) ) + - 95 + - 90 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT - 84 * + + COUNT( * ) + + + COUNT( * ) + - - COALESCE ( 26, 9 * + 51 ) + - 35 - 31
----
-123

skipif mysql # not compatible
query I rowsort label-2484
SELECT - 84 * + + COUNT ( * ) + + + COUNT ( * ) + - - COALESCE ( 26, 9 * + 51 ) + - 35 - 31
----
-123

query I rowsort
SELECT + COALESCE ( + - 4, + + 7, 94 )
----
-4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT DISTINCT + 67 * - - ( 80 ) DIV + 40
----
134

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + 67 * - - ( 80 ) / + 40
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT + 52 * + 96 DIV - 4 AS col2
----
-1248

skipif mysql # not compatible
query I rowsort label-2488
SELECT + 52 * + 96 / - 4 AS col2
----
-1248

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2490
SELECT ALL + CAST( NULL AS SIGNED ), 30 * + 89 AS col1
----
NULL
2670

skipif mysql # not compatible
query II rowsort label-2490
SELECT ALL + CAST ( NULL AS INTEGER ), 30 * + 89 AS col1
----
NULL
2670

query II rowsort
SELECT ALL - 93 AS col1, + 39
----
-93
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT ALL CAST( NULL AS SIGNED ) * - + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL CAST ( NULL AS INTEGER ) * - + 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2493
SELECT ( - 19 ) * COUNT( * ), + 9 AS col1
----
-19
9

skipif mysql # not compatible
query II rowsort label-2493
SELECT ( - 19 ) * COUNT ( * ), + 9 AS col1
----
-19
9

query I rowsort
SELECT NULLIF ( - 43, + + 65 ) * - ( - - 57 )
----
2451

query II rowsort
SELECT + 37, + ( - 26 ) * - 81 + + CASE CASE WHEN NOT NULL NOT BETWEEN 43 AND + 21 THEN + 10 END WHEN 54 * - 56 THEN - - 78 ELSE 40 END AS col0
----
37
2146

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

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

query II rowsort
SELECT ALL CASE + 3 WHEN + 40 THEN - - 17 WHEN - 6 THEN 35 END AS col0, 66 AS col2
----
NULL
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2498
SELECT 69 * + - 80 + + 3 + - - 59 + - 88 * 52 * COUNT( * ) + - - COUNT( * ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT 69 * + - 80 + + 3 + - - 59 + - 88 * 52 * COUNT ( * ) + - - COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 46 * - 39 AS col2
----
1794

query I rowsort
SELECT ALL + 77 - + - 64 * + + 95 AS col0
----
6157

query I rowsort
SELECT ALL - 97 - - 68
----
-29

query II rowsort
SELECT + 50 + + ( + 74 ) AS col2, ( 9 ) + + - 83
----
124
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT DISTINCT - MAX( DISTINCT - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT - MAX ( DISTINCT - 36 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2504
SELECT ALL NULLIF ( + 71, - + SUM( DISTINCT - 40 ) ) DIV - + 16
----
-4

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL NULLIF ( + 71, - + SUM ( DISTINCT - 40 ) ) / - + 16
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT COUNT( * ) / - - NULLIF ( - ( CASE + 80 WHEN CAST( + 91 AS SIGNED ) + - + CAST( NULL AS SIGNED ) THEN CAST( + 94 AS SIGNED ) + - 81 WHEN + COUNT( * ) + + 83 THEN NULL ELSE NULL END ), - 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT COUNT ( * ) / - - NULLIF ( - ( CASE + 80 WHEN CAST ( + 91 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) THEN CAST ( + 94 AS INTEGER ) + - 81 WHEN + COUNT ( * ) + + 83 THEN NULL ELSE NULL END ), - 8 ) AS col1
----
NULL

query I rowsort
SELECT + 8 * - + 29
----
-232

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2507
SELECT ALL CAST( NULL AS SIGNED ), 45 * + 28 col0
----
NULL
1260

skipif mysql # not compatible
query II rowsort label-2507
SELECT ALL CAST ( NULL AS INTEGER ), 45 * + 28 col0
----
NULL
1260

query I rowsort
SELECT + 21 + ( + + 98 )
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT + 11 * COUNT( * ) * 58 * 67
----
42746

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT + 11 * COUNT ( * ) * 58 * 67
----
42746

onlyif mysql # aggregate syntax: 
query II rowsort label-2510
SELECT ALL 89 AS col0, + 15 * COUNT( * ) * + 25
----
89
375

skipif mysql # not compatible
query II rowsort label-2510
SELECT ALL 89 AS col0, + 15 * COUNT ( * ) * + 25
----
89
375

query II rowsort
SELECT ALL 12 AS col0, - 19 col2
----
12
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2512
SELECT DISTINCT 6 + 26 DIV + 77 + + - 73 + - COUNT( * ) - 41 * + COUNT( * ) AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT 6 + 26 / + 77 + + - 73 + - COUNT ( * ) - 41 * + COUNT ( * ) AS col1
----
-109

query I rowsort
SELECT ALL + 25 + ( + + 58 ) * - 2 + + 77
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2514
SELECT ALL + 53 + - COUNT( + 83 ) - - + NULLIF ( - COALESCE ( - 90, - 10, - MAX( ALL + 80 ) - - + 57 * + + 51, + + 72 + 40 * 34 DIV MIN( DISTINCT + 50 ) * - - 23 ), - 99 - + 25 ) DIV - 36 + - 43 - + 4 AS col1, MIN( 47 ) + - ( - + ( COUNT( * ) ) ) + - 27
----
3
21

skipif mysql # not compatible
query II rowsort label-2514
SELECT ALL + 53 + - COUNT ( + 83 ) - - + NULLIF ( - COALESCE ( - 90, - 10, - MAX ( ALL + 80 ) - - + 57 * + + 51, + + 72 + 40 * 34 / MIN ( DISTINCT + 50 ) * - - 23 ), - 99 - + 25 ) / - 36 + - 43 - + 4 AS col1, MIN ( 47 ) + - ( - + ( COUNT ( * ) ) ) + - 27
----
3
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT ALL - COALESCE ( - 24, - 30 + + ( - + CAST( + 71 AS SIGNED ) ) + - 99 ) + + 64 col2
----
88

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - COALESCE ( - 24, - 30 + + ( - + CAST ( + 71 AS INTEGER ) ) + - 99 ) + + 64 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT 87 * + 98 * - + ( + NULLIF ( + 33, + COUNT( * ) ) )
----
-281358

skipif mysql # not compatible
query I rowsort label-2516
SELECT 87 * + 98 * - + ( + NULLIF ( + 33, + COUNT ( * ) ) )
----
-281358

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL - CASE 17 WHEN + 43 + COUNT( * ) * - 40 THEN NULL ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - CASE 17 WHEN + 43 + COUNT ( * ) * - 40 THEN NULL ELSE + COUNT ( * ) END
----
-1

query I rowsort
SELECT DISTINCT - 8 + 84 * 18
----
1504

query II rowsort
SELECT ALL + ( - ( + 85 ) ) + + 24 * + - 91 AS col1, 80
----
-2269
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2520
SELECT 13 - - 73 - COUNT( * ) - - 79 * + + 79 + - - MAX( 69 ) AS col0, 51 * - 23 AS col0
----
6395
-1173

skipif mysql # not compatible
query II rowsort label-2520
SELECT 13 - - 73 - COUNT ( * ) - - 79 * + + 79 + - - MAX ( 69 ) AS col0, 51 * - 23 AS col0
----
6395
-1173

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( - - 64, - + 48 ) + + + 50 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2523
SELECT 32 DIV 9 AS col0, + 53 * - - COUNT( * ) * + CAST( NULL AS SIGNED ) + COUNT( * ) + - 53 + + 95
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2523
SELECT 32 / 9 AS col0, + 53 * - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 53 + + 95
----
3
NULL

query I rowsort
SELECT 3 * 95 AS col0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT 12 + - + COUNT( DISTINCT + 50 )
----
11

skipif mysql # not compatible
query I rowsort label-2525
SELECT 12 + - + COUNT ( DISTINCT + 50 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2526
SELECT ALL - CAST( - 32 AS SIGNED ), - COUNT( * ) * - + ( 38 ) / + 54 * + CASE - 6 WHEN ( - COUNT( * ) ) / 75 + + 72 / + ( - MAX( ALL 9 ) ) THEN NULL WHEN + - 27 THEN + ( + 38 ) END AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2526
SELECT ALL - CAST ( - 32 AS INTEGER ), - COUNT ( * ) * - + ( 38 ) / + 54 * + CASE - 6 WHEN ( - COUNT ( * ) ) / 75 + + 72 / + ( - MAX ( ALL 9 ) ) THEN NULL WHEN + - 27 THEN + ( + 38 ) END AS col0
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT 27 * + + 43 * 34 * 69 + 8 / CASE - ( + 33 ) WHEN + + COUNT( * ) THEN - - 38 * - 26 * - 10 + - 7 - - 10 + + ( - 72 ) + + 99 * - COUNT( * ) ELSE NULL END + - 80 + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT 27 * + + 43 * 34 * 69 + 8 / CASE - ( + 33 ) WHEN + + COUNT ( * ) THEN - - 38 * - 26 * - 10 + - 7 - - 10 + + ( - 72 ) + + 99 * - COUNT ( * ) ELSE NULL END + - 80 + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2528
SELECT DISTINCT - + CASE - COALESCE ( 78, - 69 ) WHEN - MIN( - 80 ) / 97 * - 88 * - + 27 * + + 14 THEN NULL ELSE - - 85 + 49 END, 41 AS col1
----
-134
41

skipif mysql # not compatible
query II rowsort label-2528
SELECT DISTINCT - + CASE - COALESCE ( 78, - 69 ) WHEN - MIN ( - 80 ) / 97 * - 88 * - + 27 * + + 14 THEN NULL ELSE - - 85 + 49 END, 41 AS col1
----
-134
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT 86 + + MAX( - - 79 ) + COUNT( * ) + 19 + - NULLIF ( 22, - 64 )
----
163

skipif mysql # not compatible
query I rowsort label-2529
SELECT 86 + + MAX ( - - 79 ) + COUNT ( * ) + 19 + - NULLIF ( 22, - 64 )
----
163

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

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - MIN ( - 18 )
----
18

query I rowsort
SELECT COALESCE ( 50, + 22 )
----
50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2533
SELECT CAST( + + 62 AS SIGNED ) * 64 AS col0
----
3968

skipif mysql # not compatible
query I rowsort label-2533
SELECT CAST ( + + 62 AS INTEGER ) * 64 AS col0
----
3968

query II rowsort
SELECT DISTINCT 13 * + 28 - - 35 * 1, + 55 col1
----
399
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT MIN( DISTINCT - 45 ) + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2535
SELECT MIN ( DISTINCT - 45 ) + COUNT ( * ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2536
SELECT ALL 31 * - ( + - 70 ) * ( - + 90 ) * COUNT( * ) DIV + SUM( DISTINCT 90 ) AS col1
----
-2170

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL 31 * - ( + - 70 ) * ( - + 90 ) * COUNT ( * ) / + SUM ( DISTINCT 90 ) AS col1
----
-2170

query I rowsort
SELECT 35 * 80 AS col1
----
2800

query I rowsort
SELECT ALL - 13 + + + 34 col0
----
21

query I rowsort
SELECT ALL + + 59 + 57 + 6 * 32
----
308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT CAST( NULL AS SIGNED ) - - 39 * - 71 - 37 + + 17 + - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT CAST ( NULL AS INTEGER ) - - 39 * - 71 - 37 + + 17 + - - 45
----
NULL

query I rowsort
SELECT DISTINCT - 22 + + 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL - CASE 32 WHEN + 23 + 9 THEN 15 END + 95 + - 62 * + 90 - + SUM( - 64 )
----
-5436

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - CASE 32 WHEN + 23 + 9 THEN 15 END + 95 + - 62 * + 90 - + SUM ( - 64 )
----
-5436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2543
SELECT MAX( DISTINCT + + 60 ) DIV COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2543
SELECT MAX ( DISTINCT + + 60 ) / COUNT ( * ) AS col1
----
60

query II rowsort
SELECT 67 AS col0, 46 - 4 AS col2
----
67
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2545
SELECT 7 * + ( CASE - + COUNT( * ) WHEN - - 88 DIV - 61 - - 65 + - MIN( ALL - CAST( + - ( 61 ) AS DECIMAL ) ) THEN NULL ELSE + 14 DIV COUNT( * ) END ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2545
SELECT 7 * + ( CASE - + COUNT ( * ) WHEN - - 88 / - 61 - - 65 + - MIN ( ALL - CAST ( + - ( 61 ) AS REAL ) ) THEN NULL ELSE + 14 / COUNT ( * ) END ) AS col1
----
98

query I rowsort
SELECT ( 44 ) + + - 38 * 94 - - 43 + + - 96 AS col2
----
-3581

query I rowsort
SELECT 23 - + 18 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2548
SELECT ALL + 36 * 50 + - 51 - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0, 97 DIV + - 62
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2548
SELECT ALL + 36 * 50 + - 51 - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0, 97 / + - 62
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL - MIN( ALL + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - MIN ( ALL + 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT - 46 + + + COALESCE ( - 70, - CAST( NULL AS SIGNED ) ) + + + COALESCE ( + + 15, 84, + 18 ) * - 91 * - SUM( - 2 ) + + 44 AS col0
----
-2802

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 46 + + + COALESCE ( - 70, - CAST ( NULL AS INTEGER ) ) + + + COALESCE ( + + 15, 84, + 18 ) * - 91 * - SUM ( - 2 ) + + 44 AS col0
----
-2802

query I rowsort
SELECT ALL + 59 * + + 97 - - 87 AS col1
----
5810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT + CASE + NULLIF ( + 44, + 13 + + + 50 + ( + + 30 ) ) WHEN - - MAX( - + 58 ) / - + CASE + - NULLIF ( + 27, COALESCE ( + COUNT( * ), + COUNT( * ) * COALESCE ( 31, - CASE + 90 WHEN - SUM( DISTINCT + 45 ) THEN + 33 END * - COUNT( * ) * - - 22 * + - 65 + MIN( DISTINCT - ( - - 26 ) ), + - 0 ) + 39 - - 56 + + 19, - 72 + 36 * 46 ) / - 24 ) WHEN - 47 * - 83 THEN NULL ELSE 59 END / 25 THEN - CAST( NULL AS SIGNED ) - + 40 * 16 WHEN MAX( + 80 ) THEN NULL ELSE 82 END AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2552
SELECT + CASE + NULLIF ( + 44, + 13 + + + 50 + ( + + 30 ) ) WHEN - - MAX ( - + 58 ) / - + CASE + - NULLIF ( + 27, COALESCE ( + COUNT ( * ), + COUNT ( * ) * COALESCE ( 31, - CASE + 90 WHEN - SUM ( DISTINCT + 45 ) THEN + 33 END * - COUNT ( * ) * - - 22 * + - 65 + MIN ( DISTINCT - ( - - 26 ) ), + - 0 ) + 39 - - 56 + + 19, - 72 + 36 * 46 ) / - 24 ) WHEN - 47 * - 83 THEN NULL ELSE 59 END / 25 THEN - CAST ( NULL AS INTEGER ) - + 40 * 16 WHEN MAX ( + 80 ) THEN NULL ELSE 82 END AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT COUNT( * ) * - 5 + + COALESCE ( + 7, 9 - - - 82 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2553
SELECT COUNT ( * ) * - 5 + + COALESCE ( + 7, 9 - - - 82 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT + 10 * - - COUNT( * ) * + 88 AS col1, 54 AS col2
----
880
54

skipif mysql # not compatible
query II rowsort label-2554
SELECT + 10 * - - COUNT ( * ) * + 88 AS col1, 54 AS col2
----
880
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2555
SELECT - 16 * + ( - 24 ) AS col1, COUNT( * ) * + 80 * - 40 AS col1
----
384
-3200

skipif mysql # not compatible
query II rowsort label-2555
SELECT - 16 * + ( - 24 ) AS col1, COUNT ( * ) * + 80 * - 40 AS col1
----
384
-3200

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - - COUNT( * ) * - - 3 col1
----
3

skipif mysql # not compatible
query I rowsort label-2556
SELECT - - COUNT ( * ) * - - 3 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2557
SELECT DISTINCT + + 52, - CAST( + + COUNT( * ) AS SIGNED ) + + - 25 * 72 AS col1
----
52
-1801

skipif mysql # not compatible
query II rowsort label-2557
SELECT DISTINCT + + 52, - CAST ( + + COUNT ( * ) AS INTEGER ) + + - 25 * 72 AS col1
----
52
-1801

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

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT + + NULLIF ( - COUNT ( * ), + - 6 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL - + COUNT( * ) * + + 30 + ( - ( 76 ) ) + + 55
----
-51

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - + COUNT ( * ) * + + 30 + ( - ( 76 ) ) + + 55
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT + NULLIF ( + COUNT( * ), + - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-2560
SELECT + NULLIF ( + COUNT ( * ), + - 9 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2561
SELECT - SUM( - - COALESCE ( + 77, 81, NULLIF ( 21, + CAST( 74 AS SIGNED ) * - 0 * + + 93 ) + + + 87 ) ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-2561
SELECT - SUM ( - - COALESCE ( + 77, 81, NULLIF ( 21, + CAST ( 74 AS INTEGER ) * - 0 * + + 93 ) + + + 87 ) ) col0
----
-77

query I rowsort
SELECT DISTINCT - 78 * + 89 AS col1
----
-6942

query I rowsort
SELECT ALL - - 45 + 77
----
122

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL + + COUNT( * ) + - + 88 - + COUNT( * ) - - + 83
----
-5

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + + COUNT ( * ) + - + 88 - + COUNT ( * ) - - + 83
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT ALL - + CAST( - 14 AS SIGNED ) + - 10 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - + CAST ( - 14 AS INTEGER ) + - 10 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL + ( - 71 ) + 20 * MIN( 60 ) * - - 60
----
71929

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL + ( - 71 ) + 20 * MIN ( 60 ) * - - 60
----
71929

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

query I rowsort
SELECT + COALESCE ( + + 7, - 67 ) + 84
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL 18 + - + COUNT( + 91 )
----
17

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL 18 + - + COUNT ( + 91 )
----
17

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

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

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

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

query II rowsort
SELECT - ( - - 8 ), 39 AS col1
----
-8
39

query I rowsort
SELECT DISTINCT 53 + 44 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT + SUM( - - 57 ) + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-2577
SELECT + SUM ( - - 57 ) + + COUNT ( * )
----
58

query II rowsort
SELECT 58, + 97 * 8 + - - 0 AS col2
----
58
776

query I rowsort
SELECT DISTINCT 17 - + 56
----
-39

query I rowsort
SELECT + 29 * + 57 * + 53
----
87609

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL COUNT( + + 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL COUNT ( + + 26 ) AS col0
----
1

query I rowsort
SELECT + 34 - 36 + - 21 * - 64 * + 15 AS col1
----
20158

query I rowsort
SELECT - 46 * - 65 - 29 AS col0
----
2961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2584
SELECT - COUNT( * ) DIV + 78 AS col0
----
0

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

query I rowsort
SELECT DISTINCT ( + 21 ) * + 51 AS col1
----
1071

query I rowsort
SELECT ALL + COALESCE ( + + 93, - 71 ) AS col1
----
93

query I rowsort
SELECT ALL - 73 * + 81
----
-5913

query I rowsort
SELECT + 39 * + 21
----
819

query I rowsort
SELECT + 56 - 13 + 84
----
127

query I rowsort
SELECT + 38 + - 69 * - 57
----
3971

query I rowsort
SELECT - - 12 * + 51
----
612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2592
SELECT ALL CASE + - CAST( NULL AS SIGNED ) WHEN + ( - ( 42 ) ) * - - 55 * - - 44 + 74 + + 30 THEN + 70 * + 34 + - MAX( + 13 ) + - + 59 + - 17 ELSE NULL END * - CAST( - COUNT( * ) AS SIGNED ) + + + 87 + 48 + - + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL CASE + - CAST ( NULL AS INTEGER ) WHEN + ( - ( 42 ) ) * - - 55 * - - 44 + 74 + + 30 THEN + 70 * + 34 + - MAX ( + 13 ) + - + 59 + - 17 ELSE NULL END * - CAST ( - COUNT ( * ) AS INTEGER ) + + + 87 + 48 + - + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2593
SELECT + ( - 80 ) + + 65 + CAST( - COUNT( * ) AS SIGNED ) DIV + - 72 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2593
SELECT + ( - 80 ) + + 65 + CAST ( - COUNT ( * ) AS INTEGER ) / + - 72 AS col1
----
-15

query I rowsort
SELECT - 35 * - + 54 + + 32
----
1922

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + CASE + + COALESCE ( SUM( ALL - - 93 ), - 69 ) WHEN + - ( - COUNT( * ) ) * + 99 / - 15 + + - 63 * - - 47 * - 11 THEN + 52 ELSE NULL END * + 9 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT + CASE + + COALESCE ( SUM ( ALL - - 93 ), - 69 ) WHEN + - ( - COUNT ( * ) ) * + 99 / - 15 + + - 63 * - - 47 * - 11 THEN + 52 ELSE NULL END * + 9 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + 78, + ( 8 ) ) AS col1
----
-78

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

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

query I rowsort
SELECT - - 19 + + - ( + - 53 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT DISTINCT + 34 * + COUNT( * ) * - - COALESCE ( CAST( 1 AS SIGNED ), AVG ( - - CAST( NULL AS SIGNED ) ) + - 9 + - NULLIF ( - 79, - + 20 * - - 6 + - CAST( NULL AS SIGNED ) ) + - 32 ) - + CAST( NULL AS SIGNED ) * 60 / 87 / + 34 + - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT + 34 * + COUNT ( * ) * - - COALESCE ( CAST ( 1 AS INTEGER ), AVG ( - - CAST ( NULL AS INTEGER ) ) + - 9 + - NULLIF ( - 79, - + 20 * - - 6 + - CAST ( NULL AS INTEGER ) ) + - 32 ) - + CAST ( NULL AS INTEGER ) * 60 / 87 / + 34 + - 64 AS col1
----
NULL

query I rowsort
SELECT ALL - - 52 * 7 * - 32 + + 15
----
-11633

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT - 24 + - 53 + - COUNT( ALL 3 ) * - 15 + - 19
----
-81

skipif mysql # not compatible
query I rowsort label-2601
SELECT - 24 + - 53 + - COUNT ( ALL 3 ) * - 15 + - 19
----
-81

query I rowsort
SELECT - 21 * + 40 + 98 + 9
----
-733

query I rowsort
SELECT - 76 * - 8 col1
----
608

query I rowsort
SELECT ALL + 30 * - 92 + + - 14
----
-2774

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2606
SELECT - CAST( - + 11 AS SIGNED ) DIV - 29 + 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2606
SELECT - CAST ( - + 11 AS INTEGER ) / - 29 + 67 AS col0
----
67

query I rowsort
SELECT + 65 * - 54 * 67
----
-235170

query I rowsort
SELECT DISTINCT - 49 * - 89
----
4361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT 22 + - 0 * - - ( + CASE + 82 WHEN - 63 THEN NULL WHEN + 60 THEN + - 93 WHEN - COUNT( * ) THEN + - 98 * 83 + CAST( - 39 AS SIGNED ) + ( + SUM( - 49 ) ) / 97 * + + 93 + - 7 * - 3 * + 29 + - + 69 / - MIN( + + 81 ) + + 70 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT 22 + - 0 * - - ( + CASE + 82 WHEN - 63 THEN NULL WHEN + 60 THEN + - 93 WHEN - COUNT ( * ) THEN + - 98 * 83 + CAST ( - 39 AS INTEGER ) + ( + SUM ( - 49 ) ) / 97 * + + 93 + - 7 * - 3 * + 29 + - + 69 / - MIN ( + + 81 ) + + 70 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2610
SELECT 12 + + COUNT( * ) AS col1, - 2 + - CAST( - ( + - 15 ) AS SIGNED )
----
13
-17

skipif mysql # not compatible
query II rowsort label-2610
SELECT 12 + + COUNT ( * ) AS col1, - 2 + - CAST ( - ( + - 15 ) AS INTEGER )
----
13
-17

query I rowsort
SELECT 16 * - - ( + 64 )
----
1024

query I rowsort
SELECT CASE 95 WHEN ( - 12 ) THEN + 93 - - - 48 END * AVG ( DISTINCT + - 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT ( + - CASE - + 28 WHEN + - COUNT( * ) THEN + 7 END ) * + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT ( + - CASE - + 28 WHEN + - COUNT ( * ) THEN + 7 END ) * + 1 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 87 * + ( + 79 ), + 8 * - 14 AS col2
----
6873
-112

query I rowsort
SELECT DISTINCT ( - 34 ) * - NULLIF ( + 17, - 4 )
----
578

query I rowsort
SELECT ALL 27 + - 79 AS col1
----
-52

query II rowsort
SELECT 57 + 6 AS col2, - 16
----
63
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT 71 / 98 + + CAST( NULL AS SIGNED ) + + 96 * - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT 71 / 98 + + CAST ( NULL AS INTEGER ) + + 96 * - 74 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2619
SELECT 83 * - - 90 * + 58 + COUNT( * ) + - 75 - 64 * + - COUNT( - 45 ) + + + 34 * - 67 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT 83 * - - 90 * + 58 + COUNT ( * ) + - 75 - 64 * + - COUNT ( - 45 ) + + + 34 * - 67 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL - 78 + + COUNT( * ) + + 73 + 43 * 88 AS col1
----
3780

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL - 78 + + COUNT ( * ) + + 73 + 43 * 88 AS col1
----
3780

onlyif mysql # aggregate syntax: 
query II rowsort label-2621
SELECT MIN( ( - + NULLIF ( 31, - 87 ) ) ), 37 AS col2
----
-31
37

skipif mysql # not compatible
query II rowsort label-2621
SELECT MIN ( ( - + NULLIF ( 31, - 87 ) ) ), 37 AS col2
----
-31
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT 92 DIV 36 + - 29 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2622
SELECT 92 / 36 + - 29 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL 98 * - 27 + + COUNT( * ) AS col1
----
-2645

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL 98 * - 27 + + COUNT ( * ) AS col1
----
-2645

onlyif mysql # aggregate syntax: 
query II rowsort label-2624
SELECT ALL + COUNT( * ) + - 66 AS col0, - 93
----
-65
-93

skipif mysql # not compatible
query II rowsort label-2624
SELECT ALL + COUNT ( * ) + - 66 AS col0, - 93
----
-65
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT + COUNT( ALL 96 ) AS col2, - 93 * + + 78 + - 37
----
1
-7291

skipif mysql # not compatible
query II rowsort label-2625
SELECT + COUNT ( ALL 96 ) AS col2, - 93 * + + 78 + - 37
----
1
-7291

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT ALL - 37 + + 80 * + + 1 - + 66 * 9 * + - 95 * - + 69 DIV 1
----
-3893627

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - 37 + + 80 * + + 1 - + 66 * 9 * + - 95 * - + 69 / 1
----
-3893627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2627
SELECT ALL + - 77 + - COUNT( * ) * - + 9 col0, 88 + + CAST( NULL AS SIGNED )
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-2627
SELECT ALL + - 77 + - COUNT ( * ) * - + 9 col0, 88 + + CAST ( NULL AS INTEGER )
----
-68
NULL

query I rowsort
SELECT - COALESCE ( - - 11, - 85 )
----
-11

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

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

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

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

query I rowsort
SELECT ALL + 1 - - 62 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT COUNT( - 40 ) - + 51
----
-50

skipif mysql # not compatible
query I rowsort label-2632
SELECT COUNT ( - 40 ) - + 51
----
-50

query I rowsort
SELECT - + COALESCE ( + + 53, - 28 ) AS col2
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL COUNT( * ) - + 64 + - 57 + - COUNT( * ) AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL COUNT ( * ) - + 64 + - 57 + - COUNT ( * ) AS col2
----
-121

query I rowsort
SELECT 7 * - ( + 94 ) AS col1
----
-658

query I rowsort
SELECT ALL - 8 - + - 22 + - 75 AS col2
----
-61

query II rowsort
SELECT ALL 45 AS col1, 97
----
45
97

query I rowsort
SELECT 22 + - 5 AS col2
----
17

query I rowsort
SELECT 26 - 26
----
0

query I rowsort
SELECT 32 + + 38 + + 76
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL - 63 * + - 30 * - + COUNT( * ) * - - 19 AS col2
----
-35910

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - 63 * + - 30 * - + COUNT ( * ) * - - 19 AS col2
----
-35910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT ALL - COALESCE ( - + 85, - + CAST( + 38 AS SIGNED ) ) * 70 AS col0
----
5950

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - COALESCE ( - + 85, - + CAST ( + 38 AS INTEGER ) ) * 70 AS col0
----
5950

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT 16 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT 16 / - 96 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2645
SELECT 51 / + + 22 * - CAST( NULL AS SIGNED ), CASE 81 WHEN 27 * COALESCE ( - COALESCE ( 41, + 9 * - 37 ), - + 63, 45 ) THEN - 41 WHEN + MIN( DISTINCT + 84 ) * - COALESCE ( 23, + CAST( - 29 AS SIGNED ), - - COUNT( * ) - + + 38 ) - - ( + + COUNT( * ) ) * 20 THEN NULL WHEN 54 * + ( 78 ) - + - 63 THEN NULL WHEN + 1 THEN NULL END * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2645
SELECT 51 / + + 22 * - CAST ( NULL AS INTEGER ), CASE 81 WHEN 27 * COALESCE ( - COALESCE ( 41, + 9 * - 37 ), - + 63, 45 ) THEN - 41 WHEN + MIN ( DISTINCT + 84 ) * - COALESCE ( 23, + CAST ( - 29 AS INTEGER ), - - COUNT ( * ) - + + 38 ) - - ( + + COUNT ( * ) ) * 20 THEN NULL WHEN 54 * + ( 78 ) - + - 63 THEN NULL WHEN + 1 THEN NULL END * + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT 22 * - CASE - 85 WHEN 62 + - + COUNT( * ) THEN 88 ELSE + NULLIF ( - 41, 82 + 67 ) END AS col1
----
902

skipif mysql # not compatible
query I rowsort label-2646
SELECT 22 * - CASE - 85 WHEN 62 + - + COUNT ( * ) THEN 88 ELSE + NULLIF ( - 41, 82 + 67 ) END AS col1
----
902

query II rowsort
SELECT 57 + - ( - - 85 ) - COALESCE ( 13, + 37 ) * + 46 * - + 90 * + 51 AS col2, - 86 AS col2
----
2744792
-86

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

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

query I rowsort
SELECT DISTINCT 86 + - - 46 AS col0
----
132

query I rowsort
SELECT ALL 81 * 82 + - 9 + + 71 AS col0
----
6704

query I rowsort
SELECT 37 - - 12
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT + - MAX( - - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2652
SELECT + - MAX ( - - 26 )
----
-26

query I rowsort
SELECT + 90 * - 39 * - 75 AS col0
----
263250

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT + 90 * - COUNT( * ) + - - 22 + - - 29
----
-39

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + 90 * - COUNT ( * ) + - - 22 + - - 29
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT - 56 DIV - - 46 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2655
SELECT - 56 / - - 46 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL 25 * + 10 - - 43 + - 69 + - MIN( 23 )
----
201

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL 25 * + 10 - - 43 + - 69 + - MIN ( 23 )
----
201

query I rowsort
SELECT ALL - 97 * - 36
----
3492

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT + ( ( + 27 ) ) * - - COUNT( * ) AS col1, 79 - 13 col0
----
27
66

skipif mysql # not compatible
query II rowsort label-2658
SELECT + ( ( + 27 ) ) * - - COUNT ( * ) AS col1, 79 - 13 col0
----
27
66

query I rowsort
SELECT ALL + 5 - - - NULLIF ( - - 35, + + 68 ) AS col2
----
-30

query I rowsort
SELECT - 37 * - 96 + 99 * - 62 + + 88 AS col1
----
-2498

query I rowsort
SELECT 55 * + 2 AS col0
----
110

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2663
SELECT + + 88 AS col0, 75 DIV 72
----
88
1

skipif mysql # not compatible
query II rowsort label-2663
SELECT + + 88 AS col0, 75 / 72
----
88
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT DISTINCT + CAST( + - 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + CAST ( + - 90 AS INTEGER )
----
-90

query I rowsort
SELECT + 30 * + 1
----
30

query I rowsort
SELECT - NULLIF ( 2, + - 99 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT + 94 * - 72 * - COUNT( * ) * + NULLIF ( 52, - ( + - NULLIF ( + 49, - 86 ) ) ) AS col2
----
351936

skipif mysql # not compatible
query I rowsort label-2667
SELECT + 94 * - 72 * - COUNT ( * ) * + NULLIF ( 52, - ( + - NULLIF ( + 49, - 86 ) ) ) AS col2
----
351936

query I rowsort
SELECT + 87 + 73 + NULLIF ( - + 37, + 93 )
----
123

query I rowsort
SELECT + 63 * + 53 AS col2
----
3339

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT - MAX( DISTINCT + 31 ) - + 34 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2670
SELECT - MAX ( DISTINCT + 31 ) - + 34 AS col0
----
-65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - NULLIF ( - - MIN( ALL 51 ), + 36 ) + - + COUNT( * ) + - + 57
----
-109

skipif mysql # not compatible
query I rowsort label-2672
SELECT - NULLIF ( - - MIN ( ALL 51 ), + 36 ) + - + COUNT ( * ) + - + 57
----
-109

query I rowsort
SELECT ALL + 69 + - 15 col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2674
SELECT + COUNT( * ) + - 39 AS col2, 65 - CAST( NULL AS SIGNED )
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-2674
SELECT + COUNT ( * ) + - 39 AS col2, 65 - CAST ( NULL AS INTEGER )
----
-38
NULL

query I rowsort
SELECT + 97 + + 91 col2
----
188

query I rowsort
SELECT - 3 - - 92
----
89

query I rowsort
SELECT DISTINCT - 97 * + - 92 AS col1
----
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + + MAX( ALL + 85 ) * + - 67
----
-5695

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + + MAX ( ALL + 85 ) * + - 67
----
-5695

query I rowsort
SELECT - 27 + + 46 * + ( + - 89 ) AS col0
----
-4121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT - 96 - - 23 + + + CAST( NULL AS SIGNED ) * + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT - 96 - - 23 + + + CAST ( NULL AS INTEGER ) * + + 89
----
NULL

query I rowsort
SELECT - + 64 * - 48 * + 36
----
110592

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT + + ( - 45 ) DIV - 16 + - - 71 + - 25
----
48

skipif mysql # not compatible
query I rowsort label-2682
SELECT + + ( - 45 ) / - 16 + - - 71 + - 25
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT - + 15 + - 8 DIV + 87
----
-15

skipif mysql # not compatible
query I rowsort label-2683
SELECT - + 15 + - 8 / + 87
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL + COUNT( * ) * + 63 * + MAX( ALL - + 33 ) - + ( 94 )
----
-2173

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + COUNT ( * ) * + 63 * + MAX ( ALL - + 33 ) - + ( 94 )
----
-2173

query I rowsort
SELECT - 29 * 81 * + 14 + - 72 * + 21 - + - 23 AS col1
----
-34375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2686
SELECT - CASE + 47 WHEN + + 30 THEN NULL WHEN - 12 THEN + + CAST( + + COUNT( * ) AS SIGNED ) ELSE NULL END * MAX( - + 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT - CASE + 47 WHEN + + 30 THEN NULL WHEN - 12 THEN + + CAST ( + + COUNT ( * ) AS INTEGER ) ELSE NULL END * MAX ( - + 28 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL - CAST ( - 99 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 92 * - 74 + - 17 - - 66
----
6857

query I rowsort
SELECT ALL - 28 * - - 13 - - + 31
----
-333

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

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

query I rowsort
SELECT COALESCE ( - 5, - 84 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2692
SELECT ALL + 71 AS col0, 18 + + + 17 * - 96 + - + CAST( + 13 AS SIGNED ) * - - SUM( DISTINCT + 19 )
----
71
-1861

skipif mysql # not compatible
query II rowsort label-2692
SELECT ALL + 71 AS col0, 18 + + + 17 * - 96 + - + CAST ( + 13 AS INTEGER ) * - - SUM ( DISTINCT + 19 )
----
71
-1861

query II rowsort
SELECT ALL 98 col1, - COALESCE ( + 36, + ( - + 62 ) - - 65 ) AS col2
----
98
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2694
SELECT DISTINCT - 6 * - + 85 * + CASE - COALESCE ( - 61, - 15 - - ( 56 ) ) WHEN + COALESCE ( - 18, 71, + - CASE + CASE + 31 WHEN - COALESCE ( 5, 26 + + - COUNT( * ) + + 98 + 85 * - 49 * + 18, SUM( DISTINCT - 98 ) ) * + CAST( NULL AS SIGNED ) - - COUNT( * ) THEN NULL WHEN - COUNT( 63 ) + + 69 + - COUNT( * ) + - 71 * - - ( - + 7 ) THEN + COALESCE ( 46, ( 35 ) + ( 40 + CAST( 78 AS SIGNED ) ), - COUNT( * ) / + 54 ) * + 33 ELSE + COUNT( * ) END WHEN COUNT( * ) + - ( + COUNT( * ) ) THEN ( - 30 ) * + 16 ELSE NULL END, - ( - 14 ) - 0 ) * - 29 THEN 93 ELSE 95 END + 43
----
48493

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT - 6 * - + 85 * + CASE - COALESCE ( - 61, - 15 - - ( 56 ) ) WHEN + COALESCE ( - 18, 71, + - CASE + CASE + 31 WHEN - COALESCE ( 5, 26 + + - COUNT ( * ) + + 98 + 85 * - 49 * + 18, SUM ( DISTINCT - 98 ) ) * + CAST ( NULL AS INTEGER ) - - COUNT ( * ) THEN NULL WHEN - COUNT ( 63 ) + + 69 + - COUNT ( * ) + - 71 * - - ( - + 7 ) THEN + COALESCE ( 46, ( 35 ) + ( 40 + CAST ( 78 AS INTEGER ) ), - COUNT ( * ) / + 54 ) * + 33 ELSE + COUNT ( * ) END WHEN COUNT ( * ) + - ( + COUNT ( * ) ) THEN ( - 30 ) * + 16 ELSE NULL END, - ( - 14 ) - 0 ) * - 29 THEN 93 ELSE 95 END + 43
----
48493

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT 92 * - + COUNT( * ) + 90 * - + 14 * - 12 - - 13 col2
----
15041

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT 92 * - + COUNT ( * ) + 90 * - + 14 * - 12 - - 13 col2
----
15041

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

query I rowsort
SELECT ALL 28 + - + 82
----
-54

query I rowsort
SELECT ALL 74 + + 92 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT - CASE + - 81 WHEN - 41 THEN - - CASE + - 92 WHEN - + 76 - + COUNT( * ) + + 35 - + 55 THEN NULL WHEN + 34 THEN NULL WHEN - 10 THEN + - 99 + + - 1 END WHEN - 84 THEN NULL WHEN - 82 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT - CASE + - 81 WHEN - 41 THEN - - CASE + - 92 WHEN - + 76 - + COUNT ( * ) + + 35 - + 55 THEN NULL WHEN + 34 THEN NULL WHEN - 10 THEN + - 99 + + - 1 END WHEN - 84 THEN NULL WHEN - 82 THEN NULL END
----
NULL

query I rowsort
SELECT + 74 * + 88 AS col2
----
6512

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2704
SELECT ALL - COUNT( * ) DIV + + COALESCE ( + ( 11 ), - 2 + 69 + ( - 32 ) DIV - COALESCE ( + - 69, - 52 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - COUNT ( * ) / + + COALESCE ( + ( 11 ), - 2 + 69 + ( - 32 ) / - COALESCE ( + - 69, - 52 ) ) AS col1
----
0

query I rowsort
SELECT + 47 * 64
----
3008

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT DISTINCT - 96 DIV + 12
----
-8

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT - 96 / + 12
----
-8

query I rowsort
SELECT ALL 30 - - 50 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT + 46 * 16 * + CASE - NULLIF ( - COUNT( DISTINCT - 16 ), 6 / 96 + + COUNT( * ) - + CASE 10 WHEN + + 39 THEN 62 + + + 5 * - ( - 52 ) + 92 END ) WHEN - 20 THEN + SUM( DISTINCT + - 9 ) END * + SUM( ALL 38 ) - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT + 46 * 16 * + CASE - NULLIF ( - COUNT ( DISTINCT - 16 ), 6 / 96 + + COUNT ( * ) - + CASE 10 WHEN + + 39 THEN 62 + + + 5 * - ( - 52 ) + 92 END ) WHEN - 20 THEN + SUM ( DISTINCT + - 9 ) END * + SUM ( ALL 38 ) - 69
----
NULL

query I rowsort
SELECT - 58 * + 0 - - + 36
----
36

query I rowsort
SELECT - 1 * + 60
----
-60

query I rowsort
SELECT ALL - 3 * - 85 * 98 AS col0
----
24990

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT - - 92 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-2712
SELECT - - 92 / - 64
----
-1

query II rowsort
SELECT 65 AS col1, + 23 AS col1
----
65
23

query I rowsort
SELECT 72 * - + 21 * 8
----
-12096

query I rowsort
SELECT ALL 33 * 10 AS col1
----
330

query I rowsort
SELECT ( - - 5 ) * + + 66 + + 67 - - 38 + + 92 - 39 + + 69 * - + 34 * + - ( 38 ) * + 87
----
7756364

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT 51 * COUNT( * ) + - 22 * 96 AS col2
----
-2061

skipif mysql # not compatible
query I rowsort label-2717
SELECT 51 * COUNT ( * ) + - 22 * 96 AS col2
----
-2061

query II rowsort
SELECT 7 AS col2, - 44 + 14
----
7
-30

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

query I rowsort
SELECT 13 * - + 30 + - 91
----
-481

query I rowsort
SELECT 22 * - 92 * - 80 AS col2
----
161920

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT 35 + - + 35 col2, - MIN( DISTINCT 12 )
----
0
-12

skipif mysql # not compatible
query II rowsort label-2722
SELECT 35 + - + 35 col2, - MIN ( DISTINCT 12 )
----
0
-12

query I rowsort
SELECT ALL 34 + 33
----
67

query I rowsort
SELECT 25 * + - 54
----
-1350

query II rowsort
SELECT 23 AS col2, 77 * - + 13 - - 83 + + ( 51 )
----
23
-867

onlyif mysql # aggregate syntax: 
query II rowsort label-2726
SELECT - 64 AS col1, MIN( + 19 )
----
-64
19

skipif mysql # not compatible
query II rowsort label-2726
SELECT - 64 AS col1, MIN ( + 19 )
----
-64
19

query II rowsort
SELECT 31, 60 col2
----
31
60

onlyif mysql # DIV for integer division: 
query II rowsort label-2728
SELECT ALL 19, - 45 DIV - 16 AS col0
----
19
2

skipif mysql # not compatible
query II rowsort label-2728
SELECT ALL 19, - 45 / - 16 AS col0
----
19
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT SUM( + - 97 ) + - 15 * + 74 AS col2
----
-1207

skipif mysql # not compatible
query I rowsort label-2729
SELECT SUM ( + - 97 ) + - 15 * + 74 AS col2
----
-1207

query I rowsort
SELECT 60 * 36
----
2160

query II rowsort
SELECT DISTINCT 78 col1, + 15 AS col0
----
78
15

query I rowsort
SELECT 92 + + + 98 + + 26 - + - 37
----
253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT - 36 * - CAST( NULL AS SIGNED ) + - 15 + + 62 + - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT - 36 * - CAST ( NULL AS INTEGER ) + - 15 + + 62 + - + 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2734
SELECT NULLIF ( - 80, + + 49 ) + + - 5 col2, + 41 * + NULLIF ( - 79, CAST( - + 23 AS SIGNED ) ) + - + 52
----
-85
-3291

skipif mysql # not compatible
query II rowsort label-2734
SELECT NULLIF ( - 80, + + 49 ) + + - 5 col2, + 41 * + NULLIF ( - 79, CAST ( - + 23 AS INTEGER ) ) + - + 52
----
-85
-3291

query I rowsort
SELECT ALL - 67 - ( - + 37 )
----
-30

query I rowsort
SELECT CASE WHEN + 91 <> NULL THEN + + 71 END + - ( 70 )
----
NULL

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

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

query I rowsort
SELECT - - COALESCE ( - - 2, 58, - 39 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL - COUNT( * ) * 27 col2
----
-27

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - COUNT ( * ) * 27 col2
----
-27

query I rowsort
SELECT 17 + 45 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT COUNT( 83 ) - + + 8
----
-7

skipif mysql # not compatible
query I rowsort label-2741
SELECT COUNT ( 83 ) - + + 8
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2742
SELECT + NULLIF ( - + CASE COALESCE ( + CASE 65 WHEN 1 + + ( 39 ) THEN + - 89 ELSE NULL END, + + COUNT( ALL - + 6 ) - CAST( NULL AS SIGNED ) + + 48 + - 99 ) WHEN + + 91 THEN - CASE COUNT( * ) WHEN CAST( 69 AS DECIMAL ) + + COUNT( ALL + - 92 ) THEN NULL ELSE 30 * - + 13 * - 33 END * + + COALESCE ( - 20, - - 53, + CAST( + 83 AS SIGNED ) * NULLIF ( COUNT( * ), 92 ) - 35, - + 86 ) WHEN + + COALESCE ( - + 24, COUNT( * ), 44 * 21 ) THEN NULL ELSE NULL END, + 6 - + 93 * - 71 ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT + NULLIF ( - + CASE COALESCE ( + CASE 65 WHEN 1 + + ( 39 ) THEN + - 89 ELSE NULL END, + + COUNT ( ALL - + 6 ) - CAST ( NULL AS INTEGER ) + + 48 + - 99 ) WHEN + + 91 THEN - CASE COUNT ( * ) WHEN CAST ( 69 AS REAL ) + + COUNT ( ALL + - 92 ) THEN NULL ELSE 30 * - + 13 * - 33 END * + + COALESCE ( - 20, - - 53, + CAST ( + 83 AS INTEGER ) * NULLIF ( COUNT ( * ), 92 ) - 35, - + 86 ) WHEN + + COALESCE ( - + 24, COUNT ( * ), 44 * 21 ) THEN NULL ELSE NULL END, + 6 - + 93 * - 71 ) + 72
----
NULL

query I rowsort
SELECT DISTINCT + 74 * - + 33 + 74
----
-2368

query I rowsort
SELECT 9 * 78 AS col0
----
702

query II rowsort
SELECT DISTINCT - + 82 col1, 84 AS col0
----
-82
84

query I rowsort
SELECT 89 * - 39
----
-3471

query I rowsort
SELECT - 74 + 53 * + 9 AS col0
----
403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT ALL + MAX( DISTINCT 38 ) DIV COUNT( * ) DIV COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL + MAX ( DISTINCT 38 ) / COUNT ( * ) / COUNT ( * ) AS col0
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT ( - 85 ) * + SUM( DISTINCT - 97 ) + + - 86 AS col0
----
8159

skipif mysql # not compatible
query I rowsort label-2750
SELECT ( - 85 ) * + SUM ( DISTINCT - 97 ) + + - 86 AS col0
----
8159

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT + 2 DIV 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT + 2 / 83 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT + 41 * - 56 DIV - - COUNT( * )
----
-2296

skipif mysql # not compatible
query I rowsort label-2752
SELECT + 41 * - 56 / - - COUNT ( * )
----
-2296

query II rowsort
SELECT DISTINCT + 0 + 36 AS col1, - 69 * 25 AS col2
----
36
-1725

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2754
SELECT DISTINCT ( - 3 ) * - CAST( + 10 AS SIGNED ) + + CASE - 58 WHEN + 16 THEN + + 88 WHEN 85 THEN + 16 WHEN + 4 THEN NULL ELSE NULL END * - COALESCE ( + + 9, + 33 - - 99, - + AVG ( ALL - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT ( - 3 ) * - CAST ( + 10 AS INTEGER ) + + CASE - 58 WHEN + 16 THEN + + 88 WHEN 85 THEN + 16 WHEN + 4 THEN NULL ELSE NULL END * - COALESCE ( + + 9, + 33 - - 99, - + AVG ( ALL - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT SUM( - + 14 ) + + 24 * + - NULLIF ( - 8, - - 20 + 78 ) + - 28 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT SUM ( - + 14 ) + + 24 * + - NULLIF ( - 8, - - 20 + 78 ) + - 28 AS col2
----
150

query I rowsort
SELECT 55 * + 94 + + 21 - - - NULLIF ( 24, + + 73 ) AS col1
----
5167

query I rowsort
SELECT 67 + - 14
----
53

query I rowsort
SELECT 70 * + 60
----
4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT ALL - COALESCE ( CAST( NULL AS SIGNED ), - 65 - 60 * + 49 ) AS col0
----
3005

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), - 65 - 60 * + 49 ) AS col0
----
3005

query I rowsort
SELECT 50 - - - 51
----
-1

query I rowsort
SELECT 60 - + 7 + - 38
----
15

query I rowsort
SELECT ALL + 83 * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT ALL + 11 DIV - 51 * + 49
----
0

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + 11 / - 51 * + 49
----
0

query I rowsort
SELECT ALL - 56 - 56
----
-112

query I rowsort
SELECT DISTINCT + 93 * 21
----
1953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT - 34 - - + CAST( NULL AS SIGNED ) + - 18 + - + 5 / + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT - 34 - - + CAST ( NULL AS INTEGER ) + - 18 + - + 5 / + 38
----
NULL

query I rowsort
SELECT ALL - CASE + + 3 WHEN - 14 THEN + + 57 * + 22 END
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT ALL 53 * - 22
----
-1166

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2773
SELECT ALL - - CAST( + 48 AS SIGNED ) DIV - + ( - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - - CAST ( + 48 AS INTEGER ) / - + ( - 45 ) AS col0
----
1

query I rowsort
SELECT + 36 * + 23
----
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2775
SELECT ALL + 6 + + 2 * CASE - + 76 WHEN COUNT( * ) * + 34 THEN + + CASE + + 22 WHEN + 14 * 5 THEN - COUNT( * ) * - SUM( ALL - - 49 ) WHEN + 18 THEN - CAST( NULL AS SIGNED ) END WHEN + + 43 - - 21 / - + 23 * 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL + 6 + + 2 * CASE - + 76 WHEN COUNT ( * ) * + 34 THEN + + CASE + + 22 WHEN + 14 * 5 THEN - COUNT ( * ) * - SUM ( ALL - - 49 ) WHEN + 18 THEN - CAST ( NULL AS INTEGER ) END WHEN + + 43 - - 21 / - + 23 * 78 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL ( + MAX( DISTINCT 20 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL ( + MAX ( DISTINCT 20 ) ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT ALL - 62 * 69 DIV - 14 AS col0
----
305

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - 62 * 69 / - 14 AS col0
----
305

query I rowsort
SELECT - + 56 * + 39 AS col0
----
-2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT - 99 * - 77 + + CAST( - + 29 AS SIGNED ) - + 6 AS col1
----
7588

skipif mysql # not compatible
query I rowsort label-2779
SELECT - 99 * - 77 + + CAST ( - + 29 AS INTEGER ) - + 6 AS col1
----
7588

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + CASE 35 WHEN + COUNT( * ) THEN - - 47 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT + CASE 35 WHEN + COUNT ( * ) THEN - - 47 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2782
SELECT DISTINCT + MAX( + - 58 ) * COUNT( - 76 ) DIV ( 83 ) + + CAST( - COUNT( * ) AS SIGNED ) + + 53 * + - 1 + - 10
----
-64

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT + MAX ( + - 58 ) * COUNT ( - 76 ) / ( 83 ) + + CAST ( - COUNT ( * ) AS INTEGER ) + + 53 * + - 1 + - 10
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2783
SELECT ALL 49 * 99 + CAST( - ( + 31 ) AS SIGNED ) DIV 94 * - MIN( - + 58 ) DIV 28 AS col1
----
4851

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL 49 * 99 + CAST ( - ( + 31 ) AS INTEGER ) / 94 * - MIN ( - + 58 ) / 28 AS col1
----
4851

onlyif mysql # DIV for integer division: 
query II rowsort label-2784
SELECT + 62 * + 95 - - 13 AS col2, 41 DIV 90 AS col1
----
5903
0

skipif mysql # not compatible
query II rowsort label-2784
SELECT + 62 * + 95 - - 13 AS col2, 41 / 90 AS col1
----
5903
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT + 87 + + - SUM( + - 26 ) AS col1
----
113

skipif mysql # not compatible
query I rowsort label-2785
SELECT + 87 + + - SUM ( + - 26 ) AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT CASE COUNT( * ) WHEN - 57 * + 93 - - 28 + + - ( - - 31 ) * + + 35 + 73 THEN - 48 WHEN + 56 + 30 + COALESCE ( - 11, - 76 ) * - 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT CASE COUNT ( * ) WHEN - 57 * + 93 - - 28 + + - ( - - 31 ) * + + 35 + 73 THEN - 48 WHEN + 56 + 30 + COALESCE ( - 11, - 76 ) * - 8 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2787
SELECT + COUNT( * ), 39 * 54 * - 92 AS col1
----
1
-193752

skipif mysql # not compatible
query II rowsort label-2787
SELECT + COUNT ( * ), 39 * 54 * - 92 AS col1
----
1
-193752

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

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

query I rowsort
SELECT + 81 * + 17 AS col0
----
1377

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2790
SELECT DISTINCT 22 DIV + - CAST( - 73 AS SIGNED ) AS col0, 95 AS col0
----
0
95

skipif mysql # not compatible
query II rowsort label-2790
SELECT DISTINCT 22 / + - CAST ( - 73 AS INTEGER ) AS col0, 95 AS col0
----
0
95

query I rowsort
SELECT + 34 + 30
----
64

query I rowsort
SELECT + 51 * - 8 * - 83 AS col2
----
33864

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL 57 * + NULLIF ( COUNT( * ), + 18 * 96 * - COUNT( * ) * + MAX( - 17 ) ) * - 31
----
-1767

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL 57 * + NULLIF ( COUNT ( * ), + 18 * 96 * - COUNT ( * ) * + MAX ( - 17 ) ) * - 31
----
-1767

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL 16 * COUNT( - 48 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL 16 * COUNT ( - 48 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT DISTINCT 74 * + + 98 * - 24 * 5 * + + COUNT( * ) AS col2
----
-870240

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT 74 * + + 98 * - 24 * 5 * + + COUNT ( * ) AS col2
----
-870240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2796
SELECT ALL + NULLIF ( + 5, CAST( + + 69 AS SIGNED ) * - + COUNT( * ) - + + ( ( - - 97 ) ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + NULLIF ( + 5, CAST ( + + 69 AS INTEGER ) * - + COUNT ( * ) - + + ( ( - - 97 ) ) ) AS col0
----
5

query II rowsort
SELECT - 3 + 3 * 35, ( - ( 89 ) ) AS col0
----
102
-89

query II rowsort
SELECT ALL + 21, 48 * + 32 AS col2
----
21
1536

query I rowsort
SELECT 16 * + 51 + + - 87 AS col1
----
729

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2800
SELECT + 66 * CASE - + 17 WHEN ( - 75 ) * 80 * + ( - 71 ) + 44 * - 68 THEN + COUNT( * ) ELSE NULL END * 58 + + CAST( 0 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT + 66 * CASE - + 17 WHEN ( - 75 ) * 80 * + ( - 71 ) + 44 * - 68 THEN + COUNT ( * ) ELSE NULL END * 58 + + CAST ( 0 AS REAL )
----
NULL

query I rowsort
SELECT - 54 * 77 AS col0
----
-4158

query I rowsort
SELECT - 93 + + + 27 * + 52 col1
----
1311

query I rowsort
SELECT ALL + COALESCE ( + 19, - - 52, + 37 ) AS col0
----
19

query I rowsort
SELECT - 7 + - 2 - + 67 + - ( - 93 ) * - 77 + 89
----
-7148

query II rowsort
SELECT ALL - ( + 82 ) + + 87 AS col2, 81
----
5
81

query I rowsort
SELECT - - 30 + + 30 + + + NULLIF ( - - 67, + 66 ) AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT - + SUM( + + NULLIF ( - 3, 33 * - 35 / 38 ) ) + + COUNT( * ) * 41 * - ( + 84 ) AS col2
----
-3441

skipif mysql # not compatible
query I rowsort label-2807
SELECT - + SUM ( + + NULLIF ( - 3, 33 * - 35 / 38 ) ) + + COUNT ( * ) * 41 * - ( + 84 ) AS col2
----
-3441

query I rowsort
SELECT ( + - 89 ) col0
----
-89

query I rowsort
SELECT - 56 + + 87 * - 42 * - 48 AS col2
----
175336

query I rowsort
SELECT - 96 + 41 - + 88 * 4 AS col2
----
-407

query II rowsort
SELECT 96 AS col0, 77 AS col0
----
96
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT COALESCE ( - - 74, + COUNT( * ) * + 71 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2812
SELECT COALESCE ( - - 74, + COUNT ( * ) * + 71 ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT - COALESCE ( NULLIF ( - - 1, + 93 ), + ( - 93 ) * - - 86 + + - MIN( 88 ), - 42 ) + + CAST( NULL AS SIGNED ) + ( - - ( + 85 ) ) / 92 + + 9 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT - COALESCE ( NULLIF ( - - 1, + 93 ), + ( - 93 ) * - - 86 + + - MIN ( 88 ), - 42 ) + + CAST ( NULL AS INTEGER ) + ( - - ( + 85 ) ) / 92 + + 9 + - 48
----
NULL

query I rowsort
SELECT + 79 + 5 * + + ( - + ( 93 ) ) AS col2
----
-386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT ALL - - 76 + - CASE - CAST( NULL AS SIGNED ) WHEN + 1 THEN NULL WHEN - 9 * COUNT( DISTINCT - + 92 ) * + + MAX( DISTINCT + 13 ) + - 60 + - 87 + - 71 * + 54 + 59 THEN - 20 END - - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL - - 76 + - CASE - CAST ( NULL AS INTEGER ) WHEN + 1 THEN NULL WHEN - 9 * COUNT ( DISTINCT - + 92 ) * + + MAX ( DISTINCT + 13 ) + - 60 + - 87 + - 71 * + 54 + 59 THEN - 20 END - - 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2816
SELECT DISTINCT + 3 DIV - 12 + + COUNT( * ) + - - 21
----
22

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + 3 / - 12 + + COUNT ( * ) + - - 21
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2817
SELECT ALL + ( - COUNT( * ) ) AS col0, + 88 + - 59
----
-1
29

skipif mysql # not compatible
query II rowsort label-2817
SELECT ALL + ( - COUNT ( * ) ) AS col0, + 88 + - 59
----
-1
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT DISTINCT 45 / + CAST( NULL AS SIGNED ) + - - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT 45 / + CAST ( NULL AS INTEGER ) + - - 85 AS col1
----
NULL

query I rowsort
SELECT - 29 * 82 col1
----
-2378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT CAST( + + CASE - 47 WHEN + + 99 / - 81 * - 41 * + SUM( + 59 ) THEN - 45 + + 79 ELSE NULL END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT CAST ( + + CASE - 47 WHEN + + 99 / - 81 * - 41 * + SUM ( + 59 ) THEN - 45 + + 79 ELSE NULL END AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT 17 * + NULLIF ( + + 36, CASE - 17 WHEN + COUNT( * ) * COUNT( * ) THEN NULL WHEN - + 30 THEN + 59 + 81 ELSE NULL END ) AS col1
----
612

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT 17 * + NULLIF ( + + 36, CASE - 17 WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN - + 30 THEN + 59 + 81 ELSE NULL END ) AS col1
----
612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2822
SELECT ALL COUNT( * ) DIV + - 25 - 17 + + 80 * COUNT( * ) - + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL COUNT ( * ) / + - 25 - 17 + + 80 * COUNT ( * ) - + COUNT ( * )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT CAST( - CASE + - 64 WHEN CAST( NULL AS SIGNED ) + AVG ( + 94 ) THEN 10 * - 27 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT CAST ( - CASE + - 64 WHEN CAST ( NULL AS INTEGER ) + AVG ( + 94 ) THEN 10 * - 27 ELSE NULL END AS INTEGER )
----
NULL

query II rowsort
SELECT + 63 * 74 AS col0, 99 AS col1
----
4662
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT + CASE 25 WHEN - 17 THEN NULL WHEN + 90 THEN - - COUNT( * ) ELSE - 32 END
----
-32

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + CASE 25 WHEN - 17 THEN NULL WHEN + 90 THEN - - COUNT ( * ) ELSE - 32 END
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2826
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 52 * + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 52 * + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT DISTINCT COUNT( * ) * + 60 * - 70 * - - ( ( 52 ) ) - - 1 + + + ( + + 57 ) + - ( - - 77 ) + - 5 * + 28
----
-218559

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT COUNT ( * ) * + 60 * - 70 * - - ( ( 52 ) ) - - 1 + + + ( + + 57 ) + - ( - - 77 ) + - 5 * + 28
----
-218559

query I rowsort
SELECT ( - + 16 ) col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT + 25 * - 17 + - COUNT( * )
----
-426

skipif mysql # not compatible
query I rowsort label-2829
SELECT + 25 * - 17 + - COUNT ( * )
----
-426

query I rowsort
SELECT + 97 * - 19 AS col0
----
-1843

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT ALL 3 DIV + 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL 3 / + 87 col1
----
0

query II rowsort
SELECT ALL - 30 * - 9 * - 66 * 76 col2, + 21 + - + 90 AS col1
----
-1354320
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2833
SELECT + 78 * + CAST( NULL AS SIGNED ) AS col1, - 37 * 1 AS col0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-2833
SELECT + 78 * + CAST ( NULL AS INTEGER ) AS col1, - 37 * 1 AS col0
----
NULL
-37

query I rowsort
SELECT ALL + 19 + - 23 AS col1
----
-4

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

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

query I rowsort
SELECT ALL + 39 + - ( + 47 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL + 70 + - - 66 - + - COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + 70 + - - 66 - + - COUNT ( * )
----
137

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

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

query I rowsort
SELECT ALL 10 + 80 AS col2
----
90

query II rowsort
SELECT + 94 * - 24 col0, - COALESCE ( + 7, + + 24 ) col1
----
-2256
-7

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

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

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

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - + COUNT ( * ) + + 8 AS col1
----
7

query I rowsort
SELECT 31 * + 6 AS col2
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT - CAST( - 0 AS SIGNED ) * ( - + 84 ) + 66
----
66

skipif mysql # not compatible
query I rowsort label-2844
SELECT - CAST ( - 0 AS INTEGER ) * ( - + 84 ) + 66
----
66

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

skipif mysql # not compatible
query I rowsort label-2845
SELECT COUNT ( * ) / - 25 + - + 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT DISTINCT - COUNT( ALL + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT - COUNT ( ALL + 78 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT 76 DIV + 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-2847
SELECT 76 / + 77 col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT 25 * - CAST( + + 68 AS SIGNED ) - + 59
----
-1759

skipif mysql # not compatible
query I rowsort label-2849
SELECT 25 * - CAST ( + + 68 AS INTEGER ) - + 59
----
-1759

query I rowsort
SELECT 56 * ( + - 52 )
----
-2912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2851
SELECT 59 * + CAST( + 83 AS SIGNED )
----
4897

skipif mysql # not compatible
query I rowsort label-2851
SELECT 59 * + CAST ( + 83 AS INTEGER )
----
4897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2852
SELECT + NULLIF ( + - 53, - + COUNT( - 35 ) + 94 + + 89 ) DIV - - NULLIF ( + - 69, - 94 ) * - ( 14 ) + 69
----
69

skipif mysql # not compatible
query I rowsort label-2852
SELECT + NULLIF ( + - 53, - + COUNT ( - 35 ) + 94 + + 89 ) / - - NULLIF ( + - 69, - 94 ) * - ( 14 ) + 69
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT ALL + 25 * + CASE - 85 WHEN + 72 * + CAST( NULL AS SIGNED ) + - 95 THEN + 87 WHEN COALESCE ( 76, + SUM( - + 25 ), - + 98 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL + 25 * + CASE - 85 WHEN + 72 * + CAST ( NULL AS INTEGER ) + - 95 THEN + 87 WHEN COALESCE ( 76, + SUM ( - + 25 ), - + 98 ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT 4 + - - 59 * - COUNT( ALL 61 )
----
-55

skipif mysql # not compatible
query I rowsort label-2854
SELECT 4 + - - 59 * - COUNT ( ALL 61 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL - 61 * + 40 * + - COUNT( * ) col0
----
2440

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - 61 * + 40 * + - COUNT ( * ) col0
----
2440

query I rowsort
SELECT 75 + - 2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2857
SELECT ALL - 56 col2, 74 * + COUNT( * ) AS col0
----
-56
74

skipif mysql # not compatible
query II rowsort label-2857
SELECT ALL - 56 col2, 74 * + COUNT ( * ) AS col0
----
-56
74

query I rowsort
SELECT + 66 + + 86
----
152

query I rowsort
SELECT DISTINCT COALESCE ( 46, + + 6 ) + + 99
----
145

query II rowsort
SELECT ALL + 10 + ( + 89 ), - 64 - + 11 col0
----
99
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT - NULLIF ( + 22, + - COUNT( ALL - - 6 ) + - - 67 + - 91 ) + 14 - - 53 col1
----
45

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - NULLIF ( + 22, + - COUNT ( ALL - - 6 ) + - - 67 + - 91 ) + 14 - - 53 col1
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT DISTINCT + 66 + - 70 + + - COUNT( - 31 )
----
-5

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT + 66 + - 70 + + - COUNT ( - 31 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT + SUM( + 7 ) * + - ( COUNT( * ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2864
SELECT + SUM ( + 7 ) * + - ( COUNT ( * ) ) AS col1
----
-7

query I rowsort
SELECT + 78 + + + 77 * + 15
----
1233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT 30 * + 74 * + 38 + - CAST( + ( - ( - 40 ) ) AS SIGNED ) AS col2
----
84320

skipif mysql # not compatible
query I rowsort label-2866
SELECT 30 * + 74 * + 38 + - CAST ( + ( - ( - 40 ) ) AS INTEGER ) AS col2
----
84320

query I rowsort
SELECT + 91 + + 80
----
171

query II rowsort
SELECT ALL 44 - + 34 + + + 80, + 61 col0
----
90
61

query I rowsort
SELECT 9 + - + 17
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL CASE - COUNT( + 24 ) WHEN + - 44 THEN NULLIF ( 66, + 2 ) * - - 5 + + 66 * + 47 END * + 17 + - AVG ( + 35 ) - + + COUNT( * ) / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL CASE - COUNT ( + 24 ) WHEN + - 44 THEN NULLIF ( 66, + 2 ) * - - 5 + + 66 * + 47 END * + 17 + - AVG ( + 35 ) - + + COUNT ( * ) / 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT DISTINCT + CAST( - 75 AS SIGNED ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT + CAST ( - 75 AS INTEGER ) AS col0
----
-75

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

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

query I rowsort
SELECT ALL - 31 - 68 AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2874
SELECT CASE - SUM( CAST( 14 AS SIGNED ) ) WHEN + 84 THEN NULL ELSE + 34 END DIV - + ( - SUM( ALL + 49 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2874
SELECT CASE - SUM ( CAST ( 14 AS INTEGER ) ) WHEN + 84 THEN NULL ELSE + 34 END / - + ( - SUM ( ALL + 49 ) ) col0
----
0

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

query II rowsort
SELECT 78, 10 * 16 AS col2
----
78
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT 76 * - 61 * 38 * + - COUNT( * ) AS col1
----
176168

skipif mysql # not compatible
query I rowsort label-2877
SELECT 76 * - 61 * 38 * + - COUNT ( * ) AS col1
----
176168

query II rowsort
SELECT DISTINCT 37, + 33 * + 49 col0
----
37
1617

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2879
SELECT 86 AS col2, - NULLIF ( - CAST( NULL AS SIGNED ), - ( - + 55 ) + - 77 )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-2879
SELECT 86 AS col2, - NULLIF ( - CAST ( NULL AS INTEGER ), - ( - + 55 ) + - 77 )
----
86
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT DISTINCT 97 AS col2, 12 + + COUNT( * ) AS col2
----
97
13

skipif mysql # not compatible
query II rowsort label-2880
SELECT DISTINCT 97 AS col2, 12 + + COUNT ( * ) AS col2
----
97
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT DISTINCT + COUNT( * ) * - 50 * - 25 AS col2
----
1250

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT + COUNT ( * ) * - 50 * - 25 AS col2
----
1250

query I rowsort
SELECT 79 * - + 68 AS col0
----
-5372

query I rowsort
SELECT ALL 93 * - + 2
----
-186

query I rowsort
SELECT 85 + 70 AS col2
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT CASE 80 WHEN - 39 THEN + + 24 WHEN 81 + + CAST( NULL AS SIGNED ) THEN NULL END * - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT CASE 80 WHEN - 39 THEN + + 24 WHEN 81 + + CAST ( NULL AS INTEGER ) THEN NULL END * - - 88
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2886
SELECT + COUNT ( * ) AS col1, 33
----
1
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT COUNT( * ) col2, COALESCE ( + 2, + 36 - 7, + - MIN( DISTINCT - 94 ) ) + + 29
----
1
31

skipif mysql # not compatible
query II rowsort label-2887
SELECT COUNT ( * ) col2, COALESCE ( + 2, + 36 - 7, + - MIN ( DISTINCT - 94 ) ) + + 29
----
1
31

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2889
SELECT - CAST( NULL AS DECIMAL ) * - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT - CAST ( NULL AS REAL ) * - - 14 AS col0
----
NULL

query I rowsort
SELECT ALL 4 * + - 28 * 53 + + + 64 * - + 61 AS col2
----
-9840

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL 41 * MAX( DISTINCT + 41 ) + + + 58
----
1739

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 41 * MAX ( DISTINCT + 41 ) + + + 58
----
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL - 13 * + SUM( ALL + - 46 ) + 89 - + 39
----
648

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL - 13 * + SUM ( ALL + - 46 ) + 89 - + 39
----
648

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT DISTINCT - - 10 * + CAST( NULL AS SIGNED ) / + AVG ( - - CASE + + 82 WHEN - - 86 THEN NULL ELSE + 56 END ) + + + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - - 10 * + CAST ( NULL AS INTEGER ) / + AVG ( - - CASE + + 82 WHEN - - 86 THEN NULL ELSE + 56 END ) + + + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL + + ( - + SUM( DISTINCT - 69 ) ) * 59 + 58 + - - ( + 34 ) + 76 + 96 AS col0
----
4335

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + + ( - + SUM ( DISTINCT - 69 ) ) * 59 + 58 + - - ( + 34 ) + 76 + 96 AS col0
----
4335

query I rowsort
SELECT CASE - 67 WHEN - 82 THEN 45 ELSE - - 50 + + + 75 END
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2898
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 59 AS col1, 39 + - 41 * + 54
----
NULL
-2175

skipif mysql # not compatible
query II rowsort label-2898
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 59 AS col1, 39 + - 41 * + 54
----
NULL
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT - + COALESCE ( - 74, + + MAX( + - 88 ) ) - - + CASE WHEN NOT 41 IS NULL THEN NULL ELSE + 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT - + COALESCE ( - 74, + + MAX ( + - 88 ) ) - - + CASE WHEN NOT 41 IS NULL THEN NULL ELSE + 97 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2900
SELECT DISTINCT COUNT( * ) AS col0, 20 * + 17
----
1
340

skipif mysql # not compatible
query II rowsort label-2900
SELECT DISTINCT COUNT ( * ) AS col0, 20 * + 17
----
1
340

query I rowsort
SELECT DISTINCT 15 - 72 * + 26 * + 4 * + 88 + + COALESCE ( - 93, - 7 )
----
-659022

query II rowsort
SELECT ALL 70 AS col2, 82 * - 6
----
70
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT ALL COALESCE ( - 14, + COUNT( ALL - ( - 17 ) ) + + 14, + 65 ) - 9 + + 26
----
3

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL COALESCE ( - 14, + COUNT ( ALL - ( - 17 ) ) + + 14, + 65 ) - 9 + + 26
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT DISTINCT + + COUNT( DISTINCT - 42 ) - 34 * - 39
----
1327

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT + + COUNT ( DISTINCT - 42 ) - 34 * - 39
----
1327

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

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

query I rowsort
SELECT + - 91 * - 7 * + 54 - - 1
----
34399

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - CASE 8 WHEN + 85 * 5 * 40 / - 80 THEN NULL ELSE + COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2907
SELECT - CASE 8 WHEN + 85 * 5 * 40 / - 80 THEN NULL ELSE + COUNT ( * ) END AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT ALL + 69 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + 69 / - 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL 46 * - COUNT( * ) * - 64 AS col1
----
2944

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL 46 * - COUNT ( * ) * - 64 AS col1
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT + COUNT( * ) - + COUNT( DISTINCT COALESCE ( + ( - 98 ), + 38 + + 98 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2910
SELECT + COUNT ( * ) - + COUNT ( DISTINCT COALESCE ( + ( - 98 ), + 38 + + 98 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2911
SELECT + CAST( - ( ( + - 20 ) ) AS SIGNED ) DIV + 29 + - + SUM( ALL + CASE 78 WHEN + 24 THEN NULL ELSE 44 END ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-2911
SELECT + CAST ( - ( ( + - 20 ) ) AS INTEGER ) / + 29 + - + SUM ( ALL + CASE 78 WHEN + 24 THEN NULL ELSE 44 END ) AS col1
----
-44

query I rowsort
SELECT DISTINCT 52 * - - 87 AS col1
----
4524

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2915
SELECT ALL 0 DIV - 83 + 84
----
84

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL 0 / - 83 + 84
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT + COALESCE ( + 98, - 13 ) DIV - 17 + + 15 + - 43 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2916
SELECT + COALESCE ( + 98, - 13 ) / - 17 + + 15 + - 43 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT + 21 + - COALESCE ( + + 50, - - SUM( ALL - 97 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2917
SELECT + 21 + - COALESCE ( + + 50, - - SUM ( ALL - 97 ) ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT ALL 37 DIV + + ( + 27 ) + + - 61 * - 23
----
1404

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL 37 / + + ( + 27 ) + + - 61 * - 23
----
1404

query II rowsort
SELECT ( - 29 ) AS col2, 13 * 8 AS col2
----
-29
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL + 90 * - + MIN( - 43 ) AS col2
----
3870

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + 90 * - + MIN ( - 43 ) AS col2
----
3870

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT - MAX( ALL 26 ) * 52 * - 83 + + COUNT( * ) AS col0
----
112217

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - MAX ( ALL 26 ) * 52 * - 83 + + COUNT ( * ) AS col0
----
112217

query I rowsort
SELECT ALL + - 66 * - + 30 + + - 71 + - NULLIF ( 21, - 56 * + 8 ) + 78 + - - 38 + - 48 AS col0
----
1956

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

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

query I rowsort
SELECT ALL + - ( - 74 ) * - 19
----
-1406

query I rowsort
SELECT + 38 * + - 73 * + 86 * + + 95 + - 49 AS col1
----
-22663629

query I rowsort
SELECT ( + 63 ) col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL COUNT( * ) * - 62 col2
----
-62

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL COUNT ( * ) * - 62 col2
----
-62

query I rowsort
SELECT DISTINCT + CASE - 93 WHEN + 51 THEN + 39 + - 26 * - + 4 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - ( - 46 ) + 67
----
113

query I rowsort
SELECT ALL - - 33 * - 85
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT CASE 54 WHEN 14 * MIN( - - 46 ) THEN NULL WHEN - 33 THEN - 4 * - 58 + - 31 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT CASE 54 WHEN 14 * MIN ( - - 46 ) THEN NULL WHEN - 33 THEN - 4 * - 58 + - 31 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 62 * - + 3 + - 87 + + 81 * + 44
----
3291

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + 75 * - + 67 + + 44 + COUNT( * )
----
-4980

skipif mysql # not compatible
query I rowsort label-2933
SELECT + 75 * - + 67 + + 44 + COUNT ( * )
----
-4980

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT - + 26 DIV - - 51
----
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT - + 26 / - - 51
----
0

query I rowsort
SELECT ALL - 15 * - 46 * - 33 col2
----
-22770

query I rowsort
SELECT - 62 + + 6
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT - MIN( ALL - 74 ) * - 27
----
-1998

skipif mysql # not compatible
query I rowsort label-2937
SELECT - MIN ( ALL - 74 ) * - 27
----
-1998

query I rowsort
SELECT ALL + + 54 * + 51 + 37 AS col2
----
2791

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2939
SELECT - 76 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT - 76 + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL + CASE + + CASE - 14 WHEN - 14 THEN NULL ELSE + ( COUNT( * ) ) END WHEN - + 16 THEN NULL WHEN + 7 THEN NULL ELSE + 1 + + 81 END AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + CASE + + CASE - 14 WHEN - 14 THEN NULL ELSE + ( COUNT ( * ) ) END WHEN - + 16 THEN NULL WHEN + 7 THEN NULL ELSE + 1 + + 81 END AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2941
SELECT DISTINCT + CAST( + NULLIF ( - + 10, MIN( DISTINCT - 15 ) ) AS SIGNED ) * ( + + 58 ) DIV + MIN( ALL 26 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT + CAST ( + NULLIF ( - + 10, MIN ( DISTINCT - 15 ) ) AS INTEGER ) * ( + + 58 ) / + MIN ( ALL 26 ) AS col2
----
-22

query I rowsort
SELECT ALL 99 + + 88 * + 54
----
4851

query I rowsort
SELECT - ( - + 69 ) * + - 14 AS col2
----
-966

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT DISTINCT 50, 49 * - COUNT( * ) col1
----
50
-49

skipif mysql # not compatible
query II rowsort label-2944
SELECT DISTINCT 50, 49 * - COUNT ( * ) col1
----
50
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-2945
SELECT 35 AS col1, 71 * - + ( + + COUNT( * ) ) + - COUNT( * ) + + ( - - 23 ) * MIN( + 31 ) AS col0
----
35
641

skipif mysql # not compatible
query II rowsort label-2945
SELECT 35 AS col1, 71 * - + ( + + COUNT ( * ) ) + - COUNT ( * ) + + ( - - 23 ) * MIN ( + 31 ) AS col0
----
35
641

query I rowsort
SELECT + 57 + + 32 AS col2
----
89

query I rowsort
SELECT ALL 63 + - 33
----
30

query II rowsort
SELECT - 55, - 34 AS col2
----
-55
-34

query I rowsort
SELECT ALL 39 + - 85
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT ALL - 30 + + - 49 + + 34 / + + 53 + + CAST( NULL AS SIGNED ) - - + 89 * - - 56 + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL - 30 + + - 49 + + 34 / + + 53 + + CAST ( NULL AS INTEGER ) - - + 89 * - - 56 + + 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2951
SELECT DISTINCT - 21 DIV + COUNT( + 86 ) AS col1, ( + CASE 56 WHEN - 64 * 57 + + 29 + - 97 THEN NULL ELSE - - ( + 94 ) + 23 END ) * - + ( COUNT( * ) ) * - 15 + + + 22 + 61 AS col1
----
-21
1838

skipif mysql # not compatible
query II rowsort label-2951
SELECT DISTINCT - 21 / + COUNT ( + 86 ) AS col1, ( + CASE 56 WHEN - 64 * 57 + + 29 + - 97 THEN NULL ELSE - - ( + 94 ) + 23 END ) * - + ( COUNT ( * ) ) * - 15 + + + 22 + 61 AS col1
----
-21
1838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT ALL NULLIF ( - + 62, - CAST( - 96 AS SIGNED ) ) + 49 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL NULLIF ( - + 62, - CAST ( - 96 AS INTEGER ) ) + 49 AS col2
----
-13

query II rowsort
SELECT - 66, - 74 * - 77 AS col1
----
-66
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL 3 + - SUM( DISTINCT - 59 )
----
62

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL 3 + - SUM ( DISTINCT - 59 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT DISTINCT MIN( + 87 ) + 13 + 68 * + - 30 * 1 + - - 34 AS col2
----
-1906

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT MIN ( + 87 ) + 13 + 68 * + - 30 * 1 + - - 34 AS col2
----
-1906

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT COUNT( + NULLIF ( - - 99, + 46 ) ) * - 16 - + SUM( 76 )
----
-92

skipif mysql # not compatible
query I rowsort label-2956
SELECT COUNT ( + NULLIF ( - - 99, + 46 ) ) * - 16 - + SUM ( 76 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT ALL MAX( + 97 ) * - + 30 + - CAST( - - 65 AS SIGNED ) col0
----
-2975

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL MAX ( + 97 ) * - + 30 + - CAST ( - - 65 AS INTEGER ) col0
----
-2975

query II rowsort
SELECT + 28 AS col2, + 55
----
28
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT - ( + 19 ) * - ( + + 38 ) + + ( 93 ) - 89 DIV - 81 DIV - COUNT( * )
----
814

skipif mysql # not compatible
query I rowsort label-2959
SELECT - ( + 19 ) * - ( + + 38 ) + + ( 93 ) - 89 / - 81 / - COUNT ( * )
----
814

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2961
SELECT DISTINCT + COALESCE ( 54, 34 ) - - - 96 * - + 73 + COUNT( * ) AS col2, MIN( - - 88 )
----
7063
88

skipif mysql # not compatible
query II rowsort label-2961
SELECT DISTINCT + COALESCE ( 54, 34 ) - - - 96 * - + 73 + COUNT ( * ) AS col2, MIN ( - - 88 )
----
7063
88

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

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

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

query I rowsort
SELECT ALL - ( - - 67 ) col0
----
-67

query I rowsort
SELECT DISTINCT 36 - - 30 * + - 4
----
-84

query I rowsort
SELECT ALL 54 * + 95
----
5130

query I rowsort
SELECT - 94 + 64 AS col0
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL - + ( COUNT( DISTINCT - ( 86 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL - + ( COUNT ( DISTINCT - ( 86 ) ) )
----
-1

query I rowsort
SELECT + + NULLIF ( 99, 91 * - - 34 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT - 21 / - + ( CASE 55 WHEN - 18 / + 90 THEN + COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT - 21 / - + ( CASE 55 WHEN - 18 / + 90 THEN + COUNT ( * ) END ) AS col0
----
NULL

query I rowsort
SELECT 2 + 61 AS col1
----
63

query I rowsort
SELECT ALL - + ( - 64 ) col2
----
64

query II rowsort
SELECT - 78, + 6 col2
----
-78
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT ALL - 19 DIV + 15
----
-1

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL - 19 / + 15
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT + 87 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT + 87 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL 17 + ( + CASE - + 49 WHEN 10 * 64 + + 71 + - 32 * 57 / - - 82 + - + COUNT( * ) THEN NULL ELSE - 10 END ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL 17 + ( + CASE - + 49 WHEN 10 * 64 + + 71 + - 32 * 57 / - - 82 + - + COUNT ( * ) THEN NULL ELSE - 10 END ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT 76 + + - COUNT( * ) * - - 2
----
74

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 76 + + - COUNT ( * ) * - - 2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2979
SELECT SUM( ALL + 24 ) DIV + + NULLIF ( + - MIN( DISTINCT - - 81 ), 61 * + COUNT( * ) - ( - COUNT( * ) ) ) + + 54 col0
----
54

skipif mysql # not compatible
query I rowsort label-2979
SELECT SUM ( ALL + 24 ) / + + NULLIF ( + - MIN ( DISTINCT - - 81 ), 61 * + COUNT ( * ) - ( - COUNT ( * ) ) ) + + 54 col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT 95 DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-2980
SELECT 95 / - 70
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT 66 - + ( + + MAX( - 60 ) ) * - COUNT( * ) + + - ( + ( - - ( - - COUNT( * ) ) ) ) AS col2, 46 * - 44
----
5
-2024

skipif mysql # not compatible
query II rowsort label-2981
SELECT 66 - + ( + + MAX ( - 60 ) ) * - COUNT ( * ) + + - ( + ( - - ( - - COUNT ( * ) ) ) ) AS col2, 46 * - 44
----
5
-2024

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2983
SELECT 75 - - 37 + + COUNT( * ) DIV - ( + - CAST( 69 AS SIGNED ) ) + 89
----
201

skipif mysql # not compatible
query I rowsort label-2983
SELECT 75 - - 37 + + COUNT ( * ) / - ( + - CAST ( 69 AS INTEGER ) ) + 89
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT 79 * - MIN( DISTINCT - 57 )
----
4503

skipif mysql # not compatible
query I rowsort label-2984
SELECT 79 * - MIN ( DISTINCT - 57 )
----
4503

query I rowsort
SELECT DISTINCT - NULLIF ( + 87, - 49 ) + + 35 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL - 7 * - NULLIF ( + 80, ( + MIN( DISTINCT 8 ) ) ) AS col2
----
560

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL - 7 * - NULLIF ( + 80, ( + MIN ( DISTINCT 8 ) ) ) AS col2
----
560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT ALL - 35 + - NULLIF ( 14, - + CAST( NULL AS SIGNED ) / + 11 ) * + 1 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - 35 + - NULLIF ( 14, - + CAST ( NULL AS INTEGER ) / + 11 ) * + 1 AS col1
----
-49

query I rowsort
SELECT DISTINCT - 17 + 30 - 31 - + 46 + - 30
----
-94

query I rowsort
SELECT 84 + - 3 + 23 * 78
----
1875

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT 91 * 0 * - - 11 * + - 95 * 16 DIV + - 51
----
0

skipif mysql # not compatible
query I rowsort label-2990
SELECT 91 * 0 * - - 11 * + - 95 * 16 / + - 51
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2991
SELECT 94 + - 50, - COUNT( * ) col2
----
44
-1

skipif mysql # not compatible
query II rowsort label-2991
SELECT 94 + - 50, - COUNT ( * ) col2
----
44
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT DISTINCT SUM( ALL 77 ), + 98 * - 49 col0
----
77
-4802

skipif mysql # not compatible
query II rowsort label-2992
SELECT DISTINCT SUM ( ALL 77 ), + 98 * - 49 col0
----
77
-4802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2993
SELECT ALL - ( - COUNT( * ) ), + 29 * - + COUNT( 39 ) * CAST( NULL AS SIGNED ) + 81 + - - 93 * - - 40 * - 59 + - - 63 * + 62 * MIN( + + 49 ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2993
SELECT ALL - ( - COUNT ( * ) ), + 29 * - + COUNT ( 39 ) * CAST ( NULL AS INTEGER ) + 81 + - - 93 * - - 40 * - 59 + - - 63 * + 62 * MIN ( + + 49 ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL + COALESCE ( - + MAX( DISTINCT - - 20 ), - 13 * - 69, - 24 * + + COUNT( * ) * 33 ) * 11 * 96 AS col2
----
-21120

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + COALESCE ( - + MAX ( DISTINCT - - 20 ), - 13 * - 69, - 24 * + + COUNT ( * ) * 33 ) * 11 * 96 AS col2
----
-21120

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT ALL - 30 DIV + 53 - - 5
----
5

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - 30 / + 53 - - 5
----
5

query I rowsort
SELECT 53 * - 7 * + 3 AS col0
----
-1113

query I rowsort
SELECT DISTINCT - - 25 * - 43 AS col2
----
-1075

query I rowsort
SELECT DISTINCT - NULLIF ( + 43, - - 74 + 51 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT 22 * + COUNT( * ) + + 16
----
38

skipif mysql # not compatible
query I rowsort label-2999
SELECT 22 * + COUNT ( * ) + + 16
----
38

query II rowsort
SELECT DISTINCT - + 20 * 10, ( + 68 ) AS col1
----
-200
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT 2 * - 55 + + - 22 + + 15 * - COUNT( * ) * - 30
----
318

skipif mysql # not compatible
query I rowsort label-3001
SELECT 2 * - 55 + + - 22 + + 15 * - COUNT ( * ) * - 30
----
318

query II rowsort
SELECT ALL 28 + - - 18 + 49 * - 91, 23 AS col2
----
-4413
23

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

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

query I rowsort
SELECT DISTINCT - 21 + - - 79 + - 95
----
-37

query I rowsort
SELECT 2 * - 93 + ( - AVG ( + + CASE 5 WHEN + - 26 THEN NULL WHEN - - 79 THEN - + 64 END ) ) + - - 47 AS col1
----
NULL

query II rowsort
SELECT ALL - 24 AS col2, - 25 AS col0
----
-24
-25

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

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

query I rowsort
SELECT ALL 64 + + 72 - - 23 * 20 AS col1
----
596

query II rowsort
SELECT DISTINCT 43, - 46 * CASE + - 75 WHEN 15 THEN - + 50 + - 62 WHEN 76 / + - 98 / + AVG ( 65 ) - + + 28 THEN + 35 * + - 82 + + AVG ( ALL - + ( + - 87 ) ) END AS col2
----
43
NULL

query I rowsort
SELECT DISTINCT 93 * + 97 AS col2
----
9021

query I rowsort
SELECT ALL 28 + + 45
----
73

query I rowsort
SELECT DISTINCT 87 + + + 79 * 63
----
5064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3013
SELECT DISTINCT + SUM( 87 ) DIV - 81 AS col0, - 14 - COUNT( * )
----
-1
-15

skipif mysql # not compatible
query II rowsort label-3013
SELECT DISTINCT + SUM ( 87 ) / - 81 AS col0, - 14 - COUNT ( * )
----
-1
-15

query I rowsort
SELECT ALL - 3 - + ( 24 )
----
-27

query I rowsort
SELECT - 16 + + 98
----
82

query I rowsort
SELECT - 74 * - 41 AS col1
----
3034

query II rowsort
SELECT ALL 60, 25 AS col0
----
60
25

query I rowsort
SELECT - 92 + 85 AS col1
----
-7

query I rowsort
SELECT - COALESCE ( - 45, + 99 )
----
45

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

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

query I rowsort
SELECT + 38 * + 55 * - 12
----
-25080

query I rowsort
SELECT - 44 + - + 18 * - - 78 * + 6 AS col1
----
-8468

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT - 86 - - 63 + - - COUNT( * ) + - 82 col1
----
-104

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT - 86 - - 63 + - - COUNT ( * ) + - 82 col1
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3025
SELECT ALL + NULLIF ( - 88, + 24 + + MAX( CASE + 42 WHEN 33 THEN NULL ELSE 94 END ) + + 31 * - SUM( DISTINCT + ( + 72 ) ) - + - COUNT( * ) + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + 45 ) * + - 0 * + + 6 DIV + 67 + 88
----
88

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + NULLIF ( - 88, + 24 + + MAX ( CASE + 42 WHEN 33 THEN NULL ELSE 94 END ) + + 31 * - SUM ( DISTINCT + ( + 72 ) ) - + - COUNT ( * ) + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 45 ) * + - 0 * + + 6 / + 67 + 88
----
88

query II rowsort
SELECT ALL - 29 * ( 23 ) AS col2, + 35 * - 12 AS col2
----
-667
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT + MIN( 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + MIN ( 5 ) AS col0
----
5

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

query II rowsort
SELECT DISTINCT + + 32 AS col1, + 69 * + 92 AS col2
----
32
6348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT + - NULLIF ( - - 7, - AVG ( ALL 88 ) / - 6 * - CASE + + 69 WHEN 72 THEN 6 END / - MIN( DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3030
SELECT + - NULLIF ( - - 7, - AVG ( ALL 88 ) / - 6 * - CASE + + 69 WHEN 72 THEN 6 END / - MIN ( DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) )
----
-7

query I rowsort
SELECT ALL + 31 * + + 51 + + 15 * + + 94 + 88 AS col0
----
3079

query I rowsort
SELECT - - 38 - + 23 * - + 1 + 15
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT DISTINCT - + ( + COUNT( DISTINCT - - 15 ) ) * 6 + + + 9
----
3

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - + ( + COUNT ( DISTINCT - - 15 ) ) * 6 + + + 9
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3034
SELECT DISTINCT + - 33 * + COALESCE ( - ( - 66 ), - COUNT( * ) + - - COUNT( * ) - - COUNT( * ) DIV 52 + 31 * 19 * 24 * - - 63 ) - - + COUNT( * ) + 30
----
-2147

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT + - 33 * + COALESCE ( - ( - 66 ), - COUNT ( * ) + - - COUNT ( * ) - - COUNT ( * ) / 52 + 31 * 19 * 24 * - - 63 ) - - + COUNT ( * ) + 30
----
-2147

query I rowsort
SELECT ALL 73 * - 59
----
-4307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3036
SELECT - ( + 25 ) DIV + 46 AS col1, 38 * - 41 * MAX( + 41 ) - + 48 + CAST( NULL AS SIGNED ) + + + 43
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3036
SELECT - ( + 25 ) / + 46 AS col1, 38 * - 41 * MAX ( + 41 ) - + 48 + CAST ( NULL AS INTEGER ) + + + 43
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3037
SELECT ALL - 37 * CAST( AVG ( ALL 36 ) AS SIGNED ) + 37 + + 34 * + SUM( ALL + - 9 ) - 63
----
-1664

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL - 37 * CAST ( AVG ( ALL 36 ) AS INTEGER ) + 37 + + 34 * + SUM ( ALL + - 9 ) - 63
----
-1664

query II rowsort
SELECT DISTINCT + 80 * 46 + 82 AS col2, 43
----
3762
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT DISTINCT + 25 DIV 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + 25 / 51 AS col1
----
0

query I rowsort
SELECT ALL + 92 * - - 27 AS col2
----
2484

query II rowsort
SELECT - COALESCE ( + - 73, - 0 + + - 45, 33 ) AS col0, 53 AS col0
----
73
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3042
SELECT - ( 1 ) * - COALESCE ( + NULLIF ( MAX( 85 ), + - 51 * 62 * + 18 - CASE 74 WHEN + 32 THEN + 13 * + 3 - - 34 + + 91 / - + 62 - - 62 END - + 72 ), - 9 * + 2, + 78 ) * - 58 * CAST( NULL AS SIGNED ) AS col2, 49 AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-3042
SELECT - ( 1 ) * - COALESCE ( + NULLIF ( MAX ( 85 ), + - 51 * 62 * + 18 - CASE 74 WHEN + 32 THEN + 13 * + 3 - - 34 + + 91 / - + 62 - - 62 END - + 72 ), - 9 * + 2, + 78 ) * - 58 * CAST ( NULL AS INTEGER ) AS col2, 49 AS col2
----
NULL
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3043
SELECT CASE + 6 WHEN - 15 THEN + + 58 + - CAST( NULL AS SIGNED ) / - + 85 WHEN AVG ( ALL - + 94 ) + + CASE 58 WHEN 9 * + 22 + 45 + 10 * COALESCE ( - - 84, + + 67 ) + + 22 + + 67 * + 30 / 32 + 21 THEN - + 32 + 80 + ( - MAX( - + 72 ) ) * - AVG ( DISTINCT COALESCE ( - + 98, - 40 ) ) / - + COUNT( * ) + 14 + - COALESCE ( 26, - 15 * COUNT( * ) + - - COUNT( * ) - 22 + + 16 ) ELSE NULL END + + 24 THEN NULL END AS col2, + MAX( DISTINCT + - 78 ) - - + 79 AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3043
SELECT CASE + 6 WHEN - 15 THEN + + 58 + - CAST ( NULL AS INTEGER ) / - + 85 WHEN AVG ( ALL - + 94 ) + + CASE 58 WHEN 9 * + 22 + 45 + 10 * COALESCE ( - - 84, + + 67 ) + + 22 + + 67 * + 30 / 32 + 21 THEN - + 32 + 80 + ( - MAX ( - + 72 ) ) * - AVG ( DISTINCT COALESCE ( - + 98, - 40 ) ) / - + COUNT ( * ) + 14 + - COALESCE ( 26, - 15 * COUNT ( * ) + - - COUNT ( * ) - 22 + + 16 ) ELSE NULL END + + 24 THEN NULL END AS col2, + MAX ( DISTINCT + - 78 ) - - + 79 AS col1
----
NULL
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT + COUNT( * ) + + 7 + - ( 39 ) * + ( + 25 ) + - 5 DIV 46 + - 3 DIV 49 AS col0
----
-967

skipif mysql # not compatible
query I rowsort label-3045
SELECT + COUNT ( * ) + + 7 + - ( 39 ) * + ( + 25 ) + - 5 / 46 + - 3 / 49 AS col0
----
-967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT ALL - 43 * + + MIN( - + CAST( NULL AS SIGNED ) ) * CAST( - 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - 43 * + + MIN ( - + CAST ( NULL AS INTEGER ) ) * CAST ( - 93 AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT + 16 * + 1 * - 60
----
-960

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

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

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

query I rowsort
SELECT - CASE WHEN + 85 IS NOT NULL THEN NULL ELSE - 7 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT SUM( 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3052
SELECT SUM ( 39 )
----
39

query I rowsort
SELECT + 80 - - 8 AS col1
----
88

query II rowsort
SELECT 7, + 36 col0
----
7
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT ALL COUNT( * ) * + - 88 * CAST( + 93 AS SIGNED ) col0
----
-8184

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL COUNT ( * ) * + - 88 * CAST ( + 93 AS INTEGER ) col0
----
-8184

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL COUNT( * ) * - 13 * - + 98
----
1274

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL COUNT ( * ) * - 13 * - + 98
----
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL COALESCE ( COUNT( * ), 92 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL COALESCE ( COUNT ( * ), 92 ) col1
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3059
SELECT ALL + + 99 DIV + COUNT( DISTINCT - - 2 )
----
99

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL + + 99 / + COUNT ( DISTINCT - - 2 )
----
99

query I rowsort
SELECT + - 33 + 54 AS col2
----
21

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

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

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

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

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

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

query I rowsort
SELECT - + 53 * 52
----
-2756

query I rowsort
SELECT ALL + 48 + NULLIF ( - 31, + 72 + - 61 )
----
17

query I rowsort
SELECT NULLIF ( - + ( 72 ), 4 + 88 )
----
-72

query II rowsort
SELECT + 23 AS col2, 61 AS col1
----
23
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL + - 95 * 89 + + - 78 - - COUNT( * ) * - 57
----
-8590

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL + - 95 * 89 + + - 78 - - COUNT ( * ) * - 57
----
-8590

query I rowsort
SELECT - 18 + + 57 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT ALL - + 90 DIV + - 14 + + - 61 + - 6
----
-61

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - + 90 / + - 14 + + - 61 + - 6
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT + - 45 * - 6 * + MAX( - + ( + 49 ) ) col1
----
-13230

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT + - 45 * - 6 * + MAX ( - + ( + 49 ) ) col1
----
-13230

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT - COUNT( * ) + 31
----
30

skipif mysql # not compatible
query I rowsort label-3072
SELECT - COUNT ( * ) + 31
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT ALL - 47 DIV - 78 + 87 * + - 24 + + COUNT( * )
----
-2087

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL - 47 / - 78 + 87 * + - 24 + + COUNT ( * )
----
-2087

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT - CASE COALESCE ( 27, - + 15 * - COUNT( * ) ) WHEN + COUNT( * ) * + 31 THEN + - 25 * + - ( - 50 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT - CASE COALESCE ( 27, - + 15 * - COUNT ( * ) ) WHEN + COUNT ( * ) * + 31 THEN + - 25 * + - ( - 50 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3075
SELECT ALL + 96 * 47 DIV - 48 + + - COUNT( + + 81 ) + - 78 - - 92 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + 96 * 47 / - 48 + + - COUNT ( + + 81 ) + - 78 - - 92 AS col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT ALL + 83 DIV + + 18 + 96 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + 83 / + + 18 + 96 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL + + NULLIF ( - 69, MAX( 83 ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + + NULLIF ( - 69, MAX ( 83 ) ) AS col2
----
-69

query I rowsort
SELECT DISTINCT + + 53 * 58 * - + ( - 73 )
----
224402

query I rowsort
SELECT DISTINCT + 30 + 0
----
30

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

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

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

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

query I rowsort
SELECT 76 + 84
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT 79 * MIN( ALL + 10 )
----
790

skipif mysql # not compatible
query I rowsort label-3083
SELECT 79 * MIN ( ALL + 10 )
----
790

onlyif mysql # aggregate syntax: 
query II rowsort label-3084
SELECT DISTINCT - COUNT( - - 92 ), - 30 AS col1
----
-1
-30

skipif mysql # not compatible
query II rowsort label-3084
SELECT DISTINCT - COUNT ( - - 92 ), - 30 AS col1
----
-1
-30

query II rowsort
SELECT ALL - 48 - 49 AS col0, 89 AS col2
----
-97
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3086
SELECT DISTINCT CASE 30 WHEN 85 * 8 * COALESCE ( 33, + 72 + - CAST( - + 36 AS SIGNED ) ) * + 14 + + + 38 + ( + COALESCE ( - ( COUNT( * ) ), + 8 + + 39 * - 45 + + + 73, + - COUNT( * ) * + 71 ) ) - - 85 THEN - COUNT( * ) + + + 67 END * + 96 + - - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT CASE 30 WHEN 85 * 8 * COALESCE ( 33, + 72 + - CAST ( - + 36 AS INTEGER ) ) * + 14 + + + 38 + ( + COALESCE ( - ( COUNT ( * ) ), + 8 + + 39 * - 45 + + + 73, + - COUNT ( * ) * + 71 ) ) - - 85 THEN - COUNT ( * ) + + + 67 END * + 96 + - - 59 col2
----
NULL

query I rowsort
SELECT ALL ( 10 ) * + 41
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT COUNT( * ) * - 91 * 0 * + - 72 * - 28
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT COUNT ( * ) * - 91 * 0 * + - 72 * - 28
----
0

query I rowsort
SELECT ALL + 76 * + 21
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT NULLIF ( - COUNT( * ), + - 56 + + COUNT( * ) ) - NULLIF ( - 83, + - 42 )
----
82

skipif mysql # not compatible
query I rowsort label-3090
SELECT NULLIF ( - COUNT ( * ), + - 56 + + COUNT ( * ) ) - NULLIF ( - 83, + - 42 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT DISTINCT + 58 * 7 * + - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-406

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + 58 * 7 * + - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-406

query I rowsort
SELECT 94 * - + 37
----
-3478

query II rowsort
SELECT 30 * + - 5 AS col2, 91 col1
----
-150
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT 3 * 40 + - ( COUNT( * ) )
----
119

skipif mysql # not compatible
query I rowsort label-3094
SELECT 3 * 40 + - ( COUNT ( * ) )
----
119

query I rowsort
SELECT 4 * + NULLIF ( + 91, - + 22 ) AS col0
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT 10 + ( - COUNT( * ) ) col2
----
9

skipif mysql # not compatible
query I rowsort label-3096
SELECT 10 + ( - COUNT ( * ) ) col2
----
9

query I rowsort
SELECT - 55 * + - 61 - + 71 AS col1
----
3284

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT ALL 27 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL 27 / 82 AS col0
----
0

query I rowsort
SELECT 45 + - 43
----
2

query I rowsort
SELECT ALL 92 * + - 71 AS col2
----
-6532

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT 97 + + + 56 AS col1, + 45 * ( COUNT( * ) ) - - 88
----
153
133

skipif mysql # not compatible
query II rowsort label-3101
SELECT 97 + + + 56 AS col1, + 45 * ( COUNT ( * ) ) - - 88
----
153
133

query I rowsort
SELECT - 88 * + + 61
----
-5368

query I rowsort
SELECT ALL 32 + - 7 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT MIN( - 2 ) * + 57 - - - COUNT( * ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT MIN ( - 2 ) * + 57 - - - COUNT ( * ) AS col1
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT + 15 DIV ( 57 ) + 46 col2
----
46

skipif mysql # not compatible
query I rowsort label-3105
SELECT + 15 / ( 57 ) + 46 col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT - MIN( 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3106
SELECT - MIN ( 65 ) AS col0
----
-65

query II rowsort
SELECT + CASE 28 WHEN - + CASE 7 WHEN - NULLIF ( - 55, + - 73 - - 46 ) THEN - 45 END THEN - 95 * + 46 * 24 END AS col2, 20 AS col2
----
NULL
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3108
SELECT ALL + 67 + COUNT( * ) + - 80 + 16 - COUNT( * ) - + 26 DIV - 95 + NULLIF ( - + 27, 50 + - + 9 - 19 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL + 67 + COUNT ( * ) + - 80 + 16 - COUNT ( * ) - + 26 / - 95 + NULLIF ( - + 27, 50 + - + 9 - 19 ) AS col1
----
-24

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

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL ( - + COUNT ( * ) ) + + + ( + 96 ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT ALL 35 - + COALESCE ( - MAX( - 4 ), + 77 * 60, - 35 ) - + 14 + + - CAST( NULL AS SIGNED ) * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL 35 - + COALESCE ( - MAX ( - 4 ), + 77 * 60, - 35 ) - + 14 + + - CAST ( NULL AS INTEGER ) * COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3111
SELECT DISTINCT - 42 * + 73 AS col2, - 3 * - 20 DIV 92 + 97 * - 0
----
-3066
0

skipif mysql # not compatible
query II rowsort label-3111
SELECT DISTINCT - 42 * + 73 AS col2, - 3 * - 20 / 92 + 97 * - 0
----
-3066
0

query I rowsort
SELECT ALL - - 88 * 47 + + 16 AS col2
----
4152

query I rowsort
SELECT DISTINCT + 51 * + 82 - + - 19 AS col2
----
4201

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT - COUNT( * ) - - 80 + 30 - 90 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - COUNT ( * ) - - 80 + 30 - 90 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3115
SELECT 3 AS col1, + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3115
SELECT 3 AS col1, + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0
----
3
NULL

query I rowsort
SELECT DISTINCT + 71 * - 56 AS col1
----
-3976

query I rowsort
SELECT ALL - ( - 90 ) - - 67 + + - 9 AS col0
----
148

query I rowsort
SELECT 39 * 55
----
2145

query II rowsort
SELECT ALL - 75 AS col0, - 95
----
-75
-95

query I rowsort
SELECT 13 + 23 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT ALL - CASE ( + + 6 ) WHEN - COUNT( * ) THEN NULL WHEN + 28 / + - CAST( - 66 AS SIGNED ) / 34 + - COUNT( ALL - - 26 ) + + 37 THEN - 73 + + - 73 ELSE 16 * + + 52 END col1
----
-832

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - CASE ( + + 6 ) WHEN - COUNT ( * ) THEN NULL WHEN + 28 / + - CAST ( - 66 AS INTEGER ) / 34 + - COUNT ( ALL - - 26 ) + + 37 THEN - 73 + + - 73 ELSE 16 * + + 52 END col1
----
-832

query II rowsort
SELECT 19 AS col1, 38
----
19
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT DISTINCT - MIN( - - 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT - MIN ( - - 46 ) AS col0
----
-46

query I rowsort
SELECT ALL - 9 * 64
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT 38 * COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT 38 * COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT - COUNT( * ) + + 40 * + + 83 AS col2
----
3319

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - COUNT ( * ) + + 40 * + + 83 AS col2
----
3319

query I rowsort
SELECT 54 * - - 39
----
2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3128
SELECT ALL - CAST( NULL AS SIGNED ) + + + ( 95 ) * - 92 AS col1, - COUNT( ALL ( 94 ) ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3128
SELECT ALL - CAST ( NULL AS INTEGER ) + + + ( 95 ) * - 92 AS col1, - COUNT ( ALL ( 94 ) ) AS col2
----
NULL
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3129
SELECT - - 22 AS col2, + 11 DIV + - 77
----
22
0

skipif mysql # not compatible
query II rowsort label-3129
SELECT - - 22 AS col2, + 11 / + - 77
----
22
0

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

skipif mysql # not compatible
query I rowsort label-3130
SELECT 53 - SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 31 + - 87 AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT + 86 + 50 + 55 DIV - 73 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-3132
SELECT + 86 + 50 + 55 / - 73 AS col2
----
136

query II rowsort
SELECT + 74 AS col1, + 60 + + 98 * + 18 * - + ( - 52 )
----
74
91788

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - COUNT( DISTINCT - - 26 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - COUNT ( DISTINCT - - 26 ) AS col1
----
-1

query I rowsort
SELECT + 36 - - 30
----
66

query I rowsort
SELECT ALL 5 - - - 97 col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + + NULLIF ( + - ( + COUNT( * ) ), 10 ) * - 42 + - 77 - + 15
----
-50

skipif mysql # not compatible
query I rowsort label-3137
SELECT + + NULLIF ( + - ( + COUNT ( * ) ), 10 ) * - 42 + - 77 - + 15
----
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT + + 74 + + COUNT( * ) * + 38 * ( 69 ) + - + 74 col2
----
2622

skipif mysql # not compatible
query I rowsort label-3139
SELECT + + 74 + + COUNT ( * ) * + 38 * ( 69 ) + - + 74 col2
----
2622

query II rowsort
SELECT ALL + 27 AS col1, NULLIF ( 40, NULLIF ( + + 91, 20 / - 76 ) )
----
27
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + 54 * + COUNT( * ) * 80 * - 33 - + 72
----
-142632

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + 54 * + COUNT ( * ) * 80 * - 33 - + 72
----
-142632

query I rowsort
SELECT + 93 * + 63 * - - 60
----
351540

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL + MIN( ALL 19 )
----
19

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL + MIN ( ALL 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT - 28 + - 87 + SUM( 61 ) * + 60 AS col2
----
3545

skipif mysql # not compatible
query I rowsort label-3144
SELECT - 28 + - 87 + SUM ( 61 ) * + 60 AS col2
----
3545

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT DISTINCT 63 DIV 5 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT 63 / 5 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT + 10 DIV - 74 * - 79
----
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT + 10 / - 74 * - 79
----
0

query I rowsort
SELECT ALL - 84 * ( - COALESCE ( 77, - + 80 ) ) + 56 AS col0
----
6524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT DISTINCT + NULLIF ( - + 22, 49 * + - CAST( + 73 AS SIGNED ) + + - 87 )
----
-22

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT + NULLIF ( - + 22, 49 * + - CAST ( + 73 AS INTEGER ) + + - 87 )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3149
SELECT ALL 40 * 72 DIV 73 DIV + 55 + + - 78 * + - NULLIF ( 15, + ( 89 ) ) * + ( - + 84 ) + - 14 * - MIN( 26 ) AS col1, COUNT( * ) AS col1
----
-97916
1

skipif mysql # not compatible
query II rowsort label-3149
SELECT ALL 40 * 72 / 73 / + 55 + + - 78 * + - NULLIF ( 15, + ( 89 ) ) * + ( - + 84 ) + - 14 * - MIN ( 26 ) AS col1, COUNT ( * ) AS col1
----
-97916
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3150
SELECT - 3 + + COALESCE ( CASE + 34 WHEN - 80 DIV + - 25 THEN + + 93 + - + 15 END, - - 93 ) - - NULLIF ( - COALESCE ( - - COUNT( * ), - 92 ), - 68 ) DIV 63 * + + 35 * 76 * + + 28 + - + ( - - 9 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3150
SELECT - 3 + + COALESCE ( CASE + 34 WHEN - 80 / + - 25 THEN + + 93 + - + 15 END, - - 93 ) - - NULLIF ( - COALESCE ( - - COUNT ( * ), - 92 ), - 68 ) / 63 * + + 35 * 76 * + + 28 + - + ( - - 9 ) AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT DISTINCT - 68 * - + 87 + + 76 DIV + - 38 AS col0
----
5914

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - 68 * - + 87 + + 76 / + - 38 AS col0
----
5914

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + CASE + COALESCE ( - + 53, + 91, - - 42 ) WHEN - 94 + + + COUNT( * ) + + 21 THEN - ( + - COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT + CASE + COALESCE ( - + 53, + 91, - - 42 ) WHEN - 94 + + + COUNT ( * ) + + 21 THEN - ( + - COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3153
SELECT - - COUNT( DISTINCT - ( + + 53 ) ) + - - 95 DIV - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-3153
SELECT - - COUNT ( DISTINCT - ( + + 53 ) ) + - - 95 / - - COUNT ( * )
----
96

query I rowsort
SELECT - 70 + + - 85
----
-155

query I rowsort
SELECT ALL - 69 + - 15 - 19 * + 15 * + + 39 col2
----
-11199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3156
SELECT - ( - - 70 ) + - - 77 + - 19 AS col0, 40 * 24 * + CAST( 4 AS SIGNED ) AS col0
----
-12
3840

skipif mysql # not compatible
query II rowsort label-3156
SELECT - ( - - 70 ) + - - 77 + - 19 AS col0, 40 * 24 * + CAST ( 4 AS INTEGER ) AS col0
----
-12
3840

onlyif mysql # DIV for integer division: 
query II rowsort label-3157
SELECT ALL - + 21 DIV + - 54 AS col0, 24 + + 70
----
0
94

skipif mysql # not compatible
query II rowsort label-3157
SELECT ALL - + 21 / + - 54 AS col0, 24 + + 70
----
0
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT NULLIF ( 97, + + 62 * + 5 + - COUNT( * ) + - 76 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3158
SELECT NULLIF ( 97, + + 62 * + 5 + - COUNT ( * ) + - 76 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT - - 14 + + 34 + + ( 89 ) - 49 * - + ( - CAST( - + 65 AS SIGNED ) )
----
3322

skipif mysql # not compatible
query I rowsort label-3159
SELECT - - 14 + + 34 + + ( 89 ) - 49 * - + ( - CAST ( - + 65 AS INTEGER ) )
----
3322

query I rowsort
SELECT ALL - ( 13 ) * - 72 AS col0
----
936

query I rowsort
SELECT - + 39 + + ( + 21 ) + - CASE - 3 WHEN 64 / - 35 + + - COALESCE ( + 37, - + 21 ) * + 83 THEN NULL WHEN + 75 THEN 19 * - + 84 END * - 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3162
SELECT ALL - - COUNT( * ) - + 0 AS col2, 69 DIV - 58 + 33 * - 66
----
1
-2179

skipif mysql # not compatible
query II rowsort label-3162
SELECT ALL - - COUNT ( * ) - + 0 AS col2, 69 / - 58 + 33 * - 66
----
1
-2179

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT + - 64 + SUM( - 6 ) + + + 1
----
-69

skipif mysql # not compatible
query I rowsort label-3163
SELECT + - 64 + SUM ( - 6 ) + + + 1
----
-69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT ALL ( - 86 ) DIV + - 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL ( - 86 ) / + - 14 AS col0
----
6

query I rowsort
SELECT - ( - NULLIF ( ( + 57 ), + NULLIF ( - 17, - - 68 ) + 31 ) ) - 22 + + ( 71 ) + - + 54 * + + NULLIF ( - 37, 83 / + + 58 * 19 + - + 69 ) AS col2
----
2104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT ALL CAST( - CASE 53 WHEN - 28 * - + 67 * + COUNT( * ) * - - 32 THEN 93 ELSE - CAST( NULL AS SIGNED ) END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL CAST ( - CASE 53 WHEN - 28 * - + 67 * + COUNT ( * ) * - - 32 THEN 93 ELSE - CAST ( NULL AS INTEGER ) END AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT + 70 + - 58 DIV + 67 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3168
SELECT + 70 + - 58 / + 67 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT ALL - 34 DIV 29 * + 53 + + 3 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - 34 / 29 * + 53 + + 3 AS col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT + 16 - + 54 DIV - 8
----
22

skipif mysql # not compatible
query I rowsort label-3170
SELECT + 16 - + 54 / - 8
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL - 54 * - 43 / + NULLIF ( - - COUNT( * ), + - 33 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL - 54 * - 43 / + NULLIF ( - - COUNT ( * ), + - 33 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 34 * - 83 AS col0
----
-2822

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

skipif mysql # not compatible
query I rowsort label-3173
SELECT CAST ( COUNT ( * ) AS INTEGER ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3174
SELECT + COUNT( * ) - + - COUNT( * ) - 87 AS col2, 74 + + 15 + 35 AS col0
----
-85
124

skipif mysql # not compatible
query II rowsort label-3174
SELECT + COUNT ( * ) - + - COUNT ( * ) - 87 AS col2, 74 + + 15 + 35 AS col0
----
-85
124

query I rowsort
SELECT + 68 * - 35
----
-2380

onlyif mysql # aggregate syntax: 
query II rowsort label-3176
SELECT + 44 * - - 43 * 90, ( + 25 ) * - COUNT( * ) AS col0
----
170280
-25

skipif mysql # not compatible
query II rowsort label-3176
SELECT + 44 * - - 43 * 90, ( + 25 ) * - COUNT ( * ) AS col0
----
170280
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT + COUNT( * ) + - 40
----
-39

skipif mysql # not compatible
query I rowsort label-3177
SELECT + COUNT ( * ) + - 40
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL ( 95 ) / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL ( 95 ) / - - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3180
SELECT + ( + CAST( NULLIF ( 82, 85 + + MIN( ALL 18 + + 34 * 34 ) ) AS SIGNED ) ) * - 70
----
-5740

skipif mysql # not compatible
query I rowsort label-3180
SELECT + ( + CAST ( NULLIF ( 82, 85 + + MIN ( ALL 18 + + 34 * 34 ) ) AS INTEGER ) ) * - 70
----
-5740

query I rowsort
SELECT ALL 54 * + ( 1 )
----
54

query I rowsort
SELECT 69 - + ( + 22 + + 11 ) * - 45
----
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT CASE + AVG ( ALL ( - 72 ) ) WHEN - COUNT( * ) / 8 THEN NULL WHEN 17 + 9 THEN - 89 WHEN 56 + + COUNT( * ) * 52 THEN NULL END + CASE 64 WHEN + ( + 13 ) * 44 THEN + 35 ELSE 15 END * 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT CASE + AVG ( ALL ( - 72 ) ) WHEN - COUNT ( * ) / 8 THEN NULL WHEN 17 + 9 THEN - 89 WHEN 56 + + COUNT ( * ) * 52 THEN NULL END + CASE 64 WHEN + ( + 13 ) * 44 THEN + 35 ELSE 15 END * 2 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT 88 + CAST( + 18 + 94 * 27 AS SIGNED )
----
2644

skipif mysql # not compatible
query I rowsort label-3184
SELECT 88 + CAST ( + 18 + 94 * 27 AS INTEGER )
----
2644

query I rowsort
SELECT ALL + NULLIF ( 32, ( - 29 ) ) * + 57 AS col0
----
1824

query I rowsort
SELECT 98 * + 23 AS col1
----
2254

query I rowsort
SELECT DISTINCT + 12 * - 30 col1
----
-360

query I rowsort
SELECT 78 + + 36 * 66
----
2454

query I rowsort
SELECT 14 - - 67 AS col0
----
81

query I rowsort
SELECT 88 + ( 47 ) * 73 AS col1
----
3519

query I rowsort
SELECT 23 - + 92
----
-69

query I rowsort
SELECT ALL - 58 + 14
----
-44

query I rowsort
SELECT ALL + 94 + - 0
----
94

query I rowsort
SELECT 13 + 0
----
13

query I rowsort
SELECT DISTINCT + 13 + 84
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3196
SELECT DISTINCT 22 + COALESCE ( COUNT( * ), 57, COALESCE ( 5, - 53, 28 ) DIV MIN( - 72 ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT 22 + COALESCE ( COUNT ( * ), 57, COALESCE ( 5, - 53, 28 ) / MIN ( - 72 ) ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT - MAX( - 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - MAX ( - 49 ) AS col2
----
49

query I rowsort
SELECT 50 * + 54 + 33
----
2733

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3200
SELECT 96 DIV - 15 + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-3200
SELECT 96 / - 15 + + COUNT ( * )
----
-5

query I rowsort
SELECT ALL 21 + - 46 AS col0
----
-25

query I rowsort
SELECT 38 * 8 AS col1
----
304

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3203
SELECT DISTINCT 56 + - MIN( DISTINCT 0 + CAST( NULL AS DECIMAL ) ) * - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT 56 + - MIN ( DISTINCT 0 + CAST ( NULL AS REAL ) ) * - 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT ALL - + CASE + 85 WHEN CASE 42 WHEN - 75 THEN - ( 42 ) * + 50 WHEN + 22 * - ( - NULLIF ( - 17, 21 + 68 * + 61 ) * - COALESCE ( 48 * - 84, 59 ) ) THEN NULL END THEN NULL WHEN - COALESCE ( - 78, - CAST( NULL AS SIGNED ) * + 79 ) THEN NULL ELSE + COUNT( * ) + + COUNT( * ) END AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - + CASE + 85 WHEN CASE 42 WHEN - 75 THEN - ( 42 ) * + 50 WHEN + 22 * - ( - NULLIF ( - 17, 21 + 68 * + 61 ) * - COALESCE ( 48 * - 84, 59 ) ) THEN NULL END THEN NULL WHEN - COALESCE ( - 78, - CAST ( NULL AS INTEGER ) * + 79 ) THEN NULL ELSE + COUNT ( * ) + + COUNT ( * ) END AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3205
SELECT DISTINCT + + 4 * ( CASE 26 WHEN + AVG ( ALL - CAST( NULL AS SIGNED ) ) THEN + COUNT( DISTINCT 86 ) * + COUNT( * ) + 58 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT + + 4 * ( CASE 26 WHEN + AVG ( ALL - CAST ( NULL AS INTEGER ) ) THEN + COUNT ( DISTINCT 86 ) * + COUNT ( * ) + 58 END )
----
NULL

query I rowsort
SELECT - 75 + + 52
----
-23

query I rowsort
SELECT ( + 26 ) * + 86
----
2236

query I rowsort
SELECT - 88 + 87 * 35
----
2957

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT 22 * - COUNT( * ) + 32 * 57
----
1802

skipif mysql # not compatible
query I rowsort label-3209
SELECT 22 * - COUNT ( * ) + 32 * 57
----
1802

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT - COALESCE ( 57, + 3 ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT - COALESCE ( 57, + 3 ) / + 59
----
0

query I rowsort
SELECT - 16 * 87
----
-1392

query I rowsort
SELECT - 55 + CASE ( + ( 84 ) ) WHEN 32 * - 29 THEN NULL ELSE - 79 END AS col0
----
-134

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT DISTINCT - 15 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT - 15 / 47
----
0

query I rowsort
SELECT ALL ( + CASE WHEN NOT NULL IS NULL THEN 9 WHEN NOT ( 21 / - 11 ) > ( 90 ) + + NULLIF ( + 51, + 14 ) * - 96 THEN 52 / 4 + - 51 * 5 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT CAST( + 21 AS SIGNED ) * 20 AS col2
----
420

skipif mysql # not compatible
query I rowsort label-3216
SELECT CAST ( + 21 AS INTEGER ) * 20 AS col2
----
420

query I rowsort
SELECT + 82 * + 85 AS col0
----
6970

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT + 91 + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-3218
SELECT + 91 + COUNT ( * )
----
92

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

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

query I rowsort
SELECT - ( - NULLIF ( - 55, - 81 * 67 ) ) + - 77 AS col0
----
-132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT 15 + - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3222
SELECT 15 + - COUNT ( * )
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT - NULLIF ( - NULLIF ( + 42, 32 ), + 17 * - COUNT( * ) ) + + 18
----
60

skipif mysql # not compatible
query I rowsort label-3224
SELECT - NULLIF ( - NULLIF ( + 42, 32 ), + 17 * - COUNT ( * ) ) + + 18
----
60

query I rowsort
SELECT ALL 1 + - 75 col2
----
-74

query I rowsort
SELECT ALL 5 + 84
----
89

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3228
SELECT ALL + CAST( - 34 AS SIGNED ) + 12 DIV COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL + CAST ( - 34 AS INTEGER ) + 12 / COUNT ( * ) AS col1
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3229
SELECT CAST( NULL AS DECIMAL ) * - 84 / CASE - 68 * + 13 WHEN 20 THEN - 14 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT CAST ( NULL AS REAL ) * - 84 / CASE - 68 * + 13 WHEN 20 THEN - 14 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT DISTINCT + 81 + - + CAST( 99 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT + 81 + - + CAST ( 99 AS INTEGER )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL - 27 + - 27 + 40 DIV 73
----
-54

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - 27 + - 27 + 40 / 73
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3232
SELECT ALL 28 * + - CAST( NULL AS DECIMAL ) - + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL 28 * + - CAST ( NULL AS REAL ) - + 38 AS col2
----
NULL

query I rowsort
SELECT 38 - + ( 74 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT 74 * - COUNT( + 30 ) * - 63
----
4662

skipif mysql # not compatible
query I rowsort label-3234
SELECT 74 * - COUNT ( + 30 ) * - 63
----
4662

query I rowsort
SELECT ALL + 19 * + - 48 * - 94
----
85728

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL + SUM( ALL + + 57 ) * + 75 - 35 * + 21
----
3540

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL + SUM ( ALL + + 57 ) * + 75 - 35 * + 21
----
3540

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT ALL - 19 DIV 1 * 37
----
-703

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - 19 / 1 * 37
----
-703

query I rowsort
SELECT 73 * - 39
----
-2847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT - NULLIF ( + CAST( 21 AS SIGNED ), + 59 ) * MIN( DISTINCT + 47 ) + - COUNT( * ) AS col0
----
-988

skipif mysql # not compatible
query I rowsort label-3240
SELECT - NULLIF ( + CAST ( 21 AS INTEGER ), + 59 ) * MIN ( DISTINCT + 47 ) + - COUNT ( * ) AS col0
----
-988

query I rowsort
SELECT + 77 - - + 13
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT - MAX( DISTINCT - + ( 29 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3242
SELECT - MAX ( DISTINCT - + ( 29 ) ) AS col2
----
29

query I rowsort
SELECT ALL + + 2 * 61 * + 88 - 7 AS col2
----
10729

query I rowsort
SELECT DISTINCT + 29 * + - 91 + 73 AS col1
----
-2566

query I rowsort
SELECT DISTINCT + - NULLIF ( + 59, - NULLIF ( 98, 82 * - 32 + - 17 ) * 9 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL + ( - 89 ) * MIN( ALL + 82 * ( 65 ) )
----
-474370

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL + ( - 89 ) * MIN ( ALL + 82 * ( 65 ) )
----
-474370

query I rowsort
SELECT - - 91 * 48 * - 13 + ( - 55 )
----
-56839

query I rowsort
SELECT ALL + 85 * + 55 AS col2
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + - CASE - 78 WHEN - ( 52 ) THEN COALESCE ( 70, 5, COUNT( * ) ) + + 87 ELSE + 0 END
----
0

skipif mysql # not compatible
query I rowsort label-3249
SELECT + - CASE - 78 WHEN - ( 52 ) THEN COALESCE ( 70, 5, COUNT ( * ) ) + + 87 ELSE + 0 END
----
0

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

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - CAST ( + NULLIF ( CAST ( 57 AS INTEGER ), + 80 * COUNT ( * ) ) AS INTEGER )
----
-57

query I rowsort
SELECT ALL - 36 + - 0 + + 22
----
-14

query I rowsort
SELECT - 19 + + 24
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT - COUNT( * ) + 26
----
25

skipif mysql # not compatible
query I rowsort label-3253
SELECT - COUNT ( * ) + 26
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT ALL + ( + 3 ) + 59 * - CAST( - SUM( ALL + 28 ) AS SIGNED )
----
1655

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL + ( + 3 ) + 59 * - CAST ( - SUM ( ALL + 28 ) AS INTEGER )
----
1655

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT DISTINCT + 53 DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT + 53 / - 52
----
-1

query I rowsort
SELECT ALL 87 * + + 89 col2
----
7743

query I rowsort
SELECT + 93 + - 84
----
9

query I rowsort
SELECT + 63 - - 90 AS col0
----
153

query I rowsort
SELECT + 34 + - 42 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT - COUNT( * ) + - + 96 + + 33 + - 30 * - 96 * ( 45 * + 68 ) col1
----
8812736

skipif mysql # not compatible
query I rowsort label-3261
SELECT - COUNT ( * ) + - + 96 + + 33 + - 30 * - 96 * ( 45 * + 68 ) col1
----
8812736

query I rowsort
SELECT ALL 21 - - 96 AS col2
----
117

query I rowsort
SELECT + 27 + + NULLIF ( + ( + ( + 97 ) ), 63 ) * + 60 col0
----
5847

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + ( CASE - 36 WHEN - ( 31 ) THEN COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT + ( CASE - 36 WHEN - ( 31 ) THEN COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + SUM( ALL + + 74 ) + + - 95 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3265
SELECT + SUM ( ALL + + 74 ) + + - 95 AS col1
----
-21

query II rowsort
SELECT ALL + 93 AS col0, - 14 + 48 * + NULLIF ( - 33, - 47 ) AS col2
----
93
-1598

query II rowsort
SELECT DISTINCT + 96, 79 + + 47 AS col2
----
96
126

query I rowsort
SELECT ALL + NULLIF ( 90, - 1 ) AS col2
----
90

query I rowsort
SELECT + 29 * - + 32 + + 53
----
-875

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

query II rowsort
SELECT ALL + + 27 AS col0, 41 + 31
----
27
72

query I rowsort
SELECT - - 81 * - + CASE 15 WHEN 37 THEN + 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT + + 70 + CASE - 89 WHEN 40 + + 38 THEN COUNT( * ) WHEN 9 THEN 3 * - 95 + 78 WHEN 58 + COUNT( * ) THEN 10 * - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT + + 70 + CASE - 89 WHEN 40 + + 38 THEN COUNT ( * ) WHEN 9 THEN 3 * - 95 + 78 WHEN 58 + COUNT ( * ) THEN 10 * - 67 END
----
NULL

query I rowsort
SELECT + 66 * - 41 + 15 * + 4 AS col1
----
-2646

query II rowsort
SELECT ALL + + 67, ( - + ( ( - 9 ) ) ) * 50 AS col0
----
67
450

query I rowsort
SELECT + 78 * - 75 * - 34 + 1 * 72 AS col0
----
198972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT ALL + - ( - + NULLIF ( - - 50, + 17 + + CAST( NULL AS SIGNED ) ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL + - ( - + NULLIF ( - - 50, + 17 + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT ALL + - ( + + 77 ) * 7 * - ( CAST( NULL AS SIGNED ) ) + - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + - ( + + 77 ) * 7 * - ( CAST ( NULL AS INTEGER ) ) + - 10 AS col1
----
NULL

query I rowsort
SELECT - + 24 * - + 87 + - COALESCE ( NULLIF ( 48, + 5 * 31 ), 54, 17 )
----
2040

query I rowsort
SELECT ALL 95 * 15 * - 26 + - 89
----
-37139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3281
SELECT - COALESCE ( - + 30, - 53 ) DIV + SUM( - 86 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3281
SELECT - COALESCE ( - + 30, - 53 ) / + SUM ( - 86 ) AS col0
----
0

query I rowsort
SELECT - + 54 + - + 73
----
-127

query II rowsort
SELECT + 12, - 72 AS col2
----
12
-72

query I rowsort
SELECT - - 2 * + 47 + - - 92 * 88 + 58
----
8248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3285
SELECT - - COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) + - 66 + 14 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3285
SELECT - - COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - 66 + 14 AS col0
----
-52

query I rowsort
SELECT - NULLIF ( - - 19, + 75 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL - - 74 * - 40 * ( - COUNT( * ) ) + 29
----
2989

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - - 74 * - 40 * ( - COUNT ( * ) ) + 29
----
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT - 53 + + + MIN( DISTINCT 3 )
----
-50

skipif mysql # not compatible
query I rowsort label-3288
SELECT - 53 + + + MIN ( DISTINCT 3 )
----
-50

query I rowsort
SELECT ALL - 23 * + + 59 + - - 21 + 80 * COALESCE ( 7 * 92, + 22 + 23 * 40 ) * - 62
----
-3195576

query II rowsort
SELECT - + 78 AS col2, 58
----
-78
58

query I rowsort
SELECT ALL 81 + - 40
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3292
SELECT ALL CAST( + 22 AS SIGNED ), 57 AS col1
----
22
57

skipif mysql # not compatible
query II rowsort label-3292
SELECT ALL CAST ( + 22 AS INTEGER ), 57 AS col1
----
22
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3293
SELECT DISTINCT - 82 - + 13 AS col0, COUNT( * ) AS col2
----
-95
1

skipif mysql # not compatible
query II rowsort label-3293
SELECT DISTINCT - 82 - + 13 AS col0, COUNT ( * ) AS col2
----
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL COUNT( * ) - + - 63 * 46
----
2899

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL COUNT ( * ) - + - 63 * 46
----
2899

query I rowsort
SELECT - 51 * - 47
----
2397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT - CAST( - MIN( - 28 ) AS SIGNED ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3296
SELECT - CAST ( - MIN ( - 28 ) AS INTEGER ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3297
SELECT DISTINCT 80 - + + COUNT( * ) col1, + 74 * - SUM( 61 ) * - 20 + 59
----
79
90339

skipif mysql # not compatible
query II rowsort label-3297
SELECT DISTINCT 80 - + + COUNT ( * ) col1, + 74 * - SUM ( 61 ) * - 20 + 59
----
79
90339

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT ALL 98 DIV 26 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL 98 / 26 AS col0
----
3

query I rowsort
SELECT ALL + 64 - + 50 AS col2
----
14

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

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

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

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

query I rowsort
SELECT ALL 92 - + + 86 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3303
SELECT CASE - COUNT( * ) WHEN - 15 * + COUNT( * ) * + 40 THEN 84 WHEN 99 THEN NULL ELSE - CAST( + 31 AS SIGNED ) + - 86 END DIV 31
----
-3

skipif mysql # not compatible
query I rowsort label-3303
SELECT CASE - COUNT ( * ) WHEN - 15 * + COUNT ( * ) * + 40 THEN 84 WHEN 99 THEN NULL ELSE - CAST ( + 31 AS INTEGER ) + - 86 END / 31
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT 47 + - 35 + - - MIN( DISTINCT - 34 )
----
-22

skipif mysql # not compatible
query I rowsort label-3304
SELECT 47 + - 35 + - - MIN ( DISTINCT - 34 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT 54 * - 92 * CAST( NULL AS SIGNED ) / - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT 54 * - 92 * CAST ( NULL AS INTEGER ) / - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT - 8 * - COUNT( * ), 33 * + + 91 AS col0
----
8
3003

skipif mysql # not compatible
query II rowsort label-3306
SELECT - 8 * - COUNT ( * ), 33 * + + 91 AS col0
----
8
3003

query I rowsort
SELECT DISTINCT + 38 + - 36 + - 57 AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL - + CASE + CAST( NULL AS SIGNED ) WHEN 20 THEN + 87 * AVG ( + 77 + 32 ) + 82 WHEN 98 + + 12 / 62 THEN - 51 ELSE NULL END * 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - + CASE + CAST ( NULL AS INTEGER ) WHEN 20 THEN + 87 * AVG ( + 77 + 32 ) + 82 WHEN 98 + + 12 / 62 THEN - 51 ELSE NULL END * 43 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL + 69 + - COUNT( * ) * + MAX( + + 2 ) * COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + 69 + - COUNT ( * ) * + MAX ( + + 2 ) * COUNT ( * ) AS col2
----
67

query I rowsort
SELECT 0 + + 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - CASE - - 88 WHEN + COUNT( * ) THEN NULL WHEN + + 89 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT - CASE - - 88 WHEN + COUNT ( * ) THEN NULL WHEN + + 89 THEN COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3312
SELECT 21 DIV - - 89, - 1 col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-3312
SELECT 21 / - - 89, - 1 col0
----
0
-1

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

skipif mysql # not compatible
query I rowsort label-3313
SELECT CAST ( - - 55 AS INTEGER ) * + 43
----
2365

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT 0 DIV - 42 col2
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT 0 / - 42 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT ALL 7 + + - ( + - COALESCE ( + 39, + ( + CAST( NULL AS SIGNED ) ) ) )
----
46

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL 7 + + - ( + - COALESCE ( + 39, + ( + CAST ( NULL AS INTEGER ) ) ) )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT ALL + COALESCE ( - 67, - + 21 + - NULLIF ( 36, 94 ), 44 ) DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL + COALESCE ( - 67, - + 21 + - NULLIF ( 36, 94 ), 44 ) / 53
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT 13 + - COUNT( * ) * + COUNT( DISTINCT CAST( 39 AS SIGNED ) ) col0
----
12

skipif mysql # not compatible
query I rowsort label-3317
SELECT 13 + - COUNT ( * ) * + COUNT ( DISTINCT CAST ( 39 AS INTEGER ) ) col0
----
12

query I rowsort
SELECT 22 + - + 48
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3319
SELECT 36 AS col2, - SUM( DISTINCT ( + ( + - 94 ) ) ) AS col2
----
36
94

skipif mysql # not compatible
query II rowsort label-3319
SELECT 36 AS col2, - SUM ( DISTINCT ( + ( + - 94 ) ) ) AS col2
----
36
94

query II rowsort
SELECT DISTINCT 34 AS col2, 88 * + 78 AS col1
----
34
6864

query I rowsort
SELECT 38 + - 91
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT 48 + 55 - + COUNT( * ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-3322
SELECT 48 + 55 - + COUNT ( * ) AS col1
----
102

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

skipif mysql # not compatible
query I rowsort label-3323
SELECT 57 + COUNT ( * ) AS col2
----
58

query I rowsort
SELECT ALL 92 * + 71
----
6532

query I rowsort
SELECT 64 * + 52 * + 34 AS col1
----
113152

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL + 60 * + 71 * - SUM( - 37 ) AS col1
----
157620

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + 60 * + 71 * - SUM ( - 37 ) AS col1
----
157620

query I rowsort
SELECT 38 + - - 92 * - + 24 AS col0
----
-2170

query I rowsort
SELECT 73 - - 37 AS col2
----
110

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

skipif mysql # not compatible
query I rowsort label-3329
SELECT 47 + + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT MIN( DISTINCT + 21 ) + + 45
----
66

skipif mysql # not compatible
query I rowsort label-3330
SELECT MIN ( DISTINCT + 21 ) + + 45
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT 54 * + CAST( 68 AS SIGNED ) col2
----
3672

skipif mysql # not compatible
query I rowsort label-3331
SELECT 54 * + CAST ( 68 AS INTEGER ) col2
----
3672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT SUM( ALL 1 ) * + + 90 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-3332
SELECT SUM ( ALL 1 ) * + + 90 / + 38
----
2

query I rowsort
SELECT 92 + - - 66
----
158

query I rowsort
SELECT ALL 50 + + - 78
----
-28

query II rowsort
SELECT DISTINCT 19, + 83 + + 17 * + + 39 AS col1
----
19
746

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT MAX( DISTINCT 20 ) * 25
----
500

skipif mysql # not compatible
query I rowsort label-3336
SELECT MAX ( DISTINCT 20 ) * 25
----
500

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT 89 + + - 3 DIV 97
----
89

skipif mysql # not compatible
query I rowsort label-3337
SELECT 89 + + - 3 / 97
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3338
SELECT COUNT( * ) + - 49 + - NULLIF ( - 36, 98 + 64 ) DIV 51
----
-48

skipif mysql # not compatible
query I rowsort label-3338
SELECT COUNT ( * ) + - 49 + - NULLIF ( - 36, 98 + 64 ) / 51
----
-48

query I rowsort
SELECT ALL - 9 * 82 col0
----
-738

query II rowsort
SELECT + 23 AS col0, + 52
----
23
52

query I rowsort
SELECT ALL + 98 + - 77
----
21

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

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL - - COUNT ( * ) + - 67 / - + 46
----
2

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

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

query I rowsort
SELECT CASE + 2 WHEN - - 34 THEN - 55 * - 92 * + 60 ELSE NULL END
----
NULL

query I rowsort
SELECT - 7 * - 18 * 61 + + - 71
----
7615

query I rowsort
SELECT - 42 * + 38
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ( - 39 ) + COUNT( * ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-3347
SELECT ( - 39 ) + COUNT ( * ) col0
----
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-3348
SELECT DISTINCT - + 34, 5 * 39 DIV - + 58 + 92 AS col0
----
-34
89

skipif mysql # not compatible
query II rowsort label-3348
SELECT DISTINCT - + 34, 5 * 39 / - + 58 + 92 AS col0
----
-34
89

query II rowsort
SELECT ALL - - 38 AS col0, - 31
----
38
-31

query I rowsort
SELECT + 8 + - 50
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3351
SELECT DISTINCT + COALESCE ( + CAST( + COUNT( * ) AS SIGNED ), + COUNT( 44 ) + 95 ) + + 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT + COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + COUNT ( 44 ) + 95 ) + + 3 AS col0
----
4

query I rowsort
SELECT + 19 * - 32 + - 46 - + 97 AS col0
----
-751

query I rowsort
SELECT ALL + 91 - + + 6 + - NULLIF ( + 99, - - 26 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT - 63 - MIN( - COALESCE ( + + 99, + 12 ) ) + - ( + 12 + 79 ) * + 23
----
-2057

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - 63 - MIN ( - COALESCE ( + + 99, + 12 ) ) + - ( + 12 + 79 ) * + 23
----
-2057

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT 7 * + + ( + MAX( DISTINCT - 28 ) )
----
-196

skipif mysql # not compatible
query I rowsort label-3355
SELECT 7 * + + ( + MAX ( DISTINCT - 28 ) )
----
-196

query I rowsort
SELECT 38 + - 21 + - 61 + - 42 - - 69 - 58
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL ( 78 ) - 59 + + - CASE - SUM( CAST( NULL AS SIGNED ) ) WHEN + 73 * 6 THEN + 62 * - 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL ( 78 ) - 59 + + - CASE - SUM ( CAST ( NULL AS INTEGER ) ) WHEN + 73 * 6 THEN + 62 * - 57 END AS col2
----
NULL

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

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

query I rowsort
SELECT ( - 59 ) * + 82 AS col2
----
-4838

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + 25 * - 73 * - 51 * - COUNT( * ) + - 68
----
-93143

skipif mysql # not compatible
query I rowsort label-3360
SELECT + 25 * - 73 * - 51 * - COUNT ( * ) + - 68
----
-93143

query II rowsort
SELECT 84 AS col0, 42
----
84
42

query I rowsort
SELECT ALL ( - 46 ) - - - 56 AS col1
----
-102

query I rowsort
SELECT - NULLIF ( - + 8, 16 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3364
SELECT - ( - 15 ) DIV - 98 + - - 38 + + 80 DIV + 33 + 82
----
122

skipif mysql # not compatible
query I rowsort label-3364
SELECT - ( - 15 ) / - 98 + - - 38 + + 80 / + 33 + 82
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3365
SELECT 78, - 98 AS col0, - - ( - - 20 ) DIV + NULLIF ( - - COUNT( * ), 16 * + 26 ) + 34 AS col2
----
78
-98
54

skipif mysql # not compatible
query III rowsort label-3365
SELECT 78, - 98 AS col0, - - ( - - 20 ) / + NULLIF ( - - COUNT ( * ), 16 * + 26 ) + 34 AS col2
----
78
-98
54

query I rowsort
SELECT + 45 * + - 83
----
-3735

query I rowsort
SELECT - 50 + 13
----
-37

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

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

query I rowsort
SELECT - COALESCE ( + 83, 5 + + + NULLIF ( + 55, + 60 ) )
----
-83

query II rowsort
SELECT - 59 AS col1, + 29
----
-59
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT DISTINCT + 29 + + - SUM( + 66 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT + 29 + + - SUM ( + 66 ) AS col0
----
-37

query I rowsort
SELECT ALL - 74 + + 33 col0
----
-41

query I rowsort
SELECT ALL + 2 * - + 77 AS col1
----
-154

query II rowsort
SELECT 21 AS col1, + 92 * + 40 AS col0
----
21
3680

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

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + 29 + - COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT 43 + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT 43 + COUNT ( * ) AS col2
----
44

query I rowsort
SELECT - 26 + + 53 - - 59
----
86

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

skipif mysql # not compatible
query II rowsort label-3378
SELECT - 2, + COUNT ( * ) AS col1
----
-2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + 39 + + 40 * + NULLIF ( + 71, - 80 * + COUNT( * ) )
----
2879

skipif mysql # not compatible
query I rowsort label-3379
SELECT + 39 + + 40 * + NULLIF ( + 71, - 80 * + COUNT ( * ) )
----
2879

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - COUNT( DISTINCT 55 ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3380
SELECT - COUNT ( DISTINCT 55 ) * COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT ALL + + COUNT( * ) col1, 85 + 13
----
1
98

skipif mysql # not compatible
query II rowsort label-3381
SELECT ALL + + COUNT ( * ) col1, 85 + 13
----
1
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3382
SELECT - + CAST( + - 5 AS SIGNED ) DIV + 35 * - 62
----
0

skipif mysql # not compatible
query I rowsort label-3382
SELECT - + CAST ( + - 5 AS INTEGER ) / + 35 * - 62
----
0

query II rowsort
SELECT ALL + 50 AS col0, + 85
----
50
85

query I rowsort
SELECT + 17 * + 95 + - 77
----
1538

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL + 37 * - ( - 21 ) * + - 85 * + 41 * - 43 * COUNT( * ) + + ( - ( 3 ) ) AS col2
----
116437332

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL + 37 * - ( - 21 ) * + - 85 * + 41 * - 43 * COUNT ( * ) + + ( - ( 3 ) ) AS col2
----
116437332

query II rowsort
SELECT ALL + - 89, - 25 AS col2
----
-89
-25

query I rowsort
SELECT - + 87 + NULLIF ( 36, - 95 - + 83 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT + ( 84 ) DIV + COALESCE ( - 82, - MAX( 63 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3388
SELECT + ( 84 ) / + COALESCE ( - 82, - MAX ( 63 ) ) AS col0
----
-1

query I rowsort
SELECT + 60 - - + ( + 50 )
----
110

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

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL COUNT ( * ) * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - + 79 - + 17 + - 39 + + - COUNT( * ) AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-3391
SELECT - + 79 - + 17 + - 39 + + - COUNT ( * ) AS col1
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT - 11 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT - 11 / - 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT CASE - 31 WHEN + + CASE + - 48 WHEN COUNT( * ) * MAX( ALL - 22 ) + - 49 + - 58 THEN - 11 WHEN 88 + 13 THEN AVG ( ALL - 21 ) ELSE 89 + - COUNT( * ) * 63 END + 48 THEN + 66 - - 20 WHEN 20 * 10 THEN - COUNT( * ) WHEN + 24 + 12 THEN 39 * + ( - 83 / + 90 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT CASE - 31 WHEN + + CASE + - 48 WHEN COUNT ( * ) * MAX ( ALL - 22 ) + - 49 + - 58 THEN - 11 WHEN 88 + 13 THEN AVG ( ALL - 21 ) ELSE 89 + - COUNT ( * ) * 63 END + 48 THEN + 66 - - 20 WHEN 20 * 10 THEN - COUNT ( * ) WHEN + 24 + 12 THEN 39 * + ( - 83 / + 90 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT ALL + CAST( + 10 AS SIGNED ) * + + 73 - - 19 + - 90 AS col2
----
659

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL + CAST ( + 10 AS INTEGER ) * + + 73 - - 19 + - 90 AS col2
----
659

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT MAX( DISTINCT 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3395
SELECT MAX ( DISTINCT 72 ) AS col1
----
72

query I rowsort
SELECT + ( + 59 ) * - 13 AS col0
----
-767

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - 20 * + MIN( - 50 ) + + 82
----
1082

skipif mysql # not compatible
query I rowsort label-3397
SELECT - 20 * + MIN ( - 50 ) + + 82
----
1082

query I rowsort
SELECT + ( + 32 ) - + 36 - 60 * + 31 + - - 69 + + ( - 61 ) * 58 AS col0
----
-5333

query I rowsort
SELECT + 45 + + - 26 AS col0
----
19

query II rowsort
SELECT - ( - - 87 ) AS col2, - ( + 33 )
----
-87
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3401
SELECT MIN( DISTINCT - 77 ) col2, 39
----
-77
39

skipif mysql # not compatible
query II rowsort label-3401
SELECT MIN ( DISTINCT - 77 ) col2, 39
----
-77
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3402
SELECT + 21 + 59 AS col0, + COUNT( * ) + - 34 + CAST( + - COUNT( * ) AS SIGNED ) * + 53 AS col2
----
80
-86

skipif mysql # not compatible
query II rowsort label-3402
SELECT + 21 + 59 AS col0, + COUNT ( * ) + - 34 + CAST ( + - COUNT ( * ) AS INTEGER ) * + 53 AS col2
----
80
-86

query I rowsort
SELECT + 27 * + 72 * + - 17 * - - 17 col0
----
-561816

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

query I rowsort
SELECT ALL 9 + - 25 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT + COUNT( * ) + 58 + - 84
----
-25

skipif mysql # not compatible
query I rowsort label-3406
SELECT + COUNT ( * ) + 58 + - 84
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT ALL 79 * + COUNT( * ) AS col2, + 35 * - 40 AS col1
----
79
-1400

skipif mysql # not compatible
query II rowsort label-3407
SELECT ALL 79 * + COUNT ( * ) AS col2, + 35 * - 40 AS col1
----
79
-1400

query I rowsort
SELECT + 91 + + 21 * - 80 AS col1
----
-1589

query I rowsort
SELECT + ( + 81 ) + - - 1 AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3410
SELECT ALL 73 + - 31 AS col0, CAST( NULL AS DECIMAL ) - COALESCE ( - CAST( NULL AS SIGNED ), 47 + 1 ) col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-3410
SELECT ALL 73 + - 31 AS col0, CAST ( NULL AS REAL ) - COALESCE ( - CAST ( NULL AS INTEGER ), 47 + 1 ) col1
----
42
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3411
SELECT + 31 DIV + - 38 * - 91, + ( 72 ) AS col0
----
0
72

skipif mysql # not compatible
query II rowsort label-3411
SELECT + 31 / + - 38 * - 91, + ( 72 ) AS col0
----
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT - COALESCE ( + + COALESCE ( 48, - 4 ), + 4 ) + - - MAX( ALL - NULLIF ( - 79, 30 * - 6 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3412
SELECT - COALESCE ( + + COALESCE ( 48, - 4 ), + 4 ) + - - MAX ( ALL - NULLIF ( - 79, 30 * - 6 ) ) AS col0
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT - COUNT( * ) + - 41 + - 5 - - 99
----
52

skipif mysql # not compatible
query I rowsort label-3414
SELECT - COUNT ( * ) + - 41 + - 5 - - 99
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT - CASE + 36 WHEN + 56 THEN + - COUNT( * ) WHEN 48 THEN NULLIF ( - 73, + 14 * COALESCE ( 3, + MAX( ALL 44 ) * 18 ) ) / 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT - CASE + 36 WHEN + 56 THEN + - COUNT ( * ) WHEN 48 THEN NULLIF ( - 73, + 14 * COALESCE ( 3, + MAX ( ALL 44 ) * 18 ) ) / 6 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT + - 26 * - SUM( 96 )
----
2496

skipif mysql # not compatible
query I rowsort label-3417
SELECT + - 26 * - SUM ( 96 )
----
2496

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT ALL + 57 - - + 45 DIV 65 col1
----
57

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL + 57 - - + 45 / 65 col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3419
SELECT DISTINCT + COALESCE ( + 43, + 90 DIV - 36 DIV - SUM( - ( - 27 ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + COALESCE ( + 43, + 90 / - 36 / - SUM ( - ( - 27 ) ) )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3420
SELECT - - 77 + - 27 - 61 + - + CASE - 87 WHEN 15 * COUNT( * ) THEN + COUNT( * ) * 86 WHEN CAST( NULL AS SIGNED ) THEN 53 WHEN COUNT( * ) * - 4 THEN - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT - - 77 + - 27 - 61 + - + CASE - 87 WHEN 15 * COUNT ( * ) THEN + COUNT ( * ) * 86 WHEN CAST ( NULL AS INTEGER ) THEN 53 WHEN COUNT ( * ) * - 4 THEN - 67 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3421
SELECT ALL + - CAST( - ( COUNT( * ) ) AS SIGNED ) * + + MAX( ALL - 23 ) - + 21
----
-44

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + - CAST ( - ( COUNT ( * ) ) AS INTEGER ) * + + MAX ( ALL - 23 ) - + 21
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3422
SELECT - 60 DIV COUNT( * ) + 86 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3422
SELECT - 60 / COUNT ( * ) + 86 AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT + 89 DIV + 33 + - 48 + - 85 - + 33 AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-3423
SELECT + 89 / + 33 + - 48 + - 85 - + 33 AS col1
----
-164

query I rowsort
SELECT - - ( + 77 ) * ( 49 )
----
3773

query I rowsort
SELECT - - 19 * + - 88 AS col1
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL + MAX( - - COALESCE ( 86, ( + ( - 11 ) ) + + + 27 * 84 ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + MAX ( - - COALESCE ( 86, ( + ( - 11 ) ) + + + 27 * 84 ) ) AS col0
----
86

query I rowsort
SELECT - 6 + - ( - - 97 )
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT DISTINCT - COALESCE ( + ( 87 ), - 25 ) DIV + 36 + - 73 * COUNT( * ) * CASE WHEN NOT ( - 19 ) IS NULL THEN 89 ELSE + 83 END + 92 * COUNT( * )
----
-6407

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT - COALESCE ( + ( 87 ), - 25 ) / + 36 + - 73 * COUNT ( * ) * CASE WHEN NOT ( - 19 ) IS NULL THEN 89 ELSE + 83 END + 92 * COUNT ( * )
----
-6407

query I rowsort
SELECT 73 + + ( 85 ) AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT - 1 * + 37 * NULLIF ( + COUNT( DISTINCT - + 80 ), + - 31 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - 1 * + 37 * NULLIF ( + COUNT ( DISTINCT - + 80 ), + - 31 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT CASE - + ( COUNT( DISTINCT + + 78 ) ) WHEN - COALESCE ( - - 61, 41, - 15 * COALESCE ( 29 / 3, ( - 28 ) + - ( 93 ) ) ) THEN - 7 END + + COUNT( ALL 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT CASE - + ( COUNT ( DISTINCT + + 78 ) ) WHEN - COALESCE ( - - 61, 41, - 15 * COALESCE ( 29 / 3, ( - 28 ) + - ( 93 ) ) ) THEN - 7 END + + COUNT ( ALL 92 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3432
SELECT 57 / CAST( NULL AS SIGNED ) * + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT 57 / CAST ( NULL AS INTEGER ) * + - 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT 10 * + + 10 * + + NULLIF ( + + 66, + 84 * + - CASE - 67 WHEN - 84 * 73 THEN NULL WHEN - ( 14 ) + - 31 THEN 71 END + 79 / CAST( NULL AS SIGNED ) + + 73 ) + + 32 AS col2
----
6632

skipif mysql # not compatible
query I rowsort label-3433
SELECT 10 * + + 10 * + + NULLIF ( + + 66, + 84 * + - CASE - 67 WHEN - 84 * 73 THEN NULL WHEN - ( 14 ) + - 31 THEN 71 END + 79 / CAST ( NULL AS INTEGER ) + + 73 ) + + 32 AS col2
----
6632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT ALL 33 + - - ( + + 12 ) - + 95 + CAST( NULL AS SIGNED ) * 48 + + 7 * + 91 * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL 33 + - - ( + + 12 ) - + 95 + CAST ( NULL AS INTEGER ) * 48 + + 7 * + 91 * 38 AS col0
----
NULL

query I rowsort
SELECT 63 * 19 AS col2
----
1197

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

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - 29 + COUNT ( * ) AS col0
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-3437
SELECT ALL 9 col0, 39 * + 0 * 84 DIV 11
----
9
0

skipif mysql # not compatible
query II rowsort label-3437
SELECT ALL 9 col0, 39 * + 0 * 84 / 11
----
9
0

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

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT COUNT ( * ) + - + 47 + COUNT ( + 76 ) AS col1
----
-45

query II rowsort
SELECT 46 col0, - NULLIF ( + + COALESCE ( - ( + 54 ), + 4 * - CASE 45 WHEN ( 22 ) - + 61 THEN - 44 WHEN - 26 THEN NULL END ), 48 + 14 ) AS col1
----
46
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT ( 47 ) * + 32 + - CAST( NULL AS SIGNED ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT ( 47 ) * + 32 + - CAST ( NULL AS INTEGER ) * + 20
----
NULL

query I rowsort
SELECT 52 * - 80 AS col1
----
-4160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3442
SELECT - COALESCE ( - - MIN( ALL - 38 ), - - 56 + - COALESCE ( NULLIF ( - COALESCE ( + 2, + 0, - 68 - + 79 ), COUNT( ALL + 48 ) ), 65 DIV + MIN( ALL NULLIF ( + 87, 94 ) ) ), + 15 * COUNT( - 20 ) + - 61 )
----
38

skipif mysql # not compatible
query I rowsort label-3442
SELECT - COALESCE ( - - MIN ( ALL - 38 ), - - 56 + - COALESCE ( NULLIF ( - COALESCE ( + 2, + 0, - 68 - + 79 ), COUNT ( ALL + 48 ) ), 65 / + MIN ( ALL NULLIF ( + 87, 94 ) ) ), + 15 * COUNT ( - 20 ) + - 61 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3443
SELECT ALL + CASE - COUNT( ALL ( + 50 ) ) WHEN - 80 THEN NULL WHEN + NULLIF ( + 50, + CAST( NULL AS DECIMAL ) * + CASE - ( 29 ) WHEN COUNT( * ) THEN 82 + - 52 WHEN - 19 * COUNT( * ) - 55 THEN NULL END ) + - 42 THEN CAST( - 13 AS SIGNED ) + - 0 * + COUNT( * ) END - - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + CASE - COUNT ( ALL ( + 50 ) ) WHEN - 80 THEN NULL WHEN + NULLIF ( + 50, + CAST ( NULL AS REAL ) * + CASE - ( 29 ) WHEN COUNT ( * ) THEN 82 + - 52 WHEN - 19 * COUNT ( * ) - 55 THEN NULL END ) + - 42 THEN CAST ( - 13 AS INTEGER ) + - 0 * + COUNT ( * ) END - - 39 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT 44 DIV + - 59
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT 44 / + - 59
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT DISTINCT + 59 * + 91 + COALESCE ( - + CAST( NULL AS SIGNED ), - 74 ) * - - 74 - + + 27 + + - 15 AS col2
----
-149

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT + 59 * + 91 + COALESCE ( - + CAST ( NULL AS INTEGER ), - 74 ) * - - 74 - + + 27 + + - 15 AS col2
----
-149

query I rowsort
SELECT DISTINCT NULLIF ( CASE - - 86 WHEN 23 THEN + + 78 + 71 * - 76 / 10 ELSE + 38 + 94 END, + 10 ) AS col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3447
SELECT CASE - + 82 WHEN + + 88 + + 47 + - 71 * + + MAX( DISTINCT + + 26 ) * + 95 * - 38 THEN NULL WHEN - CAST( + NULLIF ( + 31, CAST( 78 AS SIGNED ) + - COUNT( * ) ) AS DECIMAL ) + 0 * - CAST( - 50 AS SIGNED ) THEN 81 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT CASE - + 82 WHEN + + 88 + + 47 + - 71 * + + MAX ( DISTINCT + + 26 ) * + 95 * - 38 THEN NULL WHEN - CAST ( + NULLIF ( + 31, CAST ( 78 AS INTEGER ) + - COUNT ( * ) ) AS REAL ) + 0 * - CAST ( - 50 AS INTEGER ) THEN 81 END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT ( + + COALESCE ( - 54, + 15, + - 54 ) ) * + CAST( NULL AS SIGNED ) / - 15 / + - ( + 88 ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT ( + + COALESCE ( - 54, + 15, + - 54 ) ) * + CAST ( NULL AS INTEGER ) / - 15 / + - ( + 88 ) * 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3449
SELECT ALL + 57 AS col0, + COALESCE ( + 82, - 75 ) DIV + - 83 + MIN( DISTINCT + 1 )
----
57
1

skipif mysql # not compatible
query II rowsort label-3449
SELECT ALL + 57 AS col0, + COALESCE ( + 82, - 75 ) / + - 83 + MIN ( DISTINCT + 1 )
----
57
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT COUNT( * ) + 16 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3450
SELECT COUNT ( * ) + 16 AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT + MIN( + 33 ) DIV + + 65 * 23
----
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT + MIN ( + 33 ) / + + 65 * 23
----
0

query I rowsort
SELECT 90 * 37 AS col0
----
3330

query II rowsort
SELECT + 22 col1, - 77 AS col0
----
22
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT - MIN( - - 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - MIN ( - - 18 ) col0
----
-18

query I rowsort
SELECT - 95 + + - 86
----
-181

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3457
SELECT DISTINCT + 60 + + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + - - NULLIF ( - MAX( DISTINCT - - 17 ), + 12 ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT + 60 + + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - NULLIF ( - MAX ( DISTINCT - - 17 ), + 12 ) + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3458
SELECT DISTINCT 5 * 44 DIV + MIN( DISTINCT - 92 ), + CAST( NULL AS SIGNED ) AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-3458
SELECT DISTINCT 5 * 44 / + MIN ( DISTINCT - 92 ), + CAST ( NULL AS INTEGER ) AS col0
----
-2
NULL

query I rowsort
SELECT ALL - 15 * + 92 * + + 29 AS col2
----
-40020

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT 83 * - SUM( ALL - 98 )
----
8134

skipif mysql # not compatible
query I rowsort label-3460
SELECT 83 * - SUM ( ALL - 98 )
----
8134

query I rowsort
SELECT ALL 4 * + 68 AS col0
----
272

query I rowsort
SELECT DISTINCT 63 + - + 95 * - 97 + + 0 AS col2
----
9278

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT SUM( ALL + 99 ) * - - COUNT( * ) + - COUNT( * ) + + + ( 27 ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-3464
SELECT SUM ( ALL + 99 ) * - - COUNT ( * ) + - COUNT ( * ) + + + ( 27 ) AS col1
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-3465
SELECT 91 + + COUNT( * ) AS col1, + 32 + + 2 + - 3 * - COALESCE ( + COUNT( * ), + 7 * - 24, 14 )
----
92
37

skipif mysql # not compatible
query II rowsort label-3465
SELECT 91 + + COUNT ( * ) AS col1, + 32 + + 2 + - 3 * - COALESCE ( + COUNT ( * ), + 7 * - 24, 14 )
----
92
37

query I rowsort
SELECT 66 + - + 35 col2
----
31

query I rowsort
SELECT ALL + 21 * 53 AS col2
----
1113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT DISTINCT - - 40 * CAST( + - 31 AS SIGNED )
----
-1240

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT - - 40 * CAST ( + - 31 AS INTEGER )
----
-1240

query I rowsort
SELECT 59 + - 7
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL - 29 * + - SUM( DISTINCT + 86 )
----
2494

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL - 29 * + - SUM ( DISTINCT + 86 )
----
2494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT SUM( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - COUNT( DISTINCT + 10 ) * ( + + MIN( DISTINCT + 12 ) ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - COUNT ( DISTINCT + 10 ) * ( + + MIN ( DISTINCT + 12 ) ) * + 15
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT 69 * COUNT( * ) + + 94 - 38 + - 48 + - 43
----
34

skipif mysql # not compatible
query I rowsort label-3473
SELECT 69 * COUNT ( * ) + + 94 - 38 + - 48 + - 43
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT 28 + - NULLIF ( + + 93, 63 * - - 86 + + COALESCE ( MAX( - 49 ), + 56 - + 51, 26 ) - + 74 * + 58 * - ( COUNT( * ) ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3474
SELECT 28 + - NULLIF ( + + 93, 63 * - - 86 + + COALESCE ( MAX ( - 49 ), + 56 - + 51, 26 ) - + 74 * + 58 * - ( COUNT ( * ) ) ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL 96 * + MIN( ALL ( + 66 ) ) * - + 18 AS col0
----
-114048

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL 96 * + MIN ( ALL ( + 66 ) ) * - + 18 AS col0
----
-114048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3476
SELECT DISTINCT - 44 + + 93 - - CAST( + 6 AS SIGNED ) AS col1, - 94 * + COUNT( * ) AS col0
----
55
-94

skipif mysql # not compatible
query II rowsort label-3476
SELECT DISTINCT - 44 + + 93 - - CAST ( + 6 AS INTEGER ) AS col1, - 94 * + COUNT ( * ) AS col0
----
55
-94

query I rowsort
SELECT DISTINCT + 86 + - + 58 + 51 * 15
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL - 4 * - 0 + + - 53 + - 49 + 55 + - + 69 * - - 55 * - MAX( + 55 ) + - 40 AS col1
----
208638

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - 4 * - 0 + + - 53 + - 49 + 55 + - + 69 * - - 55 * - MAX ( + 55 ) + - 40 AS col1
----
208638

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL - 69 * + ( 87 ) * 4 + NULLIF ( + 67, COUNT( * ) ) + + 44 + + 24 * + 26
----
-23277

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL - 69 * + ( 87 ) * 4 + NULLIF ( + 67, COUNT ( * ) ) + + 44 + + 24 * + 26
----
-23277

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

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

query II rowsort
SELECT ALL + 3 AS col2, + 32
----
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT 10 * MIN( ALL + 97 ) + + 45
----
1015

skipif mysql # not compatible
query I rowsort label-3482
SELECT 10 * MIN ( ALL + 97 ) + + 45
----
1015

query I rowsort
SELECT + ( 95 ) * + - 84 + + 22
----
-7958

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

skipif mysql # not compatible
query I rowsort label-3484
SELECT + MIN ( - 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT CASE - CAST( NULL AS SIGNED ) WHEN + 83 THEN + ( + 67 ) / + 48 WHEN 33 THEN 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN + 83 THEN + ( + 67 ) / + 48 WHEN 33 THEN 8 END
----
NULL

query II rowsort
SELECT + 32 AS col0, + 16 col1
----
32
16

query I rowsort
SELECT ALL 70 * - - 10 + 7
----
707

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

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

query II rowsort
SELECT + 97 col2, + 97 + - NULLIF ( + 6, - 34 ) + - COALESCE ( 61, + 86 ) AS col1
----
97
30

query I rowsort
SELECT ALL + 92 * + 36 * - 93 - - - NULLIF ( 4, - 6 + + 66 + 62 + 6 ) + - 24 AS col1
----
-308044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT CAST( 55 AS SIGNED ) * - ( + COUNT( * ) ) + + + 87 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3491
SELECT CAST ( 55 AS INTEGER ) * - ( + COUNT ( * ) ) + + + 87 AS col0
----
32

query I rowsort
SELECT ALL 50 * + 60 AS col1
----
3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3493
SELECT + CASE - + 89 WHEN 19 THEN - CAST( NULL AS SIGNED ) / - COUNT( ALL 57 ) / + - 73 * + 71 - 55 ELSE + + 83 * - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT + CASE - + 89 WHEN 19 THEN - CAST ( NULL AS INTEGER ) / - COUNT ( ALL 57 ) / + - 73 * + 71 - 55 ELSE + + 83 * - CAST ( NULL AS REAL ) END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3495
SELECT - ( 26 ) DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3495
SELECT - ( 26 ) / - 93 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT DISTINCT + CASE 75 WHEN + + COUNT( * ) * 62 - 19 * 96 + 64 THEN NULL WHEN SUM( DISTINCT + - 15 ) + - 66 - + SUM( ALL 84 ) * 10 THEN + CAST( NULL AS SIGNED ) ELSE - 67 END
----
-67

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT + CASE 75 WHEN + + COUNT ( * ) * 62 - 19 * 96 + 64 THEN NULL WHEN SUM ( DISTINCT + - 15 ) + - 66 - + SUM ( ALL 84 ) * 10 THEN + CAST ( NULL AS INTEGER ) ELSE - 67 END
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT ALL 37 * 88 * 51 * - 54 * CAST( + AVG ( DISTINCT + 62 ) AS SIGNED ) - 35 + + NULLIF ( 32, 19 ) AS col1
----
-555955491

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL 37 * 88 * 51 * - 54 * CAST ( + AVG ( DISTINCT + 62 ) AS INTEGER ) - 35 + + NULLIF ( 32, 19 ) AS col1
----
-555955491

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - + NULLIF ( - COUNT( * ), 10 * + 43 )
----
1

skipif mysql # not compatible
query I rowsort label-3498
SELECT - + NULLIF ( - COUNT ( * ), 10 * + 43 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT DISTINCT COUNT( * ) AS col2, 3 * - 67 AS col2
----
1
-201

skipif mysql # not compatible
query II rowsort label-3499
SELECT DISTINCT COUNT ( * ) AS col2, 3 * - 67 AS col2
----
1
-201

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3500
SELECT ALL + + 74 DIV - CAST( - 92 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + + 74 / - CAST ( - 92 AS INTEGER )
----
0

query I rowsort
SELECT - - 3 * - 17 col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3502
SELECT - 23 DIV - 26 * MIN( DISTINCT 49 )
----
0

skipif mysql # not compatible
query I rowsort label-3502
SELECT - 23 / - 26 * MIN ( DISTINCT 49 )
----
0

query I rowsort
SELECT + 11 * + 21 + - + 43 AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT - 50 - - + COUNT( * ) + 37 * + COUNT( * ) * - 55
----
-2084

skipif mysql # not compatible
query I rowsort label-3504
SELECT - 50 - - + COUNT ( * ) + 37 * + COUNT ( * ) * - 55
----
-2084

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL + - 49 + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + - 49 + - COUNT ( * )
----
-50

query I rowsort
SELECT DISTINCT - - 32 + + - 17
----
15

query I rowsort
SELECT ALL + - 70 * + + 4 + - 50
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3508
SELECT - - 46 * + NULLIF ( - - CASE - 59 WHEN COUNT( * ) + + AVG ( DISTINCT + - ( + 51 ) ) THEN - CAST( - - 56 AS SIGNED ) ELSE NULL END, - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT - - 46 * + NULLIF ( - - CASE - 59 WHEN COUNT ( * ) + + AVG ( DISTINCT + - ( + 51 ) ) THEN - CAST ( - - 56 AS INTEGER ) ELSE NULL END, - 11 )
----
NULL

query I rowsort
SELECT DISTINCT + + 20 * + 69 AS col0
----
1380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3510
SELECT ALL - 2 + - COALESCE ( COALESCE ( + 86, + - 61 ), + - COUNT( * ), + + 78 + - - MIN( DISTINCT + 65 ) + - - 50 DIV 92 * - 44, - 12 ) + 10
----
-78

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL - 2 + - COALESCE ( COALESCE ( + 86, + - 61 ), + - COUNT ( * ), + + 78 + - - MIN ( DISTINCT + 65 ) + - - 50 / 92 * - 44, - 12 ) + 10
----
-78

query II rowsort
SELECT ALL - 42 col0, + 80 col1
----
-42
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT - + 27 + - - CAST( CAST( + 88 AS SIGNED ) AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-3513
SELECT - + 27 + - - CAST ( CAST ( + 88 AS INTEGER ) AS INTEGER )
----
61

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

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

query II rowsort
SELECT + 52 + 42 * + 74 * + 53 + - 92 * - + 29 AS col0, + 96 col0
----
167444
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT DISTINCT 58 + MAX( - ( + 50 ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT 58 + MAX ( - ( + 50 ) ) AS col2
----
8

query I rowsort
SELECT DISTINCT 51 * - 91 col2
----
-4641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3518
SELECT + COALESCE ( - - 66, - - COALESCE ( - ( + - 42 ), 53, + 54 * - 96 + COUNT( * ) + - 63 DIV + 47 ) * CAST( NULL AS SIGNED ) + COUNT( * ), COUNT( * ) + 28 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3518
SELECT + COALESCE ( - - 66, - - COALESCE ( - ( + - 42 ), 53, + 54 * - 96 + COUNT ( * ) + - 63 / + 47 ) * CAST ( NULL AS INTEGER ) + COUNT ( * ), COUNT ( * ) + 28 ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT DISTINCT 97 DIV - 38 - - - 1 + + - ( - 66 ) - - 20 col2
----
83

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT 97 / - 38 - - - 1 + + - ( - 66 ) - - 20 col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL + 88 DIV + - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + 88 / + - 89 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT CAST( - CASE MIN( 34 ) WHEN + - 68 - ( - 53 ) THEN + 32 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT CAST ( - CASE MIN ( 34 ) WHEN + - 68 - ( - 53 ) THEN + 32 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT DISTINCT - 98 DIV - - 1 - 5 + - 95
----
-198

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT - 98 / - - 1 - 5 + - 95
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3523
SELECT DISTINCT 16 * - - 31 * 27 DIV 27, COUNT( * ) col0
----
496
1

skipif mysql # not compatible
query II rowsort label-3523
SELECT DISTINCT 16 * - - 31 * 27 / 27, COUNT ( * ) col0
----
496
1

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

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

query I rowsort
SELECT + 45 * - 71 AS col2
----
-3195

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL MIN( - - 19 ) * COUNT( * ) * + + ( 88 ) + + 4 + + 82
----
1758

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL MIN ( - - 19 ) * COUNT ( * ) * + + ( 88 ) + + 4 + + 82
----
1758

query II rowsort
SELECT ( - 11 ) AS col1, + 41 + + 92 + - 4
----
-11
129

query I rowsort
SELECT + 9 * - 1 * - 60 AS col0
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT - 15 * + + 68 * - - MIN( + + 6 )
----
-6120

skipif mysql # not compatible
query I rowsort label-3529
SELECT - 15 * + + 68 * - - MIN ( + + 6 )
----
-6120

query II rowsort
SELECT 80 * - 90 * - 34 - - 63 AS col1, + NULLIF ( 61, 41 * - + 17 * - 52 * - 60 )
----
244863
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT - 84 * + - SUM( ALL + - 66 ) - 33 * + 14 AS col1
----
-6006

skipif mysql # not compatible
query I rowsort label-3532
SELECT - 84 * + - SUM ( ALL + - 66 ) - 33 * + 14 AS col1
----
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT DISTINCT + MAX( - + 13 ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT + MAX ( - + 13 ) col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL + - CASE + NULLIF ( - + 46, 44 * + - ( - 76 ) * 28 ) WHEN + 89 THEN - ( + CAST( - 11 AS SIGNED ) ) ELSE 60 END
----
-60

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + - CASE + NULLIF ( - + 46, 44 * + - ( - 76 ) * 28 ) WHEN + 89 THEN - ( + CAST ( - 11 AS INTEGER ) ) ELSE 60 END
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT COALESCE ( ( 9 ), - COUNT( * ) + + COALESCE ( - COUNT( * ), 18 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3535
SELECT COALESCE ( ( 9 ), - COUNT ( * ) + + COALESCE ( - COUNT ( * ), 18 ) ) AS col0
----
9

query II rowsort
SELECT + 33 AS col1, + ( 31 ) * + 26
----
33
806

query I rowsort
SELECT - 18 * - 91 - - 3
----
1641

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT + 12 + + + 46 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT + 12 + + + 46 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 47 * - 47 AS col0
----
-2209

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT MAX( ALL - 21 ) AS col2, + 7 * + - 87
----
-21
-609

skipif mysql # not compatible
query II rowsort label-3541
SELECT MAX ( ALL - 21 ) AS col2, + 7 * + - 87
----
-21
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT + - ( + 15 ) * 67 - - + 28 + CASE - 35 WHEN - 34 / + 87 / COUNT( * ) + - - 0 * 77 * 39 + 88 THEN + 20 * - 48 END + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + - ( + 15 ) * 67 - - + 28 + CASE - 35 WHEN - 34 / + 87 / COUNT ( * ) + - - 0 * 77 * 39 + 88 THEN + 20 * - 48 END + 23 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3543
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( ALL - 74 ) + 62 + + 31 * + 45 * 47 + - - CAST( - COUNT( * ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( ALL - 74 ) + 62 + + 31 * + 45 * 47 + - - CAST ( - COUNT ( * ) AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3544
SELECT - - 92 + 0 * + 3 * - 59 / + CAST( NULL AS SIGNED ) * - MIN( ALL - 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT - - 92 + 0 * + 3 * - 59 / + CAST ( NULL AS INTEGER ) * - MIN ( ALL - 9 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 86 + + ( - 53 ) col2
----
33

query I rowsort
SELECT - 14 * + 39 AS col2
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3547
SELECT 67 * - 85 DIV + MAX( - 5 ) AS col1, COUNT( * )
----
1139
1

skipif mysql # not compatible
query II rowsort label-3547
SELECT 67 * - 85 / + MAX ( - 5 ) AS col1, COUNT ( * )
----
1139
1

query I rowsort
SELECT DISTINCT - 3 + + 1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), + 1 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), + 1 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - - NULLIF ( - + 47, - SUM( 0 ) * - + 53 + + 4 )
----
-47

skipif mysql # not compatible
query I rowsort label-3550
SELECT - - NULLIF ( - + 47, - SUM ( 0 ) * - + 53 + + 4 )
----
-47

query I rowsort
SELECT ( - - ( - - 24 ) ) * + 48 * + 92 + + + 62 - - 47 + 88 AS col0
----
106181

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT COUNT( + - 77 ) + + 59 * - + 8 AS col1
----
-471

skipif mysql # not compatible
query I rowsort label-3552
SELECT COUNT ( + - 77 ) + + 59 * - + 8 AS col1
----
-471

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL + 83 * MIN( - ( + + 71 ) ) col2
----
-5893

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + 83 * MIN ( - ( + + 71 ) ) col2
----
-5893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3554
SELECT 73 + COALESCE ( 92, + + 1 * + - 36 + - + 19, - 8 + MIN( - + 16 ) + - + 32 - - CAST( NULL AS SIGNED ) * - + 79 )
----
165

skipif mysql # not compatible
query I rowsort label-3554
SELECT 73 + COALESCE ( 92, + + 1 * + - 36 + - + 19, - 8 + MIN ( - + 16 ) + - + 32 - - CAST ( NULL AS INTEGER ) * - + 79 )
----
165

query I rowsort
SELECT DISTINCT + 11 - - 38 AS col2
----
49

query I rowsort
SELECT ALL - 56 * - 11 AS col1
----
616

query II rowsort
SELECT DISTINCT + 2 * - - 43, 72 AS col1
----
86
72

query II rowsort
SELECT DISTINCT 4 - + 94 AS col0, - 41
----
-90
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3559
SELECT 93 DIV - COALESCE ( + 7, + MAX( 12 ) + COUNT( ALL + 62 ) ) - + CAST( 55 AS SIGNED ) * - + 16 * - 76 AS col0
----
-66893

skipif mysql # not compatible
query I rowsort label-3559
SELECT 93 / - COALESCE ( + 7, + MAX ( 12 ) + COUNT ( ALL + 62 ) ) - + CAST ( 55 AS INTEGER ) * - + 16 * - 76 AS col0
----
-66893

query I rowsort
SELECT 8 + + 32
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT - COUNT( * ) - - 17 * - 1 * + 56
----
-953

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT - COUNT ( * ) - - 17 * - 1 * + 56
----
-953

query I rowsort
SELECT ALL - CASE - 4 WHEN - - ( 90 ) * 79 / - 46 THEN NULL WHEN - 22 THEN - - 8 END
----
NULL

query I rowsort
SELECT ALL 97 * 11
----
1067

query I rowsort
SELECT 85 * + 48 + - ( ( 82 ) ) AS col0
----
3998

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

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL - COALESCE ( - COUNT ( * ), + - 32 )
----
1

query II rowsort
SELECT DISTINCT - ( + 47 ) AS col1, + 55 + - 9 AS col1
----
-47
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT 49 * + + 65 + COUNT( * ) AS col0
----
3186

skipif mysql # not compatible
query I rowsort label-3567
SELECT 49 * + + 65 + COUNT ( * ) AS col0
----
3186

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT + CASE + 58 WHEN - 21 THEN NULL WHEN - 87 THEN 25 * COUNT( * ) * + COUNT( * ) - - 47 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT + CASE + 58 WHEN - 21 THEN NULL WHEN - 87 THEN 25 * COUNT ( * ) * + COUNT ( * ) - - 47 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 56 - + - 8 - 34 / + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 56 - + - 8 - 34 / + 68 AS col2
----
NULL

query I rowsort
SELECT 13 * - ( + ( + - 93 ) ) col1
----
1209

query I rowsort
SELECT DISTINCT - 99 + 84 AS col1
----
-15

query I rowsort
SELECT - + CASE - 82 WHEN 74 THEN - 32 + - 29 ELSE + 15 END
----
-15

query I rowsort
SELECT ALL 29 + - + 93
----
-64

query I rowsort
SELECT + 12 * - 62 + + + 40 AS col0
----
-704

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT ALL + 74 * + 70 * + 1 AS col0, + 44 * - COUNT( * ) AS col1
----
5180
-44

skipif mysql # not compatible
query II rowsort label-3575
SELECT ALL + 74 * + 70 * + 1 AS col0, + 44 * - COUNT ( * ) AS col1
----
5180
-44

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3577
SELECT - NULLIF ( - 99, + ( - CASE + 39 WHEN - 71 + + 33 THEN NULL WHEN + + 78 THEN - 11 ELSE - COUNT( * ) / CAST( 50 AS SIGNED ) END ) * - CAST( ( - COUNT( * ) ) / ( COUNT( * ) ) AS SIGNED ) )
----
99

skipif mysql # not compatible
query I rowsort label-3577
SELECT - NULLIF ( - 99, + ( - CASE + 39 WHEN - 71 + + 33 THEN NULL WHEN + + 78 THEN - 11 ELSE - COUNT ( * ) / CAST ( 50 AS INTEGER ) END ) * - CAST ( ( - COUNT ( * ) ) / ( COUNT ( * ) ) AS INTEGER ) )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3578
SELECT - CAST( + 34 AS SIGNED ) AS col1, - 2 AS col0
----
-34
-2

skipif mysql # not compatible
query II rowsort label-3578
SELECT - CAST ( + 34 AS INTEGER ) AS col1, - 2 AS col0
----
-34
-2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3580
SELECT ALL 18 * COALESCE ( + 29, + 52 * - 81 + + - 30 - + 89, 39 * MIN( ALL - 20 ) DIV CAST( NULL AS SIGNED ) + 53 ) DIV 82
----
6

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL 18 * COALESCE ( + 29, + 52 * - 81 + + - 30 - + 89, 39 * MIN ( ALL - 20 ) / CAST ( NULL AS INTEGER ) + 53 ) / 82
----
6

query I rowsort
SELECT DISTINCT 40 * + - 97
----
-3880

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ( - - 63 ) + - - COUNT( * ) * + 67 + - 24 + 76 + 78 AS col0
----
260

skipif mysql # not compatible
query I rowsort label-3584
SELECT ( - - 63 ) + - - COUNT ( * ) * + 67 + - 24 + 76 + 78 AS col0
----
260

query I rowsort
SELECT 8 + - 22
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT MAX( DISTINCT + + 51 ) * + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3586
SELECT MAX ( DISTINCT + + 51 ) * + COUNT ( * ) AS col2
----
51

query I rowsort
SELECT 18 + 34
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT DISTINCT - COUNT( * ) * - 65 * MIN( DISTINCT + 45 ) AS col2
----
2925

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - COUNT ( * ) * - 65 * MIN ( DISTINCT + 45 ) AS col2
----
2925

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

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL SUM ( 5 )
----
5

query I rowsort
SELECT ALL 91 * 45
----
4095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3591
SELECT 8 * 77 DIV + SUM( ALL - 39 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3591
SELECT 8 * 77 / + SUM ( ALL - 39 ) AS col2
----
-15

query I rowsort
SELECT DISTINCT + 8 * - + 63
----
-504

query I rowsort
SELECT DISTINCT - 0 * - 71 + 19 * + 56 * ( + + 20 ) AS col2
----
21280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) / 99 - - + ( CASE 64 WHEN 50 + + 7 THEN + 79 * + + 49 ELSE NULL END ) + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / 99 - - + ( CASE 64 WHEN 50 + + 7 THEN + 79 * + + 49 ELSE NULL END ) + 63 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3595
SELECT 7 + - 98 + + - ( COALESCE ( + - COUNT( DISTINCT + + 76 ), + 4 * - 2 * - CAST( NULL AS SIGNED ) * - 1 * CASE + + 37 WHEN + COUNT( + 45 ) * ( COALESCE ( + 99, - COUNT( * ) - CAST( - 86 AS SIGNED ), + 95 ) ) THEN - 76 WHEN - 5 THEN NULL ELSE 2 * 95 END ) ) + ( - COUNT( * ) + 84 ) DIV COUNT( * ) * + 74 AS col1
----
6052

skipif mysql # not compatible
query I rowsort label-3595
SELECT 7 + - 98 + + - ( COALESCE ( + - COUNT ( DISTINCT + + 76 ), + 4 * - 2 * - CAST ( NULL AS INTEGER ) * - 1 * CASE + + 37 WHEN + COUNT ( + 45 ) * ( COALESCE ( + 99, - COUNT ( * ) - CAST ( - 86 AS INTEGER ), + 95 ) ) THEN - 76 WHEN - 5 THEN NULL ELSE 2 * 95 END ) ) + ( - COUNT ( * ) + 84 ) / COUNT ( * ) * + 74 AS col1
----
6052

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT - MAX( ALL + ( 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT - MAX ( ALL + ( 59 ) )
----
-59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL - CAST( 76 AS SIGNED ) + - - 82 + - COUNT( * ) + + - CASE 14 WHEN - COALESCE ( - - 23, 72 + COALESCE ( - - 63, - - 22 ) + - 58, COUNT( ALL - 46 ) + 10 * - 5 ) / 42 THEN - AVG ( DISTINCT - 27 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - CAST ( 76 AS INTEGER ) + - - 82 + - COUNT ( * ) + + - CASE 14 WHEN - COALESCE ( - - 23, 72 + COALESCE ( - - 63, - - 22 ) + - 58, COUNT ( ALL - 46 ) + 10 * - 5 ) / 42 THEN - AVG ( DISTINCT - 27 ) END AS col2
----
NULL

query I rowsort
SELECT + - 59 * 37 AS col1
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT + SUM( + 48 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-3600
SELECT + SUM ( + 48 ) col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT COUNT( * ) * + - 82 - + + 60 AS col1, - 40 AS col0
----
-142
-40

skipif mysql # not compatible
query II rowsort label-3601
SELECT COUNT ( * ) * + - 82 - + + 60 AS col1, - 40 AS col0
----
-142
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT - + 40 + - 10 + - 54 + + ( 92 ) * - + MAX( 97 ) * + 14 + 87 AS col1
----
-124953

skipif mysql # not compatible
query I rowsort label-3602
SELECT - + 40 + - 10 + - 54 + + ( 92 ) * - + MAX ( 97 ) * + 14 + 87 AS col1
----
-124953

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT COUNT( ALL - - 28 ) * + 24 + + - 42
----
-18

skipif mysql # not compatible
query I rowsort label-3604
SELECT COUNT ( ALL - - 28 ) * + 24 + + - 42
----
-18

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3606
SELECT ALL 58 DIV + 68 AS col1, + 79 AS col1
----
0
79

skipif mysql # not compatible
query II rowsort label-3606
SELECT ALL 58 / + 68 AS col1, + 79 AS col1
----
0
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT + ( + 85 ) DIV 41 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3607
SELECT + ( + 85 ) / 41 AS col0
----
2

query I rowsort
SELECT + 46 * + + 23
----
1058

query I rowsort
SELECT + 57 + + - 49 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3610
SELECT + 22 + - - 2, NULLIF ( + 23, + COUNT( * ) ) DIV ( + 78 ) col0
----
24
0

skipif mysql # not compatible
query II rowsort label-3610
SELECT + 22 + - - 2, NULLIF ( + 23, + COUNT ( * ) ) / ( + 78 ) col0
----
24
0

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

query II rowsort
SELECT - 98 + 76 * + 72 * - - 27 + + - 96 AS col1, 47 * 11 * 13 * 24
----
147550
161304

query I rowsort
SELECT - 15 * - + 83
----
1245

query I rowsort
SELECT DISTINCT 50 + 64
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT + 79 + + 63 + - 53 * - COALESCE ( - CASE CAST( NULL AS SIGNED ) WHEN + 97 * 53 THEN 11 END, + - 39 ) * + + ( + 45 ) AS col0
----
-92873

skipif mysql # not compatible
query I rowsort label-3615
SELECT + 79 + + 63 + - 53 * - COALESCE ( - CASE CAST ( NULL AS INTEGER ) WHEN + 97 * 53 THEN 11 END, + - 39 ) * + + ( + 45 ) AS col0
----
-92873

query I rowsort
SELECT ALL 85 + - 17 AS col2
----
68

query I rowsort
SELECT DISTINCT + 76 + + 35
----
111

query I rowsort
SELECT + 67 + - + 46 + - 60
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT - 71 DIV + + 18 - + 10 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3619
SELECT - 71 / + + 18 - + 10 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ( - MAX( ALL 24 ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3620
SELECT ( - MAX ( ALL 24 ) ) AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT + 44 DIV - 2
----
-22

skipif mysql # not compatible
query I rowsort label-3621
SELECT + 44 / - 2
----
-22

query I rowsort
SELECT ALL - 92 * 84 + - 74 + + + 53 AS col2
----
-7749

query I rowsort
SELECT - + 54 + - 85 AS col1
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT DISTINCT - - CAST( + COUNT( * ) AS SIGNED ) * + - ( - 48 ) + - 54 + + - ( - 89 ) - + - NULLIF ( 10, + 27 + - NULLIF ( - COUNT( * ), 64 * - 65 * 72 + CAST( 1 + 83 AS SIGNED ) ) ) * 45 * - 33
----
-14767

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS INTEGER ) * + - ( - 48 ) + - 54 + + - ( - 89 ) - + - NULLIF ( 10, + 27 + - NULLIF ( - COUNT ( * ), 64 * - 65 * 72 + CAST ( 1 + 83 AS INTEGER ) ) ) * 45 * - 33
----
-14767

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT ALL + SUM( ALL + + 22 ) AS col0, + 17 + - 39 AS col1
----
22
-22

skipif mysql # not compatible
query II rowsort label-3625
SELECT ALL + SUM ( ALL + + 22 ) AS col0, + 17 + - 39 AS col1
----
22
-22

query I rowsort
SELECT DISTINCT - - CASE WHEN NOT NULL <> + 73 THEN - 90 + + 54 ELSE NULL END * + 90 * - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT - - 22 * - - 16 * + - ( - + SUM( ALL - 60 ) ) * MIN( 86 ) + - 83 + - + ( + 44 ) + - - 93 AS col2
----
-1816354

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - - 22 * - - 16 * + - ( - + SUM ( ALL - 60 ) ) * MIN ( 86 ) + - 83 + - + ( + 44 ) + - - 93 AS col2
----
-1816354

query II rowsort
SELECT - 50 + 40, ( + + 71 ) AS col2
----
-10
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3629
SELECT MIN( + 65 ) * - 56 + + 26 - + MIN( DISTINCT + 60 ) + 27 * + COUNT( * ) + + - 2 + + COUNT( * ) DIV 14
----
-3649

skipif mysql # not compatible
query I rowsort label-3629
SELECT MIN ( + 65 ) * - 56 + + 26 - + MIN ( DISTINCT + 60 ) + 27 * + COUNT ( * ) + + - 2 + + COUNT ( * ) / 14
----
-3649

query I rowsort
SELECT - + 52 * + COALESCE ( + - 74, - + 58 ) * - 91 AS col1
----
-350168

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

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

query I rowsort
SELECT ALL + 92 * CASE 80 WHEN - 35 - + 4 + + - 16 + 36 THEN NULL ELSE - 19 END
----
-1748

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

skipif mysql # not compatible
query I rowsort label-3633
SELECT - CAST ( NULL AS INTEGER ) * ( + 80 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT DISTINCT + 81 DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + 81 / 90 AS col2
----
0

query I rowsort
SELECT + + 53 * + - 16 + - 5 AS col1
----
-853

query I rowsort
SELECT - COALESCE ( + 58, + 30 ) - + + 18 AS col0
----
-76

query I rowsort
SELECT - CASE 3 WHEN - 56 + + - 59 + - ( - 17 ) * 62 THEN + + ( - + 9 ) + + 99 WHEN - + 77 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 16 + - 58
----
-74

query II rowsort
SELECT DISTINCT 76 AS col0, 73 AS col2
----
76
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3640
SELECT + 98 * - CAST( NULL AS SIGNED ) * 59, - NULLIF ( + + COUNT( * ), - - 15 + + NULLIF ( - 73, - 60 + 69 ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3640
SELECT + 98 * - CAST ( NULL AS INTEGER ) * 59, - NULLIF ( + + COUNT ( * ), - - 15 + + NULLIF ( - 73, - 60 + 69 ) ) AS col1
----
NULL
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT + 16 DIV + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3641
SELECT + 16 / + 95 AS col2
----
0

query I rowsort
SELECT ALL 80 + + ( + 57 ) AS col2
----
137

query I rowsort
SELECT + 86 - 37 * 0
----
86

query I rowsort
SELECT DISTINCT + 7 + - 89
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT - 53 + - MAX( ALL + 8 )
----
-61

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT - 53 + - MAX ( ALL + 8 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3646
SELECT ALL CAST( - 40 AS SIGNED ) DIV - 6, - 11 * - + 57 AS col0
----
6
627

skipif mysql # not compatible
query II rowsort label-3646
SELECT ALL CAST ( - 40 AS INTEGER ) / - 6, - 11 * - + 57 AS col0
----
6
627

query I rowsort
SELECT ALL 44 + - - 47 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3648
SELECT - CASE - + ( 87 ) WHEN - + CASE + 1 WHEN COUNT( * ) * - 56 - - 55 THEN + 30 * + ( 7 ) * - CAST( NULL AS SIGNED ) * + 63 + 76 END * 52 * + COUNT( * ) + - 23 THEN + 53 END * 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT - CASE - + ( 87 ) WHEN - + CASE + 1 WHEN COUNT ( * ) * - 56 - - 55 THEN + 30 * + ( 7 ) * - CAST ( NULL AS INTEGER ) * + 63 + 76 END * 52 * + COUNT ( * ) + - 23 THEN + 53 END * 62 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3649
SELECT - 26 + COALESCE ( + 13, + 63, + 30 ) + - 99 * + - CAST( COUNT( * ) AS DECIMAL ) * + 18 * CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT - 26 + COALESCE ( + 13, + 63, + 30 ) + - 99 * + - CAST ( COUNT ( * ) AS REAL ) * + 18 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-3650
SELECT - CAST ( NULL AS INTEGER ) AS col1, 16 AS col1
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + 3 + + COALESCE ( + + 94, - ( + 89 ), - COUNT( * ) ) + + COUNT( DISTINCT + - 10 ) + - + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-3651
SELECT + 3 + + COALESCE ( + + 94, - ( + 89 ), - COUNT ( * ) ) + + COUNT ( DISTINCT + - 10 ) + - + COUNT ( * )
----
97

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

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

query II rowsort
SELECT ALL 13 AS col1, + 97 - 30 + 18
----
13
85

query I rowsort
SELECT DISTINCT 67 + 61 AS col2
----
128

query I rowsort
SELECT COALESCE ( + 7, - 37 ) * + 8 AS col1
----
56

query I rowsort
SELECT ALL - 19 * + 44 AS col0
----
-836

query II rowsort
SELECT 92 AS col0, - 45 - + 28
----
92
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3658
SELECT ALL CASE - NULLIF ( - 25, + - 75 ) WHEN - 19 THEN NULL WHEN - 14 THEN NULL ELSE 64 END - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL CASE - NULLIF ( - 25, + - 75 ) WHEN - 19 THEN NULL WHEN - 14 THEN NULL ELSE 64 END - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 70 - 63 + - 87
----
-220

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3660
SELECT DISTINCT - 39 AS col1, - CASE 88 WHEN - 63 THEN NULL WHEN COALESCE ( 83, 49 * - COALESCE ( + ( COUNT( * ) ), + + 74 + + 33 + + + CAST( NULL AS DECIMAL ) * + CASE - 27 WHEN 20 + 25 / 98 THEN + 78 ELSE NULL END ) * 95, ( 3 ) / + 45 ) THEN 45 * - 83 ELSE 54 + 0 END * - 42 + - ( MIN( + 5 ) ) AS col2
----
-39
2263

skipif mysql # not compatible
query II rowsort label-3660
SELECT DISTINCT - 39 AS col1, - CASE 88 WHEN - 63 THEN NULL WHEN COALESCE ( 83, 49 * - COALESCE ( + ( COUNT ( * ) ), + + 74 + + 33 + + + CAST ( NULL AS REAL ) * + CASE - 27 WHEN 20 + 25 / 98 THEN + 78 ELSE NULL END ) * 95, ( 3 ) / + 45 ) THEN 45 * - 83 ELSE 54 + 0 END * - 42 + - ( MIN ( + 5 ) ) AS col2
----
-39
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT - COUNT( * ) * + 4 * + 77 * - 11 - + 96 + - 74 + + COUNT( * )
----
3219

skipif mysql # not compatible
query I rowsort label-3661
SELECT - COUNT ( * ) * + 4 * + 77 * - 11 - + 96 + - 74 + + COUNT ( * )
----
3219

query I rowsort
SELECT - 65 + 2 col2
----
-63

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

skipif mysql # not compatible
query I rowsort label-3663
SELECT - MAX ( 78 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3664
SELECT + 87 - COUNT( * ) - + NULLIF ( - 55, - COUNT( * ) DIV - - COALESCE ( + + 79, - - 7 + NULLIF ( + 40, + 77 ) ) + + ( ( - + NULLIF ( - 50, - 49 * - ( 68 * ( 73 ) ) + + 52 ) ) ) ) DIV 91 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3664
SELECT + 87 - COUNT ( * ) - + NULLIF ( - 55, - COUNT ( * ) / - - COALESCE ( + + 79, - - 7 + NULLIF ( + 40, + 77 ) ) + + ( ( - + NULLIF ( - 50, - 49 * - ( 68 * ( 73 ) ) + + 52 ) ) ) ) / 91 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL - SUM( 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - SUM ( 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + 0 * + MIN( DISTINCT + 2 ) - COALESCE ( 12, - + 11 - + + ( ( - + 27 ) ) )
----
-12

skipif mysql # not compatible
query I rowsort label-3666
SELECT + 0 * + MIN ( DISTINCT + 2 ) - COALESCE ( 12, - + 11 - + + ( ( - + 27 ) ) )
----
-12

query I rowsort
SELECT + 14 + 49 + + 89
----
152

query I rowsort
SELECT ALL 98 * - - 13 + + + 60 * + 61
----
4934

query I rowsort
SELECT DISTINCT - - 54 * - 66
----
-3564

query I rowsort
SELECT DISTINCT + 35 * - 27 col1
----
-945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3671
SELECT CAST( COALESCE ( + + CAST( 84 AS SIGNED ), - 91, - 6 ) AS SIGNED ) * + 1 + 1 - 3 DIV - ( - + 82 ) * + 39 DIV + 39 - - COUNT( * ) * 71 * + 68
----
4913

skipif mysql # not compatible
query I rowsort label-3671
SELECT CAST ( COALESCE ( + + CAST ( 84 AS INTEGER ), - 91, - 6 ) AS INTEGER ) * + 1 + 1 - 3 / - ( - + 82 ) * + 39 / + 39 - - COUNT ( * ) * 71 * + 68
----
4913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3672
SELECT COUNT( * ) + - + 41 + - 89 * - SUM( - 75 ) * 59 DIV + - COUNT( * ) col2
----
393785

skipif mysql # not compatible
query I rowsort label-3672
SELECT COUNT ( * ) + - + 41 + - 89 * - SUM ( - 75 ) * 59 / + - COUNT ( * ) col2
----
393785

query II rowsort
SELECT ALL 23 AS col1, 4 AS col0
----
23
4

query II rowsort
SELECT DISTINCT + 21 + + 44 AS col1, 65
----
65
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + MIN( ALL - - 7 ) * + SUM( + + ( ( - 62 ) ) ) * 72
----
-31248

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + MIN ( ALL - - 7 ) * + SUM ( + + ( ( - 62 ) ) ) * 72
----
-31248

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3677
SELECT 98 + - - COUNT( * ) * + 92 DIV - 44 - + + 52 * 1 AS col1, 0 + + 6 + - - 65 * 47
----
44
3061

skipif mysql # not compatible
query II rowsort label-3677
SELECT 98 + - - COUNT ( * ) * + 92 / - 44 - + + 52 * 1 AS col1, 0 + + 6 + - - 65 * 47
----
44
3061

onlyif mysql # DIV for integer division: 
query II rowsort label-3678
SELECT 7 + + 29 * + 38 + + 15 AS col1, - NULLIF ( - 89, - 43 * + 56 + + 46 ) - + 86 + - 73 + - 40 DIV 37 + + + 80 * - 42 * 69 * 42 AS col0
----
1124
-9737351

skipif mysql # not compatible
query II rowsort label-3678
SELECT 7 + + 29 * + 38 + + 15 AS col1, - NULLIF ( - 89, - 43 * + 56 + + 46 ) - + 86 + - 73 + - 40 / 37 + + + 80 * - 42 * 69 * 42 AS col0
----
1124
-9737351

query I rowsort
SELECT 10 * 77
----
770

onlyif mysql # DIV for integer division: 
query II rowsort label-3680
SELECT 36 AS col2, 55 DIV COALESCE ( 20, + 84 + + - 89 DIV 59 )
----
36
2

skipif mysql # not compatible
query II rowsort label-3680
SELECT 36 AS col2, 55 / COALESCE ( 20, + 84 + + - 89 / 59 )
----
36
2

query II rowsort
SELECT ALL 57 AS col2, 35 AS col1
----
57
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT ALL 84 DIV + 87 * - 30
----
0

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL 84 / + 87 * - 30
----
0

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

skipif mysql # not compatible
query I rowsort label-3683
SELECT 42 + + + COUNT ( * ) / + - 33 + 11
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3684
SELECT ALL - CAST( + 23 AS SIGNED ) - - 69 - - + 90 DIV + 64 - 44 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - CAST ( + 23 AS INTEGER ) - - 69 - - + 90 / + 64 - 44 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT 34 + + 93 + - 66 DIV + 99 * + - ( + 12 ) - + + 25 + + 31
----
133

skipif mysql # not compatible
query I rowsort label-3685
SELECT 34 + + 93 + - 66 / + 99 * + - ( + 12 ) - + + 25 + + 31
----
133

query I rowsort
SELECT - 96 * + + 73 * 3 AS col0
----
-21024

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

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

query I rowsort
SELECT + 5 + - 5
----
0

query I rowsort
SELECT 26 * 40 * 62 AS col0
----
64480

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

query II rowsort
SELECT DISTINCT - 85 AS col0, - 7 * + 72 AS col1
----
-85
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT ALL - + 88 AS col0, + SUM( DISTINCT + + 19 ) * COUNT( * ) AS col0
----
-88
19

skipif mysql # not compatible
query II rowsort label-3692
SELECT ALL - + 88 AS col0, + SUM ( DISTINCT + + 19 ) * COUNT ( * ) AS col0
----
-88
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT - COALESCE ( + 97, + 9, COUNT( * ) + - 83 * - 63, + ( COUNT( * ) ) * + 24 * + 54 - - COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-3693
SELECT - COALESCE ( + 97, + 9, COUNT ( * ) + - 83 * - 63, + ( COUNT ( * ) ) * + 24 * + 54 - - COUNT ( * ) )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT + 48 DIV 61 + - 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-3694
SELECT + 48 / 61 + - 35 col0
----
-35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3696
SELECT DISTINCT - 64 AS col2, - NULLIF ( - 4, 18 * COALESCE ( 4, + + 52, + + COUNT( * ) * - + COUNT( DISTINCT - 85 ) + - 56 ) ) DIV - 38 - + 41
----
-64
-41

skipif mysql # not compatible
query II rowsort label-3696
SELECT DISTINCT - 64 AS col2, - NULLIF ( - 4, 18 * COALESCE ( 4, + + 52, + + COUNT ( * ) * - + COUNT ( DISTINCT - 85 ) + - 56 ) ) / - 38 - + 41
----
-64
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT + 14 * + COUNT( * ) + 54 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT + 14 * + COUNT ( * ) + 54 AS col0
----
68

query II rowsort
SELECT ALL - - 51 AS col2, 36 + 49
----
51
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT DISTINCT - COALESCE ( 15, - COUNT( * ) * COUNT( * ) + + + 99, + 19 ) AS col2, COUNT( DISTINCT + - 72 )
----
-15
1

skipif mysql # not compatible
query II rowsort label-3700
SELECT DISTINCT - COALESCE ( 15, - COUNT ( * ) * COUNT ( * ) + + + 99, + 19 ) AS col2, COUNT ( DISTINCT + - 72 )
----
-15
1

query I rowsort
SELECT ALL 95 + + 56 col1
----
151

onlyif mysql # DIV for integer division: 
query II rowsort label-3702
SELECT - 0 AS col2, ( - + 62 ) DIV COALESCE ( - - 57, 23 ) * + 93 * + 19 + - 35 * - 43 + + + 2 AS col1
----
0
-260

skipif mysql # not compatible
query II rowsort label-3702
SELECT - 0 AS col2, ( - + 62 ) / COALESCE ( - - 57, 23 ) * + 93 * + 19 + - 35 * - 43 + + + 2 AS col1
----
0
-260

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT ALL 9 + - COUNT( * ) AS col0, + 51
----
8
51

skipif mysql # not compatible
query II rowsort label-3703
SELECT ALL 9 + - COUNT ( * ) AS col0, + 51
----
8
51

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

skipif mysql # not compatible
query I rowsort label-3704
SELECT + 79 * COUNT ( * ) + - 96 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3705
SELECT CASE + + 63 WHEN 10 THEN NULL WHEN + - ( + COUNT( * ) ) * + + 95 + + NULLIF ( - 5, + - 65 + + CAST( NULL AS SIGNED ) ) * + CASE - 17 WHEN 73 * 96 * 11 - - 40 THEN - ( + 76 ) + + 9 WHEN + ( - 96 ) THEN - 86 ELSE NULL END THEN 18 ELSE 5 END + + COUNT( - 50 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3705
SELECT CASE + + 63 WHEN 10 THEN NULL WHEN + - ( + COUNT ( * ) ) * + + 95 + + NULLIF ( - 5, + - 65 + + CAST ( NULL AS INTEGER ) ) * + CASE - 17 WHEN 73 * 96 * 11 - - 40 THEN - ( + 76 ) + + 9 WHEN + ( - 96 ) THEN - 86 ELSE NULL END THEN 18 ELSE 5 END + + COUNT ( - 50 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3706
SELECT ALL + 14 DIV - - CAST( 37 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + 14 / - - CAST ( 37 AS INTEGER ) AS col0
----
0

query II rowsort
SELECT + 1 AS col0, 59
----
1
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT - + CASE - 86 WHEN 79 * 75 + - 68 + 60 * 81 THEN NULL WHEN 41 THEN 90 END * COUNT( * ) * + 26 + 45 / + ( + - CASE 44 WHEN - 77 * ( COALESCE ( 86, 26 * 22 ) * + 1 + 0 * 54 ) THEN - 9 * NULLIF ( - CAST( NULL AS SIGNED ), + ( + 3 ) ) - 42 WHEN - 58 THEN - 66 WHEN 51 * - 94 THEN NULL ELSE NULL END ) * + 18 + + 68 + 28 * ( 59 + 69 * - CAST( 27 * - COUNT( * ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT - + CASE - 86 WHEN 79 * 75 + - 68 + 60 * 81 THEN NULL WHEN 41 THEN 90 END * COUNT ( * ) * + 26 + 45 / + ( + - CASE 44 WHEN - 77 * ( COALESCE ( 86, 26 * 22 ) * + 1 + 0 * 54 ) THEN - 9 * NULLIF ( - CAST ( NULL AS INTEGER ), + ( + 3 ) ) - 42 WHEN - 58 THEN - 66 WHEN 51 * - 94 THEN NULL ELSE NULL END ) * + 18 + + 68 + 28 * ( 59 + 69 * - CAST ( 27 * - COUNT ( * ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3709
SELECT + COUNT( 87 ), 73 AS col1
----
1
73

skipif mysql # not compatible
query II rowsort label-3709
SELECT + COUNT ( 87 ), 73 AS col1
----
1
73

query I rowsort
SELECT DISTINCT + 25 + - 12
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL - CAST( + + 14 AS SIGNED ) * 60
----
-840

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - CAST ( + + 14 AS INTEGER ) * 60
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL MAX( 79 ) + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL MAX ( 79 ) + - COUNT ( * )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3713
SELECT 20 DIV 52, MAX( DISTINCT + + 33 ) col2
----
0
33

skipif mysql # not compatible
query II rowsort label-3713
SELECT 20 / 52, MAX ( DISTINCT + + 33 ) col2
----
0
33

query I rowsort
SELECT ALL - NULLIF ( 89, - 12 ) + - 70 AS col2
----
-159

query I rowsort
SELECT 27 * + + 98 col1
----
2646

query I rowsort
SELECT ALL 62 * + - 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT ALL ( + 51 ) + + CAST( - SUM( + 22 ) AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL ( + 51 ) + + CAST ( - SUM ( + 22 ) AS INTEGER ) AS col2
----
29

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT - NULLIF ( 67, + ( - COUNT( * ) ) )
----
-67

skipif mysql # not compatible
query I rowsort label-3720
SELECT - NULLIF ( 67, + ( - COUNT ( * ) ) )
----
-67

query I rowsort
SELECT 52 + - 28 + + 13 + - 58 + + 69 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT COUNT( 49 ) * - 41 * 99 * + - COUNT( * )
----
4059

skipif mysql # not compatible
query I rowsort label-3722
SELECT COUNT ( 49 ) * - 41 * 99 * + - COUNT ( * )
----
4059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3723
SELECT ALL + CAST( COUNT( DISTINCT - + 93 ) AS SIGNED ) - 32 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + CAST ( COUNT ( DISTINCT - + 93 ) AS INTEGER ) - 32 AS col1
----
-31

query I rowsort
SELECT DISTINCT - 45 * 85
----
-3825

query II rowsort
SELECT DISTINCT - 53 * + 68 AS col2, 73
----
-3604
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT - - 48 + + + 73 + 30 AS col2, COUNT( * ) + NULLIF ( + - 30, ( - 26 ) / + 86 ) col2
----
151
-29

skipif mysql # not compatible
query II rowsort label-3726
SELECT - - 48 + + + 73 + 30 AS col2, COUNT ( * ) + NULLIF ( + - 30, ( - 26 ) / + 86 ) col2
----
151
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT - - 31 * 38 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT - - 31 * 38 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 4 * + 8
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3729
SELECT - MAX( - 4 ) AS col0, + 80 * + 89
----
4
7120

skipif mysql # not compatible
query II rowsort label-3729
SELECT - MAX ( - 4 ) AS col0, + 80 * + 89
----
4
7120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3730
SELECT - COUNT( + 50 ) DIV + COALESCE ( - CAST( NULL AS SIGNED ), - 73 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT - COUNT ( + 50 ) / + COALESCE ( - CAST ( NULL AS INTEGER ), - 73 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL - COUNT( * ) * - NULLIF ( + 67, + + CASE + - 11 WHEN + 40 THEN 21 ELSE NULL END * - + 51 * - + 15 ) * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL - COUNT ( * ) * - NULLIF ( + 67, + + CASE + - 11 WHEN + 40 THEN 21 ELSE NULL END * - + 51 * - + 15 ) * 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3732
SELECT DISTINCT - CASE 86 WHEN 22 * + SUM( - + NULLIF ( 21, - 72 / - - 74 * - 34 ) ) - + 87 THEN - - CAST( - 47 AS SIGNED ) * 95 + 67 + 1 END / - 1 * + 27 + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - CASE 86 WHEN 22 * + SUM ( - + NULLIF ( 21, - 72 / - - 74 * - 34 ) ) - + 87 THEN - - CAST ( - 47 AS INTEGER ) * 95 + 67 + 1 END / - 1 * + 27 + - 75
----
NULL

query I rowsort
SELECT ALL + 63 * 91 + + 31 AS col2
----
5764

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3734
SELECT + 41 / 45 + + 56 + CASE + AVG ( 63 ) WHEN 96 THEN 4 + - 75 WHEN + 38 THEN COALESCE ( + + 55, + MAX( DISTINCT - CASE + + 60 WHEN + 30 + CAST( 56 AS DECIMAL ) * 76 THEN NULL ELSE + 30 END ) * 2 ) * + 46 END + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT + 41 / 45 + + 56 + CASE + AVG ( 63 ) WHEN 96 THEN 4 + - 75 WHEN + 38 THEN COALESCE ( + + 55, + MAX ( DISTINCT - CASE + + 60 WHEN + 30 + CAST ( 56 AS REAL ) * 76 THEN NULL ELSE + 30 END ) * 2 ) * + 46 END + - 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT ALL - 84 * + 65 - + - 24 + 28 - - 47 * - ( COUNT( * ) ) AS col1, 45 AS col1
----
-5455
45

skipif mysql # not compatible
query II rowsort label-3735
SELECT ALL - 84 * + 65 - + - 24 + 28 - - 47 * - ( COUNT ( * ) ) AS col1, 45 AS col1
----
-5455
45

query II rowsort
SELECT ALL - 85 * - 64 AS col1, - 41 * + - NULLIF ( + 87, + NULLIF ( - 8, - 56 ) * + - 7 )
----
5440
3567

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT + COALESCE ( 37, + + 43 ) * + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3737
SELECT + COALESCE ( 37, + + 43 ) * + COUNT ( * )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3738
SELECT ALL + ( + + NULLIF ( + 57, CAST( 18 AS SIGNED ) ) ) * + COUNT( * ) + 66 DIV COUNT( * ) DIV 22 + 26 * - ( - 32 ) + COUNT( * ) AS col1
----
893

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + ( + + NULLIF ( + 57, CAST ( 18 AS INTEGER ) ) ) * + COUNT ( * ) + 66 / COUNT ( * ) / 22 + 26 * - ( - 32 ) + COUNT ( * ) AS col1
----
893

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - + COALESCE ( + COALESCE ( - 64, - + SUM( + - ( - 43 ) ) ), + 0 ) * 97 * - 34 + - COUNT( ALL + 46 ) AS col2
----
-211073

skipif mysql # not compatible
query I rowsort label-3739
SELECT - + COALESCE ( + COALESCE ( - 64, - + SUM ( + - ( - 43 ) ) ), + 0 ) * 97 * - 34 + - COUNT ( ALL + 46 ) AS col2
----
-211073

query I rowsort
SELECT + 63 + - + 2 AS col1
----
61

query I rowsort
SELECT ALL 56 * 15 + - 47 + - 11 AS col2
----
782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT + 75 * + CAST( - + 83 AS SIGNED ) * + + 92 + + SUM( ALL - 85 ) * - 43 + 39 * - 20
----
-569825

skipif mysql # not compatible
query I rowsort label-3742
SELECT + 75 * + CAST ( - + 83 AS INTEGER ) * + + 92 + + SUM ( ALL - 85 ) * - 43 + 39 * - 20
----
-569825

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT + NULLIF ( - 6, + COUNT( * ) * - - 10 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3743
SELECT + NULLIF ( - 6, + COUNT ( * ) * - - 10 ) AS col2
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3744
SELECT + 3 + + CAST( NULL AS DECIMAL ) + 44 / 12 + + 7 + - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT + 3 + + CAST ( NULL AS REAL ) + 44 / 12 + + 7 + - 30 AS col0
----
NULL

query I rowsort
SELECT - 99 * - 86 - + 60 AS col2
----
8454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3746
SELECT DISTINCT MIN( ALL + CAST( NULL AS SIGNED ) ) / - 61 * + + 44 * CASE + + 58 WHEN 77 THEN COUNT( * ) WHEN + 2 THEN NULL ELSE - 49 * + - 63 + + + 59 END * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT MIN ( ALL + CAST ( NULL AS INTEGER ) ) / - 61 * + + 44 * CASE + + 58 WHEN 77 THEN COUNT ( * ) WHEN + 2 THEN NULL ELSE - 49 * + - 63 + + + 59 END * + 16
----
NULL

query I rowsort
SELECT + 97 * + 23 AS col0
----
2231

query I rowsort
SELECT ALL AVG ( DISTINCT - CASE 90 WHEN - 97 THEN + 13 + 26 - + + 46 WHEN ( - 33 ) - 88 THEN + - 19 * + 41 END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3749
SELECT + MIN ( - + 58 ) + - COUNT ( * ) + - 20
----
-79

query I rowsort
SELECT ALL + 13 * 63
----
819

query I rowsort
SELECT + 50 + - 44 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3752
SELECT DISTINCT 4 AS col0, 92 * + + ( + NULLIF ( 61, + 37 * - + ( - CAST( NULL AS SIGNED ) ) / + + COUNT( * ) ) ) AS col1
----
4
5612

skipif mysql # not compatible
query II rowsort label-3752
SELECT DISTINCT 4 AS col0, 92 * + + ( + NULLIF ( 61, + 37 * - + ( - CAST ( NULL AS INTEGER ) ) / + + COUNT ( * ) ) ) AS col1
----
4
5612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3753
SELECT + 37 * - ( + COUNT( * ) ) / + - CASE 69 WHEN COALESCE ( + 75, 72 * - 83 + - 10 * + 9 + + NULLIF ( 86, CAST( NULL AS SIGNED ) / + 89 + + 32 + - 92 ) ) + - 91 THEN NULL WHEN - 10 THEN 57 * ( ( - 57 ) ) WHEN + COUNT( * ) * - 86 THEN CASE + CAST( - COUNT( * ) AS SIGNED ) WHEN + MIN( ALL - 46 ) THEN NULL WHEN 18 / + 30 THEN NULL ELSE - 4 END ELSE NULL END - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT + 37 * - ( + COUNT ( * ) ) / + - CASE 69 WHEN COALESCE ( + 75, 72 * - 83 + - 10 * + 9 + + NULLIF ( 86, CAST ( NULL AS INTEGER ) / + 89 + + 32 + - 92 ) ) + - 91 THEN NULL WHEN - 10 THEN 57 * ( ( - 57 ) ) WHEN + COUNT ( * ) * - 86 THEN CASE + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + MIN ( ALL - 46 ) THEN NULL WHEN 18 / + 30 THEN NULL ELSE - 4 END ELSE NULL END - 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT - 43 * CAST( 94 AS SIGNED )
----
-4042

skipif mysql # not compatible
query I rowsort label-3754
SELECT - 43 * CAST ( 94 AS INTEGER )
----
-4042

query I rowsort
SELECT ALL 49 * + - 53 AS col1
----
-2597

query I rowsort
SELECT + 55 + - + 34
----
21

query I rowsort
SELECT - ( - ( 35 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3758
SELECT - NULLIF ( + - 3, ( + 63 ) + + 77 - - + 45 * + - 13 DIV + COUNT( * ) * - AVG ( ALL 94 ) ) DIV + 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT - NULLIF ( + - 3, ( + 63 ) + + 77 - - + 45 * + - 13 / + COUNT ( * ) * - AVG ( ALL 94 ) ) / + 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + 17 + + + COUNT( DISTINCT - - 90 ) * 1 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 17 + + + COUNT ( DISTINCT - - 90 ) * 1 AS col1
----
18

query I rowsort
SELECT - NULLIF ( - - 74, - + 89 + - 36 ) + + + 2 AS col0
----
-72

query II rowsort
SELECT DISTINCT 11, + 81 col0
----
11
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT DISTINCT CAST( AVG ( DISTINCT NULLIF ( 59, - 38 ) ) AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT CAST ( AVG ( DISTINCT NULLIF ( 59, - 38 ) ) AS INTEGER )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT - + 19 + COUNT( * ) DIV COUNT( * ) * + 69 DIV - 40
----
-20

skipif mysql # not compatible
query I rowsort label-3763
SELECT - + 19 + COUNT ( * ) / COUNT ( * ) * + 69 / - 40
----
-20

query II rowsort
SELECT DISTINCT 34 AS col1, 81
----
34
81

query I rowsort
SELECT ALL + - 97 + - 43 AS col2
----
-140

query I rowsort
SELECT + 34 * - 42
----
-1428

query I rowsort
SELECT DISTINCT - ( + COALESCE ( + + 80, - 12 + + 30 * - 92 ) ) * - - 56 AS col1
----
-4480

query II rowsort
SELECT + 62, + 94 AS col2
----
62
94

query I rowsort
SELECT - - 87 * - 43 + 98 + - + 10 AS col1
----
-3653

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT ALL ( + 23 ) DIV - 48 * + 8 + - + 8 DIV - 40 * - 1
----
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL ( + 23 ) / - 48 * + 8 + - + 8 / - 40 * - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL + NULLIF ( - SUM( - 47 ), + 51 ) * + - 17
----
-799

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL + NULLIF ( - SUM ( - 47 ), + 51 ) * + - 17
----
-799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT DISTINCT - + SUM( DISTINCT + 2 ) DIV 30 + - MAX( ALL - - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - + SUM ( DISTINCT + 2 ) / 30 + - MAX ( ALL - - 43 ) col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3773
SELECT DISTINCT - 44 DIV CAST( - 89 AS SIGNED ) * - - ( 87 ) + + CAST( ( COUNT( * ) ) AS SIGNED ) + + - 67 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT - 44 / CAST ( - 89 AS INTEGER ) * - - ( 87 ) + + CAST ( ( COUNT ( * ) ) AS INTEGER ) + + - 67 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3774
SELECT DISTINCT + + 9 AS col2, - 68 * + ( + 54 ) * + 92 * + + 75 * - ( + COUNT( * ) ) * 16 + + 23 + + - 39 * + CAST( - CASE 70 WHEN - COALESCE ( + - 42, - 29 * - + 97 + 11 ) - - 42 / COALESCE ( + 2 * - 55 + 23 * 15, 36 ) THEN - 78 / 38 WHEN 2 THEN NULL WHEN + 12 / COUNT( * ) + - 44 / 53 THEN + 67 END AS SIGNED ) * - 67 - 18 / - 89 + + MIN( ALL - 71 + + 20 ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3774
SELECT DISTINCT + + 9 AS col2, - 68 * + ( + 54 ) * + 92 * + + 75 * - ( + COUNT ( * ) ) * 16 + + 23 + + - 39 * + CAST ( - CASE 70 WHEN - COALESCE ( + - 42, - 29 * - + 97 + 11 ) - - 42 / COALESCE ( + 2 * - 55 + 23 * 15, 36 ) THEN - 78 / 38 WHEN 2 THEN NULL WHEN + 12 / COUNT ( * ) + - 44 / 53 THEN + 67 END AS INTEGER ) * - 67 - 18 / - 89 + + MIN ( ALL - 71 + + 20 ) AS col1
----
9
NULL

query I rowsort
SELECT - + ( + 20 ) + - ( - ( + + 19 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3776
SELECT ALL 5 DIV + NULLIF ( + - COUNT( * ), - - 14 ) + + COUNT( * ) * + + 24 * + 19 AS col1
----
451

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL 5 / + NULLIF ( + - COUNT ( * ), - - 14 ) + + COUNT ( * ) * + + 24 * + 19 AS col1
----
451

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT - - 43 DIV 97 + - - 33 col2
----
33

skipif mysql # not compatible
query I rowsort label-3777
SELECT - - 43 / 97 + - - 33 col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3778
SELECT ALL CASE + ( + 11 ) WHEN - 43 DIV - - 21 + - ( - + 7 ) + 41 THEN NULL WHEN + - 26 + + ( + - 73 ) THEN - 39 ELSE + 10 + - - 81 - + COUNT( + 32 ) - 77 + 17 DIV 32 - - 81 DIV 57 END DIV + ( 48 )
----
0

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL CASE + ( + 11 ) WHEN - 43 / - - 21 + - ( - + 7 ) + 41 THEN NULL WHEN + - 26 + + ( + - 73 ) THEN - 39 ELSE + 10 + - - 81 - + COUNT ( + 32 ) - 77 + 17 / 32 - - 81 / 57 END / + ( 48 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL - 8 / - CAST( NULL AS SIGNED ) + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - 8 / - CAST ( NULL AS INTEGER ) + + 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3780
SELECT ALL + COUNT( * ) DIV 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL + COUNT ( * ) / 27 AS col1
----
0

query I rowsort
SELECT + 10 + - ( + + 28 ) + - 76 + + + 21 * + 76 AS col1
----
1502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3782
SELECT ALL - COUNT( * ) * - COALESCE ( - 43, 82, + + 14 * + 27 + - - 10 ) - + - CAST( NULL AS SIGNED ) / - 23 + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - COUNT ( * ) * - COALESCE ( - 43, 82, + + 14 * + 27 + - - 10 ) - + - CAST ( NULL AS INTEGER ) / - 23 + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT COUNT( * ) * + 33
----
33

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT COUNT ( * ) * + 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT - 90 - COUNT( * ) + ( + COUNT( * ) ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT - 90 - COUNT ( * ) + ( + COUNT ( * ) ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL 68 * CASE - - 21 WHEN - COUNT( * ) + + - COUNT( * ) - - - COUNT( * ) THEN NULL ELSE - - 44 END
----
2992

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL 68 * CASE - - 21 WHEN - COUNT ( * ) + + - COUNT ( * ) - - - COUNT ( * ) THEN NULL ELSE - - 44 END
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT 27 - - COUNT( * ) + + 85
----
113

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT 27 - - COUNT ( * ) + + 85
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3787
SELECT DISTINCT - CAST( + - CASE - - 64 WHEN + 82 + + 59 THEN + 14 / - AVG ( DISTINCT 63 ) + CASE + + 88 WHEN + 70 / + - 6 - + - 35 + - MIN( ALL 59 ) THEN 68 + - + 56 WHEN + + 91 + - 21 * + 29 THEN NULL END * - 5 WHEN 79 * ( + 19 * 43 ) THEN NULL WHEN 6 + ( - MIN( DISTINCT + 28 ) - - ( - 98 + + 48 * 64 ) / 66 ) * - 57 THEN NULL ELSE - 54 END AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT - CAST ( + - CASE - - 64 WHEN + 82 + + 59 THEN + 14 / - AVG ( DISTINCT 63 ) + CASE + + 88 WHEN + 70 / + - 6 - + - 35 + - MIN ( ALL 59 ) THEN 68 + - + 56 WHEN + + 91 + - 21 * + 29 THEN NULL END * - 5 WHEN 79 * ( + 19 * 43 ) THEN NULL WHEN 6 + ( - MIN ( DISTINCT + 28 ) - - ( - 98 + + 48 * 64 ) / 66 ) * - 57 THEN NULL ELSE - 54 END AS INTEGER ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL NULLIF ( + + 86, + 64 + - 79 ) * + 42 + + ( - + ( 44 ) ) + NULLIF ( ( + - CASE 95 WHEN + + ( 95 ) * ( + - 24 ) * 80 + - + 66 THEN NULL WHEN 73 THEN 28 * COUNT( ALL - 61 ) END ), + NULLIF ( + 76, 22 ) + 61 * 87 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL NULLIF ( + + 86, + 64 + - 79 ) * + 42 + + ( - + ( 44 ) ) + NULLIF ( ( + - CASE 95 WHEN + + ( 95 ) * ( + - 24 ) * 80 + - + 66 THEN NULL WHEN 73 THEN 28 * COUNT ( ALL - 61 ) END ), + NULLIF ( + 76, 22 ) + 61 * 87 ) col0
----
NULL

query I rowsort
SELECT 26 - + 83
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3790
SELECT MIN( ALL - 56 ) * + CASE + 4 WHEN - 96 - + + 45 + - CAST( - + COUNT( * ) AS SIGNED ) / - - CAST( NULL AS SIGNED ) * - + CAST( 32 AS SIGNED ) THEN 74 WHEN + 14 THEN 22 + - 27 + - + 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT MIN ( ALL - 56 ) * + CASE + 4 WHEN - 96 - + + 45 + - CAST ( - + COUNT ( * ) AS INTEGER ) / - - CAST ( NULL AS INTEGER ) * - + CAST ( 32 AS INTEGER ) THEN 74 WHEN + 14 THEN 22 + - 27 + - + 84 ELSE NULL END
----
NULL

query II rowsort
SELECT 35 + + 68 col0, 33 AS col1
----
103
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3792
SELECT COUNT( * ) * + + 56 + + 49 + - 62 AS col0, - 60 col2
----
43
-60

skipif mysql # not compatible
query II rowsort label-3792
SELECT COUNT ( * ) * + + 56 + + 49 + - 62 AS col0, - 60 col2
----
43
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3793
SELECT ( - 7 ) + + - 21 + - CAST( - 90 AS SIGNED ) - 48 + - 1, 71 * 13 col0
----
13
923

skipif mysql # not compatible
query II rowsort label-3793
SELECT ( - 7 ) + + - 21 + - CAST ( - 90 AS INTEGER ) - 48 + - 1, 71 * 13 col0
----
13
923

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - COUNT( * ) + 92 * + 68
----
6255

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - COUNT ( * ) + 92 * + 68
----
6255

query I rowsort
SELECT ALL + ( + 23 ) + + 50 - - 57 col0
----
130

query I rowsort
SELECT ALL - 70 + - + 39 * - 60 + 56 * + 22 AS col1
----
3502

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT ALL - 59 DIV - - 41 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - 59 / - - 41 col1
----
-1

query I rowsort
SELECT DISTINCT 17 + 31 AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT + 56 - + 8 + + 54 DIV 72 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3799
SELECT + 56 - + 8 + + 54 / 72 AS col2
----
48

query I rowsort
SELECT DISTINCT + 26 * 45
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - NULLIF ( 43, COUNT( * ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3801
SELECT - NULLIF ( 43, COUNT ( * ) ) AS col1
----
-43

query I rowsort
SELECT - ( 49 ) + 56
----
7

query I rowsort
SELECT 57 * + ( - + 16 ) col1
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL + COUNT( DISTINCT + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + COUNT ( DISTINCT + 72 )
----
1

query I rowsort
SELECT ALL - ( 62 ) AS col1
----
-62

query I rowsort
SELECT ALL - 61 - - 4 * 1 * + 79 * + - 32 col1
----
-10173

query I rowsort
SELECT ALL + 3 * - 76
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3808
SELECT + SUM( DISTINCT + + 30 ) DIV 9 + + ( + - 94 ) + - + 13 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-3808
SELECT + SUM ( DISTINCT + + 30 ) / 9 + + ( + - 94 ) + - + 13 AS col0
----
-104

query I rowsort
SELECT 27 * - + 34
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT 1 + + ( MIN( ALL - 22 ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3810
SELECT 1 + + ( MIN ( ALL - 22 ) ) AS col2
----
-21

query I rowsort
SELECT 40 * + 19
----
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL + CAST( NULL AS SIGNED ) * + COALESCE ( CASE 62 WHEN + - 10 THEN - COUNT( * ) * - 88 END, COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + CAST ( NULL AS INTEGER ) * + COALESCE ( CASE 62 WHEN + - 10 THEN - COUNT ( * ) * - 88 END, COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3813
SELECT CAST( NULL AS SIGNED ) + + CAST( 1 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT CAST ( NULL AS INTEGER ) + + CAST ( 1 AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT 17 * - CAST( - ( + 17 ) AS SIGNED )
----
289

skipif mysql # not compatible
query I rowsort label-3814
SELECT 17 * - CAST ( - ( + 17 ) AS INTEGER )
----
289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT 49 * + SUM( 0 ) * ( CASE 75 WHEN - 53 * - + CAST( NULL AS SIGNED ) * CASE - + 47 WHEN + CAST( NULL AS SIGNED ) THEN + + 0 END THEN - MIN( ALL - 63 ) * - 53 - + + 81 WHEN NULLIF ( + 70, + 7 + - 51 ) THEN + 43 * 83 - - AVG ( ALL 41 + 92 ) WHEN - 49 THEN NULL WHEN 28 THEN COUNT( ( - 14 ) ) WHEN - COUNT( * ) THEN NULL END ) + + 3 * + CASE + 16 * 15 WHEN + 4 THEN - 37 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT 49 * + SUM ( 0 ) * ( CASE 75 WHEN - 53 * - + CAST ( NULL AS INTEGER ) * CASE - + 47 WHEN + CAST ( NULL AS INTEGER ) THEN + + 0 END THEN - MIN ( ALL - 63 ) * - 53 - + + 81 WHEN NULLIF ( + 70, + 7 + - 51 ) THEN + 43 * 83 - - AVG ( ALL 41 + 92 ) WHEN - 49 THEN NULL WHEN 28 THEN COUNT ( ( - 14 ) ) WHEN - COUNT ( * ) THEN NULL END ) + + 3 * + CASE + 16 * 15 WHEN + 4 THEN - 37 + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL + ( + + 1 ) - 77 * + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + ( + + 1 ) - 77 * + - COUNT ( * )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT DISTINCT 21 DIV + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT 21 / + 24 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT MAX( ALL + 36 ) + + + 68 * - 80 * - 84
----
456996

skipif mysql # not compatible
query I rowsort label-3818
SELECT MAX ( ALL + 36 ) + + + 68 * - 80 * - 84
----
456996

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT - COUNT( * ) * 73 + + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3819
SELECT - COUNT ( * ) * 73 + + COUNT ( * ) AS col1
----
-72

query I rowsort
SELECT 35 + 56 + 78 + - 50 AS col0
----
119

query I rowsort
SELECT 45 * + - 34
----
-1530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT CAST( NULL AS SIGNED ) * 9 + - 70 + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT CAST ( NULL AS INTEGER ) * 9 + - 70 + - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT DISTINCT - COALESCE ( + - 3, + 11 DIV 44 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT - COALESCE ( + - 3, + 11 / 44 ) AS col1
----
3

query I rowsort
SELECT DISTINCT - 69 + + 32
----
-37

query I rowsort
SELECT ALL 78 + 89 AS col1
----
167

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3826
SELECT ALL + CASE - 7 WHEN + 25 THEN - - 85 - - COALESCE ( - COUNT( * ), + ( - CAST( NULL AS DECIMAL ) ), - ( - 75 ) ) WHEN + 23 THEN 14 END + - NULLIF ( 66, - ( 88 ) * 11 ) + COUNT( * ) * + COUNT( * ) / 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL + CASE - 7 WHEN + 25 THEN - - 85 - - COALESCE ( - COUNT ( * ), + ( - CAST ( NULL AS REAL ) ), - ( - 75 ) ) WHEN + 23 THEN 14 END + - NULLIF ( 66, - ( 88 ) * 11 ) + COUNT ( * ) * + COUNT ( * ) / 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT ALL - 13 AS col0, - MIN( ALL + + NULLIF ( - 28, 96 ) ) * - 92
----
-13
-2576

skipif mysql # not compatible
query II rowsort label-3827
SELECT ALL - 13 AS col0, - MIN ( ALL + + NULLIF ( - 28, 96 ) ) * - 92
----
-13
-2576

query I rowsort
SELECT DISTINCT - 72 + - 78
----
-150

query I rowsort
SELECT DISTINCT + ( 42 ) + + + 15 + + + 18 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL - + 55 + COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - + 55 + COUNT ( * ) AS col1
----
-54

query I rowsort
SELECT 36 + 4
----
40

query I rowsort
SELECT - 7 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT + 90 + - COUNT( * ) * - - 28, + 15 AS col0
----
62
15

skipif mysql # not compatible
query II rowsort label-3833
SELECT + 90 + - COUNT ( * ) * - - 28, + 15 AS col0
----
62
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT + ( - COALESCE ( - COUNT( * ), 50 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3834
SELECT + ( - COALESCE ( - COUNT ( * ), 50 ) )
----
1

query I rowsort
SELECT ALL 68 + + 17 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL + 98 + + 12 + - CASE + CAST( NULL AS SIGNED ) WHEN - 50 THEN - 58 END * + - 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + 98 + + 12 + - CASE + CAST ( NULL AS INTEGER ) WHEN - 50 THEN - 58 END * + - 69 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT 5 + - COUNT( * ) * + 24 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3837
SELECT 5 + - COUNT ( * ) * + 24 AS col0
----
-19

query I rowsort
SELECT - NULLIF ( 73, 13 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3839
SELECT ALL 48 * - 59 * + 53 * - - 16 + - COALESCE ( - - 80, - + 97, CASE + + ( + COUNT( * ) ) WHEN + ( + 76 ) + + COUNT( * ) THEN - MIN( - 44 ) * + - 89 + + 21 - 53 ELSE - 60 END ) - + + NULLIF ( 35, CAST( NULL AS DECIMAL ) )
----
-2401651

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL 48 * - 59 * + 53 * - - 16 + - COALESCE ( - - 80, - + 97, CASE + + ( + COUNT ( * ) ) WHEN + ( + 76 ) + + COUNT ( * ) THEN - MIN ( - 44 ) * + - 89 + + 21 - 53 ELSE - 60 END ) - + + NULLIF ( 35, CAST ( NULL AS REAL ) )
----
-2401651

query II rowsort
SELECT DISTINCT 53 - + 21 * - 73 col0, 34 - 93 AS col2
----
1586
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT + COUNT( * ) * - 79 * + - 46
----
3634

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT + COUNT ( * ) * - 79 * + - 46
----
3634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3842
SELECT ( 88 ) + - - COUNT( * ) AS col2, - 88 * COALESCE ( + 1, + - 42 / + 73 + + 68 * - 79 * - ( + + 46 ) + - 34 ) + + CAST( NULL AS SIGNED ) * 95 + - NULLIF ( + 10, - NULLIF ( + 17, + 79 * 47 + 67 ) ) AS col2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-3842
SELECT ( 88 ) + - - COUNT ( * ) AS col2, - 88 * COALESCE ( + 1, + - 42 / + 73 + + 68 * - 79 * - ( + + 46 ) + - 34 ) + + CAST ( NULL AS INTEGER ) * 95 + - NULLIF ( + 10, - NULLIF ( + 17, + 79 * 47 + 67 ) ) AS col2
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL - 29 * + ( + - 90 ) * COUNT( * ) + - + 10 - COUNT( * ) + + + 59
----
2658

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 29 * + ( + - 90 ) * COUNT ( * ) + - + 10 - COUNT ( * ) + + + 59
----
2658

onlyif mysql # aggregate syntax: 
query III rowsort label-3844
SELECT ALL - 75 AS col0, NULLIF ( - - 32, - MIN( ALL 24 ) * - 48 * - - 10 / 18 * 49 + - 67 ) * + 16 * + 62 * - 34 * + 22, + + CASE + 69 WHEN 46 * + 91 * + COALESCE ( 18, + + 2 + 44 * 57, + COUNT( * ) ) THEN 57 END AS col2
----
-75
-23744512
NULL

skipif mysql # not compatible
query III rowsort label-3844
SELECT ALL - 75 AS col0, NULLIF ( - - 32, - MIN ( ALL 24 ) * - 48 * - - 10 / 18 * 49 + - 67 ) * + 16 * + 62 * - 34 * + 22, + + CASE + 69 WHEN 46 * + 91 * + COALESCE ( 18, + + 2 + 44 * 57, + COUNT ( * ) ) THEN 57 END AS col2
----
-75
-23744512
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT 11 * NULLIF ( - - 39, + - 89 + + COUNT( * ) + + 91 / + 13 )
----
429

skipif mysql # not compatible
query I rowsort label-3845
SELECT 11 * NULLIF ( - - 39, + - 89 + + COUNT ( * ) + + 91 / + 13 )
----
429

query I rowsort
SELECT 44 * - 0 * + 74 + - 72 AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT + 22 DIV - SUM( ALL - 72 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT + 22 / - SUM ( ALL - 72 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT CASE + - 55 WHEN + - 51 THEN + NULLIF ( + 49, - 81 ) * - 90 WHEN - - 86 + - 70 THEN - COUNT( * ) * - MAX( + ( + 32 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT CASE + - 55 WHEN + - 51 THEN + NULLIF ( + 49, - 81 ) * - 90 WHEN - - 86 + - 70 THEN - COUNT ( * ) * - MAX ( + ( + 32 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL + NULLIF ( + CAST( - - 9 AS SIGNED ), - - 43 )
----
9

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + NULLIF ( + CAST ( - - 9 AS INTEGER ), - - 43 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3850
SELECT ALL + 81 AS col0, ( - + 71 ) + - - MAX( DISTINCT + - 29 ) DIV 53
----
81
-71

skipif mysql # not compatible
query II rowsort label-3850
SELECT ALL + 81 AS col0, ( - + 71 ) + - - MAX ( DISTINCT + - 29 ) / 53
----
81
-71

query I rowsort
SELECT NULLIF ( - - 79, - + 21 )
----
79

query II rowsort
SELECT ALL + 97 col0, - 2 + - - 79
----
97
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT + CASE + - ( - 89 ) WHEN - ( - 35 ) + + COUNT( * ) THEN + 89 ELSE - - 56 + + - 83 * 43 END AS col0
----
-3513

skipif mysql # not compatible
query I rowsort label-3853
SELECT + CASE + - ( - 89 ) WHEN - ( - 35 ) + + COUNT ( * ) THEN + 89 ELSE - - 56 + + - 83 * 43 END AS col0
----
-3513

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL + 9 * + 38 * SUM( DISTINCT + - 79 )
----
-27018

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + 9 * + 38 * SUM ( DISTINCT + - 79 )
----
-27018

query II rowsort
SELECT + NULLIF ( + 47, + ( + 11 ) ) col1, 28 AS col0
----
47
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL ( + + ( NULLIF ( + SUM( + 34 ), - - 54 * - 75 ) ) ) * - 12 * + 30 * + 31 + 45
----
-379395

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL ( + + ( NULLIF ( + SUM ( + 34 ), - - 54 * - 75 ) ) ) * - 12 * + 30 * + 31 + 45
----
-379395

query I rowsort
SELECT ALL 90 * 40 * - 79 AS col1
----
-284400

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT COUNT( * ) col2, 6
----
1
6

skipif mysql # not compatible
query II rowsort label-3858
SELECT COUNT ( * ) col2, 6
----
1
6

query I rowsort
SELECT DISTINCT + 61 * + - 35 + + 40 + + NULLIF ( + - 73, - ( - - 45 ) )
----
-2168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3860
SELECT + - 71, + 15 * + COUNT( * ) * + CAST( - + ( - COALESCE ( - + 66, + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col2
----
-71
-990

skipif mysql # not compatible
query II rowsort label-3860
SELECT + - 71, + 15 * + COUNT ( * ) * + CAST ( - + ( - COALESCE ( - + 66, + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col2
----
-71
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT ALL + 68 + + CASE - 3 WHEN 92 DIV - - 33 + + 26 THEN NULL WHEN - 73 * + COUNT( * ) + 85 + 55 THEN - - 49 + - 45 - 62 * + 79 + - 75 * NULLIF ( - 76, + + 78 * - - 38 + - 21 ) DIV 10 ELSE ( 0 ) END - 29
----
39

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + 68 + + CASE - 3 WHEN 92 / - - 33 + + 26 THEN NULL WHEN - 73 * + COUNT ( * ) + 85 + 55 THEN - - 49 + - 45 - 62 * + 79 + - 75 * NULLIF ( - 76, + + 78 * - - 38 + - 21 ) / 10 ELSE ( 0 ) END - 29
----
39

query I rowsort
SELECT - - ( 93 ) + + 24 * 34
----
909

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT - + 88 + + COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3863
SELECT - + 88 + + COUNT ( * ) AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT ALL - 77 DIV + 49
----
-1

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - 77 / + 49
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3865
SELECT - 30 AS col2, - 35 + + - 11 + 23 * - COUNT( * ) * - 49 * + 82 AS col0
----
-30
92368

skipif mysql # not compatible
query II rowsort label-3865
SELECT - 30 AS col2, - 35 + + - 11 + 23 * - COUNT ( * ) * - 49 * + 82 AS col0
----
-30
92368

query I rowsort
SELECT DISTINCT - - 78 + + 49 + - - 17 * - 93
----
-1454

query II rowsort
SELECT ALL 3 AS col2, 8 AS col2
----
3
8

query I rowsort
SELECT DISTINCT + 69 * + 4
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3869
SELECT DISTINCT CAST( - CASE + 56 WHEN - MAX( ALL + + 68 ) THEN - 17 END AS SIGNED ) col1, - 53 * - - COALESCE ( 71, + - 61 * 0 ) * - - 13 * 48 - + - ( - + NULLIF ( + COUNT( * ), - + 73 * - 7 - + 53 + + - 20 + - - 56 * - 66 ) ) * - 53
----
NULL
-2348059

skipif mysql # not compatible
query II rowsort label-3869
SELECT DISTINCT CAST ( - CASE + 56 WHEN - MAX ( ALL + + 68 ) THEN - 17 END AS INTEGER ) col1, - 53 * - - COALESCE ( 71, + - 61 * 0 ) * - - 13 * 48 - + - ( - + NULLIF ( + COUNT ( * ), - + 73 * - 7 - + 53 + + - 20 + - - 56 * - 66 ) ) * - 53
----
NULL
-2348059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3870
SELECT - CAST( NULL AS SIGNED ) - 17 * CAST( + 14 AS DECIMAL ) + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT - CAST ( NULL AS INTEGER ) - 17 * CAST ( + 14 AS REAL ) + + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3871
SELECT ALL + 25 * - 36 AS col2, + COUNT( - - 93 )
----
-900
1

skipif mysql # not compatible
query II rowsort label-3871
SELECT ALL + 25 * - 36 AS col2, + COUNT ( - - 93 )
----
-900
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3872
SELECT - SUM( DISTINCT - + 89 ) AS col1, - ( - ( + - MAX( DISTINCT - 45 ) ) ) AS col0
----
89
45

skipif mysql # not compatible
query II rowsort label-3872
SELECT - SUM ( DISTINCT - + 89 ) AS col1, - ( - ( + - MAX ( DISTINCT - 45 ) ) ) AS col0
----
89
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT - + CAST( 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-3873
SELECT - + CAST ( 99 AS INTEGER )
----
-99

query I rowsort
SELECT + - 81 * ( - 6 ) + + + 57
----
543

query II rowsort
SELECT - 48, + 23 col0
----
-48
23

query II rowsort
SELECT 71 col0, + NULLIF ( + 93, - 59 ) * - + 10 * - 9 AS col1
----
71
8370

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT - COALESCE ( + 63, 7 * MIN( DISTINCT - + 44 ) + 26 )
----
-63

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT - COALESCE ( + 63, 7 * MIN ( DISTINCT - + 44 ) + 26 )
----
-63

query II rowsort
SELECT - 81 * - 35, 13 AS col1
----
2835
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT ALL 93 DIV 8 * + 69 * - 28 AS col1
----
-21252

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL 93 / 8 * + 69 * - 28 AS col1
----
-21252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3880
SELECT + 98 - - 51 AS col2, CAST( + ( - - 45 ) AS SIGNED ) * + COUNT( * ) * 78 AS col2
----
149
3510

skipif mysql # not compatible
query II rowsort label-3880
SELECT + 98 - - 51 AS col2, CAST ( + ( - - 45 ) AS INTEGER ) * + COUNT ( * ) * 78 AS col2
----
149
3510

query I rowsort
SELECT - CASE 17 WHEN - 22 + - - 24 + 76 + - 91 + + + AVG ( - 90 ) + + - 3 * + 80 / + 85 * - - 68 * 18 * 51 * - ( - 21 ) THEN + 96 - + 48 * + 73 + + 71 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 45 * - 77 AS col1
----
-3465

query II rowsort
SELECT + 51 * + 56 * 64 AS col2, - 11
----
182784
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT ALL 57 DIV 2
----
28

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL 57 / 2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + ( - COALESCE ( + NULLIF ( + + MAX( - + 30 ), + 15 ), + 37, NULLIF ( - 98, + + 77 * - - 10 + + 42 - - - 46 - COUNT( * ) + - 88 + - 78 + + 46 / - + CASE - 89 WHEN + 75 + + 35 + 12 * 87 THEN MAX( - 88 ) ELSE NULL END - + 63 ) + 96 ) )
----
30

skipif mysql # not compatible
query I rowsort label-3885
SELECT + ( - COALESCE ( + NULLIF ( + + MAX ( - + 30 ), + 15 ), + 37, NULLIF ( - 98, + + 77 * - - 10 + + 42 - - - 46 - COUNT ( * ) + - 88 + - 78 + + 46 / - + CASE - 89 WHEN + 75 + + 35 + 12 * 87 THEN MAX ( - 88 ) ELSE NULL END - + 63 ) + 96 ) )
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-3886
SELECT + 3 DIV 16 AS col1, 59 * + 14 col2
----
0
826

skipif mysql # not compatible
query II rowsort label-3886
SELECT + 3 / 16 AS col1, 59 * + 14 col2
----
0
826

query I rowsort
SELECT + 15 + + 54 + 97 * + 63
----
6180

query I rowsort
SELECT + 21 * - ( 84 )
----
-1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3889
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + 94 + + 45 + - 99
----
40

skipif mysql # not compatible
query I rowsort label-3889
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 94 + + 45 + - 99
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ( + CASE + 30 WHEN + 1 + + 39 THEN + COUNT( * ) ELSE + 42 END )
----
42

skipif mysql # not compatible
query I rowsort label-3890
SELECT ( + CASE + 30 WHEN + 1 + + 39 THEN + COUNT ( * ) ELSE + 42 END )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT ALL 20 DIV - - 77 + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL 20 / - - 77 + - 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL COUNT( * ) * 70 + + SUM( + 55 ) * - NULLIF ( 33, + 79 ) + + ( - 98 ) * - 12 + - + 43 AS col0
----
-612

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL COUNT ( * ) * 70 + + SUM ( + 55 ) * - NULLIF ( 33, + 79 ) + + ( - 98 ) * - 12 + - + 43 AS col0
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT NULLIF ( 2, 41 ) * + 95 + + + COUNT( * ) * - 58 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-3893
SELECT NULLIF ( 2, 41 ) * + 95 + + + COUNT ( * ) * - 58 AS col1
----
132

query I rowsort
SELECT ALL 49 * + 20 * - 14 AS col1
----
-13720

query I rowsort
SELECT DISTINCT 88 * + 71 + 3
----
6251

query I rowsort
SELECT DISTINCT 94 * 5 + + + 76
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3897
SELECT DISTINCT ( 1 ) * - 4 * + 60 DIV + SUM( DISTINCT - 55 ) + + ( COUNT( * ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT ( 1 ) * - 4 * + 60 / + SUM ( DISTINCT - 55 ) + + ( COUNT ( * ) ) AS col1
----
5

query I rowsort
SELECT 24 * + 56 + 33 AS col2
----
1377

query I rowsort
SELECT + - 92 * - + 97
----
8924

query I rowsort
SELECT - 71 * + 65 + - 4 + + 28 AS col0
----
-4591

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT - + 1 * - 85 + - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT - + 1 * - 85 + - COUNT ( * ) AS col2
----
84

query I rowsort
SELECT DISTINCT 38 * - 47 - + 75 - + - 46 col1
----
-1815

query I rowsort
SELECT ALL + 78 * 10 + 66 - 96 col2
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL 67 * + COUNT( * ) + 89
----
156

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL 67 * + COUNT ( * ) + 89
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-3905
SELECT DISTINCT COUNT( - 85 ) AS col2, - 0
----
1
0

skipif mysql # not compatible
query II rowsort label-3905
SELECT DISTINCT COUNT ( - 85 ) AS col2, - 0
----
1
0

query II rowsort
SELECT DISTINCT 85 * - 58 AS col2, 45
----
-4930
45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3907
SELECT 76 * - CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) * 58 * - ( - 41 ) - 28 / 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT 76 * - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) * 58 * - ( - 41 ) - 28 / 39
----
NULL

query I rowsort
SELECT - + ( + + 16 )
----
-16

query I rowsort
SELECT ALL + 54 * + + 23 AS col1
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT + + COUNT( * ) DIV COUNT( * ) - - 77 * 8 * - ( 14 ) * + + 22 + + 14 DIV + 58
----
-189727

skipif mysql # not compatible
query I rowsort label-3910
SELECT + + COUNT ( * ) / COUNT ( * ) - - 77 * 8 * - ( 14 ) * + + 22 + + 14 / + 58
----
-189727

query I rowsort
SELECT - 70 - + NULLIF ( + + 17, - 38 * 95 * - 40 ) * - + 73 AS col1
----
1171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3912
SELECT + 74 * COUNT( * ) * - - COALESCE ( 1, + - 34 - CAST( NULL AS SIGNED ) * + ( MAX( 24 ) ) + + COUNT( * ), - + CASE 65 WHEN + - 72 THEN NULL WHEN 48 THEN + - COALESCE ( COUNT( * ), - 28 ) WHEN 58 * - 68 + + ( + 72 ) THEN - + COUNT( * ) + 23 END * - 80 )
----
74

skipif mysql # not compatible
query I rowsort label-3912
SELECT + 74 * COUNT ( * ) * - - COALESCE ( 1, + - 34 - CAST ( NULL AS INTEGER ) * + ( MAX ( 24 ) ) + + COUNT ( * ), - + CASE 65 WHEN + - 72 THEN NULL WHEN 48 THEN + - COALESCE ( COUNT ( * ), - 28 ) WHEN 58 * - 68 + + ( + 72 ) THEN - + COUNT ( * ) + 23 END * - 80 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT - NULLIF ( - + ( - 31 ), - AVG ( - 10 ) ) DIV - + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3913
SELECT - NULLIF ( - + ( - 31 ), - AVG ( - 10 ) ) / - + 34 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT ALL + 44 DIV - 10 + - 92 * 48
----
-4420

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + 44 / - 10 + - 92 * 48
----
-4420

query I rowsort
SELECT 91 + - 65 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3916
SELECT DISTINCT 63 AS col2, + COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-3916
SELECT DISTINCT 63 AS col2, + COUNT ( * )
----
63
1

query I rowsort
SELECT ALL - 17 * + + 50 * 26 * + 36 AS col1
----
-795600

query I rowsort
SELECT 36 + 6 * + - 64 AS col2
----
-348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT ALL - 27 * + NULLIF ( + 24, 79 + + 83 + - CAST( NULL AS SIGNED ) )
----
-648

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - 27 * + NULLIF ( + 24, 79 + + 83 + - CAST ( NULL AS INTEGER ) )
----
-648

query II rowsort
SELECT DISTINCT 74 col0, 42 + + 5 * + 53 * - 53
----
74
-14003

query II rowsort
SELECT DISTINCT - NULLIF ( + + 71, + 87 ) * + 2, 94 AS col1
----
-142
94

query I rowsort
SELECT ALL + 55 + 64 AS col0
----
119

query I rowsort
SELECT 45 * + 18 AS col0
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT CAST( NULL AS SIGNED ) * - 79 + + 89 * COUNT( * ) * COUNT( * ) - - 19 + + + 51 * + + COUNT( * ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT CAST ( NULL AS INTEGER ) * - 79 + + 89 * COUNT ( * ) * COUNT ( * ) - - 19 + + + 51 * + + COUNT ( * ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 3 + - - 57 * - 8 + - 49 AS col2
----
-502

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL + ( - + 35 ) + - - COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + ( - + 35 ) + - - COUNT ( * ) AS col1
----
-34

query II rowsort
SELECT 45 col2, + CASE 36 WHEN - + NULLIF ( + 27, - ( - + 94 ) ) THEN NULL WHEN 17 + + 88 THEN 81 ELSE NULL END / AVG ( DISTINCT + ( + 4 ) ) + + + 44
----
45
NULL

query I rowsort
SELECT ALL 55 + 89 * CASE 29 WHEN 24 THEN - 84 * + + 86 + ( + - 32 ) ELSE - 30 END
----
-2615

query II rowsort
SELECT ALL - 45, - 64 AS col2
----
-45
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-3930
SELECT + 2 AS col2, 54 DIV + - 82 col2
----
2
0

skipif mysql # not compatible
query II rowsort label-3930
SELECT + 2 AS col2, 54 / + - 82 col2
----
2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT DISTINCT + 65 DIV - - COALESCE ( 29, - 7 )
----
2

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + 65 / - - COALESCE ( 29, - 7 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3932
SELECT DISTINCT - 22 AS col0, ( + - CASE - 73 WHEN - + ( - + 36 ) * + + 60 / + - 36 * - AVG ( DISTINCT + 30 ) * 49 + - 43 THEN NULL WHEN + 23 THEN NULL WHEN - 56 THEN - 82 * + + 98 + 84 END ) * COUNT( * ) + NULLIF ( COALESCE ( + 41, + 13 - - 10 * + 33 ), - 31 ) * + COUNT( * ) col0
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-3932
SELECT DISTINCT - 22 AS col0, ( + - CASE - 73 WHEN - + ( - + 36 ) * + + 60 / + - 36 * - AVG ( DISTINCT + 30 ) * 49 + - 43 THEN NULL WHEN + 23 THEN NULL WHEN - 56 THEN - 82 * + + 98 + 84 END ) * COUNT ( * ) + NULLIF ( COALESCE ( + 41, + 13 - - 10 * + 33 ), - 31 ) * + COUNT ( * ) col0
----
-22
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT 60 DIV 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3933
SELECT 60 / 53 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT - 93 - - + 95 * + 4 * + COUNT( + 14 ) AS col2
----
287

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - 93 - - + 95 * + 4 * + COUNT ( + 14 ) AS col2
----
287

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT DISTINCT - + NULLIF ( - + CASE + 39 WHEN + - NULLIF ( ( - - 51 ), - + 4 ) * + 18 + - 75 THEN NULL WHEN + 8 THEN 34 / - COUNT( * ) END, - + 86 ) AS col1, 86 AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-3935
SELECT DISTINCT - + NULLIF ( - + CASE + 39 WHEN + - NULLIF ( ( - - 51 ), - + 4 ) * + 18 + - 75 THEN NULL WHEN + 8 THEN 34 / - COUNT ( * ) END, - + 86 ) AS col1, 86 AS col1
----
NULL
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT ALL CAST( NULL AS SIGNED ) - - 71 + - + MIN( ALL - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL CAST ( NULL AS INTEGER ) - - 71 + - + MIN ( ALL - 0 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3937
SELECT ALL + COUNT( * ) * NULLIF ( - - 73, 4 ) DIV - 85 + + + 5 + - - MIN( + - 12 ) AS col0, + 38 AS col1
----
-7
38

skipif mysql # not compatible
query II rowsort label-3937
SELECT ALL + COUNT ( * ) * NULLIF ( - - 73, 4 ) / - 85 + + + 5 + - - MIN ( + - 12 ) AS col0, + 38 AS col1
----
-7
38

query I rowsort
SELECT ALL - CASE 2 WHEN - 39 + - 27 THEN + + 48 ELSE + 17 END * + COALESCE ( - 89, - 62, - 97 + - 26 )
----
1513

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3939
SELECT 80 - - 70 DIV - 34, + MIN( ALL 35 ) AS col2
----
78
35

skipif mysql # not compatible
query II rowsort label-3939
SELECT 80 - - 70 / - 34, + MIN ( ALL 35 ) AS col2
----
78
35

query I rowsort
SELECT ALL - + ( - - 97 ) AS col2
----
-97

query II rowsort
SELECT DISTINCT - 29 AS col0, + 50 * 23 AS col0
----
-29
1150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3942
SELECT DISTINCT - - 57 AS col2, + COUNT( - CAST( NULL AS SIGNED ) )
----
57
0

skipif mysql # not compatible
query II rowsort label-3942
SELECT DISTINCT - - 57 AS col2, + COUNT ( - CAST ( NULL AS INTEGER ) )
----
57
0

query I rowsort
SELECT - 75 + - 53
----
-128

query II rowsort
SELECT DISTINCT - 8, ( + + 52 ) AS col0
----
-8
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT - CAST( - 55 AS SIGNED ) - NULLIF ( - - 53, - + 91 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3945
SELECT - CAST ( - 55 AS INTEGER ) - NULLIF ( - - 53, - + 91 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT + CAST( + 39 AS SIGNED ) * - COALESCE ( - - 93, - 16 - - 96, - 9 * + 46 - + 72 ) * NULLIF ( - + 3, - - 55 )
----
10881

skipif mysql # not compatible
query I rowsort label-3946
SELECT + CAST ( + 39 AS INTEGER ) * - COALESCE ( - - 93, - 16 - - 96, - 9 * + 46 - + 72 ) * NULLIF ( - + 3, - - 55 )
----
10881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3947
SELECT DISTINCT - 42 * NULLIF ( - 37, - 32 * CAST( NULL AS SIGNED ) * + 59 ), COUNT( * ) AS col0
----
1554
1

skipif mysql # not compatible
query II rowsort label-3947
SELECT DISTINCT - 42 * NULLIF ( - 37, - 32 * CAST ( NULL AS INTEGER ) * + 59 ), COUNT ( * ) AS col0
----
1554
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3948
SELECT ALL + 85, - COUNT( * ) AS col2
----
85
-1

skipif mysql # not compatible
query II rowsort label-3948
SELECT ALL + 85, - COUNT ( * ) AS col2
----
85
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT ( + + ( - MAX( ALL - - 96 ) ) ) * + + COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT ( + + ( - MAX ( ALL - - 96 ) ) ) * + + COUNT ( * ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT 6 * 85 + - + COUNT( * ) + + 0
----
509

skipif mysql # not compatible
query I rowsort label-3950
SELECT 6 * 85 + - + COUNT ( * ) + + 0
----
509

query I rowsort
SELECT DISTINCT 4 + 66 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT + 68 + - COUNT( - 53 ) * 5 * - - 36 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT + 68 + - COUNT ( - 53 ) * 5 * - - 36 AS col2
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3953
SELECT DISTINCT - 13 + 63 AS col2, CAST( NULL AS SIGNED ) * + - 36
----
50
NULL

skipif mysql # not compatible
query II rowsort label-3953
SELECT DISTINCT - 13 + 63 AS col2, CAST ( NULL AS INTEGER ) * + - 36
----
50
NULL

query I rowsort
SELECT ( - 33 ) - - 87
----
54

query I rowsort
SELECT DISTINCT + 68 + - 78 + + + 8 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT DISTINCT - 14 + ( - + COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT - 14 + ( - + COUNT ( * ) )
----
-15

query II rowsort
SELECT 51 - + 95, 43 + - + 13 AS col2
----
-44
30

query II rowsort
SELECT DISTINCT + 41 * + 87 * + 16 * + - 67 AS col2, - 98 AS col2
----
-3823824
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT DISTINCT CAST( NULL AS SIGNED ) + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL + 24 * + - COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + 24 * + - COUNT ( * ) AS col1
----
-24

query I rowsort
SELECT ALL - 64 * + 10 - - 48
----
-592

query I rowsort
SELECT DISTINCT - 79 * + + 82
----
-6478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3963
SELECT 88 DIV + 97 + + - 10 + - - 79 * - COUNT( * ) + + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3963
SELECT 88 / + 97 + + - 10 + - - 79 * - COUNT ( * ) + + COUNT ( * ) AS col1
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3964
SELECT 70 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT 70 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT ALL - NULLIF ( + + CAST( NULL AS SIGNED ), 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - NULLIF ( + + CAST ( NULL AS INTEGER ), 97 )
----
NULL

query I rowsort
SELECT 76 * - 72 * - + 8
----
43776

query I rowsort
SELECT ( - 37 ) * 71 + - 77
----
-2704

query I rowsort
SELECT + 71 * + 19
----
1349

query I rowsort
SELECT ALL - + NULLIF ( + - 93, - 97 + 87 + + - 10 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3970
SELECT DISTINCT - MIN( DISTINCT + 18 ) AS col1, 23 AS col0
----
-18
23

skipif mysql # not compatible
query II rowsort label-3970
SELECT DISTINCT - MIN ( DISTINCT + 18 ) AS col1, 23 AS col0
----
-18
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT - COUNT( * ) + + - 17, - 13 - - - 62 AS col2
----
-18
-75

skipif mysql # not compatible
query II rowsort label-3971
SELECT - COUNT ( * ) + + - 17, - 13 - - - 62 AS col2
----
-18
-75

query II rowsort
SELECT ALL + 37 * + + 76, - 20 * - 86 AS col1
----
2812
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL 4 * + 86 * - + COUNT( * ) * 98 * - 43 col1
----
1449616

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL 4 * + 86 * - + COUNT ( * ) * 98 * - 43 col1
----
1449616

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT - 46 * + 96 * + + COUNT( * ) - - + 18
----
-4398

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - 46 * + 96 * + + COUNT ( * ) - - + 18
----
-4398

query I rowsort
SELECT ALL - 88 * 77 AS col1
----
-6776

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3976
SELECT + + 18 + + 55 * - 86 * - - 41 - - + 39 DIV NULLIF ( - CAST( + 75 AS SIGNED ), - - 73 * + 37 + - ( + - 72 ) * - 42 )
----
-193912

skipif mysql # not compatible
query I rowsort label-3976
SELECT + + 18 + + 55 * - 86 * - - 41 - - + 39 / NULLIF ( - CAST ( + 75 AS INTEGER ), - - 73 * + 37 + - ( + - 72 ) * - 42 )
----
-193912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT CAST( - + 21 AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3977
SELECT CAST ( - + 21 AS INTEGER ) AS col2
----
-21

query I rowsort
SELECT ALL 35 + + 79
----
114

query I rowsort
SELECT DISTINCT - + ( - 21 ) * - 43 AS col0
----
-903

query I rowsort
SELECT DISTINCT + 30 + - ( + 42 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - SUM( - 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3981
SELECT - SUM ( - 6 ) AS col0
----
6

query I rowsort
SELECT + 98 - 88 + 1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT + NULLIF ( - 57, - 1 ) - - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-3983
SELECT + NULLIF ( - 57, - 1 ) - - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3984
SELECT DISTINCT 27 + + ( + COUNT( * ) ) DIV 82 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT 27 + + ( + COUNT ( * ) ) / 82 AS col1
----
27

query I rowsort
SELECT ALL 80 + + 77
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT + CASE - 85 WHEN + MAX( 67 ) THEN + 52 WHEN + 43 THEN NULL END + + COALESCE ( - 36, - 65 ) * + ( - + 68 ) * - ( - - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT + CASE - 85 WHEN + MAX ( 67 ) THEN + 52 WHEN + 43 THEN NULL END + + COALESCE ( - 36, - 65 ) * + ( - + 68 ) * - ( - - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3987
SELECT DISTINCT CAST( NULLIF ( - AVG ( + 86 ), - 98 ) AS SIGNED ) + + 50 + 95 + - CASE COALESCE ( + 28, + + 39, + COUNT( * ) ) WHEN - 53 THEN - 10 * + + 46 + - 62 ELSE 49 END - - 30 * + + ( - - CAST( + COUNT( * ) AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT CAST ( NULLIF ( - AVG ( + 86 ), - 98 ) AS INTEGER ) + + 50 + 95 + - CASE COALESCE ( + 28, + + 39, + COUNT ( * ) ) WHEN - 53 THEN - 10 * + + 46 + - 62 ELSE 49 END - - 30 * + + ( - - CAST ( + COUNT ( * ) AS INTEGER ) )
----
40

query I rowsort
SELECT + 62 + 78 + + - 40 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3989
SELECT DISTINCT COUNT( * ), - 20 + CAST( - 37 AS SIGNED ) AS col1
----
1
-57

skipif mysql # not compatible
query II rowsort label-3989
SELECT DISTINCT COUNT ( * ), - 20 + CAST ( - 37 AS INTEGER ) AS col1
----
1
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3990
SELECT - CAST( NULL AS SIGNED ) + + - MAX( DISTINCT + 7 ) + - + MIN( ALL - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT - CAST ( NULL AS INTEGER ) + + - MAX ( DISTINCT + 7 ) + - + MIN ( ALL - 73 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT + CASE - - 42 WHEN + NULLIF ( + + 71, - + 90 * 8 ) THEN NULL WHEN 90 * - + 79 + 95 * + 39 - - ( 57 ) + - 34 * + 61 THEN NULL ELSE 58 * - + 46 END DIV + - 34 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3991
SELECT + CASE - - 42 WHEN + NULLIF ( + + 71, - + 90 * 8 ) THEN NULL WHEN 90 * - + 79 + 95 * + 39 - - ( 57 ) + - 34 * + 61 THEN NULL ELSE 58 * - + 46 END / + - 34 AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT - COALESCE ( + 67, 57 + + COALESCE ( + 60, 14 DIV - - 27 ) - + COUNT( * ), + 6 * + COALESCE ( - 14, - 84 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-3992
SELECT - COALESCE ( + 67, 57 + + COALESCE ( + 60, 14 / - - 27 ) - + COUNT ( * ), + 6 * + COALESCE ( - 14, - 84 ) )
----
-67

query I rowsort
SELECT ALL - 20 - - - 14 * + 48
----
-692

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT ALL + COUNT( * ) AS col1, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-3994
SELECT ALL + COUNT ( * ) AS col1, 50
----
1
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3995
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * ( - + 2 ) + - + 83 + + NULLIF ( 69, + - 66 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-3995
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * ( - + 2 ) + - + 83 + + NULLIF ( 69, + - 66 ) AS col1
----
-16

query I rowsort
SELECT - 54 * + - 43 AS col1
----
2322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3997
SELECT ALL COUNT( * ) DIV COUNT( ALL 32 ) * - MAX( DISTINCT + + 14 ) + + 1 * + 81
----
67

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL COUNT ( * ) / COUNT ( ALL 32 ) * - MAX ( DISTINCT + + 14 ) + + 1 * + 81
----
67

query I rowsort
SELECT DISTINCT - 10 * + 49
----
-490

query II rowsort
SELECT + 55, 65 AS col0
----
55
65

query I rowsort
SELECT - 5 * + ( + - 72 )
----
360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4001
SELECT ALL + CAST( NULL AS DECIMAL ) * + 80 * + 1 / - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + CAST ( NULL AS REAL ) * + 80 * + 1 / - 39 AS col0
----
NULL

query I rowsort
SELECT - - 3 - - - 61 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4003
SELECT + - CASE COUNT( * ) WHEN ( - 38 ) + CASE - ( - 31 ) WHEN 67 THEN 25 WHEN + 50 * - - 38 THEN NULL ELSE + 29 * - + 78 END THEN - 41 / - 47 WHEN + CAST( NULL AS DECIMAL ) * AVG ( ALL 26 ) * 84 + + + 69 + + CASE - 8 WHEN 40 THEN - 0 + - MAX( + 26 ) * + 76 ELSE NULL END THEN 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT + - CASE COUNT ( * ) WHEN ( - 38 ) + CASE - ( - 31 ) WHEN 67 THEN 25 WHEN + 50 * - - 38 THEN NULL ELSE + 29 * - + 78 END THEN - 41 / - 47 WHEN + CAST ( NULL AS REAL ) * AVG ( ALL 26 ) * 84 + + + 69 + + CASE - 8 WHEN 40 THEN - 0 + - MAX ( + 26 ) * + 76 ELSE NULL END THEN 4 END
----
NULL

query I rowsort
SELECT - - 53 * - 65 AS col2
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT + NULLIF ( - - 62, - COUNT( DISTINCT 94 ) )
----
62

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + NULLIF ( - - 62, - COUNT ( DISTINCT 94 ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT ALL COUNT( * ) * + - CASE - + COUNT( 2 ) WHEN - COUNT( * ) * - CAST( + ( 50 ) AS SIGNED ) THEN NULL ELSE 64 END * + 97 * 94 AS col2
----
-583552

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL COUNT ( * ) * + - CASE - + COUNT ( 2 ) WHEN - COUNT ( * ) * - CAST ( + ( 50 ) AS INTEGER ) THEN NULL ELSE 64 END * + 97 * 94 AS col2
----
-583552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT + CAST( + 60 AS SIGNED ) col0
----
60

skipif mysql # not compatible
query I rowsort label-4007
SELECT + CAST ( + 60 AS INTEGER ) col0
----
60

query I rowsort
SELECT - + 26 + 44 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + + COUNT( * ) * - 61
----
-61

skipif mysql # not compatible
query I rowsort label-4009
SELECT + + COUNT ( * ) * - 61
----
-61

query I rowsort
SELECT 86 * + COALESCE ( 4, 17 * 12 - - + 46 ) + + ( - 98 ) + - ( + 12 )
----
234

query I rowsort
SELECT ALL 86 * + ( + + 90 ) AS col1
----
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL + ( - 95 ) * - + 61 + - COUNT( * ) * + - 55 AS col1
----
5850

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL + ( - 95 ) * - + 61 + - COUNT ( * ) * + - 55 AS col1
----
5850

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT + 86 DIV - - 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4013
SELECT + 86 / - - 62 AS col1
----
1

query I rowsort
SELECT + 21 + + 84
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT ALL COUNT( * ), + 85 col2
----
1
85

skipif mysql # not compatible
query II rowsort label-4015
SELECT ALL COUNT ( * ), + 85 col2
----
1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT - NULLIF ( 79, - ( + NULLIF ( + 19, ( COUNT( * ) ) ) ) ) * 33
----
-2607

skipif mysql # not compatible
query I rowsort label-4016
SELECT - NULLIF ( 79, - ( + NULLIF ( + 19, ( COUNT ( * ) ) ) ) ) * 33
----
-2607

query I rowsort
SELECT - NULLIF ( 34, + - 64 ) + - 17 AS col1
----
-51

query I rowsort
SELECT ALL 14 - + 92
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4019
SELECT + CAST( - 99 AS SIGNED ) * + - COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4019
SELECT + CAST ( - 99 AS INTEGER ) * + - COUNT ( * ) AS col1
----
99

query II rowsort
SELECT + 96 - - 91 * - 83 + + 61, - 57 AS col1
----
-7396
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT + CASE - - AVG ( + 57 ) WHEN - - COUNT( * ) * MAX( - + CASE - - ( + + 12 ) WHEN 74 * 79 * - + 68 THEN + + 53 * 18 + - + 88 WHEN 76 THEN NULL END ) + - + COUNT( * ) + + - COUNT( * ) THEN NULL ELSE 11 + + 95 + - 98 + + 7 END - + ( - 43 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4021
SELECT + CASE - - AVG ( + 57 ) WHEN - - COUNT ( * ) * MAX ( - + CASE - - ( + + 12 ) WHEN 74 * 79 * - + 68 THEN + + 53 * 18 + - + 88 WHEN 76 THEN NULL END ) + - + COUNT ( * ) + + - COUNT ( * ) THEN NULL ELSE 11 + + 95 + - 98 + + 7 END - + ( - 43 ) AS col0
----
58

query I rowsort
SELECT ALL 37 * 29
----
1073

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT + + 48 DIV - - 4
----
12

skipif mysql # not compatible
query I rowsort label-4023
SELECT + + 48 / - - 4
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT + 33 * 63 + + 98 - CASE + 89 WHEN - + 32 THEN NULL ELSE - + COUNT( + + ( - - 90 ) ) END + COUNT( ALL 0 )
----
2179

skipif mysql # not compatible
query I rowsort label-4024
SELECT + 33 * 63 + + 98 - CASE + 89 WHEN - + 32 THEN NULL ELSE - + COUNT ( + + ( - - 90 ) ) END + COUNT ( ALL 0 )
----
2179

query II rowsort
SELECT ALL - 45 AS col1, + ( 30 ) + 60 + + 7 AS col1
----
-45
97

query II rowsort
SELECT DISTINCT - 18 + - 15 * 42 * 23 AS col1, - 13
----
-14508
-13

query I rowsort
SELECT ALL + - 62 + + + 83 AS col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4028
SELECT DISTINCT MAX( DISTINCT 23 ) DIV + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT MAX ( DISTINCT 23 ) / + COUNT ( * ) AS col2
----
23

query I rowsort
SELECT + 91 + + - 3 AS col2
----
88

query I rowsort
SELECT DISTINCT 70 + + 84
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4031
SELECT ALL + - 70 + + 24 + + - COALESCE ( + CASE - + 48 WHEN + + COUNT( * ) * + 89 + - CAST( NULL AS SIGNED ) + - - 65 * - COALESCE ( - ( + + CAST( NULL AS DECIMAL ) ), - 14 ) + + 25 * - COUNT( * ) - - ( - ( + 4 ) ) - + 56 THEN + 54 ELSE - - 90 END, 86 ) * + 97 * + 74, + 14 * 18 * 67 AS col0
----
-646066
16884

skipif mysql # not compatible
query II rowsort label-4031
SELECT ALL + - 70 + + 24 + + - COALESCE ( + CASE - + 48 WHEN + + COUNT ( * ) * + 89 + - CAST ( NULL AS INTEGER ) + - - 65 * - COALESCE ( - ( + + CAST ( NULL AS REAL ) ), - 14 ) + + 25 * - COUNT ( * ) - - ( - ( + 4 ) ) - + 56 THEN + 54 ELSE - - 90 END, 86 ) * + 97 * + 74, + 14 * 18 * 67 AS col0
----
-646066
16884

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT + CASE 64 WHEN 83 * 19 * + SUM( - + 92 ) + + 83 THEN + 68 / 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT + CASE 64 WHEN 83 * 19 * + SUM ( - + 92 ) + + 83 THEN + 68 / 21 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT + - COUNT( * ) AS col0, - 93
----
-1
-93

skipif mysql # not compatible
query II rowsort label-4033
SELECT + - COUNT ( * ) AS col0, - 93
----
-1
-93

query I rowsort
SELECT DISTINCT 16 * + 53 AS col2
----
848

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT ALL - 37 - 33 col0, + COUNT( DISTINCT + + 84 )
----
-70
1

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL - 37 - 33 col0, + COUNT ( DISTINCT + + 84 )
----
-70
1

query I rowsort
SELECT DISTINCT 74 - + - 0 + ( + 72 ) + - ( - 19 ) AS col1
----
165

query II rowsort
SELECT DISTINCT 92 * - 31 AS col0, + 43
----
-2852
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT ALL - 37 - COUNT( * ), 11 col0
----
-38
11

skipif mysql # not compatible
query II rowsort label-4038
SELECT ALL - 37 - COUNT ( * ), 11 col0
----
-38
11

query I rowsort
SELECT 90 * + 8 * 19 col2
----
13680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4040
SELECT 61 + - MIN( DISTINCT - + 35 ) - + - 1 * + 98 * - 55 * - - 54 + - 79 * - - ( + COUNT( * ) ) AS col1, + CASE - CASE 66 WHEN NULLIF ( + COALESCE ( 92, - + 77 ), + + 76 * - 92 + - CASE - 51 WHEN - 18 THEN - 3 + - ( + + 42 ) * 28 * - 86 WHEN 84 / 97 THEN NULL END ) THEN 68 ELSE NULL END WHEN + COUNT( * ) THEN 41 + AVG ( DISTINCT CAST( + ( 6 ) AS SIGNED ) ) * + 35 ELSE NULL END
----
-291043
NULL

skipif mysql # not compatible
query II rowsort label-4040
SELECT 61 + - MIN ( DISTINCT - + 35 ) - + - 1 * + 98 * - 55 * - - 54 + - 79 * - - ( + COUNT ( * ) ) AS col1, + CASE - CASE 66 WHEN NULLIF ( + COALESCE ( 92, - + 77 ), + + 76 * - 92 + - CASE - 51 WHEN - 18 THEN - 3 + - ( + + 42 ) * 28 * - 86 WHEN 84 / 97 THEN NULL END ) THEN 68 ELSE NULL END WHEN + COUNT ( * ) THEN 41 + AVG ( DISTINCT CAST ( + ( 6 ) AS INTEGER ) ) * + 35 ELSE NULL END
----
-291043
NULL

query I rowsort
SELECT 70 + - 53 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - COUNT( * ) * + 64 * - 53
----
3392

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - COUNT ( * ) * + 64 * - 53
----
3392

query I rowsort
SELECT 80 * + + 43
----
3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4044
SELECT DISTINCT - 20 * - SUM( - CAST( + 20 AS SIGNED ) ) * 18 + - COUNT( * ) AS col1
----
-7201

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT - 20 * - SUM ( - CAST ( + 20 AS INTEGER ) ) * 18 + - COUNT ( * ) AS col1
----
-7201

query I rowsort
SELECT ALL + 2 * + + 52
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT - COUNT( * ) * 19
----
-19

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - COUNT ( * ) * 19
----
-19

query I rowsort
SELECT 15 + + 84
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT ALL - 30 + + COUNT( * ) - - 28 + - 13 + - 14 DIV - SUM( DISTINCT + - 59 ) + + 90 * - - 43 AS col0
----
3856

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL - 30 + + COUNT ( * ) - - 28 + - 13 + - 14 / - SUM ( DISTINCT + - 59 ) + + 90 * - - 43 AS col0
----
3856

onlyif mysql # aggregate syntax: 
query II rowsort label-4049
SELECT - 82 + + - COUNT( * ) + 35 * 82 * 59 - + 26 + + 56 AS col2, 6 * - 99 AS col0
----
169277
-594

skipif mysql # not compatible
query II rowsort label-4049
SELECT - 82 + + - COUNT ( * ) + 35 * 82 * 59 - + 26 + + 56 AS col2, 6 * - 99 AS col0
----
169277
-594

query I rowsort
SELECT - 26 * - 33 AS col0
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT - SUM( ( 26 ) ) + 7
----
-19

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - SUM ( ( 26 ) ) + 7
----
-19

query II rowsort
SELECT ALL + NULLIF ( - 46, + 11 + + 75 ) + 88 + + ( - ( 44 ) ) col0, - 30
----
-2
-30

query I rowsort
SELECT + + NULLIF ( + 47, + - 56 )
----
47

query I rowsort
SELECT ALL - 25 + - 74 AS col0
----
-99

query I rowsort
SELECT ALL - 9 * + - ( - 57 )
----
-513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4056
SELECT DISTINCT 41 + + 33 DIV - - 37 + 58 DIV + - COUNT( - + 13 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT 41 + + 33 / - - 37 + 58 / + - COUNT ( - + 13 ) AS col1
----
-17

query I rowsort
SELECT 29 - + 57 + + 41
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - MIN( + - 21 ) * 88 + + + 51
----
1899

skipif mysql # not compatible
query I rowsort label-4058
SELECT - MIN ( + - 21 ) * 88 + + + 51
----
1899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4059
SELECT - COUNT( * ) DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-4059
SELECT - COUNT ( * ) / 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + COUNT( 73 ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-4060
SELECT + COUNT ( 73 ) * 75
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT DISTINCT - 82 DIV 11
----
-7

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - 82 / 11
----
-7

query I rowsort
SELECT ALL - 24 - - 90 AS col0
----
66

query I rowsort
SELECT ALL + 5 * + 7
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT ( 37 ) - 80 + - 69 + - 29 + + 2 * + + 16 + + + 24 + + CASE + CASE 73 WHEN - ( - + COUNT( * ) ) THEN 71 WHEN + - ( 47 ) THEN - + MIN( DISTINCT 31 ) WHEN + 51 THEN NULL END WHEN + CASE CAST( NULL AS SIGNED ) WHEN + + 83 THEN ( - - 73 ) WHEN + ( - 5 ) * CAST( NULL AS SIGNED ) * - 83 + 96 THEN + 44 END THEN + 0 WHEN + ( + 24 ) / 46 + 50 THEN 58 ELSE NULL END + + 60 * + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT ( 37 ) - 80 + - 69 + - 29 + + 2 * + + 16 + + + 24 + + CASE + CASE 73 WHEN - ( - + COUNT ( * ) ) THEN 71 WHEN + - ( 47 ) THEN - + MIN ( DISTINCT 31 ) WHEN + 51 THEN NULL END WHEN + CASE CAST ( NULL AS INTEGER ) WHEN + + 83 THEN ( - - 73 ) WHEN + ( - 5 ) * CAST ( NULL AS INTEGER ) * - 83 + 96 THEN + 44 END THEN + 0 WHEN + ( + 24 ) / 46 + 50 THEN 58 ELSE NULL END + + 60 * + 20 AS col0
----
NULL

query I rowsort
SELECT ALL + 96 * - - 38
----
3648

query I rowsort
SELECT ( - - 45 ) * - 96 AS col1
----
-4320

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT DISTINCT 69 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT 69 / 90
----
0

query I rowsort
SELECT ALL - 33 * 8 col2
----
-264

query I rowsort
SELECT DISTINCT 62 * + NULLIF ( + 17, 25 / + 75 + - + 63 )
----
1054

query I rowsort
SELECT 64 + 95 + ( - + 35 )
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-4071
SELECT 99 * + COALESCE ( - - COUNT( * ), - MIN( DISTINCT 32 ) - + 51 ), + 56 AS col1
----
99
56

skipif mysql # not compatible
query II rowsort label-4071
SELECT 99 * + COALESCE ( - - COUNT ( * ), - MIN ( DISTINCT 32 ) - + 51 ), + 56 AS col1
----
99
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL - COUNT( * ) * - COALESCE ( + COUNT( * ), COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL - COUNT ( * ) * - COALESCE ( + COUNT ( * ), COUNT ( * ) ) col2
----
1

query I rowsort
SELECT 61 * + ( + 84 ) + + 9
----
5133

query I rowsort
SELECT 9 - + 69
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT 89 * + MAX( + 71 )
----
6319

skipif mysql # not compatible
query I rowsort label-4075
SELECT 89 * + MAX ( + 71 )
----
6319

query I rowsort
SELECT ALL 61 * 74 AS col0
----
4514

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT SUM( + + 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT SUM ( + + 43 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL SUM( + + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL SUM ( + + 30 )
----
30

query I rowsort
SELECT ALL + 61 + 57 col2
----
118

query I rowsort
SELECT 85 - 70
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - 13 + + ( + COUNT( * ) ) * - 19 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4081
SELECT - 13 + + ( + COUNT ( * ) ) * - 19 AS col2
----
-32

query I rowsort
SELECT ALL + 21 * - 29
----
-609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4083
SELECT - - 15 DIV - + COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4083
SELECT - - 15 / - + COUNT ( * ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + + COUNT( * ) * + ( + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-4084
SELECT + + COUNT ( * ) * + ( + 96 )
----
96

query I rowsort
SELECT ALL - 29 + + ( + 97 )
----
68

query I rowsort
SELECT - - 24 - + 83 * 21 AS col1
----
-1719

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - 46 - + 26 * 12 * + 70 * - 14 - - COUNT( * ) + - 7 AS col2
----
305708

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 46 - + 26 * 12 * + 70 * - 14 - - COUNT ( * ) + - 7 AS col2
----
305708

query I rowsort
SELECT - 60 + + - 72 + + ( + 18 ) * + 30
----
408

query II rowsort
SELECT 12 AS col2, ( + + 52 ) AS col2
----
12
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT - - CAST( NULL AS SIGNED ) / - + 8 + - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT - - CAST ( NULL AS INTEGER ) / - + 8 + - - 68
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4091
SELECT DISTINCT + 84 col0, 82 + + 52 DIV + 48 AS col0
----
84
83

skipif mysql # not compatible
query II rowsort label-4091
SELECT DISTINCT + 84 col0, 82 + + 52 / + 48 AS col0
----
84
83

query I rowsort
SELECT - 26 + COALESCE ( - 98, - + COALESCE ( + 90, - + 59 ) * - + 17 )
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + 86 * + COUNT( * ) - - 6 + 9 * - - COALESCE ( 73, - 66 * - - 70 + COUNT( * ) - NULLIF ( - COUNT( * ), - 73 + + SUM( ALL - 60 ) + + - 60 ) ) + ( + - 12 )
----
737

skipif mysql # not compatible
query I rowsort label-4093
SELECT + 86 * + COUNT ( * ) - - 6 + 9 * - - COALESCE ( 73, - 66 * - - 70 + COUNT ( * ) - NULLIF ( - COUNT ( * ), - 73 + + SUM ( ALL - 60 ) + + - 60 ) ) + ( + - 12 )
----
737

query I rowsort
SELECT - 40 + + 90 + + + 8 + - 74 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4095
SELECT + 98 / + + 61 - + CAST( NULL AS SIGNED ) / + 6 + - 74 * + + COUNT( DISTINCT - + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT + 98 / + + 61 - + CAST ( NULL AS INTEGER ) / + 6 + - 74 * + + COUNT ( DISTINCT - + 96 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT - COUNT( * ) * 49 DIV - 47 + 55 + + 17 + - - 56 * - COALESCE ( 74, CASE - 22 WHEN 82 THEN 96 WHEN + 59 - + 88 THEN NULL END )
----
-4071

skipif mysql # not compatible
query I rowsort label-4096
SELECT - COUNT ( * ) * 49 / - 47 + 55 + + 17 + - - 56 * - COALESCE ( 74, CASE - 22 WHEN 82 THEN 96 WHEN + 59 - + 88 THEN NULL END )
----
-4071

query II rowsort
SELECT ALL + - 15 AS col1, 96
----
-15
96

query I rowsort
SELECT ALL 16 * 68 col1
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT + COALESCE ( - NULLIF ( COUNT( - + 52 ), + 44 ), + ( + + 38 ) ) + - 38
----
-39

skipif mysql # not compatible
query I rowsort label-4099
SELECT + COALESCE ( - NULLIF ( COUNT ( - + 52 ), + 44 ), + ( + + 38 ) ) + - 38
----
-39

query I rowsort
SELECT DISTINCT 63 * 23 * + - 29
----
-42021

onlyif mysql # aggregate syntax: 
query II rowsort label-4101
SELECT + ( 74 ) AS col2, COUNT( * ) + - + 12
----
74
-11

skipif mysql # not compatible
query II rowsort label-4101
SELECT + ( 74 ) AS col2, COUNT ( * ) + - + 12
----
74
-11

query I rowsort
SELECT + 79 * 34 + - 38 AS col0
----
2648

query I rowsort
SELECT + 9 * ( - 66 )
----
-594

query I rowsort
SELECT 74 * + 59 + - 8 col1
----
4358

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT MAX( DISTINCT 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4105
SELECT MAX ( DISTINCT 91 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT 72 * - 56 + + SUM( 75 ) + + 22 * + ( + 74 )
----
-2329

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT 72 * - 56 + + SUM ( 75 ) + + 22 * + ( + 74 )
----
-2329

query I rowsort
SELECT DISTINCT + ( - 66 ) * + 40 col1
----
-2640

query I rowsort
SELECT + 49 + 80 col0
----
129

query I rowsort
SELECT ALL 47 * + 60 + - 21
----
2799

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT - 26 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT - 26 / 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4111
SELECT + CAST( NULL AS SIGNED ) + + 93, + MAX( - - 29 ) + - 84 AS col2
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-4111
SELECT + CAST ( NULL AS INTEGER ) + + 93, + MAX ( - - 29 ) + - 84 AS col2
----
NULL
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL COUNT( * ) + + ( + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL COUNT ( * ) + + ( + - COUNT ( * ) )
----
0

query I rowsort
SELECT + COALESCE ( + 69, + 58, + 29 ) + + 83 AS col1
----
152

query I rowsort
SELECT - 19 + + 66
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT - ( + NULLIF ( + 28, + COUNT( * ) ) ) AS col2, 77 AS col0
----
-28
77

skipif mysql # not compatible
query II rowsort label-4115
SELECT - ( + NULLIF ( + 28, + COUNT ( * ) ) ) AS col2, 77 AS col0
----
-28
77

query I rowsort
SELECT ALL - 30 + - + 61
----
-91

query I rowsort
SELECT ALL - - 67 + - - 15
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4118
SELECT - + 20 * + - 74 * + CAST( NULL AS SIGNED ) + - - 25 AS col0, 61 col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4118
SELECT - + 20 * + - 74 * + CAST ( NULL AS INTEGER ) + - - 25 AS col0, 61 col2
----
NULL
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4119
SELECT + ( 61 ) * - MIN( 97 ), 39 + - 0 col0
----
-5917
39

skipif mysql # not compatible
query II rowsort label-4119
SELECT + ( 61 ) * - MIN ( 97 ), 39 + - 0 col0
----
-5917
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT + MAX( DISTINCT + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-4120
SELECT + MAX ( DISTINCT + 25 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4121
SELECT ALL + + 63 DIV + 22 * - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + + 63 / + 22 * - - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT - + 62 + + 96
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL - - MIN( DISTINCT 93 ) - - 41 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - - MIN ( DISTINCT 93 ) - - 41 AS col0
----
134

query I rowsort
SELECT - - 93 * + + 4 * + - 64
----
-23808

query I rowsort
SELECT ALL + - ( + - 41 )
----
41

query I rowsort
SELECT DISTINCT + - 21 * - - 29 + 64
----
-545

query I rowsort
SELECT DISTINCT + - ( - 73 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT ALL + NULLIF ( 4, - 84 ) AS col0, COUNT( * ) AS col0
----
4
1

skipif mysql # not compatible
query II rowsort label-4128
SELECT ALL + NULLIF ( 4, - 84 ) AS col0, COUNT ( * ) AS col0
----
4
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT CAST( + - 20 AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4129
SELECT CAST ( + - 20 AS INTEGER ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT + CASE - CASE - 18 WHEN - 57 * - AVG ( - 97 ) THEN + MAX( 39 ) WHEN - 77 THEN NULL ELSE - 86 - NULLIF ( - 31, + - CAST( NULL AS SIGNED ) ) END WHEN + 2 THEN - COUNT( * ) WHEN MAX( ALL + 4 ) * - + 50 THEN - + 59 ELSE NULL END * - 3 * + 24 + + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT + CASE - CASE - 18 WHEN - 57 * - AVG ( - 97 ) THEN + MAX ( 39 ) WHEN - 77 THEN NULL ELSE - 86 - NULLIF ( - 31, + - CAST ( NULL AS INTEGER ) ) END WHEN + 2 THEN - COUNT ( * ) WHEN MAX ( ALL + 4 ) * - + 50 THEN - + 59 ELSE NULL END * - 3 * + 24 + + 87 AS col0
----
NULL

query I rowsort
SELECT ( - + 54 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT + COUNT( DISTINCT + 93 )
----
1

skipif mysql # not compatible
query I rowsort label-4132
SELECT + COUNT ( DISTINCT + 93 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL + COALESCE ( + + COUNT( * ), - 7, + - COALESCE ( - MIN( ALL - 45 ), - ( - + 65 ) ) + + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + COALESCE ( + + COUNT ( * ), - 7, + - COALESCE ( - MIN ( ALL - 45 ), - ( - + 65 ) ) + + 37 )
----
1

query II rowsort
SELECT ALL + 23 * 9 + - 69 AS col0, + 61 AS col0
----
138
61

query I rowsort
SELECT 79 * 90 - + 7 AS col1
----
7103

onlyif mysql # aggregate syntax: 
query II rowsort label-4136
SELECT DISTINCT COUNT( - 4 ) * + 93, 78 AS col2
----
93
78

skipif mysql # not compatible
query II rowsort label-4136
SELECT DISTINCT COUNT ( - 4 ) * + 93, 78 AS col2
----
93
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT COUNT( * ) + - + 16
----
-15

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT COUNT ( * ) + - + 16
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT DISTINCT + SUM( - 39 ) DIV - MIN( + - 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT + SUM ( - 39 ) / - MIN ( + - 26 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4139
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - - COUNT( * ) - - 97 + - + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT - CAST ( NULL AS REAL ) - - - COUNT ( * ) - - 97 + - + 64 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 73 AS col1, 79
----
73
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL - + 90 - + SUM( - + 81 )
----
-9

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - + 90 - + SUM ( - + 81 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT ( 68 ) DIV + + 42 + - 18 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT ( 68 ) / + + 42 + - 18 AS col1
----
-17

query I rowsort
SELECT 34 + 69 - - + 4 + - 78 * - - 64
----
-4885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4144
SELECT - 51 * + 23 + - NULLIF ( - - 5, - 85 ) - - CASE - ( - - 89 ) WHEN + COUNT( * ) THEN NULL WHEN - SUM( DISTINCT - COALESCE ( - CAST( 13 AS SIGNED ), + + 4 ) ) THEN - - 34 END + SUM( + + 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT - 51 * + 23 + - NULLIF ( - - 5, - 85 ) - - CASE - ( - - 89 ) WHEN + COUNT ( * ) THEN NULL WHEN - SUM ( DISTINCT - COALESCE ( - CAST ( 13 AS INTEGER ), + + 4 ) ) THEN - - 34 END + SUM ( + + 28 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4145
SELECT MIN( ALL - 6 ) * - ( + 11 ) * - 76 AS col2, + COALESCE ( + + 83, - SUM( + + CAST( NULL AS SIGNED ) ) ) AS col2
----
-5016
83

skipif mysql # not compatible
query II rowsort label-4145
SELECT MIN ( ALL - 6 ) * - ( + 11 ) * - 76 AS col2, + COALESCE ( + + 83, - SUM ( + + CAST ( NULL AS INTEGER ) ) ) AS col2
----
-5016
83

query I rowsort
SELECT ALL + 77 * - 60
----
-4620

query I rowsort
SELECT 27 + 12 AS col1
----
39

query I rowsort
SELECT ALL + 86 * 49
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT + 75 * + 25 * COUNT( * ) + + + 88
----
1963

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT + 75 * + 25 * COUNT ( * ) + + + 88
----
1963

query I rowsort
SELECT NULLIF ( 55, - ( + 32 ) * 97 + - + 8 + - 99 ) - - 40 + - 22 - - 35 * - 43 * + 7
----
-10462

query I rowsort
SELECT - 35 * + 68 + - 13
----
-2393

query I rowsort
SELECT ( 6 ) + 92 AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT - 35 DIV + 59 + + + 84 col0
----
84

skipif mysql # not compatible
query I rowsort label-4153
SELECT - 35 / + 59 + + + 84 col0
----
84

query I rowsort
SELECT ALL + 1 + + + 11
----
12

query I rowsort
SELECT ( - - 73 ) + 69
----
142

query I rowsort
SELECT 9 - - 58 + 7
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL - MAX( ALL + + 83 ) * 88
----
-7304

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL - MAX ( ALL + + 83 ) * 88
----
-7304

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT ALL 86 DIV - 25
----
-3

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL 86 / - 25
----
-3

query I rowsort
SELECT ALL 45 + 25
----
70

query II rowsort
SELECT + 71 AS col1, + 62 + - 54 + - - 32 col0
----
71
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL + COUNT( * ) + 15 * - 76 AS col2
----
-1139

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + COUNT ( * ) + 15 * - 76 AS col2
----
-1139

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL - 47 + + + 17 * - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - 47 + + + 17 * - + COUNT ( * )
----
-64

query I rowsort
SELECT ALL - 75 * - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT 5 DIV - 61 * - - ( 24 )
----
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT 5 / - 61 * - - ( 24 )
----
0

query I rowsort
SELECT 8 + + + 86 - + 23 - 17 AS col1
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4166
SELECT 4 AS col2, 37 + - CASE NULLIF ( - 14, - - 33 + + 52 + - 7 + 84 ) WHEN - 90 THEN NULL WHEN - 35 * + 38 + - 60 THEN 63 + - - AVG ( + CAST( 5 AS DECIMAL ) ) END / + 99 * 95 + + 71
----
4
NULL

skipif mysql # not compatible
query II rowsort label-4166
SELECT 4 AS col2, 37 + - CASE NULLIF ( - 14, - - 33 + + 52 + - 7 + 84 ) WHEN - 90 THEN NULL WHEN - 35 * + 38 + - 60 THEN 63 + - - AVG ( + CAST ( 5 AS REAL ) ) END / + 99 * 95 + + 71
----
4
NULL

query II rowsort
SELECT 39 AS col1, - 59 AS col1
----
39
-59

query I rowsort
SELECT ALL - ( + 48 ) AS col2
----
-48

query I rowsort
SELECT 89 * - + 7
----
-623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4170
SELECT 3 * 71 * + 92 + - 24 DIV - COUNT( * )
----
19620

skipif mysql # not compatible
query I rowsort label-4170
SELECT 3 * 71 * + 92 + - 24 / - COUNT ( * )
----
19620

query I rowsort
SELECT 98 * - - 22 * + + 31 AS col1
----
66836

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - COUNT( * ) * - 24 + - + 92
----
-68

skipif mysql # not compatible
query I rowsort label-4172
SELECT - COUNT ( * ) * - 24 + - + 92
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT COUNT( * ) + + 2 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4173
SELECT COUNT ( * ) + + 2 AS col0
----
3

query II rowsort
SELECT DISTINCT - 82, 26 AS col2
----
-82
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL 54 * MIN( - 84 )
----
-4536

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL 54 * MIN ( - 84 )
----
-4536

query I rowsort
SELECT 30 + - + 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT MIN( DISTINCT - + 73 ) * - 99
----
7227

skipif mysql # not compatible
query I rowsort label-4177
SELECT MIN ( DISTINCT - + 73 ) * - 99
----
7227

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4178
SELECT + 26 + 81 DIV + - CAST( 28 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-4178
SELECT + 26 + 81 / + - CAST ( 28 AS INTEGER )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT ALL - + CAST( + + 29 AS SIGNED ) * + NULLIF ( - COUNT( * ), - + 52 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - + CAST ( + + 29 AS INTEGER ) * + NULLIF ( - COUNT ( * ), - + 52 ) AS col1
----
29

query I rowsort
SELECT 3 + + + ( 50 ) * - 41 * 40 AS col0
----
-81997

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT 93 + + 58 * - MIN( DISTINCT - - 90 ) AS col0, - 95 AS col0
----
-5127
-95

skipif mysql # not compatible
query II rowsort label-4181
SELECT 93 + + 58 * - MIN ( DISTINCT - - 90 ) AS col0, - 95 AS col0
----
-5127
-95

query I rowsort
SELECT DISTINCT - 90 - + 15 AS col0
----
-105

query I rowsort
SELECT - ( - - 94 ) * - 37
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT COUNT( * ) + + - COALESCE ( - 40, - + 9, - COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-4184
SELECT COUNT ( * ) + + - COALESCE ( - 40, - + 9, - COUNT ( * ) )
----
41

query II rowsort
SELECT DISTINCT 49, + 27 + 56 col0
----
49
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT - ( - 44 ) / + CAST( NULL AS SIGNED ) / 55 * + 79 * - + 12 * - 12 - - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT - ( - 44 ) / + CAST ( NULL AS INTEGER ) / 55 * + 79 * - + 12 * - 12 - - + 90
----
NULL

query I rowsort
SELECT 18 + + 9 col2
----
27

query II rowsort
SELECT 11 AS col2, - 72
----
11
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT + ( 47 ) DIV - 37
----
-1

skipif mysql # not compatible
query I rowsort label-4189
SELECT + ( 47 ) / - 37
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT 11 DIV - + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT 11 / - + 28 AS col1
----
0

query I rowsort
SELECT ALL 25 + - COALESCE ( + 90, + NULLIF ( + 57, 60 ) ) col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT 98 * + COALESCE ( + - COUNT( * ), - 34 * COUNT( * ) ) + + 23
----
-75

skipif mysql # not compatible
query I rowsort label-4192
SELECT 98 * + COALESCE ( + - COUNT ( * ), - 34 * COUNT ( * ) ) + + 23
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-4193
SELECT - 39, + 79 DIV - 67 - - + 18 AS col2
----
-39
17

skipif mysql # not compatible
query II rowsort label-4193
SELECT - 39, + 79 / - 67 - - + 18 AS col2
----
-39
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT + 72 + + 67 + - COUNT( * ) + 19 col2
----
157

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT + 72 + + 67 + - COUNT ( * ) + 19 col2
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT ALL 48 * ( COUNT( * ) ) * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL 48 * ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT 9 + 15 + COUNT( * ) + 97 * 34 + - 75
----
3248

skipif mysql # not compatible
query I rowsort label-4196
SELECT 9 + 15 + COUNT ( * ) + 97 * 34 + - 75
----
3248

query II rowsort
SELECT 83 * 15, 36 AS col1
----
1245
36

query I rowsort
SELECT ALL 48 * + - 96 + - + 30
----
-4638

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT 17 * 10 + + + 85 * - COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT 17 * 10 + + + 85 * - COUNT ( * ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - 9 * COUNT( * ) * - 86 AS col2
----
774

skipif mysql # not compatible
query I rowsort label-4200
SELECT - 9 * COUNT ( * ) * - 86 AS col2
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT COALESCE ( + 42, 42, COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-4201
SELECT COALESCE ( + 42, 42, COUNT ( * ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL + 74 * - NULLIF ( + 57, - 33 ) + + COUNT( * )
----
-4217

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL + 74 * - NULLIF ( + 57, - 33 ) + + COUNT ( * )
----
-4217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4203
SELECT + CAST( + MIN( + 10 ) AS SIGNED ) - + - 98
----
108

skipif mysql # not compatible
query I rowsort label-4203
SELECT + CAST ( + MIN ( + 10 ) AS INTEGER ) - + - 98
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT COUNT( ALL + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-4204
SELECT COUNT ( ALL + 5 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT CAST( NULL AS SIGNED ) * + 38 - + 30 + - 6 * - ( - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT CAST ( NULL AS INTEGER ) * + 38 - + 30 + - 6 * - ( - 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4206
SELECT - 79 * - 57, - 7 + - COUNT( * ) AS col1
----
4503
-8

skipif mysql # not compatible
query II rowsort label-4206
SELECT - 79 * - 57, - 7 + - COUNT ( * ) AS col1
----
4503
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL - ( 61 ) * + 90 * + SUM( DISTINCT + 83 ) * - 17 + 67 AS col1
----
7746457

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - ( 61 ) * + 90 * + SUM ( DISTINCT + 83 ) * - 17 + 67 AS col1
----
7746457

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT MAX( + 86 ) AS col0, + 55
----
86
55

skipif mysql # not compatible
query II rowsort label-4208
SELECT MAX ( + 86 ) AS col0, + 55
----
86
55

query I rowsort
SELECT DISTINCT - 26 * - 17
----
442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4210
SELECT ALL 31 DIV - - MAX( - - 40 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL 31 / - - MAX ( - - 40 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT ALL + CAST( CAST( + - 73 AS SIGNED ) AS SIGNED ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + CAST ( CAST ( + - 73 AS INTEGER ) AS INTEGER ) AS col1
----
-73

query I rowsort
SELECT - 19 - 23 AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT DISTINCT + ( COUNT( ALL + 53 ) ) * + COUNT( 69 ) DIV + - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT + ( COUNT ( ALL + 53 ) ) * + COUNT ( 69 ) / + - 30 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT - CASE COUNT( * ) WHEN + 32 + - + 36 + - + 27 * NULLIF ( - COUNT( + - 82 ), 90 ) THEN - - 6 * - - 32 + + - NULLIF ( 35, + ( + + 52 ) * 59 ) - + CAST( NULL AS SIGNED ) WHEN + 81 THEN NULL ELSE NULL END * - 6 - + ( 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT - CASE COUNT ( * ) WHEN + 32 + - + 36 + - + 27 * NULLIF ( - COUNT ( + - 82 ), 90 ) THEN - - 6 * - - 32 + + - NULLIF ( 35, + ( + + 52 ) * 59 ) - + CAST ( NULL AS INTEGER ) WHEN + 81 THEN NULL ELSE NULL END * - 6 - + ( 66 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4215
SELECT + 7 DIV - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4215
SELECT + 7 / - 42 AS col2
----
0

query I rowsort
SELECT - 10 * - 73
----
730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4217
SELECT + CASE + + 20 WHEN + 69 + + 84 THEN 42 * - CASE + COUNT( * ) WHEN - 22 / - ( - COUNT( * ) ) THEN COUNT( * ) WHEN - MIN( DISTINCT 32 ) THEN NULL END * 26 + - 67 * CAST( NULL AS SIGNED ) * + + 63 * - 37 * - 35 WHEN ( + - ( ( 95 ) ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT + CASE + + 20 WHEN + 69 + + 84 THEN 42 * - CASE + COUNT ( * ) WHEN - 22 / - ( - COUNT ( * ) ) THEN COUNT ( * ) WHEN - MIN ( DISTINCT 32 ) THEN NULL END * 26 + - 67 * CAST ( NULL AS INTEGER ) * + + 63 * - 37 * - 35 WHEN ( + - ( ( 95 ) ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT - 38 DIV + 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4218
SELECT - 38 / + 37 AS col2
----
-1

query I rowsort
SELECT - + 81 * + - 83 + 26 + 46 AS col0
----
6795

query I rowsort
SELECT - 66 + - - 46 col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT ALL + - 64 + CAST( - 60 AS SIGNED ) + + - NULLIF ( 21, CAST( NULL AS SIGNED ) ) AS col0
----
-145

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + - 64 + CAST ( - 60 AS INTEGER ) + + - NULLIF ( 21, CAST ( NULL AS INTEGER ) ) AS col0
----
-145

query I rowsort
SELECT - - 54 + 72 * 86 AS col1
----
6246

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + - COUNT( * ) * - 29 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4223
SELECT + - COUNT ( * ) * - 29 AS col2
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4224
SELECT ALL + NULLIF ( - + CAST( NULL AS DECIMAL ), 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + NULLIF ( - + CAST ( NULL AS REAL ), 44 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT COUNT( - 67 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4225
SELECT COUNT ( - 67 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4226
SELECT ALL + CASE + 26 WHEN SUM( DISTINCT + + 30 ) THEN 36 END + + CAST( NULL AS SIGNED ) + NULLIF ( - 42, 18 ) * + 64 + + NULLIF ( + + 73, + 16 / + 21 * - COUNT( * ) ) * + CASE WHEN NOT ( COUNT( * ) ) < NULL THEN + - 82 / + + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL + CASE + 26 WHEN SUM ( DISTINCT + + 30 ) THEN 36 END + + CAST ( NULL AS INTEGER ) + NULLIF ( - 42, 18 ) * + 64 + + NULLIF ( + + 73, + 16 / + 21 * - COUNT ( * ) ) * + CASE WHEN NOT ( COUNT ( * ) ) < NULL THEN + - 82 / + + 4 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4227
SELECT + CASE + + 42 WHEN + ( COALESCE ( 36, - 2 * + 94, + 5 + 4 * - ( + 47 ) ) ) * - - 86 THEN NULL WHEN - + 5 THEN CAST( NULL AS SIGNED ) END - - ( + COUNT( * ) ) / + + NULLIF ( + COUNT( * ), + COUNT( * ) ) * + + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT + CASE + + 42 WHEN + ( COALESCE ( 36, - 2 * + 94, + 5 + 4 * - ( + 47 ) ) ) * - - 86 THEN NULL WHEN - + 5 THEN CAST ( NULL AS INTEGER ) END - - ( + COUNT ( * ) ) / + + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) * + + 10 AS col2
----
NULL

query I rowsort
SELECT ALL ( + + 43 )
----
43

query I rowsort
SELECT + 9 + - 22
----
-13

query I rowsort
SELECT - NULLIF ( + + ( 47 ), + - 40 ) * - + 62
----
2914

query I rowsort
SELECT + 27 * + - 27
----
-729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT CAST( - - 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4232
SELECT CAST ( - - 89 AS INTEGER ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4233
SELECT + CAST( - 64 AS SIGNED ) + + 59 col1, 83
----
-5
83

skipif mysql # not compatible
query II rowsort label-4233
SELECT + CAST ( - 64 AS INTEGER ) + + 59 col1, 83
----
-5
83

query I rowsort
SELECT 21 * - ( + 28 ) + + + 44 AS col2
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + 67 * - MIN( - NULLIF ( - 35, + ( + ( + 86 ) ) / - + 94 * 23 ) ) * 88
----
-206360

skipif mysql # not compatible
query I rowsort label-4235
SELECT + 67 * - MIN ( - NULLIF ( - 35, + ( + ( + 86 ) ) / - + 94 * 23 ) ) * 88
----
-206360

query II rowsort
SELECT DISTINCT + 85 AS col2, + 53
----
85
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT - 99 * + 34 + + COUNT( * ) + MAX( ALL 27 ) col0
----
-3338

skipif mysql # not compatible
query I rowsort label-4237
SELECT - 99 * + 34 + + COUNT ( * ) + MAX ( ALL 27 ) col0
----
-3338

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT 85 DIV 82 + - 77 col2
----
-76

skipif mysql # not compatible
query I rowsort label-4238
SELECT 85 / 82 + - 77 col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT + NULLIF ( 5, - + 2 - AVG ( DISTINCT + 4 ) * COUNT( * ) ), + COUNT( * ) + + 75 AS col0
----
5
76

skipif mysql # not compatible
query II rowsort label-4239
SELECT + NULLIF ( 5, - + 2 - AVG ( DISTINCT + 4 ) * COUNT ( * ) ), + COUNT ( * ) + + 75 AS col0
----
5
76

query I rowsort
SELECT + ( + 93 ) col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT - MIN( ALL 56 ) * - - 82
----
-4592

skipif mysql # not compatible
query I rowsort label-4241
SELECT - MIN ( ALL 56 ) * - - 82
----
-4592

query I rowsort
SELECT - 25 * - - 55 * + 23 * - 26 + - - 65 + + - 81 - - 28 + + CASE 62 WHEN 86 THEN NULL WHEN + 92 THEN - 2 END * - ( ( 87 ) ) / - 8 + - 25
----
NULL

query I rowsort
SELECT ALL + + ( + 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT DISTINCT + - SUM( + 37 ) * - 67, 27 + 68 AS col2
----
2479
95

skipif mysql # not compatible
query II rowsort label-4244
SELECT DISTINCT + - SUM ( + 37 ) * - 67, 27 + 68 AS col2
----
2479
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4245
SELECT + - ( CAST( NULL AS SIGNED ) ) / - COUNT( * ) * - CAST( NULL AS DECIMAL ) * 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT + - ( CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) * - CAST ( NULL AS REAL ) * 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL + ( MAX( ALL - 64 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + ( MAX ( ALL - 64 ) )
----
-64

query I rowsort
SELECT ALL + - ( - 5 ) AS col2
----
5

query I rowsort
SELECT - 97 + + 29 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT DISTINCT CAST( + 58 AS SIGNED ) * - - 21 - CASE + CAST( NULL AS SIGNED ) WHEN AVG ( DISTINCT - 6 ) THEN + + 66 * - 33 + 63 / 29 - - CAST( - + 26 AS SIGNED ) END + + + 58 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT CAST ( + 58 AS INTEGER ) * - - 21 - CASE + CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT - 6 ) THEN + + 66 * - 33 + 63 / 29 - - CAST ( - + 26 AS INTEGER ) END + + + 58 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL COUNT( * ) * + 96 + 71 + - 38 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL COUNT ( * ) * + 96 + 71 + - 38 AS col2
----
129

query II rowsort
SELECT - + 4 AS col0, 4
----
-4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4252
SELECT - 24 * - - COUNT( DISTINCT + + 85 ) AS col0, 96
----
-24
96

skipif mysql # not compatible
query II rowsort label-4252
SELECT - 24 * - - COUNT ( DISTINCT + + 85 ) AS col0, 96
----
-24
96

query I rowsort
SELECT - + 52 + 49
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT + CASE ( ( - 31 ) ) WHEN - + 60 THEN 74 WHEN COALESCE ( + ( 52 ), MAX( + - 57 ) ) * + + AVG ( + + 93 ) * - - 61 THEN - 4 ELSE + 31 + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT + CASE ( ( - 31 ) ) WHEN - + 60 THEN 74 WHEN COALESCE ( + ( 52 ), MAX ( + - 57 ) ) * + + AVG ( + + 93 ) * - - 61 THEN - 4 ELSE + 31 + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - - 77 + - 50
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4256
SELECT ALL + NULLIF ( + ( - NULLIF ( + - NULLIF ( - 47, - CAST( NULL AS SIGNED ) * 64 * + COUNT( * ) ), + + ( - 84 ) ) ), - + COALESCE ( + COUNT( * ), 20 + - COUNT( ALL - + 12 ), + 97 ) ) + - 64 AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + NULLIF ( + ( - NULLIF ( + - NULLIF ( - 47, - CAST ( NULL AS INTEGER ) * 64 * + COUNT ( * ) ), + + ( - 84 ) ) ), - + COALESCE ( + COUNT ( * ), 20 + - COUNT ( ALL - + 12 ), + 97 ) ) + - 64 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT + + MAX( DISTINCT - 99 ) + + + 81 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT + + MAX ( DISTINCT - 99 ) + + + 81 AS col0
----
-18

query I rowsort
SELECT ALL - 22 + 89 * - - 31
----
2737

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL - 16 - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - 16 - COUNT ( * ) AS col0
----
-17

query I rowsort
SELECT 89 * - - 43 col2
----
3827

query I rowsort
SELECT ALL + 43 * - + 79
----
-3397

query I rowsort
SELECT 34 + + 87
----
121

query I rowsort
SELECT ALL + 53 * - 73 AS col2
----
-3869

query I rowsort
SELECT DISTINCT - 98 - + 93 AS col1
----
-191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4265
SELECT ALL - CAST( MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - CAST ( MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4266
SELECT CAST( - + 62 AS SIGNED ) * + MAX( ALL - + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4266
SELECT CAST ( - + 62 AS INTEGER ) * + MAX ( ALL - + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT 30 * + 24 * - COUNT( * ) * - 19 AS col0
----
13680

skipif mysql # not compatible
query I rowsort label-4267
SELECT 30 * + 24 * - COUNT ( * ) * - 19 AS col0
----
13680

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT COUNT( * ) * + ( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4268
SELECT COUNT ( * ) * + ( - 32 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4269
SELECT - 6 DIV + + 46 + - 61 - + MIN( ALL + 60 ) AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-4269
SELECT - 6 / + + 46 + - 61 - + MIN ( ALL + 60 ) AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT - CASE - ( - ( + COALESCE ( 20, - 50, + 59 + - + 57 ) ) ) WHEN - 11 THEN NULL WHEN ( 34 ) THEN + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT - CASE - ( - ( + COALESCE ( 20, - 50, + 59 + - + 57 ) ) ) WHEN - 11 THEN NULL WHEN ( 34 ) THEN + + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT COUNT( * ) + - 21
----
-20

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT COUNT ( * ) + - 21
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT - COUNT( 4 ) - - - CASE + 73 WHEN + + 23 THEN + + 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT - COUNT ( 4 ) - - - CASE + 73 WHEN + + 23 THEN + + 67 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 67 + + + 43 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT CASE - 13 WHEN 11 THEN + ( - + 29 ) ELSE + 3 + COUNT( * ) - + ( COALESCE ( - 77, 67 + MIN( 35 ) + + 18 + 22 + 84 * 81 ) ) * - 13 * + 97 - - 38 * 91 END AS col1
----
-93635

skipif mysql # not compatible
query I rowsort label-4274
SELECT CASE - 13 WHEN 11 THEN + ( - + 29 ) ELSE + 3 + COUNT ( * ) - + ( COALESCE ( - 77, 67 + MIN ( 35 ) + + 18 + 22 + 84 * 81 ) ) * - 13 * + 97 - - 38 * 91 END AS col1
----
-93635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT + 52 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 52 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 36 * 5 * - + 36
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL + 26 + 62 + - 42 * COUNT( * ) * + 63
----
-2558

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + 26 + 62 + - 42 * COUNT ( * ) * + 63
----
-2558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT - - CASE 83 WHEN 83 * - 92 * - - COALESCE ( 80, - 56 + 14 ) + CAST( NULL AS SIGNED ) * COUNT( * ) / - 68 - - 56 * - ( - CAST( NULL AS SIGNED ) ) THEN 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT - - CASE 83 WHEN 83 * - 92 * - - COALESCE ( 80, - 56 + 14 ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) / - 68 - - 56 * - ( - CAST ( NULL AS INTEGER ) ) THEN 10 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4279
SELECT ALL MAX( ALL + 31 ) AS col1, + 42 + CAST( NULL AS SIGNED ) - + ( + + 64 ) + 58 + - 84 AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-4279
SELECT ALL MAX ( ALL + 31 ) AS col1, + 42 + CAST ( NULL AS INTEGER ) - + ( + + 64 ) + 58 + - 84 AS col2
----
31
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT 83 * + 72 * + + CAST( 28 AS SIGNED ) AS col1
----
167328

skipif mysql # not compatible
query I rowsort label-4280
SELECT 83 * + 72 * + + CAST ( 28 AS INTEGER ) AS col1
----
167328

query I rowsort
SELECT 18 * + 47 AS col1
----
846

query I rowsort
SELECT 24 - 89 AS col1
----
-65

query II rowsort
SELECT DISTINCT 12 AS col0, ( - 85 )
----
12
-85

query I rowsort
SELECT ( 34 ) + ( + 90 )
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-4285
SELECT - 66, + COUNT( * ) + - NULLIF ( 46, + 72 ) col0
----
-66
-45

skipif mysql # not compatible
query II rowsort label-4285
SELECT - 66, + COUNT ( * ) + - NULLIF ( 46, + 72 ) col0
----
-66
-45

query I rowsort
SELECT ALL - CASE - 71 WHEN - 42 THEN + ( - 25 ) WHEN 13 THEN + 96 ELSE NULL END / - + 22 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4287
SELECT DISTINCT 23 AS col1, COUNT( * ) DIV + COALESCE ( + - CASE 7 WHEN - COUNT( * ) THEN - ( + COALESCE ( - 52, CAST( NULL AS SIGNED ) + COUNT( * ) * - 49, 34 + - 72 + + - 4 - + 35 * + 5 + 47 + - 32 DIV - - 3 * - - 79 + + + 48 * + COUNT( ALL - 34 ) ) ) WHEN - - COUNT( * ) + - + ( 0 ) THEN SUM( ALL + 27 ) DIV + 2 END, MAX( ALL - - 68 ) ) * + 18 * - 26
----
23
0

skipif mysql # not compatible
query II rowsort label-4287
SELECT DISTINCT 23 AS col1, COUNT ( * ) / + COALESCE ( + - CASE 7 WHEN - COUNT ( * ) THEN - ( + COALESCE ( - 52, CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 49, 34 + - 72 + + - 4 - + 35 * + 5 + 47 + - 32 / - - 3 * - - 79 + + + 48 * + COUNT ( ALL - 34 ) ) ) WHEN - - COUNT ( * ) + - + ( 0 ) THEN SUM ( ALL + 27 ) / + 2 END, MAX ( ALL - - 68 ) ) * + 18 * - 26
----
23
0

query II rowsort
SELECT 24 + - 61 * - 30 AS col0, 68
----
1854
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT DISTINCT + COALESCE ( - 93, - - ( - + ( + NULLIF ( COALESCE ( + 65, + + SUM( DISTINCT 0 ), 41 + + - AVG ( + 79 ), 65 ), 90 + - 58 - + COUNT( * ) * + - 66 DIV + 60 * - 60 * + + 65 * COUNT( * ) + - - 86 + COUNT( 66 ) * - - 76 ) ) ) * COUNT( + + 10 ) DIV - - 4 + + 79 ) * 96 col0
----
-8928

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT + COALESCE ( - 93, - - ( - + ( + NULLIF ( COALESCE ( + 65, + + SUM ( DISTINCT 0 ), 41 + + - AVG ( + 79 ), 65 ), 90 + - 58 - + COUNT ( * ) * + - 66 / + 60 * - 60 * + + 65 * COUNT ( * ) + - - 86 + COUNT ( 66 ) * - - 76 ) ) ) * COUNT ( + + 10 ) / - - 4 + + 79 ) * 96 col0
----
-8928

onlyif mysql # aggregate syntax: 
query II rowsort label-4290
SELECT 33 + + COUNT( + 29 ) AS col0, 63 AS col2
----
34
63

skipif mysql # not compatible
query II rowsort label-4290
SELECT 33 + + COUNT ( + 29 ) AS col0, 63 AS col2
----
34
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT COUNT( * ) + + COUNT( * ) * - - COUNT( DISTINCT - 5 )
----
2

skipif mysql # not compatible
query I rowsort label-4291
SELECT COUNT ( * ) + + COUNT ( * ) * - - COUNT ( DISTINCT - 5 )
----
2

query I rowsort
SELECT ALL + 22 * - + 46 AS col1
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT COUNT( * ) * COALESCE ( + 84, - 63 ) * + 50 AS col2
----
4200

skipif mysql # not compatible
query I rowsort label-4293
SELECT COUNT ( * ) * COALESCE ( + 84, - 63 ) * + 50 AS col2
----
4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4294
SELECT 52 + - ( - + COUNT( * ) ) DIV 62
----
52

skipif mysql # not compatible
query I rowsort label-4294
SELECT 52 + - ( - + COUNT ( * ) ) / 62
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT 22 DIV - ( - + 45 ) + - 54 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4295
SELECT 22 / - ( - + 45 ) + - 54 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL - COUNT( 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - COUNT ( 66 )
----
-1

query I rowsort
SELECT 33 + + 81 * - + 10 * - 4 AS col2
----
3273

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT + 15 DIV + + 42 + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-4298
SELECT + 15 / + + 42 + - 27
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT 39 DIV + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4299
SELECT 39 / + 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT ( + 84 ) * 94 + + - 55 * + - 87 + + COUNT( * ) + MAX( - 74 )
----
12608

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT ( + 84 ) * 94 + + - 55 * + - 87 + + COUNT ( * ) + MAX ( - 74 )
----
12608

query I rowsort
SELECT DISTINCT - 4 * - 20 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL - 36 * + - COUNT( * ) + + - 78 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - 36 * + - COUNT ( * ) + + - 78 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT ALL CAST( NULL AS SIGNED ) * - 66 + + AVG ( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL CAST ( NULL AS INTEGER ) * - 66 + + AVG ( + 24 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT 93 DIV + + SUM( ALL + 26 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4304
SELECT 93 / + + SUM ( ALL + 26 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL - MIN( 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - MIN ( 21 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT + CASE + COALESCE ( + ( - 74 ), + COUNT( * ) ) WHEN + COUNT( ALL - 36 ) + 93 THEN NULL WHEN + COUNT( - - COALESCE ( + CAST( NULL AS SIGNED ), 46 ) ) THEN 25 END + CAST( COUNT( DISTINCT - 38 ) AS SIGNED ) * - NULLIF ( - 19, - 59 ) + 91 * - 45 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT + CASE + COALESCE ( + ( - 74 ), + COUNT ( * ) ) WHEN + COUNT ( ALL - 36 ) + 93 THEN NULL WHEN + COUNT ( - - COALESCE ( + CAST ( NULL AS INTEGER ), 46 ) ) THEN 25 END + CAST ( COUNT ( DISTINCT - 38 ) AS INTEGER ) * - NULLIF ( - 19, - 59 ) + 91 * - 45 + - 5
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 59, - 68 ) + - + 5
----
-64

query I rowsort
SELECT 41 * 84
----
3444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT + 36 * + 64 + + COALESCE ( + 92, - 65 + - 38 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT + 36 * + 64 + + COALESCE ( + 92, - 65 + - 38 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT + + ( - CASE - - 8 WHEN - COUNT( * ) + - - 94 * 13 THEN - - 68 * + 28 - - 3 * 85 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT + + ( - CASE - - 8 WHEN - COUNT ( * ) + - - 94 * 13 THEN - - 68 * + 28 - - 3 * 85 END ) AS col2
----
NULL

query I rowsort
SELECT ALL - - ( - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT + 49 * + 51 + - MIN( ALL + + ( - 8 ) ) + + + 79
----
2586

skipif mysql # not compatible
query I rowsort label-4312
SELECT + 49 * + 51 + - MIN ( ALL + + ( - 8 ) ) + + + 79
----
2586

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4313
SELECT 62 * 89 * + ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT 62 * 89 * + ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT 77 * - + 30 + + 73 AS col2
----
-2237

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + SUM( DISTINCT - - 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4315
SELECT + SUM ( DISTINCT - - 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + MIN( ALL + - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4316
SELECT + MIN ( ALL + - 28 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4317
SELECT + + CAST( NULL AS SIGNED ) + - ( + + ( + 3 ) ) * + 82 AS col0, 80 * + + 70 AS col0
----
NULL
5600

skipif mysql # not compatible
query II rowsort label-4317
SELECT + + CAST ( NULL AS INTEGER ) + - ( + + ( + 3 ) ) * + 82 AS col0, 80 * + + 70 AS col0
----
NULL
5600

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL COUNT( DISTINCT ( + 88 ) ) - - - CASE + COUNT( * ) WHEN 86 * - - 75 + + 36 + - + 45 * + 34 + - 96 THEN + 71 + - 45 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL COUNT ( DISTINCT ( + 88 ) ) - - - CASE + COUNT ( * ) WHEN 86 * - - 75 + + 36 + - + 45 * + 34 + - 96 THEN + 71 + - 45 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL - COUNT( * ) * - 25
----
25

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - COUNT ( * ) * - 25
----
25

query II rowsort
SELECT - 25 AS col2, - 54
----
-25
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT ALL 8 AS col0, 73 + + COUNT( * ) + + 40 col2
----
8
114

skipif mysql # not compatible
query II rowsort label-4321
SELECT ALL 8 AS col0, 73 + + COUNT ( * ) + + 40 col2
----
8
114

query II rowsort
SELECT DISTINCT 59 AS col2, 66 * + - 91 AS col2
----
59
-6006

query II rowsort
SELECT DISTINCT 12, + 41 + - 83 AS col1
----
12
-42

query II rowsort
SELECT DISTINCT 70 col0, + ( - 66 ) * + 35
----
70
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL COUNT( + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL COUNT ( + 40 )
----
1

query II rowsort
SELECT - ( - 96 ), + 75 AS col0
----
96
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT + 91 * + 48 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT + 91 * + 48 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 97 * 21
----
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT COUNT( * ) * - + ( + 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT COUNT ( * ) * - + ( + 89 ) AS col1
----
-89

query I rowsort
SELECT + 61 * - 63
----
-3843

query I rowsort
SELECT ALL + 91 + 33 * + 49 * 36 * + 23
----
1338967

query I rowsort
SELECT ALL COALESCE ( + 20, - 20 ) + 32 * - 36
----
-1132

query I rowsort
SELECT DISTINCT + 45 * - 46 + 97 AS col1
----
-1973

query I rowsort
SELECT ALL + NULLIF ( ( + - 57 ), - + ( 93 ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL NULLIF ( - + 18, - 43 + - 45 ) * + 29 + COUNT( * ) + 83 + - - 50 * - 59 col2
----
-3388

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL NULLIF ( - + 18, - 43 + - 45 ) * + 29 + COUNT ( * ) + 83 + - - 50 * - 59 col2
----
-3388

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT - - COUNT( * ) * - SUM( DISTINCT - 11 ) + + 62 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4336
SELECT - - COUNT ( * ) * - SUM ( DISTINCT - 11 ) + + 62 AS col2
----
73

query I rowsort
SELECT ALL 18 * 88 + + + 60
----
1644

query I rowsort
SELECT + + COALESCE ( 49, + 63 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL + MIN( ALL - + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + MIN ( ALL - + 29 )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT 87 * 46 + - - 82 + + + 69 DIV - 42 AS col0
----
4083

skipif mysql # not compatible
query I rowsort label-4340
SELECT 87 * 46 + - - 82 + + + 69 / - 42 AS col0
----
4083

query I rowsort
SELECT - 91 * - ( - 25 )
----
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT + 47 * NULLIF ( + COUNT( * ), - 80 * - + 83 ) * - 15 + - 5 + + 31 * - + 30 + - 12 * - 92 + 16 AS col1
----
-520

skipif mysql # not compatible
query I rowsort label-4342
SELECT + 47 * NULLIF ( + COUNT ( * ), - 80 * - + 83 ) * - 15 + - 5 + + 31 * - + 30 + - 12 * - 92 + 16 AS col1
----
-520

query II rowsort
SELECT 41 AS col0, 0 * + 97 - - + 40
----
41
40

query I rowsort
SELECT - + NULLIF ( - + 34, + + 79 ) * - + 29 * 91 col0
----
-89726

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL - - 26 * - + COALESCE ( CASE - - 1 WHEN 34 * - 91 * - MIN( ALL 32 ) / 15 THEN - 74 END, + COUNT( * ), - ( - ( ( - - 88 ) ) ) * + 43 + 75 ) * + + 44 + - 56 * + COUNT( * ) + - - MAX( + 78 )
----
-1122

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - - 26 * - + COALESCE ( CASE - - 1 WHEN 34 * - 91 * - MIN ( ALL 32 ) / 15 THEN - 74 END, + COUNT ( * ), - ( - ( ( - - 88 ) ) ) * + 43 + 75 ) * + + 44 + - 56 * + COUNT ( * ) + - - MAX ( + 78 )
----
-1122

query I rowsort
SELECT DISTINCT + NULLIF ( + 59, - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT - 16 * - - COUNT( * ) * - + 97 - - 43
----
1595

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - 16 * - - COUNT ( * ) * - + 97 - - 43
----
1595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT + ( - 77 ) * + - 83 + + + 9 + + ( 24 ) + 41 + COUNT( + 90 ) DIV - 25 + + 49 * COUNT( * ) AS col0
----
6514

skipif mysql # not compatible
query I rowsort label-4348
SELECT + ( - 77 ) * + - 83 + + + 9 + + ( 24 ) + 41 + COUNT ( + 90 ) / - 25 + + 49 * COUNT ( * ) AS col0
----
6514

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - COALESCE ( - COUNT( * ), 86 - SUM( - 26 ) + + 77 * 34 ) * - 41 * 69 * - 30 AS col2
----
84870

skipif mysql # not compatible
query I rowsort label-4349
SELECT - COALESCE ( - COUNT ( * ), 86 - SUM ( - 26 ) + + 77 * 34 ) * - 41 * 69 * - 30 AS col2
----
84870

query I rowsort
SELECT + 93 * - ( + 53 ) + + 34 + 15 AS col2
----
-4880

query II rowsort
SELECT + - 25, 58 AS col1
----
-25
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - ( - 77 ) * - COALESCE ( + MIN( ALL + - ( 34 ) ), + - COALESCE ( - 19, - 64 ) * - 23 * - 92 - - 14 + + + 14 * + 65 * 37 ) AS col2
----
2618

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - ( - 77 ) * - COALESCE ( + MIN ( ALL + - ( 34 ) ), + - COALESCE ( - 19, - 64 ) * - 23 * - 92 - - 14 + + + 14 * + 65 * 37 ) AS col2
----
2618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT DISTINCT + COUNT( * ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + COUNT ( * ) / 52
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT ALL ( + + COUNT( ALL + 48 ) ) AS col0, - 39 * 24 + - ( - MIN( ALL + 98 ) ) AS col1
----
1
-838

skipif mysql # not compatible
query II rowsort label-4354
SELECT ALL ( + + COUNT ( ALL + 48 ) ) AS col0, - 39 * 24 + - ( - MIN ( ALL + 98 ) ) AS col1
----
1
-838

query I rowsort
SELECT + 68 - + 93
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT + 27 / ( - 92 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT + 27 / ( - 92 ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 94 * - + 45 AS col2
----
-4230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT ALL 26 * - 99 DIV - COUNT( * ) AS col1
----
2574

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL 26 * - 99 / - COUNT ( * ) AS col1
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT SUM( + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4359
SELECT SUM ( + 14 ) AS col0
----
14

query I rowsort
SELECT + 73 * 45
----
3285

query I rowsort
SELECT + 85 + 5
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT + 91 - 95 + + ( + COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4362
SELECT + 91 - 95 + + ( + COUNT ( * ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT - CAST( 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4363
SELECT - CAST ( 58 AS INTEGER ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL 73 + + MAX( + 46 )
----
119

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL 73 + + MAX ( + 46 )
----
119

onlyif mysql # aggregate syntax: 
query III rowsort label-4365
SELECT + 37 + - COUNT( * ) AS col0, - 34 AS col1, 1
----
36
-34
1

skipif mysql # not compatible
query III rowsort label-4365
SELECT + 37 + - COUNT ( * ) AS col0, - 34 AS col1, 1
----
36
-34
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT - ( + MIN( + - 59 ) ) AS col2, 40
----
59
40

skipif mysql # not compatible
query II rowsort label-4366
SELECT - ( + MIN ( + - 59 ) ) AS col2, 40
----
59
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT ALL CAST( NULL AS SIGNED ) + + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL CAST ( NULL AS INTEGER ) + + + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT SUM( ALL 72 ) + - 28 - 17
----
27

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT SUM ( ALL 72 ) + - 28 - 17
----
27

query I rowsort
SELECT DISTINCT 30 * + + 57
----
1710

query II rowsort
SELECT - 66 + + - 45 AS col1, + 89
----
-111
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT ALL NULLIF ( 20, + 99 ) + - - 15 DIV - 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL NULLIF ( 20, + 99 ) + - - 15 / - 19 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT + + 16 DIV + + 79 - + 53 + - + 87 AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-4372
SELECT + + 16 / + + 79 - + 53 + - + 87 AS col1
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT - + COALESCE ( 12, + 39, 37 + 14 + - 24 * + - 53 * - NULLIF ( SUM( ALL + NULLIF ( 14, + 54 ) ), - + CAST( NULL AS SIGNED ) ) ) * + 62
----
-744

skipif mysql # not compatible
query I rowsort label-4373
SELECT - + COALESCE ( 12, + 39, 37 + 14 + - 24 * + - 53 * - NULLIF ( SUM ( ALL + NULLIF ( 14, + 54 ) ), - + CAST ( NULL AS INTEGER ) ) ) * + 62
----
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT CASE - - NULLIF ( + 89, 48 ) WHEN - + NULLIF ( + COUNT( * ), 98 ) * + 90 - + + 12 + + + 12 + + 76 * + 45 + - 49 * - ( - 64 ) + - SUM( - 41 ) * + 20 * + 96 * + 90 * + + 97 THEN NULL WHEN + 50 + 4 + - + 23 * - 33 THEN + 44 / - - 34 * - - 95 END / + 98 - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT CASE - - NULLIF ( + 89, 48 ) WHEN - + NULLIF ( + COUNT ( * ), 98 ) * + 90 - + + 12 + + + 12 + + 76 * + 45 + - 49 * - ( - 64 ) + - SUM ( - 41 ) * + 20 * + 96 * + 90 * + + 97 THEN NULL WHEN + 50 + 4 + - + 23 * - 33 THEN + 44 / - - 34 * - - 95 END / + 98 - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT ALL + + MAX( DISTINCT + ( - 14 ) ) AS col1, + 92 + + COUNT( * ) + - 35 AS col1
----
-14
58

skipif mysql # not compatible
query II rowsort label-4375
SELECT ALL + + MAX ( DISTINCT + ( - 14 ) ) AS col1, + 92 + + COUNT ( * ) + - 35 AS col1
----
-14
58

query I rowsort
SELECT ALL + ( + + 61 )
----
61

query I rowsort
SELECT + 41 * + + 43 + - + 67 + 32 AS col2
----
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4378
SELECT ALL + COUNT( * ) DIV + 75, 64 * - - ( - - ( 78 ) ) AS col1
----
0
4992

skipif mysql # not compatible
query II rowsort label-4378
SELECT ALL + COUNT ( * ) / + 75, 64 * - - ( - - ( 78 ) ) AS col1
----
0
4992

query I rowsort
SELECT DISTINCT 20 - - ( + 72 ) + 81 AS col0
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4380
SELECT 40 + COALESCE ( - CAST( NULL AS SIGNED ), + ( ( - 85 ) ) * + 73 + + + COUNT( * ) ) + + ( - 25 ) col1
----
-6189

skipif mysql # not compatible
query I rowsort label-4380
SELECT 40 + COALESCE ( - CAST ( NULL AS INTEGER ), + ( ( - 85 ) ) * + 73 + + + COUNT ( * ) ) + + ( - 25 ) col1
----
-6189

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT - MIN( - 94 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT - MIN ( - 94 ) col0
----
94

query I rowsort
SELECT + 91 * + 99
----
9009

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4383
SELECT ALL - COUNT( * ) * - + 41 col2, + 61 DIV + MAX( DISTINCT 12 ) AS col2
----
41
5

skipif mysql # not compatible
query II rowsort label-4383
SELECT ALL - COUNT ( * ) * - + 41 col2, + 61 / + MAX ( DISTINCT 12 ) AS col2
----
41
5

query I rowsort
SELECT + - 75 * + 53 + 5 AS col2
----
-3970

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT + 57 * - 91 * + - MAX( - + 11 )
----
-57057

skipif mysql # not compatible
query I rowsort label-4385
SELECT + 57 * - 91 * + - MAX ( - + 11 )
----
-57057

query I rowsort
SELECT ALL 27 * NULLIF ( + 26, 16 ) AS col0
----
702

query I rowsort
SELECT DISTINCT + COALESCE ( - - ( - 44 ), - 36 - 87, + 97 + + 56 + + + 51 ) + - 70 + - + ( - 94 ) * + + 3 * 36
----
10038

query I rowsort
SELECT - 42 * - + 27 + 23 AS col1
----
1157

onlyif mysql # DIV for integer division: 
query II rowsort label-4389
SELECT ALL - 72 AS col2, 23 * + + 73 * + + 95 - + 97 DIV 99
----
-72
159505

skipif mysql # not compatible
query II rowsort label-4389
SELECT ALL - 72 AS col2, 23 * + + 73 * + + 95 - + 97 / 99
----
-72
159505

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL - 26 + - CASE + COUNT( * ) WHEN - COUNT( ALL + 47 ) + + - COUNT( * ) * SUM( - 64 ) * - 4 THEN + 77 ELSE + - 58 END
----
32

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL - 26 + - CASE + COUNT ( * ) WHEN - COUNT ( ALL + 47 ) + + - COUNT ( * ) * SUM ( - 64 ) * - 4 THEN + 77 ELSE + - 58 END
----
32

query I rowsort
SELECT 24 * - - 8 * + + 20 * 7 * + 52 AS col0
----
1397760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4392
SELECT COUNT( DISTINCT - 32 ) + + CAST( + COUNT( * ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-4392
SELECT COUNT ( DISTINCT - 32 ) + + CAST ( + COUNT ( * ) AS INTEGER )
----
2

query I rowsort
SELECT 69 + - - 65 + 92
----
226

query I rowsort
SELECT ALL 73 + - 61 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4395
SELECT 38 AS col0, 87 + - - 14 + - CAST( NULL AS SIGNED ) / + 57 * + MAX( ALL + 33 ) / - - 38 + 80 * + ( - 89 ) AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4395
SELECT 38 AS col0, 87 + - - 14 + - CAST ( NULL AS INTEGER ) / + 57 * + MAX ( ALL + 33 ) / - - 38 + 80 * + ( - 89 ) AS col0
----
38
NULL

query I rowsort
SELECT DISTINCT - 9 + + + 11
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL 25 + - COUNT( * ) + - COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL 25 + - COUNT ( * ) + - COUNT ( * ) AS col2
----
23

query I rowsort
SELECT 58 * 30 * + 74 AS col1
----
128760

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT 60 + + 6 - - - COUNT( * ) * + + 8 * + 2 * 6 * 79
----
-7518

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT 60 + + 6 - - - COUNT ( * ) * + + 8 * + 2 * 6 * 79
----
-7518

query I rowsort
SELECT DISTINCT - 73 * 71 * + 13
----
-67379

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT - 48 AS col1, COUNT( + 87 )
----
-48
1

skipif mysql # not compatible
query II rowsort label-4401
SELECT - 48 AS col1, COUNT ( + 87 )
----
-48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL 89 - COUNT( * ) * - - 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL 89 - COUNT ( * ) * - - 89 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT 48 - + + NULLIF ( + 16, 31 ) + - + 63 + - 52 DIV + - 3 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4403
SELECT 48 - + + NULLIF ( + 16, 31 ) + - + 63 + - 52 / + - 3 AS col1
----
-14

query II rowsort
SELECT - 51 AS col2, 9 * - + ( - 97 ) AS col2
----
-51
873

query II rowsort
SELECT - + 93 AS col0, + 85
----
-93
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4406
SELECT + CAST( + 4 AS SIGNED ) * + 3 AS col0, + ( 74 ) + CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - CAST( - 95 AS SIGNED ) ) + + - SUM( - 12 ) col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-4406
SELECT + CAST ( + 4 AS INTEGER ) * + 3 AS col0, + ( 74 ) + CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - CAST ( - 95 AS INTEGER ) ) + + - SUM ( - 12 ) col2
----
12
NULL

query I rowsort
SELECT - 12 * - - NULLIF ( - 18, 99 + - - 96 )
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL 69 * + 83 * + 31 + - - COUNT( * ) - - 21 * - - 38 AS col2
----
178336

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL 69 * + 83 * + 31 + - - COUNT ( * ) - - 21 * - - 38 AS col2
----
178336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4409
SELECT - 39 - ( - CAST( NULL AS SIGNED ) ) + + 50 + + + 93 + + 96 + + MIN( - + 40 ) - - CAST( NULL AS SIGNED ) * MIN( - - 97 ) * + - ( + 28 ) / - 23 + + 1 + + COALESCE ( 48, AVG ( ALL 5 ) + 92, + + ( + COUNT( * ) ) + + 93 + - 48 + ( + 64 ), - 37 + + 87 - - 69 * + 7 + + 64 * - 76 * - 62 ) / AVG ( + 91 ) * 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT - 39 - ( - CAST ( NULL AS INTEGER ) ) + + 50 + + + 93 + + 96 + + MIN ( - + 40 ) - - CAST ( NULL AS INTEGER ) * MIN ( - - 97 ) * + - ( + 28 ) / - 23 + + 1 + + COALESCE ( 48, AVG ( ALL 5 ) + 92, + + ( + COUNT ( * ) ) + + 93 + - 48 + ( + 64 ), - 37 + + 87 - - 69 * + 7 + + 64 * - 76 * - 62 ) / AVG ( + 91 ) * 48 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4410
SELECT ALL 9 DIV + 56 + + - CAST( - - 83 AS SIGNED ) + + - 64 * 74 + - - ( 19 ) * + + 11 * - 9
----
-6700

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL 9 / + 56 + + - CAST ( - - 83 AS INTEGER ) + + - 64 * 74 + - - ( 19 ) * + + 11 * - 9
----
-6700

query II rowsort
SELECT DISTINCT - - 13, - ( 75 ) AS col1
----
13
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT DISTINCT ( - + COUNT( ALL + 87 ) ) * - + COALESCE ( - CAST( NULL AS SIGNED ), - - 48, - + COUNT( * ), 49 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT ( - + COUNT ( ALL + 87 ) ) * - + COALESCE ( - CAST ( NULL AS INTEGER ), - - 48, - + COUNT ( * ), 49 ) AS col1
----
48

query II rowsort
SELECT + NULLIF ( 10, 61 ), + 21 AS col0
----
10
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4414
SELECT CASE + + 3 WHEN + 21 THEN - 62 END / + CAST( + - ( 34 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT CASE + + 3 WHEN + 21 THEN - 62 END / + CAST ( + - ( 34 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - - 70, + + 10 ) * + 3
----
-210

query I rowsort
SELECT - 98 + - 29
----
-127

query II rowsort
SELECT ALL - - 72 col0, 68
----
72
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT 65 DIV - 94 * - COUNT( * ) * COALESCE ( - 59, + MAX( DISTINCT + 19 ) DIV 15 ) + 80 + 99 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-4418
SELECT 65 / - 94 * - COUNT ( * ) * COALESCE ( - 59, + MAX ( DISTINCT + 19 ) / 15 ) + 80 + 99 AS col0
----
179

query I rowsort
SELECT ALL 16 * 87 AS col2
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT - CASE + 88 WHEN - 18 / + + 73 THEN - 11 * + COUNT( + 86 ) * + - 80 + - 16 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT - CASE + 88 WHEN - 18 / + + 73 THEN - 11 * + COUNT ( + 86 ) * + - 80 + - 16 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 43 * - 89 AS col1
----
-3827

onlyif mysql # aggregate syntax: 
query II rowsort label-4422
SELECT - 0 * - + 87 - + + COUNT( * ) * + COUNT( * ), 49 - + 42 AS col1
----
-1
7

skipif mysql # not compatible
query II rowsort label-4422
SELECT - 0 * - + 87 - + + COUNT ( * ) * + COUNT ( * ), 49 - + 42 AS col1
----
-1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ( - + COUNT( * ) ) + + 66 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4423
SELECT ( - + COUNT ( * ) ) + + 66 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL + CASE - ( 84 ) WHEN + COALESCE ( - COUNT( ALL + + 33 ), 95 * - 9 + + 0 * + 63 ) + + + CASE 81 WHEN 87 THEN - + COUNT( ALL + 9 ) WHEN + COALESCE ( 76, + - 64 ) / - + ( 63 ) + + 34 THEN - COALESCE ( - 89, + 12, 8 + ( - 62 ) ) * - 8 * + - CAST( NULL AS SIGNED ) * - CAST( - 68 AS SIGNED ) + - 79 ELSE - - 90 END THEN + - MIN( DISTINCT 9 ) / - 75 WHEN + 19 * 71 + - 70 THEN 60 ELSE NULL END * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL + CASE - ( 84 ) WHEN + COALESCE ( - COUNT ( ALL + + 33 ), 95 * - 9 + + 0 * + 63 ) + + + CASE 81 WHEN 87 THEN - + COUNT ( ALL + 9 ) WHEN + COALESCE ( 76, + - 64 ) / - + ( 63 ) + + 34 THEN - COALESCE ( - 89, + 12, 8 + ( - 62 ) ) * - 8 * + - CAST ( NULL AS INTEGER ) * - CAST ( - 68 AS INTEGER ) + - 79 ELSE - - 90 END THEN + - MIN ( DISTINCT 9 ) / - 75 WHEN + 19 * 71 + - 70 THEN 60 ELSE NULL END * 9
----
NULL

query II rowsort
SELECT DISTINCT + 50 * - 22 AS col0, 91 * ( - 52 ) + + - 44
----
-1100
-4776

query I rowsort
SELECT ALL + 32 + - 7 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL + SUM( ( - 34 ) ) + - 81 * - COUNT( * ) * + - 77 * 52 AS col0
----
-324358

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + SUM ( ( - 34 ) ) + - 81 * - COUNT ( * ) * + - 77 * 52 AS col0
----
-324358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4428
SELECT 48 + MAX( DISTINCT + 34 ) DIV 39 * + + 19 * + - 19
----
48

skipif mysql # not compatible
query I rowsort label-4428
SELECT 48 + MAX ( DISTINCT + 34 ) / 39 * + + 19 * + - 19
----
48

query I rowsort
SELECT 58 + 28 + + 99 AS col0
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4430
SELECT 93 - 29 DIV - + 74 + - COUNT( * ), + 38 AS col0
----
92
38

skipif mysql # not compatible
query II rowsort label-4430
SELECT 93 - 29 / - + 74 + - COUNT ( * ), + 38 AS col0
----
92
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL MAX( DISTINCT + COALESCE ( - 6, + 2 ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL MAX ( DISTINCT + COALESCE ( - 6, + 2 ) ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL - 5 * - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - 5 * - COUNT ( * ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT ALL - + NULLIF ( 73, + - 2 * 18 * + + 52 ) DIV 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL - + NULLIF ( 73, + - 2 * 18 * + + 52 ) / 68 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - COUNT( + 40 ) * + 21
----
-21

skipif mysql # not compatible
query I rowsort label-4434
SELECT - COUNT ( + 40 ) * + 21
----
-21

query I rowsort
SELECT 54 + 4
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4436
SELECT DISTINCT - 61 - 76 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - 61 - 76 * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 19 * + 91 AS col2
----
-1729

query I rowsort
SELECT - - NULLIF ( 60, + - 58 + + + 32 ) * 27 AS col0
----
1620

onlyif mysql # aggregate syntax: 
query II rowsort label-4439
SELECT + 46 * - COUNT( * ) * - ( - - 3 ), MIN( - 55 ) * 19 AS col0
----
138
-1045

skipif mysql # not compatible
query II rowsort label-4439
SELECT + 46 * - COUNT ( * ) * - ( - - 3 ), MIN ( - 55 ) * 19 AS col0
----
138
-1045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT ALL + CAST( AVG ( ALL - 63 ) AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL + CAST ( AVG ( ALL - 63 ) AS INTEGER ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT - ( 18 ) DIV + - 83 + - 40 * + 28
----
-1120

skipif mysql # not compatible
query I rowsort label-4441
SELECT - ( 18 ) / + - 83 + - 40 * + 28
----
-1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT - CAST( NULL AS SIGNED ) * - + NULLIF ( - 3, - + 46 + + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT - CAST ( NULL AS INTEGER ) * - + NULLIF ( - 3, - + 46 + + 33 )
----
NULL

query I rowsort
SELECT ALL + + 54 * - - ( - 25 ) + + 62
----
-1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) * 64 - - 13 + - 59 - - - 32 col2
----
-142

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) * 64 - - 13 + - 59 - - - 32 col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL - 29 * 60 + - COUNT( * ) + + 27 col0
----
-1714

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - 29 * 60 + - COUNT ( * ) + + 27 col0
----
-1714

query I rowsort
SELECT ALL + 46 * + 82 + + + 64 AS col0
----
3836

query I rowsort
SELECT + 44 * 25 AS col0
----
1100

query I rowsort
SELECT + 50 * - + 2 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL - 69 * - COUNT( * ) * 28 + + + 66 AS col0
----
1998

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - 69 * - COUNT ( * ) * 28 + + + 66 AS col0
----
1998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT + MAX( ALL + 23 ) + + 52 DIV 15 * + + 95
----
308

skipif mysql # not compatible
query I rowsort label-4450
SELECT + MAX ( ALL + 23 ) + + 52 / 15 * + + 95
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4451
SELECT + 14 * + + 49 * - - CAST( + 68 AS SIGNED ) * + 32 AS col0, + 96 + - + COUNT( * )
----
1492736
95

skipif mysql # not compatible
query II rowsort label-4451
SELECT + 14 * + + 49 * - - CAST ( + 68 AS INTEGER ) * + 32 AS col0, + 96 + - + COUNT ( * )
----
1492736
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + 32 + - 49 * - SUM( - 8 ) * - MAX( DISTINCT 45 )
----
17672

skipif mysql # not compatible
query I rowsort label-4452
SELECT + 32 + - 49 * - SUM ( - 8 ) * - MAX ( DISTINCT 45 )
----
17672

query I rowsort
SELECT DISTINCT - 91 * 22 AS col2
----
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT MAX( NULLIF ( + 24, - 86 * 28 ) )
----
24

skipif mysql # not compatible
query I rowsort label-4454
SELECT MAX ( NULLIF ( + 24, - 86 * 28 ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4455
SELECT - 84 + + + CAST( + 97 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4455
SELECT - 84 + + + CAST ( + 97 AS INTEGER ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT DISTINCT 82 * NULLIF ( + 83, + 44 ) - COUNT( * ) * + COUNT( * )
----
6805

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT 82 * NULLIF ( + 83, + 44 ) - COUNT ( * ) * + COUNT ( * )
----
6805

query I rowsort
SELECT + CASE + 83 WHEN 48 THEN ( 52 ) END * + 62 + 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL + 28 * + + COUNT( * ) * - 92 * - + 25 AS col0
----
64400

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL + 28 * + + COUNT ( * ) * - 92 * - + 25 AS col0
----
64400

query I rowsort
SELECT - ( + 84 ) AS col0
----
-84

query I rowsort
SELECT DISTINCT 13 * - 6
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4461
SELECT ALL + ( 65 ) * 79 AS col1, - CAST( NULL AS SIGNED ) + + COUNT( * ) + 95 AS col2
----
5135
NULL

skipif mysql # not compatible
query II rowsort label-4461
SELECT ALL + ( 65 ) * 79 AS col1, - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 95 AS col2
----
5135
NULL

query I rowsort
SELECT ALL NULLIF ( 38, - 56 ) col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL - + CAST( NULL AS SIGNED ) * NULLIF ( - 17, 16 * 99 + + ( + CASE + - AVG ( + - 73 ) WHEN + AVG ( ALL - 98 ) / - + 47 THEN - 14 + - 33 / 15 WHEN + MIN( - + 94 ) + 98 THEN NULL ELSE + 88 * + COALESCE ( + - 40, - 59, + 7 * 72 ) + - 17 - - 90 * 70 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - + CAST ( NULL AS INTEGER ) * NULLIF ( - 17, 16 * 99 + + ( + CASE + - AVG ( + - 73 ) WHEN + AVG ( ALL - 98 ) / - + 47 THEN - 14 + - 33 / 15 WHEN + MIN ( - + 94 ) + 98 THEN NULL ELSE + 88 * + COALESCE ( + - 40, - 59, + 7 * 72 ) + - 17 - - 90 * 70 END ) )
----
NULL

query II rowsort
SELECT DISTINCT 77 AS col1, + ( - 23 ) AS col1
----
77
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4465
SELECT - 30 DIV + - COUNT( * ) + - 82, + 52 + - COALESCE ( + 83, 81 * 13, - - 69 * 67 ) + + 79 DIV COUNT( * ) AS col0
----
-52
48

skipif mysql # not compatible
query II rowsort label-4465
SELECT - 30 / + - COUNT ( * ) + - 82, + 52 + - COALESCE ( + 83, 81 * 13, - - 69 * 67 ) + + 79 / COUNT ( * ) AS col0
----
-52
48

query I rowsort
SELECT NULLIF ( - 65, 53 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - 88 - + + MAX( DISTINCT - - 57 ) AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-4467
SELECT - 88 - + + MAX ( DISTINCT - - 57 ) AS col1
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT ALL - 16 DIV + - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - 16 / + - 29 AS col2
----
0

query II rowsort
SELECT - 56 AS col0, - 26
----
-56
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL + - COUNT( * ) + - - 17
----
16

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + - COUNT ( * ) + - - 17
----
16

query I rowsort
SELECT ALL - 66 + - + 12 col1
----
-78

query I rowsort
SELECT - - 91 * - - NULLIF ( + - 12, + 80 ) - 79
----
-1171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT ALL + 26 DIV + 84 + + + COUNT( * ) + + + 19
----
20

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + 26 / + 84 + + + COUNT ( * ) + + + 19
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT + + NULLIF ( - + 70, 29 ) * - - COUNT( * ) - + ( + COUNT( * ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4474
SELECT + + NULLIF ( - + 70, 29 ) * - - COUNT ( * ) - + ( + COUNT ( * ) ) AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT ALL + 19 DIV + 45 + - 40 * 73
----
-2920

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL + 19 / + 45 + - 40 * 73
----
-2920

query II rowsort
SELECT ALL + 88 AS col1, 96 AS col0
----
88
96

query I rowsort
SELECT ALL + CASE - 15 WHEN + 49 * + 95 THEN 46 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT DISTINCT ( + + 5 ) DIV - 22 * + 27 + - 67
----
-67

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT ( + + 5 ) / - 22 * + 27 + - 67
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT ALL + 14 AS col2, 87 + + COUNT( ( - - 48 ) ) + - 98 + + COUNT( * ) * + + 4 AS col0
----
14
-6

skipif mysql # not compatible
query II rowsort label-4479
SELECT ALL + 14 AS col2, 87 + + COUNT ( ( - - 48 ) ) + - 98 + + COUNT ( * ) * + + 4 AS col0
----
14
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL + ( - MIN( DISTINCT 32 ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL + ( - MIN ( DISTINCT 32 ) ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT ALL 2 * - COALESCE ( - + 20, - CAST( - 10 AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL 2 * - COALESCE ( - + 20, - CAST ( - 10 AS INTEGER ) )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT ALL 14 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL 14 / - 37
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4484
SELECT ALL + 7 AS col0, - COUNT( * ) AS col0
----
7
-1

skipif mysql # not compatible
query II rowsort label-4484
SELECT ALL + 7 AS col0, - COUNT ( * ) AS col0
----
7
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT + MIN( ALL + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4485
SELECT + MIN ( ALL + 67 )
----
67

query I rowsort
SELECT - 55 * - - 38
----
-2090

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + MIN( + + 83 ) * + 18
----
1494

skipif mysql # not compatible
query I rowsort label-4487
SELECT + MIN ( + + 83 ) * + 18
----
1494

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT ALL + COUNT( * ) AS col2, 26 * + 70 AS col2
----
1
1820

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL + COUNT ( * ) AS col2, 26 * + 70 AS col2
----
1
1820

query II rowsort
SELECT DISTINCT 72 * - 86, - 80 AS col0
----
-6192
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT 71 DIV - 23 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4490
SELECT 71 / - 23 AS col1
----
-3

query I rowsort
SELECT 14 * 22
----
308

onlyif mysql # aggregate syntax: 
query III rowsort label-4492
SELECT DISTINCT - 73 AS col2, COUNT( * ) * COUNT( * ) + + - 83 AS col0, - 82 * 24 AS col2
----
-73
-82
-1968

skipif mysql # not compatible
query III rowsort label-4492
SELECT DISTINCT - 73 AS col2, COUNT ( * ) * COUNT ( * ) + + - 83 AS col0, - 82 * 24 AS col2
----
-73
-82
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT - 49 * MIN( DISTINCT + + 43 ) AS col2
----
-2107

skipif mysql # not compatible
query I rowsort label-4493
SELECT - 49 * MIN ( DISTINCT + + 43 ) AS col2
----
-2107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT 61 * CASE - 54 WHEN NULLIF ( + + 90, - 58 / + - 80 * + - 70 ) THEN NULL WHEN - + 84 THEN + - CAST( - NULLIF ( + - 23, + 20 + - 20 + 17 / + 89 ) AS SIGNED ) - - + 56 * - 34 ELSE + - 99 - 24 END AS col1
----
-7503

skipif mysql # not compatible
query I rowsort label-4494
SELECT 61 * CASE - 54 WHEN NULLIF ( + + 90, - 58 / + - 80 * + - 70 ) THEN NULL WHEN - + 84 THEN + - CAST ( - NULLIF ( + - 23, + 20 + - 20 + 17 / + 89 ) AS INTEGER ) - - + 56 * - 34 ELSE + - 99 - 24 END AS col1
----
-7503

query I rowsort
SELECT + 58 + 82
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT MAX( ALL ( + + 43 ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4496
SELECT MAX ( ALL ( + + 43 ) ) AS col2
----
43

query I rowsort
SELECT ALL 2 + - 39 * + 21
----
-817

query I rowsort
SELECT + 41 - - 79 col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT 40 + 35 + 85 DIV 78 + + NULLIF ( - 51, 59 * - 35 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4499
SELECT 40 + 35 + 85 / 78 + + NULLIF ( - 51, 59 * - 35 ) AS col2
----
25

query I rowsort
SELECT ALL - 70 + - 40 AS col0
----
-110

query II rowsort
SELECT 2, - 97 + ( + 0 ) AS col0
----
2
-97

query I rowsort
SELECT DISTINCT 64 * - - 54 - + 96 AS col2
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - 8 + + 46 * - 59 - + - ( - COUNT( * ) )
----
-2723

skipif mysql # not compatible
query I rowsort label-4503
SELECT - 8 + + 46 * - 59 - + - ( - COUNT ( * ) )
----
-2723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4504
SELECT DISTINCT - CAST( + NULLIF ( COUNT( * ), + 62 + - 70 * 72 ) AS SIGNED ) + - 80 * - 87 AS col0
----
6959

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT - CAST ( + NULLIF ( COUNT ( * ), + 62 + - 70 * 72 ) AS INTEGER ) + - 80 * - 87 AS col0
----
6959

query I rowsort
SELECT DISTINCT + 93 + + 38 AS col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4506
SELECT ALL + 35 + + + 20 * + COALESCE ( - 90, + 81, 76, + ( + 4 ) + MIN( DISTINCT 23 ) * CAST( + + 99 AS SIGNED ) ) AS col0, 13 + ( + COUNT( DISTINCT - 42 ) ) col1
----
-1765
14

skipif mysql # not compatible
query II rowsort label-4506
SELECT ALL + 35 + + + 20 * + COALESCE ( - 90, + 81, 76, + ( + 4 ) + MIN ( DISTINCT 23 ) * CAST ( + + 99 AS INTEGER ) ) AS col0, 13 + ( + COUNT ( DISTINCT - 42 ) ) col1
----
-1765
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT + ( + 32 ) * - - COUNT( DISTINCT - 31 ) + 75
----
107

skipif mysql # not compatible
query I rowsort label-4507
SELECT + ( + 32 ) * - - COUNT ( DISTINCT - 31 ) + 75
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT 74 DIV - - 19 + - 35 + + 22
----
-10

skipif mysql # not compatible
query I rowsort label-4508
SELECT 74 / - - 19 + - 35 + + 22
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT DISTINCT + 17 DIV + + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT + 17 / + + 22 AS col1
----
0

query I rowsort
SELECT DISTINCT - 63 - 73 AS col1
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT ALL + 8 * + + 7 DIV - ( + + 77 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL + 8 * + + 7 / - ( + + 77 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT 43 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT 43 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4513
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4514
SELECT + 50 DIV 88 + CAST( - 21 AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4514
SELECT + 50 / 88 + CAST ( - 21 AS INTEGER ) AS col2
----
-21

query II rowsort
SELECT ALL + 0 * - + 31 AS col1, ( - 1 ) * - - 23 AS col2
----
0
-23

query II rowsort
SELECT ALL - 46 - 82 AS col0, - 47 AS col0
----
-128
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-4517
SELECT 42 * - - 84, - 43 + + 0 DIV - 41 AS col2
----
3528
-43

skipif mysql # not compatible
query II rowsort label-4517
SELECT 42 * - - 84, - 43 + + 0 / - 41 AS col2
----
3528
-43

query I rowsort
SELECT DISTINCT - 28 * + 94 AS col2
----
-2632

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + 87 * + + 5 + COUNT( * )
----
436

skipif mysql # not compatible
query I rowsort label-4519
SELECT + 87 * + + 5 + COUNT ( * )
----
436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4520
SELECT 97 * 13, ( + CAST( SUM( - NULLIF ( + + 99, - - 69 ) ) AS SIGNED ) ) AS col1
----
1261
-99

skipif mysql # not compatible
query II rowsort label-4520
SELECT 97 * 13, ( + CAST ( SUM ( - NULLIF ( + + 99, - - 69 ) ) AS INTEGER ) ) AS col1
----
1261
-99

query II rowsort
SELECT 68 * 99 AS col2, 91 * + 70 + + 30
----
6732
6400

query II rowsort
SELECT ALL - ( - - 64 ) AS col0, + 87
----
-64
87

query I rowsort
SELECT 93 + 4 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT 74 * - 86 * - COUNT( * ) + - 79 AS col2
----
6285

skipif mysql # not compatible
query I rowsort label-4524
SELECT 74 * - 86 * - COUNT ( * ) + - 79 AS col2
----
6285

query I rowsort
SELECT ALL + 82 * - + 54 + - 82
----
-4510

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT NULLIF ( - SUM( ALL + - 9 ), - 95 - - 84 - - 27 ) * + 36
----
324

skipif mysql # not compatible
query I rowsort label-4526
SELECT NULLIF ( - SUM ( ALL + - 9 ), - 95 - - 84 - - 27 ) * + 36
----
324

query II rowsort
SELECT - - 27 * 32 + + + 80 AS col1, - 80 + - 51
----
944
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4528
SELECT DISTINCT 82 * NULLIF ( - CAST( - ( - + 45 ) AS SIGNED ), ( 51 ) + + 44 + + 95 ) - + 63 + + SUM( + + ( - - ( - 74 ) ) ) DIV - 73 AS col0
----
-3752

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT 82 * NULLIF ( - CAST ( - ( - + 45 ) AS INTEGER ), ( 51 ) + + 44 + + 95 ) - + 63 + + SUM ( + + ( - - ( - 74 ) ) ) / - 73 AS col0
----
-3752

query I rowsort
SELECT ALL - 91 + + 97 AS col2
----
6

query I rowsort
SELECT DISTINCT 91 + + 28 + - ( - + 70 ) AS col1
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4531
SELECT ( 12 ) DIV + - 2 - + - MIN( DISTINCT 76 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4531
SELECT ( 12 ) / + - 2 - + - MIN ( DISTINCT 76 ) AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT DISTINCT + 66 DIV - ( + 46 ) + + 72 + + 48 * - 92 * 9 - 98 + 59 * ( + ( - 35 ) ) * COUNT( * )
----
-41836

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + 66 / - ( + 46 ) + + 72 + + 48 * - 92 * 9 - 98 + 59 * ( + ( - 35 ) ) * COUNT ( * )
----
-41836

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT - 6 DIV - 32 + - 3
----
-3

skipif mysql # not compatible
query I rowsort label-4533
SELECT - 6 / - 32 + - 3
----
-3

query I rowsort
SELECT ALL - ( - 93 ) + 22 + - + 95 * 85 + - 90 AS col0
----
-8050

query I rowsort
SELECT 78 * - 63 + - 99 + - 97
----
-5110

query I rowsort
SELECT DISTINCT ( + ( ( - 41 ) ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + 55 * 34 * 65 + - ( SUM( + 52 ) )
----
121498

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 55 * 34 * 65 + - ( SUM ( + 52 ) )
----
121498

query I rowsort
SELECT - NULLIF ( + 24, 74 * - 38 * + - 83 )
----
-24

query I rowsort
SELECT DISTINCT + - 94 * - 3 + 19 + - 93 * 4 AS col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4540
SELECT ALL COALESCE ( + 72, - 96 DIV 58 + 85 ) * + COUNT( * ) * - + 42 * + + 93 AS col1, 51 + + 8 * - + 38
----
-281232
-253

skipif mysql # not compatible
query II rowsort label-4540
SELECT ALL COALESCE ( + 72, - 96 / 58 + 85 ) * + COUNT ( * ) * - + 42 * + + 93 AS col1, 51 + + 8 * - + 38
----
-281232
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT CASE + 30 WHEN + 94 + 15 * - 34 + COALESCE ( COUNT( * ), + 61 + 96 / - + 0 ) THEN - 93 ELSE NULL END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT CASE + 30 WHEN + 94 + 15 * - 34 + COALESCE ( COUNT ( * ), + 61 + 96 / - + 0 ) THEN - 93 ELSE NULL END * 85
----
NULL

query I rowsort
SELECT 62 - + 89
----
-27

query I rowsort
SELECT NULLIF ( - 98, + 35 + + 51 * - - 41 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4544
SELECT + COUNT( * ) DIV ( - 43 ) DIV + 82 * - - 47 * + 7 - + 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4544
SELECT + COUNT ( * ) / ( - 43 ) / + 82 * - - 47 * + 7 - + 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT COALESCE ( + - 49, COUNT( * ) * + - 55 ) * + - SUM( ALL - 72 )
----
-3528

skipif mysql # not compatible
query I rowsort label-4545
SELECT COALESCE ( + - 49, COUNT ( * ) * + - 55 ) * + - SUM ( ALL - 72 )
----
-3528

query I rowsort
SELECT 78 * - + 30 col1
----
-2340

query II rowsort
SELECT ALL - 23 AS col0, 44 AS col0
----
-23
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + 83 * COUNT( * ) + 8 * - + CASE COUNT( * ) WHEN + 13 THEN + 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT + 83 * COUNT ( * ) + 8 * - + CASE COUNT ( * ) WHEN + 13 THEN + 40 ELSE NULL END
----
NULL

query I rowsort
SELECT 68 * - 95 * - - ( + 39 )
----
-251940

query I rowsort
SELECT DISTINCT + 69 * - 55 AS col2
----
-3795

query I rowsort
SELECT - 25 * - - 80
----
-2000

onlyif mysql # DIV for integer division: 
query I rowsort label-4552
SELECT DISTINCT 90 DIV - 45
----
-2

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT 90 / - 45
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT - COUNT( ALL 63 ) * - + 2 + - - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT - COUNT ( ALL 63 ) * - + 2 + - - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT ALL - 89 * + 14 + - + 6 * + + 81 * + + 61
----
-30892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - MAX( DISTINCT + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT + SUM( ALL - NULLIF ( + 8, + + 41 / - + 81 * 16 ) ) * - 40 * - - CAST( + - COUNT( * ) AS SIGNED ) * - 52 AS col0
----
16640

skipif mysql # not compatible
query I rowsort label-4556
SELECT + SUM ( ALL - NULLIF ( + 8, + + 41 / - + 81 * 16 ) ) * - 40 * - - CAST ( + - COUNT ( * ) AS INTEGER ) * - 52 AS col0
----
16640

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT - 95 * + MIN( ALL - 26 ) * + 8 AS col1
----
19760

skipif mysql # not compatible
query I rowsort label-4557
SELECT - 95 * + MIN ( ALL - 26 ) * + 8 AS col1
----
19760

onlyif mysql # aggregate syntax: 
query II rowsort label-4558
SELECT COUNT( * ) col0, 63 AS col0
----
1
63

skipif mysql # not compatible
query II rowsort label-4558
SELECT COUNT ( * ) col0, 63 AS col0
----
1
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT - 71 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT - 71 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4560
SELECT + + 29 col2, ( + + COUNT( DISTINCT + 59 ) ) DIV - - 28 + - 37
----
29
-37

skipif mysql # not compatible
query II rowsort label-4560
SELECT + + 29 col2, ( + + COUNT ( DISTINCT + 59 ) ) / - - 28 + - 37
----
29
-37

query I rowsort
SELECT - 40 + 45 AS col2
----
5

query I rowsort
SELECT ALL + - 72 + - 17 AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4563
SELECT ALL - ( - 18 ) + + 57 DIV COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - ( - 18 ) + + 57 / COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT NULLIF ( - + 61, + 99 - + ( 94 ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL - - SUM( - 53 ) + + 62 + 19
----
28

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - - SUM ( - 53 ) + + 62 + 19
----
28

query I rowsort
SELECT + - 99 + 50 AS col2
----
-49

query I rowsort
SELECT - - 88 + 89 + - 41 + + 17
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + COUNT( * ) * + COUNT( * ) * + ( 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4569
SELECT + COUNT ( * ) * + COUNT ( * ) * + ( 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT - ( - - 48 ) + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-4570
SELECT - ( - - 48 ) + COUNT ( * )
----
-47

query I rowsort
SELECT ALL - 43 * - 44
----
1892

query I rowsort
SELECT - 70 + - 85
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + COUNT( * ) - 2 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4573
SELECT + COUNT ( * ) - 2 AS col0
----
-1

query I rowsort
SELECT DISTINCT + - 88 * + 25
----
-2200

query I rowsort
SELECT ALL 23 - + 38
----
-15

query II rowsort
SELECT DISTINCT + 74, NULLIF ( 72, - - 89 ) * - 7 AS col0
----
74
-504

query I rowsort
SELECT + 97 * - - 34 AS col1
----
3298

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT ALL + MAX( - 55 ) * ( - + NULLIF ( 6, 67 ) )
----
330

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL + MAX ( - 55 ) * ( - + NULLIF ( 6, 67 ) )
----
330

query I rowsort
SELECT DISTINCT - + 75 * - 63
----
4725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4580
SELECT + COUNT( ALL - 2 ) + 58 + - 92 * 30 + 83 DIV - - 41 + - - 90 AS col1
----
-2609

skipif mysql # not compatible
query I rowsort label-4580
SELECT + COUNT ( ALL - 2 ) + 58 + - 92 * 30 + 83 / - - 41 + - - 90 AS col1
----
-2609

query I rowsort
SELECT - 3 * + 36 * - ( + 40 ) * ( ( + 9 ) )
----
38880

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT - 80 DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-4582
SELECT - 80 / 66
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4583
SELECT + 85 DIV 55, 74 + - COUNT( * ) col0
----
1
73

skipif mysql # not compatible
query II rowsort label-4583
SELECT + 85 / 55, 74 + - COUNT ( * ) col0
----
1
73

onlyif mysql # DIV for integer division: 
query II rowsort label-4584
SELECT ALL 91 DIV - 76 col0, - 7 AS col1
----
-1
-7

skipif mysql # not compatible
query II rowsort label-4584
SELECT ALL 91 / - 76 col0, - 7 AS col1
----
-1
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - MIN( DISTINCT 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4585
SELECT - MIN ( DISTINCT 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + SUM( - 79 ) + - NULLIF ( - MAX( DISTINCT + 26 ), COUNT( ALL - 9 ) ) * 67 * ( + COUNT( * ) ) AS col1
----
1663

skipif mysql # not compatible
query I rowsort label-4586
SELECT + SUM ( - 79 ) + - NULLIF ( - MAX ( DISTINCT + 26 ), COUNT ( ALL - 9 ) ) * 67 * ( + COUNT ( * ) ) AS col1
----
1663

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL COUNT( * ) * - COUNT( * ) * - 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - 38 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4588
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0, - 61 * - COUNT( * )
----
1
61

skipif mysql # not compatible
query II rowsort label-4588
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0, - 61 * - COUNT ( * )
----
1
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT ALL 79 DIV + 49 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL 79 / + 49 + - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT ALL - 45 DIV 1 + - + COALESCE ( + - 69, - 4 )
----
24

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL - 45 / 1 + - + COALESCE ( + - 69, - 4 )
----
24

query I rowsort
SELECT 74 * + 46 + + 89
----
3493

query I rowsort
SELECT ( + - 54 ) col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4593
SELECT ( + 16 ), COUNT( * ) col1
----
16
1

skipif mysql # not compatible
query II rowsort label-4593
SELECT ( + 16 ), COUNT ( * ) col1
----
16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL 22 * - - 49 + CASE 47 WHEN - 43 * - + 63 * - - SUM( ALL - 16 ) + - - 83 * AVG ( DISTINCT 5 ) THEN NULL ELSE 96 END AS col2
----
1174

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL 22 * - - 49 + CASE 47 WHEN - 43 * - + 63 * - - SUM ( ALL - 16 ) + - - 83 * AVG ( DISTINCT 5 ) THEN NULL ELSE 96 END AS col2
----
1174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4595
SELECT ( - 97 ) * - + 93 + + 81 AS col1, + CAST( 74 AS SIGNED )
----
9102
74

skipif mysql # not compatible
query II rowsort label-4595
SELECT ( - 97 ) * - + 93 + + 81 AS col1, + CAST ( 74 AS INTEGER )
----
9102
74

query I rowsort
SELECT - 65 + - + 98 * + 21 AS col1
----
-2123

onlyif mysql # aggregate syntax: 
query II rowsort label-4597
SELECT ALL - COUNT( * ) * + - ( + 57 ) + + 11, + 28 AS col0
----
68
28

skipif mysql # not compatible
query II rowsort label-4597
SELECT ALL - COUNT ( * ) * + - ( + 57 ) + + 11, + 28 AS col0
----
68
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL - COUNT( - 46 ) * + 79 * + + 67 * - - CASE + - ( + + 47 ) WHEN + + MIN( - 99 ) THEN NULL ELSE - - 21 END - + 91 + + - 94 * - NULLIF ( - + 67, - 60 ) AS col0
----
-117542

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL - COUNT ( - 46 ) * + 79 * + + 67 * - - CASE + - ( + + 47 ) WHEN + + MIN ( - 99 ) THEN NULL ELSE - - 21 END - + 91 + + - 94 * - NULLIF ( - + 67, - 60 ) AS col0
----
-117542

query I rowsort
SELECT - + 77 + - 9 * - 24 * - + 93 AS col2
----
-20165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4600
SELECT - - COALESCE ( - 19, - 76 * + + 6 + 47 + 40 DIV - 27 + - COALESCE ( 62, - 37 + COUNT( * ) ) - - CAST( NULL AS SIGNED ) * - 99 + SUM( + + 71 ) ) + - 34 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4600
SELECT - - COALESCE ( - 19, - 76 * + + 6 + 47 + 40 / - 27 + - COALESCE ( 62, - 37 + COUNT ( * ) ) - - CAST ( NULL AS INTEGER ) * - 99 + SUM ( + + 71 ) ) + - 34 AS col0
----
-53

query I rowsort
SELECT ALL - 39 * + 5 - - 24 * + - 70 AS col2
----
-1875

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT ( - COUNT( * ) ), NULLIF ( - 44, - 54 * - 77 ) AS col1
----
-1
-44

skipif mysql # not compatible
query II rowsort label-4602
SELECT ( - COUNT ( * ) ), NULLIF ( - 44, - 54 * - 77 ) AS col1
----
-1
-44

query I rowsort
SELECT - 74 * + 99 * 34 + - + 77 col2
----
-249161

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL + 47 * - + CASE - 44 WHEN + ( + 77 ) + + SUM( - 19 ) - 49 THEN + 75 * + 63 / - ( - + 99 ) + + 27 - + - COUNT( * ) * - 39 ELSE NULL END + + + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + 47 * - + CASE - 44 WHEN + ( + 77 ) + + SUM ( - 19 ) - 49 THEN + 75 * + 63 / - ( - + 99 ) + + 27 - + - COUNT ( * ) * - 39 ELSE NULL END + + + 96 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 82 * - + 38 * + - 67 * + 18 - 94 - - 24 + + 6
----
-3757960

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL CASE + 67 WHEN + COUNT( * ) THEN NULL WHEN - + NULLIF ( - 81, + NULLIF ( - 36, - 8 ) + - 7 + + 91 + + 51 - ( + 93 ) - 29 / 73 * - COUNT( ALL 0 ) + - - 8 * + + 97 * + COUNT( * ) ) THEN NULL ELSE - 35 END
----
-35

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL CASE + 67 WHEN + COUNT ( * ) THEN NULL WHEN - + NULLIF ( - 81, + NULLIF ( - 36, - 8 ) + - 7 + + 91 + + 51 - ( + 93 ) - 29 / 73 * - COUNT ( ALL 0 ) + - - 8 * + + 97 * + COUNT ( * ) ) THEN NULL ELSE - 35 END
----
-35

query I rowsort
SELECT ALL + 32 * 50 AS col2
----
1600

query I rowsort
SELECT - + ( ( + 81 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - 13 * 80 + + MAX( DISTINCT 39 ) + 63 AS col2
----
-938

skipif mysql # not compatible
query I rowsort label-4609
SELECT - 13 * 80 + + MAX ( DISTINCT 39 ) + 63 AS col2
----
-938

query I rowsort
SELECT ALL - 87 * 56 AS col2
----
-4872

query I rowsort
SELECT - 56 - - 93 + + + 42 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - 73 * 90 * COUNT( * ) AS col1
----
-6570

skipif mysql # not compatible
query I rowsort label-4612
SELECT - 73 * 90 * COUNT ( * ) AS col1
----
-6570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4613
SELECT - COUNT( * ) - CAST( + 1 AS SIGNED ) - - 16 * + 2 * + + 15 + + + 96 AS col2
----
574

skipif mysql # not compatible
query I rowsort label-4613
SELECT - COUNT ( * ) - CAST ( + 1 AS INTEGER ) - - 16 * + 2 * + + 15 + + + 96 AS col2
----
574

query I rowsort
SELECT ALL - 87 + + - 37 AS col0
----
-124

query II rowsort
SELECT DISTINCT 70, - 1 AS col0
----
70
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL 38 + + COUNT( * ) + COUNT( * ) + - 19
----
21

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL 38 + + COUNT ( * ) + COUNT ( * ) + - 19
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT ALL COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) + + 27
----
27

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + + 27
----
27

query II rowsort
SELECT 55 AS col1, 20
----
55
20

query I rowsort
SELECT ALL 72 + + 55
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT 96 - - 94 DIV 64 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4620
SELECT 96 - - 94 / 64 AS col2
----
97

query I rowsort
SELECT ALL 2 + - 58
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT COUNT( - + 52 ) * + + 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4622
SELECT COUNT ( - + 52 ) * + + 76 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT 43 / + + CASE 94 WHEN 27 * - 78 THEN + + 88 END + COUNT( * ) * + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT 43 / + + CASE 94 WHEN 27 * - 78 THEN + + 88 END + COUNT ( * ) * + + 79
----
NULL

query I rowsort
SELECT DISTINCT 71 + 12 col1
----
83

query II rowsort
SELECT ALL ( - 83 ) * + 94, 82 * - + 50 * + 61 + - 31 + + - 83 AS col0
----
-7802
-250214

query II rowsort
SELECT DISTINCT - 70 AS col1, + 73 AS col0
----
-70
73

query I rowsort
SELECT ALL 1 + + + 39 + - 17 + - 58 + 66 * - + 93
----
-6173

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT SUM( ALL + 29 ) * + 26 * + 20 AS col0
----
15080

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT SUM ( ALL + 29 ) * + 26 * + 20 AS col0
----
15080

query I rowsort
SELECT DISTINCT - 59 - - 62 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + 49 * - SUM( - 57 ) + - NULLIF ( - COUNT( * ), ( - - 69 ) + + + CASE - + COUNT( * ) WHEN - 52 THEN 50 + - - ( + 25 ) WHEN 59 THEN NULL ELSE NULL END ) + - NULLIF ( 85, 86 + 27 ) * + 92 * + 62 * + - 10 * + + 39
----
189090394

skipif mysql # not compatible
query I rowsort label-4630
SELECT + 49 * - SUM ( - 57 ) + - NULLIF ( - COUNT ( * ), ( - - 69 ) + + + CASE - + COUNT ( * ) WHEN - 52 THEN 50 + - - ( + 25 ) WHEN 59 THEN NULL ELSE NULL END ) + - NULLIF ( 85, 86 + 27 ) * + 92 * + 62 * + - 10 * + + 39
----
189090394

query I rowsort
SELECT ALL - 43 * 76 AS col0
----
-3268

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4632
SELECT DISTINCT + - CAST( + - 38 AS SIGNED ) - 31 AS col0, 75 AS col0
----
7
75

skipif mysql # not compatible
query II rowsort label-4632
SELECT DISTINCT + - CAST ( + - 38 AS INTEGER ) - 31 AS col0, 75 AS col0
----
7
75

query I rowsort
SELECT DISTINCT - 10 * + + ( + 70 )
----
-700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4634
SELECT - COALESCE ( 44, + CAST( NULL AS SIGNED ) * - NULLIF ( - 4, - 23 ), - - 26 ) * + 42 AS col2, + 17
----
-1848
17

skipif mysql # not compatible
query II rowsort label-4634
SELECT - COALESCE ( 44, + CAST ( NULL AS INTEGER ) * - NULLIF ( - 4, - 23 ), - - 26 ) * + 42 AS col2, + 17
----
-1848
17

query I rowsort
SELECT - 86 * - 78
----
6708

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - MIN( ALL - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - MIN ( ALL - 46 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT 60 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT 60 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) + ( - NULLIF ( + ( + + 95 ), - 22 * ( 64 ) * + - 67 * 50 ) ) + + COUNT( * ) * + - 53 + - + 46 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) + ( - NULLIF ( + ( + + 95 ), - 22 * ( 64 ) * + - 67 * 50 ) ) + + COUNT ( * ) * + - 53 + - + 46 col1
----
NULL

query I rowsort
SELECT + + NULLIF ( - 76, - ( 96 ) - 95 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL + MAX( ALL - 75 ) - + 48 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL + MAX ( ALL - 75 ) - + 48 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + 52 + + COUNT( * ) + + - 28 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4641
SELECT + 52 + + COUNT ( * ) + + - 28 AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4642
SELECT 40 DIV - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-4642
SELECT 40 / - - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT + + SUM( - + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-4643
SELECT + + SUM ( - + 56 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT + 83 DIV + 39
----
2

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + 83 / + 39
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT DISTINCT - + 87 * MIN( - 77 ) * 79 - - + 51, - 84 AS col2
----
529272
-84

skipif mysql # not compatible
query II rowsort label-4645
SELECT DISTINCT - + 87 * MIN ( - 77 ) * 79 - - + 51, - 84 AS col2
----
529272
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT ALL - 66 DIV - - 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - 66 / - - 88 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT 32 + + 50 + + 79 DIV + + 88 * - 95
----
82

skipif mysql # not compatible
query I rowsort label-4647
SELECT 32 + + 50 + + 79 / + + 88 * - 95
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4648
SELECT - ( - - ( - + CAST( - - 58 AS SIGNED ) ) ) + + COUNT( + + 33 )
----
59

skipif mysql # not compatible
query I rowsort label-4648
SELECT - ( - - ( - + CAST ( - - 58 AS INTEGER ) ) ) + + COUNT ( + + 33 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4649
SELECT ALL + 55 + + 16, + 41 + + 78 + - - 57 + - + NULLIF ( - 23, 46 ) DIV - 75 + + 73 * 97 - - - COUNT( * ) + - + 40 + 46 + + COUNT( * ) * 9 AS col1
----
71
7271

skipif mysql # not compatible
query II rowsort label-4649
SELECT ALL + 55 + + 16, + 41 + + 78 + - - 57 + - + NULLIF ( - 23, 46 ) / - 75 + + 73 * 97 - - - COUNT ( * ) + - + 40 + 46 + + COUNT ( * ) * 9 AS col1
----
71
7271

query II rowsort
SELECT - 52 col2, 75
----
-52
75

query II rowsort
SELECT 8, ( 36 ) AS col2
----
8
36

query I rowsort
SELECT 71 + + 61 AS col1
----
132

query I rowsort
SELECT DISTINCT + 10 + - 31 AS col2
----
-21

query I rowsort
SELECT ALL - CASE - - 69 WHEN 71 * 13 THEN NULL WHEN + 53 THEN - - 13 END + + + 37 AS col1
----
NULL

query I rowsort
SELECT 87 + + 36
----
123

query I rowsort
SELECT DISTINCT + 11 + 61 + - 57
----
15

query I rowsort
SELECT ALL - 56 + + 93
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4658
SELECT ALL MIN( DISTINCT - + 85 ), - ( - ( COUNT( * ) ) ) + 35 AS col1
----
-85
36

skipif mysql # not compatible
query II rowsort label-4658
SELECT ALL MIN ( DISTINCT - + 85 ), - ( - ( COUNT ( * ) ) ) + 35 AS col1
----
-85
36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4659
SELECT 96 DIV - 65 AS col0, + 11 * + + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4659
SELECT 96 / - 65 AS col0, + 11 * + + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT ALL - 20 * + 98
----
-1960

query I rowsort
SELECT DISTINCT - 14 * - 8 - - + 63
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT - 39 * - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - 39 * - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + 81 * 23 - + 83 * + MIN( ALL - ( 79 ) )
----
8420

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + 81 * 23 - + 83 * + MIN ( ALL - ( 79 ) )
----
8420

query II rowsort
SELECT 21 * + - 76 AS col2, + 48
----
-1596
48

query I rowsort
SELECT ALL + 72 * + - 3 AS col1
----
-216

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4666
SELECT - 82 * - ( - CAST( + ( - 73 ) AS SIGNED ) ) - + 61 + + 19 - 84 + CAST( NULL AS DECIMAL ) * 98 * - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT - 82 * - ( - CAST ( + ( - 73 ) AS INTEGER ) ) - + 61 + + 19 - 84 + CAST ( NULL AS REAL ) * 98 * - 0 AS col0
----
NULL

query I rowsort
SELECT - 47 * + 71
----
-3337

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4668
SELECT CAST( NULL AS DECIMAL ) + - 93 * - 60 + + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT CAST ( NULL AS REAL ) + - 93 * - 60 + + 17 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT + 0 DIV 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT + 0 / 54 AS col1
----
0

query I rowsort
SELECT 98 * - - NULLIF ( - 49, - 64 )
----
-4802

query I rowsort
SELECT - - 37 * - 8 + 44
----
-252

query II rowsort
SELECT ALL - 75 AS col2, - ( + 3 ) * + + 72
----
-75
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT ALL - 65 AS col0, COUNT( * ) + + - 32 AS col0
----
-65
-31

skipif mysql # not compatible
query II rowsort label-4673
SELECT ALL - 65 AS col0, COUNT ( * ) + + - 32 AS col0
----
-65
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT COUNT( * ) + + 15, - 3 * + 6 AS col0
----
16
-18

skipif mysql # not compatible
query II rowsort label-4674
SELECT COUNT ( * ) + + 15, - 3 * + 6 AS col0
----
16
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT - - NULLIF ( COUNT( - + 76 ), 45 - NULLIF ( 83, - 91 * - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - - NULLIF ( COUNT ( - + 76 ), 45 - NULLIF ( 83, - 91 * - COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT ALL 89 * - - 66
----
5874

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT 55 + - COUNT( * ) + 80 * + + 76 AS col0
----
6134

skipif mysql # not compatible
query I rowsort label-4677
SELECT 55 + - COUNT ( * ) + 80 * + + 76 AS col0
----
6134

onlyif mysql # aggregate syntax: 
query II rowsort label-4678
SELECT + + 70 AS col0, 23 + CASE 36 WHEN + 23 THEN 69 WHEN 77 THEN NULL ELSE NULL END + COUNT( * ) + 0 + - 54 * + + COUNT( * ) * + - 5 AS col1
----
70
NULL

skipif mysql # not compatible
query II rowsort label-4678
SELECT + + 70 AS col0, 23 + CASE 36 WHEN + 23 THEN 69 WHEN 77 THEN NULL ELSE NULL END + COUNT ( * ) + 0 + - 54 * + + COUNT ( * ) * + - 5 AS col1
----
70
NULL

query I rowsort
SELECT DISTINCT + 37 + - 26 col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4680
SELECT - 16 * + 91 * - + MAX( 68 ) * + + ( + - SUM( DISTINCT - + 97 ) ), - 84 AS col2
----
9603776
-84

skipif mysql # not compatible
query II rowsort label-4680
SELECT - 16 * + 91 * - + MAX ( 68 ) * + + ( + - SUM ( DISTINCT - + 97 ) ), - 84 AS col2
----
9603776
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT MIN( + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4681
SELECT MIN ( + 32 )
----
32

query I rowsort
SELECT + - ( + 82 )
----
-82

query I rowsort
SELECT DISTINCT 74 + COALESCE ( + + ( 94 ), + 95 ) * 93 AS col2
----
8816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4684
SELECT - ( - 42 ), 90 * 15 AS col0, 77 * + - ( - + 71 ) * 24 + + + 99 / + 75 * - 32 + - - 8 + - COALESCE ( ( - CAST( NULL AS SIGNED ) ), - 80 * + - CAST( NULL AS SIGNED ) * + COUNT( * ) / + - 48 * - CAST( - - 82 AS SIGNED ) + - 93 * NULLIF ( + COUNT( * ), - COUNT( * ) / - - 80 ) ) / + + 65 - + - 4 AS col1
----
42
1350
NULL

skipif mysql # not compatible
query III rowsort label-4684
SELECT - ( - 42 ), 90 * 15 AS col0, 77 * + - ( - + 71 ) * 24 + + + 99 / + 75 * - 32 + - - 8 + - COALESCE ( ( - CAST ( NULL AS INTEGER ) ), - 80 * + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + - 48 * - CAST ( - - 82 AS INTEGER ) + - 93 * NULLIF ( + COUNT ( * ), - COUNT ( * ) / - - 80 ) ) / + + 65 - + - 4 AS col1
----
42
1350
NULL

query I rowsort
SELECT + + 49 * - 38 * 42 * - 52 col1
----
4066608

query I rowsort
SELECT DISTINCT 62 + 16
----
78

query I rowsort
SELECT ALL - 87 + - 12 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - COALESCE ( + COUNT( * ), - 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4688
SELECT - COALESCE ( + COUNT ( * ), - 72 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT + COALESCE ( COUNT( * ), - 90 ) * - COUNT( * ) + + + 22 - - 68 * + - COALESCE ( 71, + 31 )
----
-4807

skipif mysql # not compatible
query I rowsort label-4689
SELECT + COALESCE ( COUNT ( * ), - 90 ) * - COUNT ( * ) + + + 22 - - 68 * + - COALESCE ( 71, + 31 )
----
-4807

query I rowsort
SELECT ALL + 15 * - + 10 AS col2
----
-150

query I rowsort
SELECT DISTINCT 26 + + 59 * 40
----
2386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT ALL MAX( ALL + 91 ) + COUNT( * ) DIV + COUNT( * ) DIV 1
----
92

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL MAX ( ALL + 91 ) + COUNT ( * ) / + COUNT ( * ) / 1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT + 43 - + - COUNT( 5 )
----
44

skipif mysql # not compatible
query I rowsort label-4693
SELECT + 43 - + - COUNT ( 5 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL SUM( + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL SUM ( + 81 ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4695
SELECT + CAST( NULL AS DECIMAL ) + + + 33 + 34 - + CAST( - 70 AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT + CAST ( NULL AS REAL ) + + + 33 + 34 - + CAST ( - 70 AS REAL ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 25 - 28 + - 78
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4697
SELECT - 95 + + 84 + + + COUNT( * ) DIV 25 - 31 + - - 31 * MIN( ALL - - 93 ) + + 7 + - ( 23 ) * - - 29 + - 50
----
2131

skipif mysql # not compatible
query I rowsort label-4697
SELECT - 95 + + 84 + + + COUNT ( * ) / 25 - 31 + - - 31 * MIN ( ALL - - 93 ) + + 7 + - ( 23 ) * - - 29 + - 50
----
2131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4698
SELECT ALL - 25 - - + 42 + + + 46 + - + 47 / + - CASE - 17 WHEN + 91 THEN ( - CAST( 70 AS SIGNED ) ) END AS col0, ( + 39 )
----
NULL
39

skipif mysql # not compatible
query II rowsort label-4698
SELECT ALL - 25 - - + 42 + + + 46 + - + 47 / + - CASE - 17 WHEN + 91 THEN ( - CAST ( 70 AS INTEGER ) ) END AS col0, ( + 39 )
----
NULL
39

query I rowsort
SELECT - 89 - + COALESCE ( - 2, 26, - 77 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL CASE + 56 WHEN + + 82 * 38 - - MIN( + - 64 ) THEN + 58 - + 36 + - - ( + 15 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL CASE + 56 WHEN + + 82 * 38 - - MIN ( + - 64 ) THEN + 58 - + 36 + - - ( + 15 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT DISTINCT SUM( - 93 ) col0, 96
----
-93
96

skipif mysql # not compatible
query II rowsort label-4701
SELECT DISTINCT SUM ( - 93 ) col0, 96
----
-93
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4702
SELECT ALL + + COALESCE ( 25, + - 83 ) AS col2, 0 * SUM( 8 ) + 39 + + - 39 - MIN( ALL - - 81 ) AS col1
----
25
-81

skipif mysql # not compatible
query II rowsort label-4702
SELECT ALL + + COALESCE ( 25, + - 83 ) AS col2, 0 * SUM ( 8 ) + 39 + + - 39 - MIN ( ALL - - 81 ) AS col1
----
25
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4703
SELECT DISTINCT + + 21 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT + + 21 / + - 50
----
0

query I rowsort
SELECT - + ( - 36 ) * - - 96 + + 50
----
3506

query I rowsort
SELECT - - 66 * + 80 AS col2
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL + 60 * - 92 * + COUNT( * )
----
-5520

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + 60 * - 92 * + COUNT ( * )
----
-5520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4707
SELECT - NULLIF ( + - ( + COUNT( * ) ), + COUNT( * ) DIV CAST( - - CAST( 97 AS SIGNED ) AS SIGNED ) - - 72 + 28 DIV - - 33 * ( - + 56 ) DIV SUM( + + 57 ) + NULLIF ( - + 14, + 82 + 94 ) ) DIV + - ( + 26 )
----
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT - NULLIF ( + - ( + COUNT ( * ) ), + COUNT ( * ) / CAST ( - - CAST ( 97 AS INTEGER ) AS INTEGER ) - - 72 + 28 / - - 33 * ( - + 56 ) / SUM ( + + 57 ) + NULLIF ( - + 14, + 82 + 94 ) ) / + - ( + 26 )
----
0

query II rowsort
SELECT - + 88 * + + 68 * - 11 AS col2, + 48 - + 47 * 76
----
65824
-3524

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL 83 * COUNT( * ) * + 64 * 54 * - - COUNT( * ) + - 1 + + 74 col2
----
286921

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL 83 * COUNT ( * ) * + 64 * 54 * - - COUNT ( * ) + - 1 + + 74 col2
----
286921

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT + + 39 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-4710
SELECT + + 39 / + 48
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT DISTINCT + COALESCE ( + + COALESCE ( - - 2, - 31, - + 65 * + NULLIF ( ( + 99 ), - 20 - - - 26 + - 7 - 2 ) * + 91 ), - 4 DIV COUNT( * ) ) DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT + COALESCE ( + + COALESCE ( - - 2, - 31, - + 65 * + NULLIF ( ( + 99 ), - 20 - - - 26 + - 7 - 2 ) * + 91 ), - 4 / COUNT ( * ) ) / + 52 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4712
SELECT - COUNT( * ) + + + COUNT( * ) * + 50 DIV 91 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4712
SELECT - COUNT ( * ) + + + COUNT ( * ) * + 50 / 91 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT + - MIN( ALL - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + - MIN ( ALL - 64 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4714
SELECT ALL - ( MIN( DISTINCT + 16 ) ) * + + 2 * - 59 + + COUNT( * ) + + MAX( + - 52 ) * + - ( 50 ) AS col2, - ( - COUNT( * ) ) + - 14
----
4489
-13

skipif mysql # not compatible
query II rowsort label-4714
SELECT ALL - ( MIN ( DISTINCT + 16 ) ) * + + 2 * - 59 + + COUNT ( * ) + + MAX ( + - 52 ) * + - ( 50 ) AS col2, - ( - COUNT ( * ) ) + - 14
----
4489
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4715
SELECT + CASE + - COALESCE ( ( AVG ( + + 72 ) ), + CAST( 9 AS SIGNED ) + - 77 ) WHEN - 3 * + - COUNT( * ) THEN NULL ELSE - COUNT( ALL + - 71 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4715
SELECT + CASE + - COALESCE ( ( AVG ( + + 72 ) ), + CAST ( 9 AS INTEGER ) + - 77 ) WHEN - 3 * + - COUNT ( * ) THEN NULL ELSE - COUNT ( ALL + - 71 ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT + NULLIF ( + + 63, + + ( - + COUNT( * ) ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + NULLIF ( + + 63, + + ( - + COUNT ( * ) ) ) AS col2
----
63

query I rowsort
SELECT 55 * - - 12 + - - 18 + - - 57 * - 46 AS col1
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT - SUM( ALL - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4718
SELECT - SUM ( ALL - 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4719
SELECT ALL 61 - + 63 DIV COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL 61 - + 63 / COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT - 67 + + 18 col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4721
SELECT ALL 17, - 36 - + COUNT( * ) + + - 37 DIV - COUNT( - - ( - 92 ) ) + CAST( 20 AS SIGNED ) AS col1
----
17
20

skipif mysql # not compatible
query II rowsort label-4721
SELECT ALL 17, - 36 - + COUNT ( * ) + + - 37 / - COUNT ( - - ( - 92 ) ) + CAST ( 20 AS INTEGER ) AS col1
----
17
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + ( + COUNT( * ) ) + + 14
----
15

skipif mysql # not compatible
query I rowsort label-4722
SELECT + ( + COUNT ( * ) ) + + 14
----
15

query I rowsort
SELECT + 19 + + 23
----
42

query I rowsort
SELECT ALL 25 - - 32 + + + 15
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL ( + 16 ) - - CASE + COUNT( * ) WHEN + 15 THEN NULL ELSE - 3 + + ( + ( + - 83 ) ) END
----
-70

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL ( + 16 ) - - CASE + COUNT ( * ) WHEN + 15 THEN NULL ELSE - 3 + + ( + ( + - 83 ) ) END
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + 13 * + COUNT( * ) col1
----
13

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 13 * + COUNT ( * ) col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT + 89 + 63 * 65 DIV 68 * + 6 * 65 * + 14 * - 36 * 70
----
-825551911

skipif mysql # not compatible
query I rowsort label-4727
SELECT + 89 + 63 * 65 / 68 * + 6 * 65 * + 14 * - 36 * 70
----
-825551911

query I rowsort
SELECT ALL COALESCE ( - 49, - 50 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT + 66 + + - COALESCE ( 23, + SUM( DISTINCT - + 68 ), + + 99 )
----
43

skipif mysql # not compatible
query I rowsort label-4729
SELECT + 66 + + - COALESCE ( 23, + SUM ( DISTINCT - + 68 ), + + 99 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4730
SELECT ALL ( + + CAST( + 99 AS SIGNED ) ) - + MIN( ALL + - 66 ) * - COALESCE ( + - 25, - 56 + - 65 + 76, - ( + + SUM( ALL - 76 ) ), - 32 * 90 / - 7 ) * 53 - - COUNT( DISTINCT 13 ) + - 56 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL ( + + CAST ( + 99 AS INTEGER ) ) - + MIN ( ALL + - 66 ) * - COALESCE ( + - 25, - 56 + - 65 + 76, - ( + + SUM ( ALL - 76 ) ), - 32 * 90 / - 7 ) * 53 - - COUNT ( DISTINCT 13 ) + - 56 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT + 77 DIV + 72
----
1

skipif mysql # not compatible
query I rowsort label-4731
SELECT + 77 / + 72
----
1

query I rowsort
SELECT - 59 * - 43
----
2537

query I rowsort
SELECT + 78 + 49 AS col0
----
127

query II rowsort
SELECT 11 AS col0, 16 - - - 21
----
11
-5

query I rowsort
SELECT + 91 + - 61 col1
----
30

query II rowsort
SELECT 17, 58 * + - 90 + - 16 + + 47 * 0 AS col2
----
17
-5236

query I rowsort
SELECT ALL 65 * 13
----
845

query I rowsort
SELECT DISTINCT + + 70 col2
----
70

query I rowsort
SELECT DISTINCT + - 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4740
SELECT + - COUNT( * ), - 83 + - - NULLIF ( 81, - COUNT( * ) * 86 ) AS col0
----
-1
-2

skipif mysql # not compatible
query II rowsort label-4740
SELECT + - COUNT ( * ), - 83 + - - NULLIF ( 81, - COUNT ( * ) * 86 ) AS col0
----
-1
-2

query I rowsort
SELECT + + ( 73 ) * - CASE + 67 WHEN + ( + + 29 ) THEN 33 WHEN + - COALESCE ( - 33, - - 80 ) THEN 35 * - - 61 END AS col1
----
NULL

query I rowsort
SELECT ( + COALESCE ( 2, + ( 29 ) ) ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT - SUM( - - 68 ) + CASE + CAST( NULL AS SIGNED ) WHEN + 64 / 75 + + 54 / + 53 * - 43 * + 36 THEN - 19 WHEN - - 21 * + ( 43 ) / + - ( - - 77 ) * + + 50 THEN NULL END + + 69 - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT - SUM ( - - 68 ) + CASE + CAST ( NULL AS INTEGER ) WHEN + 64 / 75 + + 54 / + 53 * - 43 * + 36 THEN - 19 WHEN - - 21 * + ( 43 ) / + - ( - - 77 ) * + + 50 THEN NULL END + + 69 - + 46
----
NULL

query I rowsort
SELECT ( ( 34 ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT + CASE - 59 WHEN - 0 * - 27 THEN NULL ELSE NULLIF ( 24, CASE - 69 WHEN + COUNT( * ) THEN NULL ELSE - - 64 END ) END AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + CASE - 59 WHEN - 0 * - 27 THEN NULL ELSE NULLIF ( 24, CASE - 69 WHEN + COUNT ( * ) THEN NULL ELSE - - 64 END ) END AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT 17 * + 78 + + + COUNT( * ) - 73 * + + CASE AVG ( ALL - - 29 ) WHEN - 99 + 65 THEN + 19 WHEN + 55 THEN NULL ELSE + 69 END * - + 50 + - - 20 + 95 AS col1
----
253292

skipif mysql # not compatible
query I rowsort label-4746
SELECT 17 * + 78 + + + COUNT ( * ) - 73 * + + CASE AVG ( ALL - - 29 ) WHEN - 99 + 65 THEN + 19 WHEN + 55 THEN NULL ELSE + 69 END * - + 50 + - - 20 + 95 AS col1
----
253292

query I rowsort
SELECT + 77 + 7 AS col1
----
84

query II rowsort
SELECT + 68 AS col1, 47 * + 17
----
68
799

query I rowsort
SELECT ALL - + ( - 72 ) + + 90
----
162

query I rowsort
SELECT - NULLIF ( - 45, - + 83 )
----
45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4751
SELECT ALL + CAST( NULL AS SIGNED ) + - COALESCE ( 60, + - CAST( NULL AS DECIMAL ) ) - + 48 - - 49 * - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL + CAST ( NULL AS INTEGER ) + - COALESCE ( 60, + - CAST ( NULL AS REAL ) ) - + 48 - - 49 * - 15 AS col2
----
NULL

query I rowsort
SELECT + 43 * 17
----
731

query I rowsort
SELECT DISTINCT + - 9 + - 3
----
-12

query I rowsort
SELECT 67 * + + 90 AS col2
----
6030

query I rowsort
SELECT 77 * - + 94
----
-7238

query I rowsort
SELECT DISTINCT - COALESCE ( - ( - 56 ), + - 23, + - 29 ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4757
SELECT ALL - 97 DIV - 93 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL - 97 / - 93 AS col1
----
1

query I rowsort
SELECT 22 + + 53 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT COUNT( * ) * + 99 * - 86 AS col0
----
-8514

skipif mysql # not compatible
query I rowsort label-4759
SELECT COUNT ( * ) * + 99 * - 86 AS col0
----
-8514

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT 92 * + COUNT( * ) * - 24 col1
----
-2208

skipif mysql # not compatible
query I rowsort label-4760
SELECT 92 * + COUNT ( * ) * - 24 col1
----
-2208

query I rowsort
SELECT 95 + + 25 AS col1
----
120

query I rowsort
SELECT DISTINCT ( - - 10 ) * - 30
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT COUNT( * ) - + - COUNT( * ) * + 78
----
79

skipif mysql # not compatible
query I rowsort label-4763
SELECT COUNT ( * ) - + - COUNT ( * ) * + 78
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT CAST( NULL AS SIGNED ) * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT CAST ( NULL AS INTEGER ) * + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT 21 + COUNT( DISTINCT + + 24 )
----
22

skipif mysql # not compatible
query I rowsort label-4765
SELECT 21 + COUNT ( DISTINCT + + 24 )
----
22

query I rowsort
SELECT CASE + 22 WHEN + 89 / - - 94 THEN NULL ELSE + + 19 * 94 END AS col0
----
1786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT COUNT( ALL + 94 ) + + CAST( + + 34 AS SIGNED ) * - 17 + + - 41 AS col2
----
-618

skipif mysql # not compatible
query I rowsort label-4767
SELECT COUNT ( ALL + 94 ) + + CAST ( + + 34 AS INTEGER ) * - 17 + + - 41 AS col2
----
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT ALL NULLIF ( - + 0, + 84 * + 38 * - ( + + COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL NULLIF ( - + 0, + 84 * + 38 * - ( + + COUNT ( * ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4769
SELECT 84 DIV - 2 + - 16 - + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-4769
SELECT 84 / - 2 + - 16 - + - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL + MAX( ALL + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + MAX ( ALL + 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4771
SELECT DISTINCT 37 / COUNT( * ) + + SUM( CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT 37 / COUNT ( * ) + + SUM ( CAST ( NULL AS REAL ) ) col2
----
NULL

query I rowsort
SELECT ALL 42 + 44 * - 1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT - 25 DIV + + 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4773
SELECT - 25 / + + 50 AS col2
----
0

query I rowsort
SELECT 55 * - + 69 col2
----
-3795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4775
SELECT + ( 34 ) DIV - + 26 + COUNT( * ) * + 23 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4775
SELECT + ( 34 ) / - + 26 + COUNT ( * ) * + 23 AS col0
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4776
SELECT + 61 * 91 * - 31 - 10 * - 70 * + CAST( NULL AS DECIMAL ) + + 89 + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT + 61 * 91 * - 31 - 10 * - 70 * + CAST ( NULL AS REAL ) + + 89 + + 24
----
NULL

query I rowsort
SELECT DISTINCT 40 + - 39 * - + 95
----
3745

query I rowsort
SELECT ALL + 25 + + 55
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT 45 * 96 * + 12 + - 68 - - SUM( DISTINCT - 47 ) + + - COUNT( * ) + - - 29 + + 3
----
51756

skipif mysql # not compatible
query I rowsort label-4779
SELECT 45 * 96 * + 12 + - 68 - - SUM ( DISTINCT - 47 ) + + - COUNT ( * ) + - - 29 + + 3
----
51756

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT - - MAX( ALL COALESCE ( + 66, - 29 ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT - - MAX ( ALL COALESCE ( + 66, - 29 ) ) AS col0
----
66

query I rowsort
SELECT ALL ( - 91 ) - - - 77 * 76 * - 14
----
81837

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4782
SELECT 80, + COUNT( * ) DIV + 16 * - COUNT( * ) * 93 AS col0
----
80
0

skipif mysql # not compatible
query II rowsort label-4782
SELECT 80, + COUNT ( * ) / + 16 * - COUNT ( * ) * 93 AS col0
----
80
0

query II rowsort
SELECT DISTINCT - 38, 72 col2
----
-38
72

query I rowsort
SELECT 12 * + - 24 * - + 87 col0
----
25056

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL - MAX( DISTINCT + ( + ( - 69 ) ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - MAX ( DISTINCT + ( + ( - 69 ) ) ) AS col2
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4786
SELECT 96 + + CASE 72 WHEN CAST( NULL AS DECIMAL ) + + 35 THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT 96 + + CASE 72 WHEN CAST ( NULL AS REAL ) + + 35 THEN + 19 END
----
NULL

query I rowsort
SELECT ALL - 93 - - ( + 60 ) + + 85 col0
----
52

query I rowsort
SELECT - 79 * + 83 * + + 25 + + + 19 * + 99 * + - 4 AS col2
----
-171449

onlyif mysql # aggregate syntax: 
query II rowsort label-4789
SELECT ALL - COUNT( * ), 82 AS col2
----
-1
82

skipif mysql # not compatible
query II rowsort label-4789
SELECT ALL - COUNT ( * ), 82 AS col2
----
-1
82

query II rowsort
SELECT DISTINCT - 80 col2, 18 + 35 AS col0
----
-80
53

query I rowsort
SELECT 15 * - ( 65 ) AS col1
----
-975

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT 92 DIV 7
----
13

skipif mysql # not compatible
query I rowsort label-4792
SELECT 92 / 7
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4793
SELECT 31 + + - ( 84 ) * - COUNT( * ) DIV + 98 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4793
SELECT 31 + + - ( 84 ) * - COUNT ( * ) / + 98 AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4794
SELECT DISTINCT COUNT( * ) AS col0, - 40
----
1
-40

skipif mysql # not compatible
query II rowsort label-4794
SELECT DISTINCT COUNT ( * ) AS col0, - 40
----
1
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT 5 * MAX( - + 79 ) AS col2
----
-395

skipif mysql # not compatible
query I rowsort label-4795
SELECT 5 * MAX ( - + 79 ) AS col2
----
-395

query I rowsort
SELECT 41 + - 30
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT 21 + + CAST( NULL AS SIGNED ) + - + 62 - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT 21 + + CAST ( NULL AS INTEGER ) + - + 62 - + 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4798
SELECT CASE - + 61 WHEN + 16 - - CAST( NULL AS DECIMAL ) + ( CASE - + COALESCE ( 5, + AVG ( + 41 ), COUNT( * ) ) WHEN + 1 THEN ( + COUNT( * ) ) ELSE NULL END ) / + - 72 * + COALESCE ( 92, + - 45 ) * 46 THEN + COUNT( * ) * + 21 ELSE NULL END + + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT CASE - + 61 WHEN + 16 - - CAST ( NULL AS REAL ) + ( CASE - + COALESCE ( 5, + AVG ( + 41 ), COUNT ( * ) ) WHEN + 1 THEN ( + COUNT ( * ) ) ELSE NULL END ) / + - 72 * + COALESCE ( 92, + - 45 ) * 46 THEN + COUNT ( * ) * + 21 ELSE NULL END + + - 12
----
NULL

query I rowsort
SELECT 27 * - 75
----
-2025

query II rowsort
SELECT 30 * + ( 85 ), - 78 AS col0
----
2550
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL - 31 * + - 53 * COUNT( ALL + 81 ) AS col0
----
1643

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - 31 * + - 53 * COUNT ( ALL + 81 ) AS col0
----
1643

query II rowsort
SELECT DISTINCT 97, 16 AS col1
----
97
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT COUNT( * ) * - ( CAST( ( 32 ) AS SIGNED ) * 52 ) AS col0
----
-1664

skipif mysql # not compatible
query I rowsort label-4803
SELECT COUNT ( * ) * - ( CAST ( ( 32 ) AS INTEGER ) * 52 ) AS col0
----
-1664

query I rowsort
SELECT ALL 12 + 81 AS col2
----
93

query I rowsort
SELECT ALL 70 + - 89
----
-19

query I rowsort
SELECT 56 + 81 * + 53
----
4349

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL COUNT( ALL - 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL COUNT ( ALL - 52 ) AS col0
----
1

query I rowsort
SELECT 65 + 14
----
79

query I rowsort
SELECT DISTINCT CASE - 22 WHEN + 27 * + 96 THEN + 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL - 59 + COUNT( * ) * 60 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - 59 + COUNT ( * ) * 60 AS col0
----
1

query I rowsort
SELECT ALL - 68 * + 77 AS col1
----
-5236

query I rowsort
SELECT DISTINCT 46 - 54 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4813
SELECT CASE WHEN + 83 BETWEEN COUNT( DISTINCT 97 ) * + 87 AND 42 + + COUNT( * ) THEN + CAST( + 15 AS SIGNED ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT CASE WHEN + 83 BETWEEN COUNT ( DISTINCT 97 ) * + 87 AND 42 + + COUNT ( * ) THEN + CAST ( + 15 AS INTEGER ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT DISTINCT MIN( - 70 ) * - MIN( 17 DIV + 57 ) - + 50 col1
----
-50

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT MIN ( - 70 ) * - MIN ( 17 / + 57 ) - + 50 col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT + 86 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT + 86 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 98 * - 56
----
-5488

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT 60 * - 99 + - 57 DIV + 9 AS col0
----
-5946

skipif mysql # not compatible
query I rowsort label-4817
SELECT 60 * - 99 + - 57 / + 9 AS col0
----
-5946

query I rowsort
SELECT DISTINCT 64 * ( - 58 * 82 ) - + 63
----
-304447

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT COALESCE ( 96, COUNT( * ), - 55 )
----
96

skipif mysql # not compatible
query I rowsort label-4819
SELECT COALESCE ( 96, COUNT ( * ), - 55 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + SUM( ALL 25 ) * + 53
----
1325

skipif mysql # not compatible
query I rowsort label-4820
SELECT + SUM ( ALL 25 ) * + 53
----
1325

query I rowsort
SELECT + 56 + 50
----
106

query I rowsort
SELECT ALL 62 * + 22
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT CASE - ( + 86 ) WHEN 64 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4823
SELECT CASE - ( + 86 ) WHEN 64 THEN NULL ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT DISTINCT 97 * + 40
----
3880

query I rowsort
SELECT DISTINCT 56 * 36
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT + NULLIF ( CASE + 4 WHEN 68 * NULLIF ( 76 * MAX( ALL - 98 ), - 79 + - 76 ) + 44 THEN ( COALESCE ( 37, - 7, + CAST( + 80 AS SIGNED ) / 38, - AVG ( + 37 ) / + 13 ) ) END, + COUNT( * ) ) * - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT + NULLIF ( CASE + 4 WHEN 68 * NULLIF ( 76 * MAX ( ALL - 98 ), - 79 + - 76 ) + 44 THEN ( COALESCE ( 37, - 7, + CAST ( + 80 AS INTEGER ) / 38, - AVG ( + 37 ) / + 13 ) ) END, + COUNT ( * ) ) * - 84 AS col2
----
NULL

query I rowsort
SELECT ALL 2 * 85
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT SUM( - 49 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4828
SELECT SUM ( - 49 ) AS col1
----
-49

query I rowsort
SELECT + 61 * - 99 AS col1
----
-6039

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT MAX( 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4830
SELECT MAX ( 46 )
----
46

query I rowsort
SELECT ALL - 83 * + 96 + - 26
----
-7994

query I rowsort
SELECT - 19 * 57 AS col1
----
-1083

query I rowsort
SELECT DISTINCT + 50 * 75 + 36 * + 21 AS col2
----
4506

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT DISTINCT 54 + ( 43 - 34 DIV - 32 ) * 6 AS col0
----
318

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT 54 + ( 43 - 34 / - 32 ) * 6 AS col0
----
318

query I rowsort
SELECT ALL + 99 + + 9
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT - 83 DIV 36 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4836
SELECT - 83 / 36 AS col0
----
-2

query I rowsort
SELECT ALL + 52 + + 11 * 27 col1
----
349

query I rowsort
SELECT + 28 + + 91 * + 14 AS col2
----
1302

query I rowsort
SELECT - + ( - 12 ) * 22 AS col0
----
264

query I rowsort
SELECT + - 61 * 67 AS col1
----
-4087

query I rowsort
SELECT - - 97 * - 82 AS col2
----
-7954

query I rowsort
SELECT - - 11 + + 51 AS col0
----
62

query I rowsort
SELECT - + ( 43 ) + 30
----
-13

query I rowsort
SELECT DISTINCT + + 94 * 68
----
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT COALESCE ( - COUNT( * ), 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT COALESCE ( - COUNT ( * ), 10 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL COALESCE ( + 45, + 4 ) * COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL COALESCE ( + 45, + 4 ) * COUNT ( * ) AS col0
----
45

query I rowsort
SELECT - 14 - + NULLIF ( + 85, ( - 42 ) - 33 ) * 54 AS col0
----
-4604

query I rowsort
SELECT + - 95 + + 32 col0
----
-63

query I rowsort
SELECT + - ( NULLIF ( CASE 61 WHEN 8 THEN 62 * 12 ELSE NULL END, - 75 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4850
SELECT + + COUNT( * ) DIV 30 - + 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4850
SELECT + + COUNT ( * ) / 30 - + 26 AS col1
----
-26

query I rowsort
SELECT - - ( 5 ) * ( 16 + 97 ) col1
----
565

query I rowsort
SELECT + - 4 * - 34 AS col1
----
136

query I rowsort
SELECT DISTINCT - 20 * + + 84 AS col2
----
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT + 97 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT + 97 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT - 71 * - - COALESCE ( 2, 99 DIV - 1 + - 39 ) - + 62
----
-204

skipif mysql # not compatible
query I rowsort label-4855
SELECT - 71 * - - COALESCE ( 2, 99 / - 1 + - 39 ) - + 62
----
-204

query I rowsort
SELECT DISTINCT + NULLIF ( + 10, 99 )
----
10

query I rowsort
SELECT + 71 * + + 38 * - CASE + 36 WHEN - 18 THEN NULL ELSE 17 * + 50 END + - 87 AS col0
----
-2293387

query I rowsort
SELECT + 67 * + 51
----
3417

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT - 8 * + 40 * - COUNT( * ) + 98 col2
----
418

skipif mysql # not compatible
query I rowsort label-4859
SELECT - 8 * + 40 * - COUNT ( * ) + 98 col2
----
418

query I rowsort
SELECT ALL - 39 * 76 * + ( 64 ) + 2 * + 44 AS col2
----
-189608

query I rowsort
SELECT 66 * + CASE + 36 WHEN + NULLIF ( + COALESCE ( - 28, + 90, - 32 * 56 - - 36 ), + 83 * 93 + + 83 ) THEN NULL WHEN 30 + 28 THEN 84 * ( - 7 ) END + + 31 * + 43 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT ALL CAST( NULL AS SIGNED ) * - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL CAST ( NULL AS INTEGER ) * - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT + COUNT( * ) * + + 58 + + 1
----
59

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + COUNT ( * ) * + + 58 + + 1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT CASE - 93 WHEN COUNT( * ) THEN 25 * 31 + 41 WHEN - 5 + - 48 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT CASE - 93 WHEN COUNT ( * ) THEN 25 * 31 + 41 WHEN - 5 + - 48 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT - ( 23 ) * - SUM( + 37 ) + - 85 AS col1
----
766

skipif mysql # not compatible
query I rowsort label-4865
SELECT - ( 23 ) * - SUM ( + 37 ) + - 85 AS col1
----
766

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL 57 * 34 * 82 + MAX( ALL 14 ) * 23 AS col1
----
159238

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL 57 * 34 * 82 + MAX ( ALL 14 ) * 23 AS col1
----
159238

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT - 70 * 95 * + COUNT( * ) + - 95 * - 9
----
-5795

skipif mysql # not compatible
query I rowsort label-4867
SELECT - 70 * 95 * + COUNT ( * ) + - 95 * - 9
----
-5795

query I rowsort
SELECT + - 1 + - 46
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT + ( 53 ) + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4869
SELECT + ( 53 ) + - COUNT ( * )
----
52

query I rowsort
SELECT ALL 66 - + 0
----
66

query I rowsort
SELECT 61 * 40 AS col2
----
2440

query I rowsort
SELECT - 5 * + 80 AS col1
----
-400

query I rowsort
SELECT DISTINCT + - ( - 96 ) * + 56
----
5376

query I rowsort
SELECT ALL 32 - + 35
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT DISTINCT + + 92 * + + COALESCE ( - 92, CASE + 5 WHEN ( + 13 ) / COUNT( * ) - 11 THEN NULL WHEN 41 THEN 34 * COUNT( * ) END ) + 56 AS col0
----
-8408

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT + + 92 * + + COALESCE ( - 92, CASE + 5 WHEN ( + 13 ) / COUNT ( * ) - 11 THEN NULL WHEN 41 THEN 34 * COUNT ( * ) END ) + 56 AS col0
----
-8408

query I rowsort
SELECT ALL - + 30 - - - 13 col0
----
-43

query I rowsort
SELECT - - ( + + NULLIF ( 92, 10 * - 60 ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT DISTINCT + + ( + + 76 ) * COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT + + ( + + 76 ) * COUNT ( * ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT ALL CAST( - 33 AS SIGNED ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL CAST ( - 33 AS INTEGER ) col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4880
SELECT 99 DIV - CASE COUNT( * ) WHEN + 72 THEN ( - NULLIF ( - CAST( NULL AS SIGNED ), + NULLIF ( 9, 98 + 35 ) ) ) * 14 ELSE - 74 END
----
1

skipif mysql # not compatible
query I rowsort label-4880
SELECT 99 / - CASE COUNT ( * ) WHEN + 72 THEN ( - NULLIF ( - CAST ( NULL AS INTEGER ), + NULLIF ( 9, 98 + 35 ) ) ) * 14 ELSE - 74 END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT 6 DIV - - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT 6 / - - 19 AS col1
----
0

query I rowsort
SELECT 12 + - + 92
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - COUNT( * ) * + - 81 + ( 39 ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-4883
SELECT - COUNT ( * ) * + - 81 + ( 39 ) AS col1
----
120

query II rowsort
SELECT + 6, 26 col0
----
6
26

query II rowsort
SELECT 6, - 86 AS col2
----
6
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT 71 DIV NULLIF ( + 17, 34 * - 28 ) + + 31
----
35

skipif mysql # not compatible
query I rowsort label-4886
SELECT 71 / NULLIF ( + 17, 34 * - 28 ) + + 31
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT COUNT( * ) + - 30 + - - 60 + 41
----
72

skipif mysql # not compatible
query I rowsort label-4887
SELECT COUNT ( * ) + - 30 + - - 60 + 41
----
72

query I rowsort
SELECT 12 * - 75 AS col1
----
-900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT COUNT( * ) + + COALESCE ( + CAST( - 8 AS SIGNED ), - 43 ) * COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-4889
SELECT COUNT ( * ) + + COALESCE ( + CAST ( - 8 AS INTEGER ), - 43 ) * COUNT ( * )
----
-7

query I rowsort
SELECT 31 * COALESCE ( + + 51, 33, + 61 ) AS col1
----
1581

query I rowsort
SELECT ALL + 71 + + + 9 + + 72
----
152

query I rowsort
SELECT DISTINCT - NULLIF ( + 77, - 26 ) + 75
----
-2

query II rowsort
SELECT 44, + 76 + - 26 - 80 AS col0
----
44
-30

query I rowsort
SELECT ALL 95 + + + 17 + ( 63 ) * - 43 AS col2
----
-2597

query II rowsort
SELECT DISTINCT - 14 AS col2, 55 * + 38 + 5
----
-14
2095

query I rowsort
SELECT 27 * + 53 * + 19 * + 60
----
1631340

query I rowsort
SELECT ALL 59 - - 15 col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - 20 - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-4898
SELECT - 20 - COUNT ( * )
----
-21

query I rowsort
SELECT ALL + 33 * + 15 * + 95 AS col0
----
47025

onlyif mysql # DIV for integer division: 
query II rowsort label-4900
SELECT + 64, - 53 DIV - 99 AS col1
----
64
0

skipif mysql # not compatible
query II rowsort label-4900
SELECT + 64, - 53 / - 99 AS col1
----
64
0

query I rowsort
SELECT ALL - + 86 * ( 14 ) AS col2
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT DISTINCT + MAX( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT + MAX ( - 26 )
----
-26

query I rowsort
SELECT + COALESCE ( ( - 70 ), + 75 )
----
-70

query I rowsort
SELECT ALL 39 * + 8 + NULLIF ( 15, + 66 ) * 35 col0
----
837

query II rowsort
SELECT - - 45 AS col2, - 58 + + + 60
----
45
2

query II rowsort
SELECT - 49 col0, 38 AS col2
----
-49
38

query I rowsort
SELECT 24 + + 16 - - - 5 + 62 * + NULLIF ( - 14 * - 48, 4 * 84 ) * - 11 AS col0
----
-458269

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT - 55 AS col2, - 96 * - COUNT( * ) * + 10 + - ( - COUNT( * ) + 99 )
----
-55
862

skipif mysql # not compatible
query II rowsort label-4908
SELECT - 55 AS col2, - 96 * - COUNT ( * ) * + 10 + - ( - COUNT ( * ) + 99 )
----
-55
862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT DISTINCT + ( CASE - + CASE - 58 WHEN - 92 * 88 - 14 * - 79 THEN - 43 * ( ( - COUNT( * ) ) * 98 ) ELSE NULL END WHEN 16 THEN CAST( NULL AS SIGNED ) * 9 WHEN 63 THEN + COUNT( * ) ELSE + 83 END ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT + ( CASE - + CASE - 58 WHEN - 92 * 88 - 14 * - 79 THEN - 43 * ( ( - COUNT ( * ) ) * 98 ) ELSE NULL END WHEN 16 THEN CAST ( NULL AS INTEGER ) * 9 WHEN 63 THEN + COUNT ( * ) ELSE + 83 END ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT 1 * + 43 - + 5 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4910
SELECT 1 * + 43 - + 5 + + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT SUM( DISTINCT 23 )
----
23

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT SUM ( DISTINCT 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL + + 23 + + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + + 23 + + COUNT ( * ) AS col2
----
24

query I rowsort
SELECT DISTINCT 38 + + 85 + - + 29 + - + 44 * 95 AS col1
----
-4086

onlyif mysql # aggregate syntax: 
query II rowsort label-4914
SELECT 25 + COUNT( * ), 52 AS col2
----
26
52

skipif mysql # not compatible
query II rowsort label-4914
SELECT 25 + COUNT ( * ), 52 AS col2
----
26
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4915
SELECT - COUNT( DISTINCT + 42 ) AS col0, - ( + 13 ) DIV - 93 + 75 AS col2
----
-1
75

skipif mysql # not compatible
query II rowsort label-4915
SELECT - COUNT ( DISTINCT + 42 ) AS col0, - ( + 13 ) / - 93 + 75 AS col2
----
-1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT SUM( + 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4916
SELECT SUM ( + 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL - MAX( DISTINCT 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - MAX ( DISTINCT 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT SUM( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4918
SELECT SUM ( + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL - 24 * + 52 + COUNT( * ) AS col0
----
-1247

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL - 24 * + 52 + COUNT ( * ) AS col0
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT - 24 * + ( + 60 ) - + - SUM( 12 ) AS col1
----
-1428

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 24 * + ( + 60 ) - + - SUM ( 12 ) AS col1
----
-1428

query I rowsort
SELECT 50 * - - 61 AS col1
----
3050

query I rowsort
SELECT 76 * 96 + 77 * - 25 AS col2
----
5371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT ALL 49 * - - 32 - + CAST( 22 AS SIGNED ) + - 67 * - CAST( - 45 * - 99 AS SIGNED ) col0
----
300031

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL 49 * - - 32 - + CAST ( 22 AS INTEGER ) + - 67 * - CAST ( - 45 * - 99 AS INTEGER ) col0
----
300031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT - 61 * + 19 + - - CAST( - + 82 AS SIGNED ) * ( + 3 ) AS col2
----
-1405

skipif mysql # not compatible
query I rowsort label-4924
SELECT - 61 * + 19 + - - CAST ( - + 82 AS INTEGER ) * ( + 3 ) AS col2
----
-1405

query I rowsort
SELECT 41 * - 14 + + 56 * + 80 col2
----
3906

onlyif mysql # aggregate syntax: 
query II rowsort label-4926
SELECT ALL + 14 * + + COUNT( * ) AS col2, 88
----
14
88

skipif mysql # not compatible
query II rowsort label-4926
SELECT ALL + 14 * + + COUNT ( * ) AS col2, 88
----
14
88

query I rowsort
SELECT - + 99 + - 42 AS col1
----
-141

query I rowsort
SELECT ALL - + 40 * - 0 - - 33 + + 14 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT COUNT( * ) * - + 79 * 86 * - 51 * - 6 + + ( MIN( ALL - 35 ) )
----
-2078999

skipif mysql # not compatible
query I rowsort label-4929
SELECT COUNT ( * ) * - + 79 * 86 * - 51 * - 6 + + ( MIN ( ALL - 35 ) )
----
-2078999

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT - 60 * - 40 + + NULLIF ( - 60, + COUNT( * ) + - 80 )
----
2340

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - 60 * - 40 + + NULLIF ( - 60, + COUNT ( * ) + - 80 )
----
2340

query I rowsort
SELECT ALL + - NULLIF ( + - 56, + 29 - + 96 + - 44 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT - + ( - - 2 ), - MIN( + + 85 ) AS col2
----
-2
-85

skipif mysql # not compatible
query II rowsort label-4932
SELECT - + ( - - 2 ), - MIN ( + + 85 ) AS col2
----
-2
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-4933
SELECT ALL - 77 DIV + + 9 col0, + 93 col0
----
-8
93

skipif mysql # not compatible
query II rowsort label-4933
SELECT ALL - 77 / + + 9 col0, + 93 col0
----
-8
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4934
SELECT + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / 69 AS col1
----
NULL

query II rowsort
SELECT + 94 + - 6, 45 AS col2
----
88
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4936
SELECT - MAX( + 44 ) AS col2, CAST( NULL AS DECIMAL ) AS col0
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-4936
SELECT - MAX ( + 44 ) AS col2, CAST ( NULL AS REAL ) AS col0
----
-44
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4937
SELECT ALL - CAST( NULL AS DECIMAL ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL - CAST ( NULL AS REAL ) + 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4938
SELECT + CASE - + COALESCE ( NULLIF ( + 24, COUNT( * ) ), - COUNT( DISTINCT + 96 ) ) WHEN 43 * AVG ( + 15 ) THEN 30 * 29 WHEN - COUNT( * ) * 21 THEN + 39 ELSE 60 * + 47 END DIV 41
----
68

skipif mysql # not compatible
query I rowsort label-4938
SELECT + CASE - + COALESCE ( NULLIF ( + 24, COUNT ( * ) ), - COUNT ( DISTINCT + 96 ) ) WHEN 43 * AVG ( + 15 ) THEN 30 * 29 WHEN - COUNT ( * ) * 21 THEN + 39 ELSE 60 * + 47 END / 41
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT CASE + 15 WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) + + 56 * - 2 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT CASE + 15 WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) + + 56 * - 2 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL COUNT( * ) + MIN( DISTINCT - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL COUNT ( * ) + MIN ( DISTINCT - 0 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT - 34 + + 54 + - 57 + 24 * + 41 * 1 * COUNT( * )
----
947

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - 34 + + 54 + - 57 + 24 * + 41 * 1 * COUNT ( * )
----
947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT + AVG ( ALL - 26 ) * + ( + CAST( NULL AS SIGNED ) ) * + 89 * - 83 + 33 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT + AVG ( ALL - 26 ) * + ( + CAST ( NULL AS INTEGER ) ) * + 89 * - 83 + 33 * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL COUNT( * ) + + + 36 col0
----
37

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL COUNT ( * ) + + + 36 col0
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-4944
SELECT 88 AS col1, 99 DIV 15 - + - 68
----
88
74

skipif mysql # not compatible
query II rowsort label-4944
SELECT 88 AS col1, 99 / 15 - + - 68
----
88
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + 56 + + CASE + - MAX( ALL NULLIF ( - + 74, + 39 ) ) WHEN COUNT( * ) * - 45 THEN - 42 + 27 END / + 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 56 + + CASE + - MAX ( ALL NULLIF ( - + 74, + 39 ) ) WHEN COUNT ( * ) * - 45 THEN - 42 + 27 END / + 61 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT + 14 - 71 + - + CAST( NULL AS SIGNED ) + + - 15 * - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT + 14 - 71 + - + CAST ( NULL AS INTEGER ) + + - 15 * - 55 AS col2
----
NULL

query I rowsort
SELECT + 32 + - 9 AS col2
----
23

query II rowsort
SELECT ALL 59 AS col2, COALESCE ( - 75, + 26, + - 70 ) * + 11
----
59
-825

query I rowsort
SELECT ALL 78 * - 69 AS col0
----
-5382

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT + 2 + 86 * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-4950
SELECT + 2 + 86 * + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + 58 * + - CASE - 47 WHEN AVG ( 77 ) * + 3 THEN NULL WHEN MIN( ALL ( - 56 ) ) * - CASE - 58 WHEN - 7 THEN 16 ELSE 20 * - COUNT( - 81 ) + + 29 END THEN - ( + 23 ) + 56 * - MAX( ALL 12 * 8 ) END + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT + 58 * + - CASE - 47 WHEN AVG ( 77 ) * + 3 THEN NULL WHEN MIN ( ALL ( - 56 ) ) * - CASE - 58 WHEN - 7 THEN 16 ELSE 20 * - COUNT ( - 81 ) + + 29 END THEN - ( + 23 ) + 56 * - MAX ( ALL 12 * 8 ) END + 96 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT COUNT( * ) / - 35 / CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT COUNT ( * ) / - 35 / CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT ( + COALESCE ( - + 50, - - ( + 77 ) DIV + 92 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-4953
SELECT ( + COALESCE ( - + 50, - - ( + 77 ) / + 92 ) )
----
-50

query II rowsort
SELECT ALL + 20, - 45 AS col2
----
20
-45

query II rowsort
SELECT DISTINCT + 94 AS col1, ( - - 25 ) * + - ( 50 ) - + 3
----
94
-1253

query I rowsort
SELECT ( ( + 77 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT - 24 * - ( + 25 ) * + SUM( ALL + 35 )
----
21000

skipif mysql # not compatible
query I rowsort label-4957
SELECT - 24 * - ( + 25 ) * + SUM ( ALL + 35 )
----
21000

query II rowsort
SELECT ALL + - 98 AS col1, 35 AS col0
----
-98
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT + - COUNT( - - 84 ) * ( - + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT + - COUNT ( - - 84 ) * ( - + 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4960
SELECT + + COALESCE ( 96, 25 DIV - CAST( + + CASE + 24 WHEN 6 THEN NULL WHEN + 71 THEN NULL ELSE - COALESCE ( 32, + 53, 46 ) END AS SIGNED ), - 29 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4960
SELECT + + COALESCE ( 96, 25 / - CAST ( + + CASE + 24 WHEN 6 THEN NULL WHEN + 71 THEN NULL ELSE - COALESCE ( 32, + 53, 46 ) END AS INTEGER ), - 29 ) AS col0
----
96

query I rowsort
SELECT + - ( + 61 ) * 22 - + 45 AS col2
----
-1387

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT + + 1 - - 24 + - 60 + - 42 * - - NULLIF ( + 63, 90 * COUNT( * ) ) * MIN( ALL 85 )
----
-224945

skipif mysql # not compatible
query I rowsort label-4962
SELECT + + 1 - - 24 + - 60 + - 42 * - - NULLIF ( + 63, 90 * COUNT ( * ) ) * MIN ( ALL 85 )
----
-224945

query I rowsort
SELECT - - 26 - 11 col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4964
SELECT ALL + + 36 * - CASE - + COUNT( * ) WHEN - 15 + + CASE CAST( 65 AS SIGNED ) WHEN 6 - - COUNT( * ) THEN 30 + + 63 ELSE NULL END THEN 87 + - NULLIF ( ( MAX( ALL 19 ) ), COUNT( * ) ) ELSE - 68 END + - 86 DIV - 65 + - 42 AS col2
----
2407

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + + 36 * - CASE - + COUNT ( * ) WHEN - 15 + + CASE CAST ( 65 AS INTEGER ) WHEN 6 - - COUNT ( * ) THEN 30 + + 63 ELSE NULL END THEN 87 + - NULLIF ( ( MAX ( ALL 19 ) ), COUNT ( * ) ) ELSE - 68 END + - 86 / - 65 + - 42 AS col2
----
2407

query I rowsort
SELECT - 45 * - - 19 AS col0
----
-855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4966
SELECT ALL + + 5 * + + SUM( DISTINCT + CAST( + 50 AS SIGNED ) ) * + 6 + 20 + 98
----
1618

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + + 5 * + + SUM ( DISTINCT + CAST ( + 50 AS INTEGER ) ) * + 6 + 20 + 98
----
1618

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - - MIN( ALL + 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4967
SELECT - - MIN ( ALL + 36 ) AS col2
----
36

query I rowsort
SELECT ALL - - 14 * - 1 * - - 5
----
-70

query I rowsort
SELECT - 67 - + - 83 AS col0
----
16

query I rowsort
SELECT - 55 * 38 + - 52 AS col2
----
-2142

query I rowsort
SELECT - + ( - + 18 ) - - 51 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT ALL - COALESCE ( + COUNT( * ), - 55 ) AS col0, + 47
----
-1
47

skipif mysql # not compatible
query II rowsort label-4972
SELECT ALL - COALESCE ( + COUNT ( * ), - 55 ) AS col0, + 47
----
-1
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT - - CAST( + 83 AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4973
SELECT - - CAST ( + 83 AS INTEGER ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4974
SELECT - 15 + 35 DIV - 42
----
-15

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 15 + 35 / - 42
----
-15

query I rowsort
SELECT - 91 + 13 AS col0
----
-78

query I rowsort
SELECT ALL - ( + + 96 ) + + 81 AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT + 84 * 88 DIV - 7
----
-1056

skipif mysql # not compatible
query I rowsort label-4977
SELECT + 84 * 88 / - 7
----
-1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4978
SELECT + COUNT( * ) DIV - 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4978
SELECT + COUNT ( * ) / - 17 AS col2
----
0

query II rowsort
SELECT 60, - 74 AS col0
----
60
-74

query II rowsort
SELECT 65, 21 AS col1
----
65
21

query I rowsort
SELECT ALL 84 - + + ( - + 67 ) * 21
----
1491

query I rowsort
SELECT 30 * - 26 AS col1
----
-780

query II rowsort
SELECT 73 AS col0, 99
----
73
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT COUNT( * ) - + 21 - - 55 + + 75
----
110

skipif mysql # not compatible
query I rowsort label-4984
SELECT COUNT ( * ) - + 21 - - 55 + + 75
----
110

query I rowsort
SELECT 40 * - 27 AS col0
----
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4986
SELECT + 29 AS col1, - 11 + + CAST( NULL AS SIGNED ) * 86 col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4986
SELECT + 29 AS col1, - 11 + + CAST ( NULL AS INTEGER ) * 86 col1
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL - COUNT( - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - COUNT ( - 24 )
----
-1

query II rowsort
SELECT DISTINCT - 97, - 14 AS col1
----
-97
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-4989
SELECT + 40 AS col2, 69 * 67 DIV + 87
----
40
53

skipif mysql # not compatible
query II rowsort label-4989
SELECT + 40 AS col2, 69 * 67 / + 87
----
40
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4990
SELECT 20 DIV - CAST( NULLIF ( 10, + 27 ) AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4990
SELECT 20 / - CAST ( NULLIF ( 10, + 27 ) AS INTEGER ) AS col2
----
-2

query I rowsort
SELECT - 83 * + 26 + + 71 AS col0
----
-2087

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4992
SELECT CASE + 2 WHEN + 99 * - 14 * - 15 + + - 18 THEN NULL ELSE + COUNT( * ) END - + CASE - 24 WHEN 52 THEN 73 ELSE MAX( ALL + 11 ) END DIV - 20
----
1

skipif mysql # not compatible
query I rowsort label-4992
SELECT CASE + 2 WHEN + 99 * - 14 * - 15 + + - 18 THEN NULL ELSE + COUNT ( * ) END - + CASE - 24 WHEN 52 THEN 73 ELSE MAX ( ALL + 11 ) END / - 20
----
1

query I rowsort
SELECT + ( + - 50 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT CAST( NULL AS SIGNED ) * ( + 92 ) + 8 * + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT CAST ( NULL AS INTEGER ) * ( + 92 ) + 8 * + 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT 27 AS col0, CASE COUNT( * ) WHEN - - 17 + 96 THEN NULL WHEN - + ( 77 ) / + COALESCE ( 28 * - 27, 22 + - 0 ) THEN - COUNT( * ) END col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4995
SELECT 27 AS col0, CASE COUNT ( * ) WHEN - - 17 + 96 THEN NULL WHEN - + ( 77 ) / + COALESCE ( 28 * - 27, 22 + - 0 ) THEN - COUNT ( * ) END col0
----
27
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT + SUM( 15 ) DIV - - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4996
SELECT + SUM ( 15 ) / - - COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL ( - NULLIF ( - - 8, - - 35 ) ) + - COUNT( * ) + + + 14 + 39 * - COUNT( * ) * 97
----
-3778

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL ( - NULLIF ( - - 8, - - 35 ) ) + - COUNT ( * ) + + + 14 + 39 * - COUNT ( * ) * 97
----
-3778

query I rowsort
SELECT 30 + - ( 51 ) AS col0
----
-21

query II rowsort
SELECT ALL - 89 AS col0, - 72
----
-89
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT - COUNT( * ) + - 8 DIV + - COUNT( * ) col0
----
7

skipif mysql # not compatible
query I rowsort label-5000
SELECT - COUNT ( * ) + - 8 / + - COUNT ( * ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL - + SUM( DISTINCT 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - + SUM ( DISTINCT 67 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT + SUM( 94 ) + - COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT + SUM ( 94 ) + - COUNT ( * ) AS col0
----
93

query I rowsort
SELECT DISTINCT 17 + - 52 * - - 31 AS col2
----
-1595

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT + 95 DIV - NULLIF ( - 30, - 10 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-5004
SELECT + 95 / - NULLIF ( - 30, - 10 ) col2
----
3

query I rowsort
SELECT + 65 + 58
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL - COUNT( * ) + - 46 * + ( + - 9 ) AS col0
----
413

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - COUNT ( * ) + - 46 * + ( + - 9 ) AS col0
----
413

query I rowsort
SELECT - 4 * + 2 - ( + 31 )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT COUNT( * ) col0, AVG ( - CASE + 49 WHEN - 55 THEN - 41 ELSE NULL END ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5008
SELECT COUNT ( * ) col0, AVG ( - CASE + 49 WHEN - 55 THEN - 41 ELSE NULL END ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + ( 30 ) + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5009
SELECT + ( 30 ) + + COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT ALL + CASE - - 59 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 9 * + NULLIF ( - 2, + 0 / COUNT( ALL 56 ) - + CASE 23 + 35 WHEN ( + 94 ) + + 88 / + CAST( NULL AS SIGNED ) THEN 75 WHEN 59 * - 95 THEN NULL END ) END + + 76
----
94

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL + CASE - - 59 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 9 * + NULLIF ( - 2, + 0 / COUNT ( ALL 56 ) - + CASE 23 + 35 WHEN ( + 94 ) + + 88 / + CAST ( NULL AS INTEGER ) THEN 75 WHEN 59 * - 95 THEN NULL END ) END + + 76
----
94

query I rowsort
SELECT 24 * + 0 AS col2
----
0

query I rowsort
SELECT ALL - 17 * - + 66 col0
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL - CASE + 20 WHEN 73 THEN NULL ELSE NULLIF ( COUNT( * ), - 18 * - COUNT( * ) + - 47 + 65 ) END - - 49 * 93
----
4556

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL - CASE + 20 WHEN 73 THEN NULL ELSE NULLIF ( COUNT ( * ), - 18 * - COUNT ( * ) + - 47 + 65 ) END - - 49 * 93
----
4556

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT DISTINCT + COUNT( * ) * - + 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT + COUNT ( * ) * - + 71 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT - 72 - - CASE + 82 WHEN + - COUNT( * ) * - COUNT( * ) + - 32 + 44 THEN 71 END + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - 72 - - CASE + 82 WHEN + - COUNT ( * ) * - COUNT ( * ) + - 32 + 44 THEN 71 END + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT 40 * 39 * + COUNT( * ) AS col0
----
1560

skipif mysql # not compatible
query I rowsort label-5016
SELECT 40 * 39 * + COUNT ( * ) AS col0
----
1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5017
SELECT ALL + 81 DIV COUNT( 84 ) * 73 * + + MIN( - ( 49 ) )
----
-289737

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL + 81 / COUNT ( 84 ) * 73 * + + MIN ( - ( 49 ) )
----
-289737

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT 46 + + - MIN( ALL - 13 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5018
SELECT 46 + + - MIN ( ALL - 13 ) AS col2
----
59

query I rowsort
SELECT 49 - 43 AS col1
----
6

query I rowsort
SELECT 56 + - 34 + - 99
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT ALL + 82 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + 82 / + 85 AS col2
----
0

query I rowsort
SELECT 75 * + - 37 * + 71
----
-197025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT ALL 83 + - 99 DIV COUNT( * ) * - + 59 AS col2
----
5924

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL 83 + - 99 / COUNT ( * ) * - + 59 AS col2
----
5924

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT 55 DIV - 86 * + + 96 * - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5024
SELECT 55 / - 86 * + + 96 * - 52 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5025
SELECT - 64 * + COALESCE ( - 4, - CASE - - 2 WHEN 3 * - 38 * 14 + + 47 THEN NULL WHEN 42 THEN + COUNT( * ) WHEN + 86 THEN ( + ( + 8 ) ) END - - ( - 59 + + COUNT( * ) ) ) DIV COUNT( * ) AS col0
----
256

skipif mysql # not compatible
query I rowsort label-5025
SELECT - 64 * + COALESCE ( - 4, - CASE - - 2 WHEN 3 * - 38 * 14 + + 47 THEN NULL WHEN 42 THEN + COUNT ( * ) WHEN + 86 THEN ( + ( + 8 ) ) END - - ( - 59 + + COUNT ( * ) ) ) / COUNT ( * ) AS col0
----
256

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT + 48 DIV + 29 + + 73
----
74

skipif mysql # not compatible
query I rowsort label-5026
SELECT + 48 / + 29 + + 73
----
74

query I rowsort
SELECT ALL 17 + - 39 * - - 1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT COUNT( * ) + - 24
----
-23

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT COUNT ( * ) + - 24
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL + + 72 * + + 40 + - COALESCE ( + 87, + - COUNT( * ) ) + + 55 + - - 11 * - COUNT( * )
----
2837

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + + 72 * + + 40 + - COALESCE ( + 87, + - COUNT ( * ) ) + + 55 + - - 11 * - COUNT ( * )
----
2837

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL - 99 + - COUNT( * ) + + ( + 22 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL - 99 + - COUNT ( * ) + + ( + 22 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT CASE - COUNT( * ) WHEN - + 57 + - 78 * - COUNT( * ) THEN NULL ELSE - 59 + - 21 END AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5031
SELECT CASE - COUNT ( * ) WHEN - + 57 + - 78 * - COUNT ( * ) THEN NULL ELSE - 59 + - 21 END AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - - 60 + 79 * + COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - - 60 + 79 * + COUNT ( * )
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5033
SELECT CASE 81 WHEN + MAX( - - 54 ) THEN CAST( - 27 AS SIGNED ) WHEN - - CASE - ( + COUNT( * ) ) WHEN COUNT( * ) THEN - COUNT( * ) * 74 END * MIN( ALL 63 + + 68 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT CASE 81 WHEN + MAX ( - - 54 ) THEN CAST ( - 27 AS INTEGER ) WHEN - - CASE - ( + COUNT ( * ) ) WHEN COUNT ( * ) THEN - COUNT ( * ) * 74 END * MIN ( ALL 63 + + 68 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 49 + - 35 + - 40 + + + 94 AS col0
----
-30

query I rowsort
SELECT ALL 6 * NULLIF ( + 3, - COALESCE ( + - 46, + + 85, - 74 + 12 ) ) col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT SUM( DISTINCT 84 ) * - + 70
----
-5880

skipif mysql # not compatible
query I rowsort label-5036
SELECT SUM ( DISTINCT 84 ) * - + 70
----
-5880

query I rowsort
SELECT 93 - - - ( - 35 ) AS col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT CAST( + 22 AS SIGNED ) * + COUNT( - 94 ) col1
----
22

skipif mysql # not compatible
query I rowsort label-5038
SELECT CAST ( + 22 AS INTEGER ) * + COUNT ( - 94 ) col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5039
SELECT 90, - ( + NULLIF ( - 90, - COUNT( * ) + - - 17 ) )
----
90
90

skipif mysql # not compatible
query II rowsort label-5039
SELECT 90, - ( + NULLIF ( - 90, - COUNT ( * ) + - - 17 ) )
----
90
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT ALL 67 DIV - + SUM( - ( - + 9 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL 67 / - + SUM ( - ( - + 9 ) ) AS col0
----
-7

query I rowsort
SELECT + 73 * + 10
----
730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5042
SELECT - COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT - COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 49 * - - 0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5044
SELECT - 10 AS col0, 58 DIV + 11
----
-10
5

skipif mysql # not compatible
query II rowsort label-5044
SELECT - 10 AS col0, 58 / + 11
----
-10
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT + COUNT( * ) + + - 14
----
-13

skipif mysql # not compatible
query I rowsort label-5045
SELECT + COUNT ( * ) + + - 14
----
-13

query II rowsort
SELECT - 78 + + + ( 95 ) * - - 32 * 3 + 98 AS col0, + 6 + + + 4 * + 61
----
9140
250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL 1 + - CAST( + ( + + MIN( ALL 89 ) ) AS SIGNED ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL 1 + - CAST ( + ( + + MIN ( ALL 89 ) ) AS INTEGER ) AS col2
----
-88

query I rowsort
SELECT ALL 60 * + 97 AS col1
----
5820

query II rowsort
SELECT 14 col0, 46
----
14
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL + MAX( - 6 ) + 92
----
86

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + MAX ( - 6 ) + 92
----
86

onlyif mysql # DIV for integer